From 00c39f8511e72a520effc27a5236de95d8110f6e Mon Sep 17 00:00:00 2001 From: jazzyisj Date: Sat, 12 Aug 2023 20:32:05 -0400 Subject: [PATCH] Update automation_hass_alert_notification.yaml --- .../automation_hass_alert_notification.yaml | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/automations/hass/automation_hass_alert_notification.yaml b/automations/hass/automation_hass_alert_notification.yaml index 825bdc051..d47dfaf97 100644 --- a/automations/hass/automation_hass_alert_notification.yaml +++ b/automations/hass/automation_hass_alert_notification.yaml @@ -10,42 +10,26 @@ sensor: "sensor.{{ trigger.entity_id.split('.')[1] }}" trigger: - platform: state - id: hass entity_id: - sensor.available_updates - sensor.offline_integrations - sensor.unavailable_entities_filtered - sensor.unavailable_media_players - sensor.unknown_browsers + - sensor.unknown_devices attribute: entity_id to: ~ for: 60 # throttle alerts, ignore momentary changes # must trigger when alert turns on/off - platform: state - id: hass entity_id: - alert.available_updates - alert.offline_integrations - alert.unavailable_entities - alert.unavailable_media_players - alert.unknown_browsers - to: ~ - - - platform: state - id: network - entity_id: - - sensor.unknown_devices - attribute: entity_id - to: ~ - for: 60 # throttle alerts, ignore momentary changes - - # must trigger when alert turns on, attribute trigger missed if delay_on - - platform: state - id: network - entity_id: - alert.unknown_devices - to: ~ condition: "{{ is_state('input_boolean.' ~ state_attr('alert.' ~ tag,'category') ~ '_alerts','on') }}" action: - wait_template: "{{ is_state('input_boolean.startup_pending','off') }}"