Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up| ################################################################# | |
| ## Smoke Alarm Automations | |
| ################################################################# | |
| ########################################################## | |
| ## Smoke Alarm Turn On Lights | |
| ########################################################## | |
| - alias: Smoke Alarm - Turn On Lights | |
| id: 'smoke_alarm_turn_on_lights' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| # - platform: state | |
| # entity_id: sensor.hallway_nest_protect_smoke_status | |
| # to: 'Emergency' | |
| # for: | |
| # hours: 0 | |
| # minutes: 0 | |
| # seconds: 15 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_fire_alarm | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| brightness_pct: 100 | |
| color_name: "red" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.lutron_lights | |
| data: | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| flash: long | |
| ########################################################## | |
| ## Smoke Alarm Audio Notification | |
| ########################################################## | |
| - alias: Smoke Alarm - Smoke Audio Alarm | |
| id: 'smoke_alarm_smoke_audio_alarm' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| # - platform: state | |
| # entity_id: sensor.hallway_nest_protect_smoke_status | |
| # to: 'Emergency' | |
| # for: | |
| # hours: 0 | |
| # minutes: 0 | |
| # seconds: 15 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_fire_alarm | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER1s_office_move, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: 1.0 | |
| what: 'Smoke Has Been Detected!' | |
| ########################################################## | |
| ## CO Alarm Text Notification | |
| ########################################################## | |
| - alias: Smoke Alarm - CO Alarm Text Notification | |
| id: 'smoke_alarm_co_alarm_text_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.hallway_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_fire_alarm | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Carbon Monoxide Alarm! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'co-alarm' | |
| push: | |
| category: camera | |
| entity_id: camera.driveway | |
| - service: notify.mobile_app_USER2_s_iphone | |
| data: | |
| message: Carbon Monoxide Alarm! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'co-alarm-' | |
| push: | |
| category: camera | |
| entity_id: camera.driveway | |
| ########################################################## | |
| ## CO Alarm Turn On Lights | |
| ########################################################## | |
| - alias: Smoke Alarm - CO Alarm Turn On Lights | |
| id: 'smoke_alarm_co_alarm_turn_on_lights' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.hallway_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_fire_alarm | |
| state: 'off' | |
| action: | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| brightness_pct: 100 | |
| color_name: "red" | |
| - service: light.turn_on | |
| entity_id: | |
| - light.lutron_lights | |
| data: | |
| brightness_pct: 100 | |
| - service: light.turn_on | |
| entity_id: | |
| - light.hue_lights | |
| data: | |
| flash: long | |
| ########################################################## | |
| ## CO Alarm Audio Notification | |
| ########################################################## | |
| - alias: Smoke Alarm - CO Audio Alarm | |
| id: 'smoke_alarm_co_audio_alarm' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.hallway_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_co_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 3 | |
| condition: | |
| - condition: state | |
| entity_id: group.household | |
| state: 'home' | |
| - condition: state | |
| entity_id: input_boolean.disable_fire_alarm | |
| state: 'off' | |
| action: | |
| - service: script.turn_on | |
| entity_id: script.say | |
| data: | |
| variables: | |
| master: 'media_player.sonos_living_room' | |
| where: 'media_player.sonos_surround_sound, media_player.sonos_living_room, media_player.sonos_dining_room, media_player.sonos_kitchen, media_player.sonos_bathroom, media_player.sonos_bedroom, media_player.sonos_USER1s_office, media_player.sonos_USER1s_office_move, media_player.sonos_USER2s_office, media_player.sonos_move' | |
| volume: 1.0 | |
| what: 'Carbon monoxide Has Been Detected!' | |
| ########################################################## | |
| ## Reset Disable Fire Alarm | |
| ########################################################## | |
| - alias: Smoke Alarm - Reset Disable Fire Alarm | |
| id: 'smoke_alarm_reset_disable_fire_alarm' | |
| trigger: | |
| - platform: state | |
| entity_id: input_boolean.disable_smoke_alarm | |
| from: 'off' | |
| to: 'on' | |
| for: | |
| hours: 0 | |
| minutes: 30 | |
| seconds: 0 | |
| action: | |
| - service: homeassistant.turn_off | |
| entity_id: input_boolean.disable_smoke_alarm | |
| ################################################################# | |
| ## Notifications | |
| ################################################################# | |
| ########################################################## | |
| ## Smoke Alarm Warning iOS Notification | |
| ########################################################## | |
| - alias: Smoke Alarm - Warning iOS Notification | |
| id: 'smoke_alarm_warning_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_smoke_status | |
| to: 'Warning' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 1 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_smoke_status | |
| to: 'Warning' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 1 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_smoke_status | |
| to: 'Warning' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 1 | |
| - platform: state | |
| entity_id: sensor.hallway_nest_protect_smoke_status | |
| to: 'Warning' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 1 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_smoke_status | |
| to: 'Warning' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 1 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_smoke_status | |
| to: 'Warning' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 1 | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Warning Smoke Alarm Might Sound! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'smoke-alarm-warning' | |
| push: | |
| badge: 0 | |
| category: "smokealarm" | |
| ########################################################## | |
| ## Smoke Alarm iOS Notification | |
| ########################################################## | |
| - alias: Smoke Alarm - iOS Notification | |
| id: 'smoke_alarm_ios_notification' | |
| trigger: | |
| - platform: state | |
| entity_id: sensor.living_room_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.bedroom_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.kitchen_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| # - platform: state | |
| # entity_id: sensor.hallway_nest_protect_smoke_status | |
| # to: 'Emergency' | |
| # for: | |
| # hours: 0 | |
| # minutes: 0 | |
| # seconds: 15 | |
| - platform: state | |
| entity_id: sensor.upstairs_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| - platform: state | |
| entity_id: sensor.basement_nest_protect_smoke_status | |
| to: 'Emergency' | |
| for: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 10 | |
| condition: | |
| - condition: state | |
| entity_id: input_boolean.disable_fire_alarm | |
| state: 'off' | |
| action: | |
| - service: notify.mobile_app_USER1s_iphone | |
| data: | |
| message: Smoke Alarm! | |
| data: | |
| apns_headers: | |
| 'apns-collapse-id': 'smoke-alarm' | |
| push: | |
| category: camera | |
| entity_id: camera.driveway |