-
-
Notifications
You must be signed in to change notification settings - Fork 495
Expand file tree
/
Copy pathaway.yaml
More file actions
executable file
·42 lines (36 loc) · 1020 Bytes
/
away.yaml
File metadata and controls
executable file
·42 lines (36 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
######################################################################
## 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'
- 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