mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-22 17:06:15 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
|
######################################################################
|
||
|
## Shut it all down. No one is here
|
||
|
######################################################################
|
||
|
|
||
|
- alias: 'Away Mode'
|
||
|
trigger:
|
||
|
- 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.interior_lights
|
||
|
- service: switch.turn_off
|
||
|
entity_id: group.amps
|
||
|
- delay: 00:01:00
|
||
|
- service: switch.turn_off
|
||
|
entity_id: switch.foyer_outlet
|
||
|
- delay: 00:01:00
|
||
|
- service: switch.turn_off
|
||
|
entity_id: switch.kitchen_accents
|
||
|
- delay: 00:01:00
|
||
|
- service: switch.turn_off
|
||
|
entity_id: switch.garage_outlet
|
||
|
|
||
|
|