From 1627bf19d005b5620f1d6f78976f18f147795435 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 17 Jun 2022 15:20:24 -0400 Subject: [PATCH] Automation to run on clearing of a tornado warning --- automations.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/automations.yaml b/automations.yaml index 92d49f6..3010342 100644 --- a/automations.yaml +++ b/automations.yaml @@ -452,3 +452,29 @@ target: entity_id: fan.nursery_air_conditioner mode: queued +- id: '1655493590791' + alias: NWS Announce Weather Alert for Tornado (CLEAR) + description: '' + trigger: + - platform: numeric_state + entity_id: sensor.weatheralerts_active_alerts + attribute: tornado_warning_count + below: '1' + condition: [] + action: + - service: script.max_brightness_cleanup + data: {} + - service: notify.all_ios + data: + title: Check your surroundings and make sure it is safe to leave cover + message: Tornado Warning is cleared + - service: notify.tv_notifications + data: + title: Check your surroundings and make sure it is safe to leave cover + message: Tornado Warning is cleared + - service: script.speech_engine + data: + who: everywhere + message: Tornado warning has been cleared. Check your surroundings and make + sure it is safe to leave cover. + mode: single