hassio-addons / addon-appdaemon

AppDaemon4 - Home Assistant Community Add-ons
https://addons.community
MIT License
151 stars 47 forks source link

Disconnected from home assistant how do I fix this issue? #197

Closed SP-Mushrooms closed 2 years ago

SP-Mushrooms commented 2 years ago

Problem

I followed https://appdaemon.readthedocs.io/en/latest/CONFIGURE.html for configuration but I keep on getting WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds in the logs

Expected behavior

The apps startup and I can use it

Actual behavior

keeps on giving the line WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds in the log

Steps to reproduce

I am using home assistant supervise I added the appdaemon into home assistant and added this into appdaemon yaml. What did I do wrong?

secrets: /config/secrets.yaml
appdaemon:
time_zone: CET
latitude: 51.725
longitude: 14.3434
elevation: 0
plugins:
HASS:
type: hass
ha_url: http://XXX.XXX.XXX.XXX:8123
token: 
<token key>
app_init_delay: 20
http:
url: http://127.0.0.1:5050
admin:
api:
hadashboard:
logs:
main_log:
filename: /config/appdaemon/logs/appdaemon.log
access_log:
filename: /config/appdaemon/logs/access.log
error_log:
filename: /config/appdaemon/logs/error.log
diag_log:
filename: /config/appdaemon/logs/diag.log
log_generations: 5
log_size: 1024
format: "{asctime} {levelname:<8} {appname:<10}: {message}"
test_log:
name: TestLog
filename: /config/appdaemon/logs/test.log

image

frenck commented 2 years ago

Do not set ha_url or token, the add-on will take care of that for you.

SP-Mushrooms commented 2 years ago

Do not set ha_url or token, the add-on will take care of that for you.

How does the add on do that? As you have to create the long live token. And I did that but it still have the same error.

keeps on giving the line WARNING HASS: Disconnected from Home Assistant, retrying in 5 seconds in the log

image

frenck commented 2 years ago

How does the add on do that?

The add-on already has access to Home Assistant using a rotating access token (that is replaced each restart).

The screenshot you post still contains ha_url and token. Please remove those keys.

SP-Mushrooms commented 2 years ago

How does the add on do that?

The add-on already has access to Home Assistant using a rotating access token (that is replaced each restart).

The screenshot you post still contains ha_url and token. Please remove those keys.

Thank you now it works