37 lines
1022 B
YAML
Raw Normal View History

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'
trigger:
- platform: event
event_type: good_night
- 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
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'
action:
2016-10-18 00:22:50 +00:00
- service: light.turn_off
entity_id: group.all_lights
- 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