2016-10-19 17:47:13 +00:00
|
|
|
######################################################################
|
|
|
|
## Shut it all down. No one is here or we went to sleep.
|
|
|
|
######################################################################
|
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:
|
2016-10-18 01:09:31 +00:00
|
|
|
condition: and
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: group.family
|
|
|
|
state: not_home
|
|
|
|
- condition: state
|
|
|
|
entity_id: input_boolean.guest_mode
|
|
|
|
state: 'off'
|
2016-10-11 20:51:10 +00:00
|
|
|
|
|
|
|
action:
|
2016-10-18 00:22:50 +00:00
|
|
|
- service: light.turn_off
|
2016-11-20 01:50:56 +00:00
|
|
|
entity_id: group.interior_lights
|
2016-10-18 00:22:50 +00:00
|
|
|
- service: switch.turn_off
|
2016-10-26 16:37:23 +00:00
|
|
|
entity_id: group.amps
|
|
|
|
- service: switch.turn_off
|
2016-11-09 05:41:28 +00:00
|
|
|
entity_id: switch.foyer_outlet
|
|
|
|
|
|
|
|
|