Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (57 sloc) 1.63 KB
---
alias: nest_protect_emergency
hide_entity: true
trigger:
platform: state
entity_id:
- sensor.hallway_nest_protect_co_status
- sensor.hallway_nest_protect_smoke_status
- sensor.kitchen_nest_protect_co_status
- sensor.kitchen_nest_protect_smoke_status
- sensor.landing_nest_protect_co_status
- sensor.landing_nest_protect_smoke_status
to: 'Emergency'
action:
- service: script.notify_tts_zone_everywhere
data_template:
room: "everywhere"
value1: "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }}."
hastag: "#Nest #Protect #Emergency"
- service: script.notify_join
data_template:
who: "stuart"
title: 'Nest Emergency'
notification_id: "hass-nest-emergency"
value1: 'An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }}.'
- service: light.turn_on
data:
entity_id: light.ff_study_wall
brightness: 255
rgb_color: [255, 25, 60]
flash: long
- service: light.turn_on
data:
entity_id: light.ff_study_desk
brightness: 255
rgb_color: [255, 25, 60]
flash: long
- service: light.turn_on
data:
entity_id: light.ff_bedroom_bedside_kareen
brightness: 255
flash: long
- service: light.turn_on
data:
entity_id: light.ff_bedroom_bedside_stuart
brightness: 255
flash: long
- service: light.turn_on
data:
entity_id: light.gf_hallway_celing
rgb_color: [255,207,120]
brightness: 255
- service: light.turn_on
data:
entity_id: light.ff_landing_celing
rgb_color: [255,207,120]
brightness: 255
You can’t perform that action at this time.