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.

46 lines
1.3 KiB

######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Shut it all down. No one is here - Home Assistant automation behavior.
# Defines the Shut it all down. No one is here triggers, conditions, and actions.
# -------------------------------------------------------------------
######################################################################
# 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'
- platform: sun
event: sunrise
offset: '-02:00:00'
- platform: sun
event: sunset
offset: '+00:30:00'
- platform: time
at:
- '03:00:00'
- '12:00:00'
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

Powered by TurnKey Linux.