From cca943264b280404d74ece40fd80e2ad5a13d097 Mon Sep 17 00:00:00 2001 From: golles Date: Wed, 2 Oct 2024 18:35:28 +0000 Subject: [PATCH] Don't warn for UPS when the state is `unavailable` or a self test is `In progress` --- packages/ups.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/ups.yaml b/packages/ups.yaml index e8f26c8..cfa06ba 100644 --- a/packages/ups.yaml +++ b/packages/ups.yaml @@ -5,6 +5,15 @@ automation: trigger: - platform: state entity_id: sensor.apc_back_ups_bx950mi_status + condition: + - condition: not + conditions: + - condition: state + entity_id: sensor.apc_back_ups_bx950mi_status + state: unavailable + - condition: state + entity_id: sensor.apc_back_ups_bx950mi_self_test_result + state: In progress action: - alias: Sent a notification with the state service: notify.sander