You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
856 B

# There is also an IFTTT recipe that shuts down all lights when Nest goes into Away mode. - event_type= Good_Night
- 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:
condition: and
conditions:
- condition: state
entity_id: group.family
state: not_home
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- service: light.turn_off
entity_id: group.all_lights
- service: switch.turn_off
entity_id: group.all_switches

Powered by TurnKey Linux.