-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
742 lines (742 loc) · 16.8 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
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
- id: '1586309946206'
alias: Sunset Lights - Home
description: ''
trigger:
- event: sunset
offset: -00:15
platform: sun
condition:
- condition: state
entity_id: person.jj
state: home
action:
- data: {}
entity_id: automation.nighttime_lights_home
service: automation.trigger
mode: single
- id: '1586310091711'
alias: Sunrise Lights
description: ''
trigger:
- event: sunrise
offset: 00:15
platform: sun
condition: []
action:
- scene: scene.outside_all_off
- type: turn_off
device_id: 33a0e14f980f502b3c35983b0fea3e0c
entity_id: switch.stairs_downlights
domain: switch
mode: single
- id: '1586310341649'
alias: Nighttime Lights - Home
description: ''
trigger:
- entity_id: person.jj
event: enter
platform: zone
zone: zone.home
condition:
- after: sunset
after_offset: -00:15
before: sunrise
before_offset: +00:15
condition: sun
- condition: or
conditions:
- condition: zone
entity_id: person.jj
zone: zone.home
- condition: state
entity_id: input_boolean.assume_home
state: 'on'
- condition: state
entity_id: input_boolean.home_away_automation
state: 'true'
action:
- scene: scene.house_and_garage_outside_night
- scene: scene.house_home
mode: single
- id: '1586310534562'
alias: Nighttime Lights - Away
description: ''
trigger:
- entity_id: person.jj
event: leave
platform: zone
zone: zone.home
condition:
- after: sunset
after_offset: -00:15
before: sunrise
before_offset: +00:15
condition: sun
- condition: or
conditions:
- condition: state
entity_id: person.jj
state: not_home
- after: sunrise
after_offset: +00:15
before: sunset
before_offset: -00:15
condition: sun
- condition: state
entity_id: input_boolean.home_away_automation
state: 'on'
- condition: state
entity_id: input_boolean.assume_home
state: 'off'
action:
- scene: scene.house_and_garage_outside_night
- scene: scene.house_away
mode: single
- id: '1586310682603'
alias: Closet Timeout - Master
description: ''
trigger:
- platform: device
type: turned_on
device_id: 7c2f19af62214a07d920783c9fbb367d
entity_id: switch.master_closet
domain: switch
for:
hours: 0
minutes: 15
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 7c2f19af62214a07d920783c9fbb367d
entity_id: switch.master_closet
domain: switch
mode: single
- id: '1586310759676'
alias: 3am Light Timeout
description: ''
trigger:
- at: 03:00:00
platform: time
condition: []
action:
- scene: scene.house_all_off
mode: single
- id: '1586311421487'
alias: Vent Fan - On with Bathroom Lights
description: ''
trigger:
- platform: device
type: turned_on
device_id: 455b5f9025e505a938c1b442017b0247
entity_id: light.master_bathroom
domain: light
- platform: device
type: turned_on
device_id: bd8b2926d77cb67200dc6604674362df
entity_id: light.den_bathroom
domain: light
condition: []
action:
- type: turn_on
device_id: 88866f37754b830a9dd41d79a1063e19
entity_id: switch.house_vent_fan_3
domain: switch
mode: single
- id: '1586311465742'
alias: General Timeout - Vent Fan
description: ''
trigger:
- platform: device
type: turned_on
device_id: 88866f37754b830a9dd41d79a1063e19
entity_id: switch.house_vent_fan_3
domain: switch
for:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 88866f37754b830a9dd41d79a1063e19
entity_id: switch.house_vent_fan_3
domain: switch
mode: single
- id: '1586322738102'
alias: Bathroom Timeout - Den
description: ''
trigger:
- platform: device
type: turned_on
device_id: bd8b2926d77cb67200dc6604674362df
entity_id: light.den_bathroom
domain: light
for:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
condition:
- condition: state
entity_id: input_boolean.bathroom_timeouts
state: 'on'
action:
- type: turn_off
device_id: bd8b2926d77cb67200dc6604674362df
entity_id: light.den_bathroom
domain: light
mode: single
- id: '1586481145686'
alias: Espresso Machine - Turn On
description: ''
trigger:
- at: 08:00:00
platform: time
condition:
- condition: state
entity_id: person.jj
state: home
action:
- type: turn_on
device_id: 64e4abfbcf96085a8eb3e9e56c0bde3b
entity_id: switch.espresso_machine_2
domain: switch
mode: single
- id: '1586481195969'
alias: Espresso Machine - Turn Off
description: ''
trigger:
- at: '12:00:00'
platform: time
condition:
- condition: device
type: is_on
device_id: 64e4abfbcf96085a8eb3e9e56c0bde3b
entity_id: switch.espresso_machine_2
domain: switch
action:
- type: turn_off
device_id: 64e4abfbcf96085a8eb3e9e56c0bde3b
entity_id: switch.espresso_machine_2
domain: switch
mode: single
- id: '1590343752481'
alias: Solar Shades - Open
description: ''
trigger:
- type: illuminance
platform: device
device_id: 79624989bdef10610145aab295945595
entity_id: sensor.livingroom_sensor_illuminance
domain: sensor
below: 50
for:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- event: sunset
offset: -00:45
platform: sun
condition: []
action:
- type: turn_on
device_id: a870793d26dbb43aed868c98331e69c7
entity_id: switch.right_solar_shade_2
domain: switch
- type: turn_on
device_id: 4ec936107c8366ee3177c81ca7c3a052
entity_id: switch.left_solar_shade
domain: switch
mode: single
- id: '1590344012154'
alias: Solar Shades - Close
description: ''
trigger:
- type: illuminance
platform: device
device_id: 79624989bdef10610145aab295945595
entity_id: sensor.livingroom_sensor_illuminance
domain: sensor
above: 250
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
condition:
- after: sunrise
after_offset: +01:00
before: sunset
before_offset: -01:00
condition: sun
- above: '65'
condition: numeric_state
entity_id: sensor.livingroom_sensor_air_temperature
- above: '60'
condition: numeric_state
entity_id: sensor.openweathermap_temperature
- condition: or
conditions:
- condition: device
device_id: 4ec936107c8366ee3177c81ca7c3a052
domain: cover
entity_id: cover.left_solar_shade
type: is_open
- condition: device
device_id: a870793d26dbb43aed868c98331e69c7
domain: cover
entity_id: cover.right_solar_shade_2
type: is_open
action:
- type: turn_off
device_id: 4ec936107c8366ee3177c81ca7c3a052
entity_id: switch.left_solar_shade
domain: switch
- type: turn_off
device_id: a870793d26dbb43aed868c98331e69c7
entity_id: switch.right_solar_shade_2
domain: switch
mode: single
- id: '1591155410264'
alias: Master Bathroom Motion - Night
description: ''
trigger:
- entity_id: binary_sensor.node_74_home_security_motion_detection
platform: state
from: 'off'
to: 'on'
condition:
- after: 00:00:00
before: 06:00:00
condition: time
action:
- scene: scene.master_bathroom_night
- type: turn_on
device_id: 88866f37754b830a9dd41d79a1063e19
entity_id: switch.house_vent_fan_3
domain: switch
- data: {}
entity_id: input_boolean.mbr_motion_triggered
service: homeassistant.turn_on
mode: single
- id: '1591155632642'
alias: Master Bathroom Motion - Day
description: ''
trigger:
- entity_id: binary_sensor.node_74_home_security_motion_detection
platform: state
to: 'on'
from: 'off'
condition:
- after: 06:00:00
before: 00:00:00
condition: time
action:
- scene: scene.master_bathroom_day
- type: turn_on
device_id: 88866f37754b830a9dd41d79a1063e19
entity_id: switch.house_vent_fan_3
domain: switch
- data: {}
entity_id: input_boolean.mbr_motion_triggered
service: homeassistant.turn_on
mode: single
- id: '1591155792425'
alias: Master Bathroom Motion - Off
description: ''
trigger:
- entity_id: binary_sensor.node_74_home_security_motion_detection
for: 0:30:00
platform: state
from: 'on'
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.node_74_home_security_motion_detection
state: 'off'
- condition: state
entity_id: input_boolean.mbr_motion_triggered
state: 'on'
action:
- scene: scene.master_bathroom_off
- type: turn_off
device_id: 88866f37754b830a9dd41d79a1063e19
entity_id: switch.house_vent_fan_3
domain: switch
- service: input_boolean.turn_off
target:
entity_id: input_boolean.mbr_motion_triggered
mode: single
- id: '1615757989229'
alias: Sunset Lights - Away
description: ''
trigger:
- event: sunset
offset: -00:15
platform: sun
condition:
- condition: state
entity_id: person.jj
state: not_home
action:
- data: {}
service: automation.trigger
target:
entity_id: automation.occupancy_lights_away
mode: single
- id: '1615764373036'
alias: Bathroom Timeout - Guest
description: ''
trigger:
- platform: device
type: turned_on
device_id: f93879dfe29ebe744ff3ff86a93cf7c5
entity_id: light.guest_bathroom
domain: light
for:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
condition:
- condition: state
entity_id: input_boolean.bathroom_timeouts
state: 'on'
action:
- type: turn_off
device_id: f93879dfe29ebe744ff3ff86a93cf7c5
entity_id: light.guest_bathroom
domain: light
mode: single
- id: '1615764429050'
alias: Closet Timeout - Front Guest
description: ''
trigger:
- platform: device
type: turned_on
device_id: 8db2b28dccc563acd943ad8e266f6181
entity_id: switch.front_guestroom_closet
domain: switch
for:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 8db2b28dccc563acd943ad8e266f6181
entity_id: switch.front_guestroom_closet
domain: switch
mode: single
- id: '1615764453154'
alias: Closet Timeout - Back Guest
description: ''
trigger:
- platform: device
type: turned_off
device_id: 57c90f303162aabd2bd8d0c7baf163e8
entity_id: switch.back_guestroom_closet
domain: switch
for:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 57c90f303162aabd2bd8d0c7baf163e8
entity_id: switch.back_guestroom_closet
domain: switch
mode: single
- id: '1615764475203'
alias: Closet Timeout - Entryway
description: ''
trigger:
- platform: device
type: turned_off
device_id: 3d8e3dcc05ac7fdf3c47d2998e2451c1
entity_id: switch.entryway_closet
domain: switch
for:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 3d8e3dcc05ac7fdf3c47d2998e2451c1
entity_id: switch.entryway_closet
domain: switch
mode: single
- id: '1615764539265'
alias: General Timeout - Crawlspace
description: ''
trigger:
- platform: device
type: turned_on
device_id: 48c89d1739c6029f00ad7971627262dc
entity_id: switch.crawlspace
domain: switch
for:
hours: 12
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 48c89d1739c6029f00ad7971627262dc
entity_id: switch.crawlspace
domain: switch
mode: single
- id: '1615764568638'
alias: General Timeout - Garage Attic
description: ''
trigger:
- platform: device
type: turned_off
device_id: 6fe6075ca79fa6449c4a23956ec0465c
entity_id: switch.garage_attic_8
domain: switch
for:
hours: 12
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 6fe6075ca79fa6449c4a23956ec0465c
entity_id: switch.garage_attic_8
domain: switch
mode: single
- id: '1615764591548'
alias: General Timeout - Garage Air Filter
description: ''
trigger:
- platform: device
type: turned_off
device_id: ac524ce5f4e5bc2188249b31fa416f2f
entity_id: switch.garage_air_filter_5
domain: switch
for:
hours: 4
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: ac524ce5f4e5bc2188249b31fa416f2f
entity_id: switch.garage_air_filter_5
domain: switch
mode: single
- id: '1616110972665'
alias: Office Lights - Low Light
description: ''
trigger:
- type: illuminance
platform: device
device_id: 6cf405aaeb0cced8b3663dc912920886
entity_id: sensor.office_sensor_illuminance
domain: sensor
below: 15
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
condition:
- condition: state
entity_id: person.jj
state: home
- condition: time
after: '10:00'
before: '23:59'
action:
- service: scene.turn_on
target:
entity_id: scene.office_low_light
mode: single
- id: '1616111239954'
alias: Office Lights - Bright
description: ''
trigger:
- type: illuminance
platform: device
device_id: 6cf405aaeb0cced8b3663dc912920886
entity_id: sensor.office_sensor_illuminance
domain: sensor
above: 50
for:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
condition:
- condition: device
type: is_on
device_id: c86bbcf69dd8dac3cbaf8dcc6749e37d
entity_id: switch.office
domain: switch
action:
- service: scene.turn_on
target:
entity_id: scene.office_low_light_off
mode: single
- id: '1616797289538'
alias: Vaccuum - Living Room
description: ''
trigger:
- platform: time
at: '10:00:00'
condition:
- condition: time
weekday:
- tue
action:
- device_id: dd037ae64b4cf799b0b3a62ac8085ca7
domain: vacuum
entity_id: vacuum.downstairs_roomba
type: clean
mode: single
- id: '1616886283228'
alias: Vacuum - Upstairs
description: ''
trigger:
- platform: time
at: '12:00:00'
condition:
- condition: time
weekday:
- sat
action:
- device_id: 4bbc20e07f08ce6c15e855d6885da481
domain: vacuum
entity_id: vacuum.upstairs
type: clean
mode: single
- id: '1616886946726'
alias: Vacuum Stuck - Upstairs
description: ''
trigger:
- platform: template
value_template: '{{ is_state_attr("vacuum.upstairs", "status", "Stuck") }}'
condition: []
action:
- service: notify.notify
data:
message: Upstairs Roomba is Stuck
title: Vacuum
mode: single
- id: '1616887121694'
alias: Vacuum Stuck - Living Room
description: ''
trigger:
- platform: template
value_template: '{{ is_state_attr("vacuum.downstairs_roomba", "status", "Stuck")
}}'
condition: []
action:
- service: notify.notify
data:
message: Living Room Roomba is Stuck
title: Vacuum
mode: single
- id: '1616887197580'
alias: New Automation
description: ''
trigger:
- platform: state
entity_id: binary_sensor.downstairs_roomba_bin_full
from: 'false'
to: 'true'
condition: []
action:
- service: notify.notify
data:
message: Living Room Roomba is Full
title: Vacuum
mode: single
- id: '1616887276743'
alias: Vacuum Full - Living Room
description: ''
trigger:
- platform: state
entity_id: binary_sensor.downstairs_roomba_bin_full
from: 'false'
to: 'true'
condition: []
action:
- service: notify.notify
data:
message: Living Room Roomba is Full
title: Vacuum
mode: single
- id: '1616887320924'
alias: Vacuum Full - Upstairs
description: ''
trigger:
- platform: state
entity_id: binary_sensor.upstairs_bin_full
from: 'false'
to: 'true'
condition: []
action:
- service: notify.notify
data:
message: Upstairs Roomba is Full
title: Vacuum
mode: single
- id: '1616969421103'
alias: Vacuum Stuck - Downstairs
description: ''
trigger:
- platform: template
value_template: '{{ is_state_attr("vacuum.downstairs_roomba", "status", "Stuck")
}}'
condition: []
action:
- service: notify.notify
data:
message: Downstairs Roomba is Stuck
title: Vacuum
mode: single
- id: '1616969501075'
alias: Vacuum Full - Downstairs
description: ''
trigger:
- platform: state
entity_id: binary_sensor.downstairs_bin_full
from: 'false'
to: 'true'
condition: []
action:
- service: notify.notify
data:
message: Downstairs Roomba is Full
title: Vacuum
mode: single
- id: '1616969582317'
alias: Vacuum - Downstairs
description: ''
trigger:
- platform: time
at: '10:00:00'
condition:
- condition: time
weekday:
- tue
action:
- device_id: 5d1b0f26cb8cee51e37bdb8a561418ce
domain: vacuum
entity_id: vacuum.downstairs
type: clean
mode: single