I’m really struggling here.
I’m running HA 0.93.1 on UnRAID as a docker container. I have Node-Red for automations, and letsencrypt for WAN access. It all works great.
I decided to make a move into AppDaemon, but cannot for the LIFE of me get it to work. This is also running via docker.
The error I get with the debug flag set is “ValueError: Error in authentication.” It repeatedly reports it has connected to HA, then disconnects.
2019-05-23 21:39:48.040626 INFO AppDaemon: HASS: Connected to Home Assistant 0.93.1
2019-05-23 21:39:48.043252 WARNING AppDaemon: HASS: Error in authentication
2019-05-23 21:39:48.043353 DEBUG AppDaemon: Event type:ha_disconnected:
2019-05-23 21:39:48.043438 DEBUG AppDaemon: {}
2019-05-23 21:39:48.043568 WARNING AppDaemon: HASS: Disconnected from Home Assistant, retrying in 5 seconds
2019-05-23 21:39:48.043638 WARNING AppDaemon: HASS: ------------------------------------------------------------
2019-05-23 21:39:48.043739 WARNING AppDaemon: HASS: Unexpected error:
2019-05-23 21:39:48.043807 WARNING AppDaemon: HASS: ------------------------------------------------------------
2019-05-23 21:39:48.044011 WARNING AppDaemon: HASS: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/appdaemon/plugins/hass/hassplugin.py", line 181, in get_updates
raise ValueError("Error in authentication")
ValueError: Error in authentication
My Home Assistant configuration looks like this:
auth_providers:
- type: homeassistant
- type: legacy_api_password
api_password: !secret http_password
- type: trusted_networks
trusted_networks:
- 192.168.254.0/24
- 127.0.0.1
- ::1
- fd00::/8
And the API password is set, because I can use it to login, on the IP address & port provided to AppDaemon.
I have no idea what is wrong.
The only idea I have is that it may be related to my baseurl being set to my external URL for the sake of the letsencrypt, but I’ve tried connecting AppDaemon via the external address (which I can use to call the API successfully from other apps like Tasker) too, and that doesn’t work either. I’ve had a variety of 403 and 502 errors. I’ve also turned off IP bans whilst I’m debugging this, because the AppDaemon instance kept banning itself due to ‘incorrect auth.’