2018-01-01 19:00:45 -05:00
######################################################################################################
# Nest Protect Package
# @CCOSTAN
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
2019-10-10 00:39:10 -04:00
# - Write up- https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html
2018-01-01 19:00:45 -05:00
######################################################################################################
#-----------------------------------
2020-08-13 17:17:36 -04:00
# This group is used primarily for tweet stats
group :
protects :
name : Nest Protects
entities :
- binary_sensor.upstairs_living_room_nest_protect_online
- binary_sensor.hallway_nest_protect_kids_hallway_online
- binary_sensor.justins_room_nest_protect_online
- binary_sensor.kitchen_nest_protect_online
- binary_sensor.master_bedroom_nest_protect_online
- binary_sensor.master_hallway_nest_protect_online
- binary_sensor.paiges_room_nest_protect_paiges_room_online
- binary_sensor.upstairs_bedroom_nest_protect_online
- binary_sensor.office_nest_protect_online
2020-05-29 17:50:36 -04:00
2018-01-01 19:00:45 -05:00
automation :
- alias : Nest protect emergency
2020-07-20 19:33:03 +01:00
id : 95856443 -6da8-4bef-80b2-f11c725b4dad
2020-07-28 14:30:22 -04:00
mode : parallel
2020-05-29 17:50:36 -04:00
2018-01-01 19:00:45 -05:00
trigger :
platform : state
entity_id :
- sensor.hallway_nest_protect_kids_hallway_smoke_status
- sensor.hallway_nest_protect_kids_hallway_co_status
- sensor.justins_room_nest_protect_smoke_status
- sensor.justins_room_nest_protect_co_status
- sensor.kitchen_nest_protect_smoke_status
- sensor.kitchen_nest_protect_co_status
- sensor.master_bedroom_nest_protect_smoke_status
- sensor.master_bedroom_nest_protect_co_status
- sensor.master_hallway_nest_protect_smoke_status
- sensor.master_hallway_nest_protect_co_status
- sensor.office_nest_protect_smoke_status
- sensor.office_nest_protect_co_status
- sensor.paiges_room_nest_protect_paiges_room_smoke_status
- sensor.paiges_room_nest_protect_paiges_room_co_status
- sensor.upstairs_bedroom_nest_protect_smoke_status
- sensor.upstairs_bedroom_nest_protect_co_status
- sensor.upstairs_living_room_nest_protect_smoke_status
- sensor.upstairs_living_room_nest_protect_co_status
to : 'Emergency'
action :
2020-07-28 14:30:22 -04:00
2020-07-28 14:30:37 -04:00
- service : input_boolean.turn_on
entity_id : input_boolean.alert_mode
- service : script.speech_engine
2020-09-26 10:52:45 -04:00
data :
2020-07-28 14:30:37 -04:00
value1 : "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
2018-01-01 19:00:45 -05:00
- service : script.notify_engine
2020-09-26 10:52:45 -04:00
data :
2018-01-01 19:00:45 -05:00
value1 : "An emergency has been detected on {{ trigger.to_state.attributes.friendly_name }} Please investigate IMMEDIATELY."
2020-07-28 14:30:22 -04:00
who : "family"
apns_id : '{{ trigger.to_state.attributes.friendly_name }}'
2018-01-01 19:00:45 -05:00
2020-06-27 13:24:25 -04:00
- service : script.tweet_engine_no_image
2020-09-26 10:52:45 -04:00
data :
2019-10-10 00:39:10 -04:00
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)"
2018-01-01 19:00:45 -05:00
2020-07-28 14:30:22 -04:00
- service : script.emergency
2020-09-26 10:52:45 -04:00
data :
2020-07-28 14:30:22 -04:00
call_garage_open : 1
2018-01-01 19:00:45 -05:00
- alias : Nest Protect Offline Notify
2020-07-20 19:33:03 +01:00
id : 43983144 -a54f-4966-ae03-755e62cd35ec
2020-07-28 14:30:22 -04:00
mode : parallel
2020-05-29 17:50:36 -04:00
2018-01-01 19:00:45 -05:00
trigger :
platform : state
entity_id :
- binary_sensor.upstairs_living_room_nest_protect_online
- binary_sensor.hallway_nest_protect_kids_hallway_online
- binary_sensor.justins_room_nest_protect_online
- binary_sensor.kitchen_nest_protect_online
- binary_sensor.master_bedroom_nest_protect_online
- binary_sensor.master_hallway_nest_protect_online
- binary_sensor.paiges_room_nest_protect_paiges_room_online
- binary_sensor.upstairs_bedroom_nest_protect_online
- binary_sensor.office_nest_protect_online
from : 'on'
action :
- service : script.notify_engine
2020-09-26 10:52:45 -04:00
data :
2018-01-01 19:00:45 -05:00
value1 : "The {{ trigger.to_state.attributes.friendly_name }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}. Please check immediately."
2020-07-28 14:30:22 -04:00
who : "family"
apns_id : '{{ trigger.to_state.attributes.friendly_name }}'
2018-01-01 19:00:45 -05:00
2020-06-27 13:24:25 -04:00
- service : script.tweet_engine_no_image
2018-01-01 19:00:45 -05:00
data :
2020-07-28 14:30:22 -04:00
tweet : "Oh NO! {{ trigger.to_state.attributes.friendly_name }} is now in {{ (trigger.to_state.state)|replace('_', ' ') }} mode. @Nest. (https://www.vcloudinfo.com/2017/06/psa-check-out-your-smoke-detectors-once.html) @ccostan #Safety"