-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
493 lines (485 loc) · 14.7 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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
- id: ac4a9f97dc8d47afba2ca580ffb80f17
alias: Battery - Low battery level detection & notification for all battery sensors
description: Detect low battery levels and send a notification to discord
use_blueprint:
path: sbyx/low_battery_level_detection.yaml
input:
actions:
- service: notify.discord
data:
title: Low Battery Warning
message: ':zap: {{sensors}} battery is low'
target:
- '865449623518969866'
day: 1
exclude:
entity_id:
- sensor.chirp_battery_level_2
- sensor.lightcycle_battery_level
- id: a05a39420c034545bab0c656348d246c
alias: Lights - Turn off front entry light at 1:00am
trigger:
- platform: time
at: 01:00:00
condition:
- condition: state
entity_id: light.shelly_outf_01
state: 'on'
action:
- service: light.turn_off
target:
entity_id: light.shelly_outf_01
mode: single
- id: 559d39bce9cb4644950c4ec788493b9f
alias: Lights - Turn on front entry light at sunset
trigger:
- platform: sun
event: sunset
offset: -01:00:00
condition:
- condition: state
entity_id: light.shelly_outf_01
state: 'off'
action:
- service: light.turn_on
target:
entity_id: light.shelly_outf_01
mode: single
- id: '1640318228441'
alias: Away - Turn on the house lights
description: ''
trigger:
- platform: sun
event: sunset
offset: '-2'
condition: []
action:
- service: light.turn_on
target:
entity_id: light.kitchen_lights
data: {}
- service: light.turn_on
data: {}
target:
device_id: e21888cd41c7a8c2d9028dc309a294bf
mode: single
- id: '1640318394872'
alias: Away - Turn off the house lights
description: ''
trigger:
- platform: time
at: '23:18:18'
condition: []
action:
- service: light.turn_off
target:
entity_id: light.kitchen_lights
data: {}
- service: light.turn_off
data: {}
target:
device_id: e21888cd41c7a8c2d9028dc309a294bf
mode: single
- id: '1643675363387'
alias: Lights - Turn on lights when someone arrives at home
description: Turns on the kitchen, hallway, office, and dining room lights when
someone arrives home.
triggers:
- entity_id:
- zone.home
from: '0'
trigger: state
conditions:
- condition: sun
after: sunset
after_offset: '-1'
actions:
- target:
entity_id:
- light.kitchen_lights
- light.shelly_hallway_01
- light.dining_room_lights
data: {}
action: light.turn_on
mode: single
- id: '1646793047500'
alias: Lock - Front door lock when no one is home
description: ''
trigger:
- platform: state
entity_id:
- person.jimmy
to: not_home
from: home
- platform: state
entity_id:
- person.dana
to: not_home
from: home
condition:
- condition: and
conditions:
- condition: state
entity_id: person.jimmy
state: not_home
- condition: state
entity_id: person.dana
state: not_home
action:
- service: lock.lock
data: {}
target:
entity_id: lock.front_door
- service: notify.discord
data:
title: Front Door Locked
message: Home Assistant has automatically locked the front door.
target: '865449623518969866'
mode: single
- id: '1646888893633'
alias: Lock - Unlock front door when arriving home
description: ''
trigger:
- platform: state
entity_id:
- person.jimmy
to: home
from: not_home
- platform: state
entity_id:
- person.dana
from: not_home
to: home
condition:
- condition: state
entity_id: lock.front_door
state: locked
action:
- service: notify.discord
data:
message: 'Welcome home, {{ trigger.to_state.attributes.friendly_name }}! Home
Assistant has unlocked the front door. :wave:
'
title: Front Door Unlocked
target:
- '865449623518969866'
- service: lock.unlock
data: {}
target:
entity_id: lock.front_door
mode: single
- id: '1665960719209'
alias: Air Purifier - Turn on bedroom purifier at 9:00 PM
description: Turns on the bedroom air purifier every night at 9:00 PM if someone
is home.
trigger:
- platform: time
at: '21:00:00'
condition:
- condition: or
conditions:
- condition: state
entity_id: person.jimmy
state: home
- condition: state
entity_id: person.dana
state: home
- condition: state
entity_id: switch.bedroom_air_purifier
state: 'off'
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.bedroom_air_purifier
mode: single
- id: '1665961235095'
alias: Air Purifier - Turn off bedroom purifier at 10:00 AM
description: Turns on the bedroom air purifier every night at 9:00 PM if someone
is home.
trigger:
- platform: time
at: '10:00:00'
condition:
- condition: state
entity_id: switch.bedroom_air_purifier
state: 'on'
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.bedroom_air_purifier
mode: single
- id: '1668577671748'
alias: Door - Notify discord when rear sliding door is opened
description: Notify discord when rear sliding door is opened
triggers:
- entity_id:
- binary_sensor.rear_sliding_door_door
to: 'on'
trigger: state
conditions:
- condition: time
after: 01:00:00
before: 06:00:00
actions:
- data:
message: '<a:alert:1041082538644480110> The rear sliding door has been opened!
'
title: Rear Sliding Door Opened
target:
- '865449623518969866'
action: notify.discord
mode: single
- id: '1669506333449'
alias: Lights - Turn on Christmas Tree every day at 4:00pm
description: Turns on the Christmas Tree at 4:00pm everyday day regardless of who
is home
triggers:
- at: '16:00:00'
trigger: time
conditions:
- condition: state
state: 'Off'
entity_id: switch.christmas_tree_switch_0
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.christmas_tree_switch_0
mode: single
- id: '1669506415856'
alias: Lights - Turn off Christmas Tree every night
description: Turns off the Christmas Tree at midnight everyday night regardless
of who is home
triggers:
- at: '23:59:59'
trigger: time
conditions:
- condition: state
entity_id: switch.christmas_tree_switch_0
state: 'on'
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.christmas_tree_switch_0
mode: single
- id: '1669615800449'
alias: Door - Rear sliding door alert at night
description: Alerts all speakers when the rear sliding door is opened at night
triggers:
- entity_id:
- binary_sensor.rear_sliding_door_door
to: 'on'
trigger: state
conditions:
- condition: time
before: 06:00:00
after: 01:00:00
actions:
- data:
volume_level: 1
target:
entity_id: media_player.all_google_speakers
action: media_player.volume_set
- repeat:
count: '5'
sequence:
- data:
entity_id: media_player.all_google_speakers
message: Alert! The rear sliding door has been opened.
action: tts.google_translate_say
- wait_template: '"{{ is_state(''media_player.all_google_speakers'', ''idle'')
}}"'
continue_on_timeout: true
timeout: '5'
mode: single
- id: '1675837801627'
alias: Lights - Laundry door turns on garage outer lights
description: Turn the garage outer lights on when the laundry room door is opened.
trigger:
- platform: state
entity_id:
- binary_sensor.laundry_room_door_door
to: 'on'
condition:
- condition: state
entity_id: light.garage_outer_lights
state: 'off'
action:
- action: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.garage_outer_lights
mode: single
- id: '1682289849532'
alias: Fridge - Set filter install date to today
description: Set the fridge filter installed date to today
trigger: []
condition: []
action:
- service: input_datetime.set_datetime
data:
date: '{{ as_timestamp(now())|timestamp_custom(''%Y-%m-%d'') }}'
target:
entity_id: input_datetime.fridge_filter_installed_date
mode: single
- id: '1682293185693'
alias: Kitchen - Purifier - Set Kitchen Sink Purifier Filter Install Date
description: Set the kitchen sink purifier filter installed date to today
trigger: []
condition: []
action:
- service: input_datetime.set_datetime
data:
date: '{{ as_timestamp(now())|timestamp_custom(''%Y-%m-%d'') }}'
target:
entity_id: input_datetime.kitchen_sink_purifier_installed_date
mode: single
- id: '1682293249148'
alias: Air Purifier - Set bedroom air purifier install date to today
description: Set the bedroom air purifier filter installed date to today
trigger: []
condition: []
action:
- service: input_datetime.set_datetime
data:
date: '{{ as_timestamp(now())|timestamp_custom(''%Y-%m-%d'') }}'
target:
entity_id: input_datetime.bedroom_air_filter_installed_date
mode: single
- id: '1682293519436'
alias: HVAC - Filter - Set filter installed date to today
description: Set the HVAC filter installed date to today
trigger: []
condition: []
action:
- service: input_datetime.set_datetime
data:
date: '{{ as_timestamp(now())|timestamp_custom(''%Y-%m-%d'') }}'
target:
entity_id: input_datetime.hvac_filter_installed_date
mode: single
- id: '1693693512054'
alias: HVAC - Filter - Notify when replacement is needed
description: ''
trigger:
- platform: time
at: 09:00:00
condition:
- condition: numeric_state
entity_id: sensor.hvac_filter_days_remaining
below: 7
action:
- service: notify.discord
data:
target:
- '865449623518969866'
message: ':window: The HVAC filter needs to be changed in **{{ states.sensor.hvac_filter_days_remaining.state
}} days**. Additional filters can be purchased on [Amazon](https://www.amazon.com/gp/product/B07FQK912B).
Once the filter is changed, navigate to the [Hallway Tab in Home Assistant](https://assistant.home.jmcnatt.net/lovelace/hallway)
to reset the filter.'
mode: single
- id: '1712521206118'
alias: Living room fireplace - power button
description: Press living room fireplace remote power button
trigger:
- platform: state
entity_id:
- input_button.living_room_fireplace_power
condition: []
action:
- service: remote.send_command
target:
entity_id: remote.brd_01_remote
data:
command: 'b64:JgAyAyYQKA8NKygQKg0NKwwsDCsNKwwsDCsq7CkPKBAMKykPKBAMKw0rDCsNKw4qDCsq7S
gPK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: single
- id: '1712527197073'
alias: Living room fireplace - flame button
description: Press living room fireplace remote flame button
trigger:
- platform: state
entity_id:
- input_button.living_room_fireplace_flame
condition: []
action:
- service: remote.send_command
target:
entity_id: remote.brd_01_remote
data:
command: 'b64:JgDUASYQKA8NKykOKQ8MLAwrKQ8MLAwrDSsMAAEKKBAoDw0rKBAoDw0rDCwoDw0rDCsNKw
wAAQooECkPDCsoECgPDSsMLCkODSsMKw0sDAABCSoOKQ8MKygQKBAMKw0rKA8NKwwsDCsNAAEJ
KQ8pDwwrKQ8oEAwrDSsoEAwrDSsMLAwAAQooDykPDCwoDykPDCwMKygQDCwMKw0rDAABCigQKA
8NKygQKA8NKwwrKQ8NKwwrDSsMAAEKKBAoDw0rKBAoDw4qDCwoDw0rDCsNKw0AAQkpDygQDCso
ECgPDioMLCgPDSsMLAwrDQABCSkPKBAMKykPKQ8MKw0rKA8NKw0rDCsNAAEJKQ8pDw0qKQ8oEA
0qDSsoEAwrDSsMKw0AAQooDygQDCspDygQDCsNKygQDCsNKwwsDAABCigPKQ8MLCgPKBAMKw0r
KBAMKw0rDCwMAAEKKA8pDw0rKA8pDwwsDCspDwwrDSsNKwwAAQsnECgPDSsoECgPDSsMKykPDC
wMKw0rDAABCigQKA8NKygQKA8NKwwsKA8NKwwrDSsMAAEKKQ8oEAwrKBAoDw0rDCwoDw0rDCwM
Kw0AAQkpDygQDCspDykPDCsNKykODSsMLAwrDQANBQ==
'
mode: single
- id: '1712527822781'
alias: Living room fireplace - heater
description: Press living room fireplace remote heater button
trigger:
- platform: state
entity_id:
- input_button.living_room_fireplace_heater
condition: []
action:
- service: remote.send_command
target:
entity_id: remote.brd_01_remote
data:
command: 'b64:JgCgAScPKBANKikPKQ8MKw0rDSopDw0rDCsOAAEJKQ4pDw0qKg4pDwwrDSsMLCkODSsMKw
0AAQooDykPDSspDikPDCsNKw0rKQ8NKgwsDAABCigPKQ8MLCkOKBANKg0rDSsoDw0rDSsNAAEJ
KA8qDg0rKQ4pDw0rDCsNKykPDCsNKwwAAQopDygPDSspDikPDSsMKw4qKQ8MKw0rDQABCSgQKA
8NKygQKA8NKwwrDSsoEAwrDSsNAAEJKBAoDw0rKQ8pDg0rDCsNKykPDSoNKwwAAQopDygQDSop
DygQDSoMLAwrKQ8MLAwrDQABCigPKQ8MKykPKBANKg0rDCspDw0rDCsNAAEJKg4pDw0qKQ8pDw
wrDSsMLCgPDSsMKw0AAQopDikPDCsqDigQDSoNKwwsKA8OKg0rDAABCikOKQ8NKygPKQ8NKg4q
DSsoDw0rDCwNAAEJKBApDg0rKQ4pDwwsDCsNKygQDCsNKwwAAQooECgPDSsoECkODSsMKw0rKQ
8MKw0rDQABCSgQKQ4NKygQKQ4NKwwsDCspDwwrDSsNAA0F
'
mode: single
- id: '1712528067066'
alias: Living room fireplace - undulation button
description: Press living room fireplace remote undulation button
trigger:
- platform: state
entity_id:
- input_button.living_room_fireplace_undulation
condition: []
action:
- service: remote.send_command
target:
entity_id: remote.brd_01_remote
data:
command: 'b64:JgBsASYQKA8NKygPKg4OKgwrDSsMKykPDCwMAAEKKA8rDQwsKA8qDgwrDSsNKw4pKQ8OKg
wAAQooDygQDCspDygQDikPKQwsDCsoEAwrDQABCigPKBAOKSkPKg4MKwwsDCsNKyoODikMAAEK
KBAqDQ0rKg4qDQ4qDCsPKQwsKg0NKwwAAQopDyoNDioqDSkPDikNKw0rDSorDQ4qDAABCioNKQ
8OKSsNKg4OKQ0rDCsPKSgQDCsNAAEKKg0oEA4pKg4qDg4pDSsOKQ0rKBAMKw4AAQgqDigQDiko
ECgPDSsMLA4pDSsqDg4pDgABCCoOKg4OKSoOKg0NKwwsDCsNKyoNDykMAAEKKBAoDw0rKg4qDQ
8pDCsNKw0rKg0PKQwAAQspDioNDykqDigPDioMKw0rDCwoDw8pDAABCioOKg0NKyoOKg0OKgwr
DykNKyoNDykOAAEIKBAqDQ8pKg4oDw8pDCwMKw0rKg0PKQwADQU=
'
mode: single