I installed v3.0B2 add-on in HASSio and changed the configuration as specified and every 2 minutes and 12 seconds, the connection is lost betwwen AD and HASS. I get this in the logs:
2018-01-31 12:48:43.695293 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 12:50:56.015463 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 12:53:08.335282 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 12:55:20.655322 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 12:57:32.975252 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 12:59:45.295239 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:01:57.615304 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:04:09.935264 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:06:22.255245 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:08:34.575311 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:10:46.895330 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:12:59.215278 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:15:11.535280 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:17:23.855303 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:19:36.175972 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:21:48.495266 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:24:00.815253 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:26:13.135253 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:28:25.455259 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:30:37.775259 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:32:50.095306 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:35:02.415244 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:37:14.735285 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2018-01-31 13:39:27.055363 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
VERY consistent , every 2 minutes and 12 seconds? Version 2 was fine. Any idea what’s going on?
Looks like a networking problem of some sort - AppDaemon is timing out on receiving information from HomeAssistan’t event stream. It looks like it is never succeeding in actually opening the connection.
They are both running on the same host (Raspberry Pi 3B). What I don’t get is the timing of the events; very regular and timed intervals. This was not an issue with version 2.
Yes, of course. No other issues to report… The only thing I already reported previously is a new error message introduced in HA v0.61. It’s also a regular event, every 8-10 minutes (not that consistent), but the timing does not match the disconnections between AD and HASS. The HASS error I get is:
Error doing job: Task exception was never retrieved
10:37 AM components/isy994.py (ERROR)
hassio is also docker if i am correct.
i think its a connection problem that is not from inside AD, but from a docker or hassio configuration.
problems like this make me stay away from hassio, docker, venv, etc.
If it’s related to HASSio and/or Dockers, what I don’t understand is the exact frequency (every 2 minutes and 12 seconds) and the fact that I did not have this issue with version 2 of Appdaemon.
2 complete different addons, so 2 different docker packages, with different configurations.
5 secs is logical, 2 minutes and 12 secs isnt (for me at this moment), but it still seems that you are not connected at all. could be that yours has a longer time because you dont use dashboard.
Retrying every 5 seconds, I get it; that’s because AD never connects to HASS (because of its configuration) and it’s retrying. Robban’s issue above is quite different than mine. But 2 minutes and 12 seconds, consistently, that’s not normal. I will play a little more with it to try to pinpoint this issue.
Got it. But I still don’t understand why it’s behaving this way. If I put in my FQDN (ie. https://myDomain.duckdns.org) in the plugins section of appdaemon.yaml, everything is working normally without disconnections. If I put in http://myLocalIP:8123, it does not work and disconnects every 2 minutes and 12 seconds. That is really strange…
Do you guys use your local network IP or your domain name in the configuration? I would prefer to use my local IP so that I can avoid DNS issues altogether and everything stays local.