From 8b9c55f9e9732d8e7d5bda6555d05b451ff89c53 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Fri, 22 May 2026 11:40:48 -0400 Subject: [PATCH] Handle Docker telemetry reconnect outages --- config/packages/docker_infrastructure.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/packages/docker_infrastructure.yaml b/config/packages/docker_infrastructure.yaml index 25269f4f..4efa168e 100644 --- a/config/packages/docker_infrastructure.yaml +++ b/config/packages/docker_infrastructure.yaml @@ -17,6 +17,7 @@ # Notes: Weekly reconcile should replace retired container-name switches with the current container-ID-prefixed discovery set. # Notes: Tapple is now served by `games_hub` on `/tapple/`; do not keep a standalone `tapple` container switch in the monitored group. # Notes: Teslamate and crystalsoftwashsolutions are live services and should remain in the monitored group when their discovery switches are present. +# Notes: Treat telemetry reconnects from unavailable/unknown to a concrete stopped state as actionable outages. # Notes: Infra Info was removed; BearClaw Admin is the planning snapshot surface. ###################################################################### @@ -1022,7 +1023,10 @@ automation: down_states: ['off', 'stopped', 'exited', 'dead', 'unknown', 'unavailable'] - choose: - conditions: >- - {{ new_state in down_states and old_state not in down_states and + {{ new_state in down_states and + (old_state not in down_states or + (old_state in ['unknown', 'unavailable'] and + new_state in ['off', 'stopped', 'exited', 'dead'])) and not (is_state('binary_sensor.docker_container_telemetry_degraded', 'on') and new_state in ['unknown', 'unavailable']) }} sequence: