Tornado all-clear smarter
This commit is contained in:
@@ -470,6 +470,37 @@
|
|||||||
who: everywhere
|
who: everywhere
|
||||||
message: Tornado warning has been cleared. Check your surroundings and make
|
message: Tornado warning has been cleared. Check your surroundings and make
|
||||||
sure it is safe to leave cover.
|
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
|
mode: single
|
||||||
- id: '1666474050350'
|
- id: '1666474050350'
|
||||||
alias: Garbage Collection Update
|
alias: Garbage Collection Update
|
||||||
|
|||||||
Reference in New Issue
Block a user