-
-
Notifications
You must be signed in to change notification settings - Fork 68
Description
My AppDaemon add-on (v0.17.7) is unable to maintain a stable WebSocket connection to Home Assistant. It connects and authenticates successfully, but then immediately closes the socket every ~5 seconds, causing all apps to restart repeatedly.
Environment:
Home Assistant OS 12.0 / Core 2025.7.2
AppDaemon Add‑on Version: 0.17.7
appdaemon.yaml configuration (all variants tested produce the same result):
yaml
Kopieren
Bearbeiten
appdaemon:
latitude: 50.1833
longitude: 8.4833
elevation: 350
time_zone: Europe/Berlin
plugins:
HASS:
type: hass
# Tested with each of these:
ha_url: "http://homeassistant:8123"
# ha_url: "http://supervisor/core"
# ha_url: "http://10.0.0.157:8123"
token: !secret appdaemon_token
log:
logs:
appdaemon.plugins.hass.hassplugin: debug
Steps to Reproduce:
Install the AppDaemon add-on (latest v0.17.7) via Supervisor.
Paste the above appdaemon.yaml (with any of the tested ha_url values).
Start the add-on and watch its log.
Expected Behavior:
A single, persistent WebSocket connection is established and remains open, with no repeated disconnects. Apps should initialize once and run continuously.
Actual Behavior:
Every ~5 seconds, the supervisor proxy log shows:
css
Kopieren
Bearbeiten
[supervisor.api.proxy] [a0d7b954_appdaemon] Home Assistant WebSocket API proxy running
[supervisor.api.proxy] [a0d7b954_appdaemon] Home Assistant WebSocket API closed
followed by AppDaemon restarting all apps. This cycle repeats indefinitely.
Relevant Log Excerpt:
css
Kopieren
Bearbeiten
Connected to Home Assistant 2025.7.2 with aiohttp websocket
Authenticated to Home Assistant 2025.7.2
All plugins ready
Scheduler running in realtime
…
[supervisor.api.proxy] […] WebSocket API proxy running
[supervisor.api.proxy] […] WebSocket API closed
… retrying in 5 seconds
No errors appear in the AppDaemon logs beyond the repeated disconnect notices. This occurs with and without manual ha_url or token overrides, on both internal DNS (homeassistant:8123), Supervisor gateway (supervisor/core), and LAN IP addresses.