and that helped in that I can now see an appdaemon.yaml file created with proper HA_URL.
But I never get a connection. All I see is: 2018-07-10 13:26:31.847843 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
Next, I opened up a terminal into this docker container and I was unable to ping the HA address or cURL to the HA page.
Do I need some kind of link? Note both docker containers are running on Synology NAS at 10.0.2.25.
i suspect you didnt configure appdaemon.
this part of the docs should be in bold i guess because lots of people miss it.
At this point forward, you can edit configurations on your conf folder and Appdaemon will load them see the AppDaemon Installation page for full instrctions on AppDaemon configuration. Have fun!
I couldn’t see that you had done anything wrong, so I tried it myself, and get the same results - appdaemon doesn’t connect. I have the same configuration as my real (virtual env) environment, so there is nothing wrong with that.
I can’t get the docker image to work. Of course, I have AD running in a virtual environment, but there is no reason why I couldn’t have two ADs running.
I did configure appdaemon although most everything was correct from the run command. Here’s my pertinent parts from appdaemon.yaml. I have no api-key as #api_password: is commented during this local trial.
(Added the net=host and privileged flag.) I then opened a bash shell into this container: curl http://10.0.2.25:8123/states
Gives me all of HA states but the log still logs: 2018-07-10 15:44:35.132126 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
Perhaps this never worked in separate containers although if cURL worked, it seems AD should provide some other log information. Is there a way for AD to tell why it’s not connecting?
This is interesting. When I ctrl-c out of the container, I got this in the log:
2018-07-10 15:46:50.211703 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
Above line repeated hundreds of times...
2018-07-10 15:47:35.234785 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-07-10 15:47:40.238213 INFO AppDaemon: HASS: Disconnecting from Home Assistant
2018-07-10 15:47:40.238713 INFO AppDeamon Exited
Noticed it said “Disconnecting” when it said retrying.
I had this issue when using the yaml configuration file, instead I passed the environmental values to it via docker compose / run and it worked strangely enough.
Did not verify it, but it seems to be that priority for the ha_url is given to the environment variable. So changing the config file is not enough - check your env vars. The url should be looking like next: “http://homeassistant:8123”