Tornado all-clear smarter

This commit is contained in:
2023-02-25 20:13:01 -05:00
parent 107b2814d7
commit dad3f33b1e

View File

@ -470,6 +470,37 @@
who: everywhere
message: Tornado warning has been cleared. Check your surroundings and make
sure it is safe to leave cover.
- wait_template: '{{ is_state(''input_boolean.tornado_alarm'',''on'') }}'
continue_on_timeout: true
timeout: 00:05:00
alias: Make sure no further warnings are issued
- if:
- condition: state
entity_id: input_boolean.tornado_alarm
state: 'off'
then:
- if:
- condition: or
conditions:
- condition: time
before: input_datetime.audible_notification_on
alias: Before audible notifications on
- condition: time
after: input_datetime.audible_notification_off
alias: After audible notifications off
alias: Should audible notifications be off
then:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.audible_notifications
else:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.audible_notifications
else:
- stop: Tornado alert re-activated
mode: single
- id: '1666474050350'
alias: Garbage Collection Update