mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-28 09:01:08 +00:00
#1487 and a ton of other updates.
This commit is contained in:
@@ -1,41 +1,32 @@
|
||||
######################################################################
|
||||
## 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'
|
||||
# Give the automation a unique ID
|
||||
id: 712e845a-9d72-4993-b8af-890b167c807b
|
||||
# Set the mode to "single"
|
||||
mode: single
|
||||
# Set the trigger for the automation
|
||||
trigger:
|
||||
# The automation will also be triggered when the state of the "group.family" entity changes to "not_home"
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
to: 'not_home'
|
||||
|
||||
# Set the conditions for the automation to run
|
||||
condition:
|
||||
# The automation will only run if the state of the "group.family" entity is "not_home"
|
||||
- condition: state
|
||||
entity_id: group.family
|
||||
state: 'not_home'
|
||||
# The automation will also only run if the state of the "input_boolean.guest_mode" entity is "off"
|
||||
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
|
||||
# Set the actions to be performed by the automation
|
||||
action:
|
||||
# Lock the front door
|
||||
- service: lock.lock
|
||||
entity_id: lock.front_door
|
||||
|
||||
# Turn off all interior lights and devices
|
||||
- service: script.interior_off
|
||||
|
||||
# Turn off the back landscaping lights
|
||||
- service: script.interior_off
|
||||
- service: switch.turn_off
|
||||
entity_id: switch.back_landscaping
|
||||
|
||||
|
Reference in New Issue
Block a user