HADashboard in IOS 5.1.1

Tried the command above (gave a name parameter for ease) and easily pull up the same config that my other/official AppDaemon uses. I can pull up the page w/o issue but I still don’t see iPad 1 using Safari or older Chrome working when a switch is updated. Would love any suggestions…

I didn’t have to dump the Git locally, just ran the command and it pulled the Dockerfile content from the web. Is that the reason this fails, or something else?

Thanks!

Can you check if you indeed running the docker that you just built as described in steps 1-3 ?

Thank you! The key was to clone the repository locally because whatever is pulled from the Docker hub under the following name space, did not work: algirdasc/appdaemon:latest

However, once I followed the below instructions, it’s working great. Thanks for the awesome update @algirdasc!

cd ~
mkdir adsocks
cd adsocks
git clone https://github.com/algirdasc/appdaemon.git
docker image build appdaemon --tag jzsandbox/appdaemon
sudo docker run -d --name=appdaemon3030 --restart always -it -p 3030:5050 -v /home/hass/appdaemon:/conf jzsandbox/appdaemon:latest

Upon further testing, this command started to work w/o issues as well but did not before with multiple attempts. The benefit of this command is not having to do any local docker building with source:

sudo docker run -d --name=appdaemon3030 --restart always -it -p 3030:5050 -v /home/hass/appdaemon:/conf algirdasc/appdaemon:latest

@JZhass, could you please provide the link to original algirdasc post?

I’m taking another look at this and hoping I can get it into the next release.

Original post #41

But post 22 and your post 68 got me moving forward.

Building the container locally does provide some advantages because you can add AppDaemon auto-refresh like described here.

I’m sorry I’ve poorly documented how to build my appdaemon fork. All you need to do is to clone my repository (https://github.com/algirdasc/appdaemon) and build Docker Image with “create_docker_image.sh” script. Also, I’ve included Docker-rpi file to build AppDaemon on Rasbery PI or other arm CPU based SBCs. Just rename Docker-rpi to Docker and run “create_docker_image.sh”. If @aimc is going to get iOS 5.1.1 support into next release that would be soooo awesome :slight_smile:

Hopefully) Could be nice once it will become part of stock addon…

I am happy to announce that socket.io support has been added to AppDaemon! It is currently available in the dev branch and will be part of 3.1.0 when that is released.

All you need to do is turn on support for socket.io by adding this setting in the dashboard section:

    transport: socketio

Note I haven’t been able to test this on on older devices owing to the sad demise of my original iPad. I dusted it off for testing but it seems like the battery is beyond salvaging :frowning:

So give it a try and let me know if it works on older devices.

I went with socketio over SockJS because the code looked a little cleaner and socket.io auto-reconnects where as from what I could tell SockJS does not - either way this should fix the requirement to add HADashboard support to older browsers.

Thanks to both @algirdasc and @zarya for your work on this!

2 Likes

Wow! Great news! Thank you, @aimc

1 Like

Very cool, thank you! I may abandon my workaround of meta refreshing every 30 seconds.

Sorry but may be a lame question: you mentioned adding the transport: socketio tag into the dashboard section. AppDaemon.yaml has an hadashboard section. If possible, can you please clarify specifically which file and whether the dashboard section has a parent node, etc.

All the best!

Sorry @aimc a bit of bad news and hopefully related to something being wrong with the current DEV branch. When using @algirdasc’s version per my instructions above, everything works as expected and tiles truly update in IOS 5.1.1 using Safari. When using the current/official DEV branch per the instructions below, the tiles don’t update until page is refreshed akin to the old/original 3.0.1 version that I had. The other issue is that certain icons don’t seem to work like on all motion sensors, etc. I can share a screenshot if desired. Please see my instructions below and let me know if I’m doing something wrong… Thanks again!

cd ~
mkdir adsocks
cd adsocks
git clone https://github.com/home-assistant/appdaemon -b dev --single-branch
docker image build appdaemon --tag jzsandbox/appdaemon
sudo docker run -d --name=appdaemon3030 --restart always -it -p 3030:5050 -v /home/hass/appdaemon:/conf jzsandbox/appdaemon:latest

the dev branche has the breaking changes that are in 3.0.2 also regarding FA icons.
so if certain icons dont work you need to look at if you have some broken choices.
you can also read this part about it:
https://appdaemon.readthedocs.io/en/latest/DASHBOARD_CREATION.html#a-note-on-font-awesome-upgrade

@JZhass andrew was talking about the hadashboardsection in your appdaemon.yaml
hadashboard has no parent.

Got it, thanks @ReneTode!!! Yeah good old MDI icons work well outside of the Dev branch. I’m pointing to the same config folder from multiple/test AppDaemon Docker containers.

UPDATE:
@ReneTode unfortunately no better news with respect to updating tiles w/o having to refresh. However my icons were fixed and I’m running these two parameters in my appdaemon.yaml > hadashboard section:

  transport: socketio
  fa4compatibility: 1 

I’m definitely having lots of success with @algirdasc’s version while the same config with the official DEV branch @aimc linked to along with those parameters above in my Yaml are not yielding expected results unless I refresh.

Thanks!

yeah oke, the FA4 compatibility has no impact on the socketio.
so i guess that Andrew still needs to take a look at that.

Make sure you clean your cache and recompile ALL of your dashboards

Looks like I’ll be adding socksjs support as well following reports that socketio is not working for some older tablets as expected.

1 Like

Sadly, @aimc update is not working on my old iPad either. If there is anyone unlucky as I am, feel free to pull my SockJS implementation for AppDaemon 3.0.2 which seems to work with latest (0.83.2) HA. Brief instructions:

git pull https://github.com/algirdasc/appdaemon.git
cd appdaemon/
sh create-docker-image.sh

Wait untill image algirdasc/appdaemon is being built and then it attach to your Docker container.

Thanks - I’ll keep you up to date on socksjs progress.

I’m looking forward to getting socksjs support, I’ve got an old iPad 1 mounted on the wall, I’ve been running @algirdasc docker for some time on my synology NAS but it’s just broken (I think the latest update of HA seems to have stopped the api password working). Is it possible to build the latest @algirdasc on windows?