mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-19 07:47:27 +00:00
33 lines
855 B
YAML
Executable File
33 lines
855 B
YAML
Executable File
######################################################################
|
|
## 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: script.switch_turn_off_all
|
|
|
|
|
|
|