-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautomations.yaml
executable file
·173 lines (173 loc) · 3.77 KB
/
automations.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
- id: auto1
alias: Turn on garden lights when sun sets
trigger:
- event: sunset
platform: sun
- event: sunset
offset: 00:05
platform: sun
action:
- entity_id: switch.garden_lights
service: switch.turn_on
initial_state: true
hide_entity: false
- id: auto2
alias: Turn off garden lights when sun rises
trigger:
- event: sunrise
offset: -00:12
platform: sun
- event: sunrise
offset: 00:15
platform: sun
action:
- data:
entity_id: switch.garden_lights
service: switch.turn_off
initial_state: true
hide_entity: false
- id: auto3
alias: Turn on downstairs window lights at sunset
trigger:
- event: sunset
offset: -00:05
platform: sun
- event: sunset
offset: 00:10
platform: sun
action:
- data:
entity_id: switch.window_lights_downstairs
service: switch.turn_on
initial_state: true
hide_entity: false
- id: auto4
alias: Turn off indoor lights at night
trigger:
- at: '22:00:00'
platform: time
- at: '22:30:00'
platform: time
action:
- data:
entity_id: group.indoor_lights
service: switch.turn_off
initial_state: true
hide_entity: false
- id: auto5
alias: Turn on garage lights when sun sets
initial_state: true
hide_entity: false
trigger:
- event: sunset
offset: 00:25:00
platform: sun
action:
- data:
brightness: 190
entity_id: light.garage
service: light.turn_on
- id: auto6
alias: Turn on outdoor ceiling lights when sun sets
trigger:
- event: sunset
offset: 00:20:00
platform: sun
- event: sunset
offset: 00:22
platform: sun
action:
- data:
entity_id: light.outdoor_ceiling
service: light.turn_on
initial_state: true
hide_entity: false
- id: auto7
alias: Turn off garage lights when sun rises
initial_state: true
hide_entity: false
trigger:
- event: sunrise
platform: sun
action:
- data:
entity_id: light.garage
service: light.turn_off
- id: auto8
alias: Turn off outdoor ceiling lights when sun rises
trigger:
- event: sunrise
offset: -00:11
platform: sun
- event: sunrise
platform: sun
action:
- data:
entity_id: light.outdoor_ceiling
service: light.turn_off
initial_state: true
hide_entity: false
- id: auto9
alias: Notify Lars when door is opened
trigger:
platform: state
entity_id: sensor.front_door_opened
condition:
condition: state
entity_id: device_tracker.larsiphone
state: not_home
action:
service: notify.ios_larsiphone
data:
message: The front door has been opened!
data:
push:
sound: US-EN-Alexa-Front-Door-Opened.wav
- id: auto9
alias: Turn off aquarium light at night
trigger:
- at: '21:00:00'
platform: time
action:
- data:
entity_id: switch.aquarium_light
service: switch.turn_off
initial_state: true
hide_entity: false
- id: '1511102616915'
alias: Turn on upstairs window lights at night
trigger:
- event: sunset
offset: 00:30:00
platform: sun
- event: sunset
offset: 00:40:00
platform: sun
condition: []
action:
- data:
entity_id: switch.window_lights_upstairs
service: switch.turn_on
- id: '1551883696020'
alias: Notify Lars on porch motion
trigger:
- entity_id: sensor.porch_motion
platform: state
condition:
- condition: state
entity_id: input_boolean.do_notify_on_porch_motion
state: 'on'
- condition: state
entity_id: device_tracker.larsiphone
state: not_home
action:
- data:
message: Porch motion detected!
service: notify.ios_larsiphone
- data:
entity_id: input_boolean.do_notify_on_porch_motion
service: input_boolean.turn_off
- delay: 0:05
- data:
entity_id: input_boolean.do_notify_on_porch_motion
service: input_boolean.turn_on