- persistent WS connection to HA with auth + state_changed subscription - watchdog detects silence > 5min → emits ha_websocket_dead - immediate ha_websocket_dead on disconnect, exponential reconnect with jitter - cooldown prevents alert spam (10min repeat window while HA stays down) - ha_websocket_recovered emitted on reconnect after a dead alert (allows supervisor to clear active incidents in Phase 5) - new monitors/ subpackage for long-running tasks (vs interval checks/) - /health endpoint now includes ws_connected field - 26 unit tests, 3 integration tests (real HA + container stop/restart) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| integration | ||
| conftest.py | ||
| test_automation_failures.py | ||
| test_event_emitter.py | ||
| test_ha_client.py | ||
| test_heartbeat_check.py | ||
| test_system_health.py | ||
| test_unavailable_entities.py | ||
| test_updates_available.py | ||
| test_websocket_monitor.py | ||