34 lines
814 B
YAML
Executable File
34 lines
814 B
YAML
Executable File
######################################################################
|
|
## Shut it all down. No one is here
|
|
# @CCOSTAN
|
|
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
|
|
######################################################################
|
|
|
|
# Define an alias for this automation
|
|
- alias: 'Away Mode'
|
|
id: 712e845a-9d72-4993-b8af-890b167c807b
|
|
mode: single
|
|
trigger:
|
|
- platform: state
|
|
entity_id: group.family
|
|
to: 'not_home'
|
|
|
|
condition:
|
|
- condition: state
|
|
entity_id: group.family
|
|
state: 'not_home'
|
|
|
|
- condition: state
|
|
entity_id: input_boolean.guest_mode
|
|
state: 'off'
|
|
|
|
action:
|
|
- service: lock.lock
|
|
entity_id: lock.front_door
|
|
|
|
- service: script.interior_off
|
|
- service: switch.turn_off
|
|
entity_id: switch.back_landscaping
|
|
|
|
|