Get lightning alerts even at night, as long as we're awake
This commit is contained in:
@ -1488,6 +1488,7 @@ script:
|
||||
- service: script.speech_engine
|
||||
data:
|
||||
who: '{{ who }}'
|
||||
type: '{{ type }}'
|
||||
message: >-
|
||||
{% from 'formatting.jinja' import cleanup %}
|
||||
{% macro greeting() %}
|
||||
|
@ -1673,8 +1673,8 @@ script:
|
||||
tag: lightning-warning
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: input_boolean.audible_notifications
|
||||
state: 'on'
|
||||
entity_id: input_boolean.master_bedroom_sleeping
|
||||
state: 'off'
|
||||
then:
|
||||
- service: scene.create
|
||||
data:
|
||||
@ -1706,9 +1706,15 @@ script:
|
||||
- light.tina_desk_strip
|
||||
data:
|
||||
color_name: red
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_sleeping
|
||||
state: 'off'
|
||||
then:
|
||||
- service: script.status_annc
|
||||
data:
|
||||
who: 'common'
|
||||
type: alert
|
||||
call_interruption: 1
|
||||
call_lightning_alert: 1
|
||||
- delay:
|
||||
@ -1726,9 +1732,15 @@ script:
|
||||
who: all
|
||||
message: clear_notification
|
||||
tag: lightning-warning
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: input_boolean.master_bedroom_sleeping
|
||||
state: 'off'
|
||||
then:
|
||||
- service: script.status_annc
|
||||
data:
|
||||
who: 'common'
|
||||
type: alert
|
||||
call_interruption: 1
|
||||
call_lightning_clear: 1
|
||||
- service: script.text_notify
|
||||
|
Reference in New Issue
Block a user