2016-10-11 20:51:10 +00:00
|
|
|
# There is also an IFTTT recipe that shuts down all lights when Nest goes into Away mode. - event_type= Good_Night
|
2016-10-12 00:10:32 +00:00
|
|
|
|
|
|
|
- alias: 'GoodNight - Away Mode'
|
2016-10-11 20:51:10 +00:00
|
|
|
trigger:
|
|
|
|
- platform: event
|
|
|
|
event_type: good_night
|
2016-10-13 16:10:32 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.upstairs_away_mode
|
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.downstairs_away_mode
|
|
|
|
to: 'on'
|
|
|
|
- platform: state
|
|
|
|
entity_id: group.family
|
|
|
|
state: not_home
|
|
|
|
|
2016-10-11 20:51:10 +00:00
|
|
|
condition:
|
|
|
|
condition: state
|
|
|
|
entity_id: group.family
|
|
|
|
state: not_home
|
|
|
|
|
|
|
|
action:
|
|
|
|
service: light.turn_off
|
|
|
|
entity_id: group.all_lights
|