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
|
- 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() %}
|
||||||
|
@ -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,9 +1706,15 @@ script:
|
|||||||
- light.tina_desk_strip
|
- light.tina_desk_strip
|
||||||
data:
|
data:
|
||||||
color_name: red
|
color_name: red
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.master_bedroom_sleeping
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
who: 'common'
|
who: 'common'
|
||||||
|
type: alert
|
||||||
call_interruption: 1
|
call_interruption: 1
|
||||||
call_lightning_alert: 1
|
call_lightning_alert: 1
|
||||||
- delay:
|
- delay:
|
||||||
@ -1726,9 +1732,15 @@ script:
|
|||||||
who: all
|
who: all
|
||||||
message: clear_notification
|
message: clear_notification
|
||||||
tag: lightning-warning
|
tag: lightning-warning
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.master_bedroom_sleeping
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
data:
|
data:
|
||||||
who: 'common'
|
who: 'common'
|
||||||
|
type: alert
|
||||||
call_interruption: 1
|
call_interruption: 1
|
||||||
call_lightning_clear: 1
|
call_lightning_clear: 1
|
||||||
- service: script.text_notify
|
- service: script.text_notify
|
||||||
|
Reference in New Issue
Block a user