-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
352 lines (352 loc) · 7.34 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
- id: '1632356090101'
alias: lights on at sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: -00:30:00
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.living_lamp
mode: single
- id: '1632356374262'
alias: light off at bedtime
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm_control_panel
to: armed_home
condition: []
action:
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: switch.turn_off
target:
entity_id: switch.living_lamp
mode: single
- id: '1632357140097'
alias: upstairs climate off
description: ''
trigger:
- platform: state
entity_id: weather.thermostat
condition:
- condition: numeric_state
entity_id: weather.thermostat
below: '55'
attribute: temperature
action: []
mode: single
- id: '1632359329385'
alias: turn on bedroom ac after office ac
description: ''
trigger:
- platform: state
entity_id: switch.upstairs_fan
to: 'on'
condition: []
action:
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: switch.turn_on
target:
entity_id: switch.upstairs_ac
mode: single
- id: '1632359424581'
alias: turn off bedroom ac after office ac
description: ''
trigger:
- platform: state
entity_id: switch.upstairs_fan
to: 'off'
condition: []
action:
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: switch.turn_off
target:
entity_id: switch.upstairs_ac
mode: single
- id: '1632359537685'
alias: leaving home
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm_control_panel
to: armed_away
for:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
condition: []
action:
- service: switch.turn_off
target:
entity_id:
- switch.master_tv
- switch.living_tv
mode: single
- id: '1632359938760'
alias: welcome home
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm_control_panel
to: armed_home
- platform: state
entity_id: alarm_control_panel.home_alarm_control_panel
to: disarmed
condition: []
action:
- service: switch.turn_on
target:
entity_id:
- switch.master_tv
- switch.living_tv
- service: script.set_climate_to_home_mode
- service: script.1632360036999
mode: single
- id: '1632364087606'
alias: sync upstairs climate control, cool
description: ''
trigger:
- platform: state
entity_id: climate.thermostat
to: cool
condition: []
action:
- service: climate.set_hvac_mode
target:
entity_id:
- climate.office
data:
hvac_mode: cool
mode: single
- id: '1632364179933'
alias: sync upstairs climate control, off
description: ''
trigger:
- platform: state
entity_id: climate.thermostat
to: 'off'
- platform: homeassistant
event: start
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: climate.thermostat
state: 'off'
sequence:
- service: climate.turn_off
target:
entity_id:
- climate.office
- conditions:
- condition: state
entity_id: climate.thermostat
state: heat
sequence:
- service: climate.turn_off
target:
entity_id:
- climate.office
default: []
mode: single
- id: '1632364275153'
alias: Home Assistant Startup
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: script.home_assistant_startup
mode: single
- id: '1632438500182'
alias: lights off at sunrise
description: ''
trigger:
- platform: state
entity_id: sun.sun
to: above_horizon
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.living_lamp
mode: single
- id: '1632438807061'
alias: turn on light when alarm disabled after sunset and before sunrise
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm_control_panel
to: disarmed
condition:
- condition: time
before: 05:30:00
action:
- service: switch.turn_on
target:
entity_id: switch.living_lamp
mode: single
- id: '1632522981063'
alias: Shutdown HA remotely
description: ''
trigger:
- platform: webhook
webhook_id: shutdown-per-host-update
condition: []
action:
- service: hassio.host_shutdown
mode: single
- id: '1632573392835'
alias: tune to morning news
description: ''
trigger:
- platform: time
at: 05:50:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
before: 06:00:00
action:
- service: switch.turn_on
target:
entity_id: switch.master_tv
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: media_player.select_source
target:
entity_id: media_player.roku_2_xs
data:
source: hdhomerun
mode: single
- id: '1632573687962'
alias: house below min temp
description: ''
trigger:
- platform: numeric_state
entity_id: climate.thermostat
below: '60'
condition: []
action:
- service: climate.set_hvac_mode
target:
entity_id: climate.thermostat
data:
hvac_mode: heat
- service: climate.set_temperature
target:
entity_id: climate.thermostat
data:
temperature: 55
mode: single
- id: '1632574016263'
alias: vacation mode enabled
description: ''
trigger:
- platform: state
entity_id: input_boolean.vacation_mode
to: 'true'
for:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- service: automation.turn_off
target:
entity_id: automation.tune_to_morning_news
- service: switch.turn_off
target:
entity_id:
- switch.upstairs_ac
- switch.upstairs_fan
- switch.master_tv
- switch.living_tv
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.guest_mode
- input_boolean.recording_video
mode: single
- id: '1632574228600'
alias: turn on vacation mode
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm_control_panel
for:
hours: 24
minutes: 0
seconds: 0
milliseconds: 0
to: armed_away
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.vacation_mode
mode: single
- id: '1633974301950'
alias: Turn on Modem
description: ''
trigger:
- platform: homeassistant
event: start
- platform: time_pattern
minutes: /15
condition: []
action:
- service: switch.turn_on
target:
entity_id:
- switch.modem
mode: single
- id: '1634007116101'
alias: Slow internet speed
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.speedtest_download
below: '160'
- platform: numeric_state
entity_id: sensor.speedtest_upload
below: '8'
condition: []
action:
- service: persistent_notification.create
data:
message: Low internet speed detected
- service: script.restart_modem
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- service: speedtestdotnet.speedtest
mode: single