nest_protect_warning

View All Rules

alias: nest_protect_warning
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: 'Warning'
action:
  - service: script.notify_tts_zone_everywhere
    data_template:
      room: "everywhere"
      value1: "Nest Warning detected on {{ trigger.to_state.attributes.friendly_name }}."
      hastag: "#Nest #Protect #Warning"
  - service: notify.signal_stuart
    data:
      message: 'Nest Warning 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


© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.