tweet:"An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} @CCostan (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html)"
- service:script.emergency
data_template:
call_garage_open:1
- alias:Nest Protect Offline Notify
id:43983144-a54f-4966-ae03-755e62cd35ec
mode:parallel
trigger:
platform:state
@ -68,19 +70,13 @@ automation:
from:'on'
action:
- service:input_boolean.turn_on
entity_id:input_boolean.alert_mode
- service:script.speech_engine
data_template:
value1:"The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
- service:script.notify_engine
data_template:
value1:"The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."