Skip to content

v0.2.0

Choose a tag to compare

@magicx78 magicx78 released this 03 Jun 16:34
6d432c7

Connectivity diagnostic sensors.

Adds per-device diagnostic entities (auto-created, no YAML, entity_category=diagnostic) to monitor whether an HLK-LD2450 stays reliably online: ble_connected, connection_state (connected/reconnecting/disconnected/stale), last_seen, last_disconnect, disconnect_count, reconnect_count, offline_duration, online_duration.

Central state tracking in the coordinator (stale watchdog 30s, one disconnect per interruption, reconnect on recovery). No breaking changes to existing entities. reliability_24h deferred (TODO).

CI green (hassfest, HACS, ruff, 35 pytest tests). Verified live on real HLK-LD2450 hardware.