Get lightning alerts even at night, as long as we're awake

This commit is contained in:
2023-07-02 12:52:10 -04:00
parent befe962085
commit 1e2e2e4c88
2 changed files with 25 additions and 12 deletions

View File

@ -1488,6 +1488,7 @@ script:
- service: script.speech_engine - service: script.speech_engine
data: data:
who: '{{ who }}' who: '{{ who }}'
type: '{{ type }}'
message: >- message: >-
{% from 'formatting.jinja' import cleanup %} {% from 'formatting.jinja' import cleanup %}
{% macro greeting() %} {% macro greeting() %}

View File

@ -1673,8 +1673,8 @@ script:
tag: lightning-warning tag: lightning-warning
- if: - if:
- condition: state - condition: state
entity_id: input_boolean.audible_notifications entity_id: input_boolean.master_bedroom_sleeping
state: 'on' state: 'off'
then: then:
- service: scene.create - service: scene.create
data: data:
@ -1706,11 +1706,17 @@ script:
- light.tina_desk_strip - light.tina_desk_strip
data: data:
color_name: red color_name: red
- service: script.status_annc - if:
data: - condition: state
who: 'common' entity_id: input_boolean.master_bedroom_sleeping
call_interruption: 1 state: 'off'
call_lightning_alert: 1 then:
- service: script.status_annc
data:
who: 'common'
type: alert
call_interruption: 1
call_lightning_alert: 1
- delay: - delay:
seconds: 10 seconds: 10
- service: scene.turn_on - service: scene.turn_on
@ -1726,11 +1732,17 @@ script:
who: all who: all
message: clear_notification message: clear_notification
tag: lightning-warning tag: lightning-warning
- service: script.status_annc - if:
data: - condition: state
who: 'common' entity_id: input_boolean.master_bedroom_sleeping
call_interruption: 1 state: 'off'
call_lightning_clear: 1 then:
- service: script.status_annc
data:
who: 'common'
type: alert
call_interruption: 1
call_lightning_clear: 1
- service: script.text_notify - service: script.text_notify
data: data:
type: alert type: alert