-
Notifications
You must be signed in to change notification settings - Fork 1
/
automations.yaml
2967 lines (2966 loc) · 73.9 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
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
- id: '1589626031994'
alias: Maintenance - Perform Daily Backup
trigger:
- platform: time
at: 00:00:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: auto_backup.snapshot_full
data_template:
name: 'DailyBackup: {{ now().strftime(''%A, %B %-d, %Y'') }}'
keep_days: 7
mode: single
- id: '1590333653446'
alias: Maintenance - Notify on snapshot failure
trigger:
- platform: event
event_type: auto_backup.snapshot_failed
action:
- service: persistent_notification.create
data_template:
title: Snapshot Failed.
message: 'Name: {{ trigger.event.data.name }}
Error: {{ trigger.event.data.error }}'
mode: single
- id: '1605235367370'
alias: Master Bedroom - Turn on the Fan at 9pm when Home
description: ''
trigger:
- platform: time
at: '21:00:00'
condition:
- condition: state
entity_id: input_boolean.home_mode
state: 'on'
action:
- service: fan.turn_on
data: {}
target:
entity_id: fan.master_bedroom
mode: single
- id: '1605235480492'
alias: Master Bedroom - Turn off the Fan at 9am
description: ''
trigger:
- platform: state
entity_id: input_boolean.sleep_mode
from: 'on'
to: 'off'
for: 01:00:00
- platform: time
at: 09:00:00
- platform: time
at: '11:00:00'
condition:
- condition: state
entity_id: input_boolean.sleep_mode
state: 'off'
- condition: or
conditions:
- condition: and
conditions:
- condition: time
after: 09:00:00
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: sun
before: sunset
- condition: and
conditions:
- condition: time
after: '11:00:00'
weekday:
- sat
- sun
- condition: sun
before: sunset
action:
- service: fan.turn_off
entity_id: fan.master_bedroom
data: {}
mode: single
- id: '1605237474058'
alias: Master Bedroom - Turn off Master Suite lights when light turns off
description: ''
trigger:
- platform: state
entity_id: light.master_bedroom_main_lights
from: 'on'
to: 'off'
for: 0:00:03
condition: []
action:
- service: light.turn_off
entity_id: light.master_bedroom_closet
data: {}
mode: single
- id: '1605239250580'
alias: Presence - Turn on Guest mode when guests arrive
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.guest_count
above: 0
condition: []
action:
- service: input_boolean.turn_on
entity_id: input_boolean.guest_mode
data: {}
mode: single
- id: '1605239614027'
alias: Presence - Set Home mode when arriving
description: ''
trigger:
- platform: zone
entity_id: person.person1
zone: zone.home
event: enter
- platform: zone
entity_id: person.person2
zone: zone.home
event: enter
- platform: state
entity_id: input_boolean.guest_mode
to: 'on'
from: 'off'
condition: []
action:
- service: input_boolean.turn_on
entity_id: input_boolean.home_mode
data: {}
mode: single
- id: '1605240122913'
alias: Presence - Turn off Guest mode when guests leave
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.guest_count
below: 1
condition: []
action:
- service: input_boolean.turn_off
entity_id: input_boolean.guest_mode
data: {}
mode: single
- id: '1605240515408'
alias: Presence - Set Away mode when leaving
description: ''
trigger:
- platform: zone
entity_id: person.person1
zone: zone.home
event: leave
- platform: zone
entity_id: person.person2
zone: zone.home
event: leave
- platform: state
entity_id: input_boolean.guest_mode
to: 'off'
from: 'on'
condition:
- condition: not
conditions:
- condition: zone
entity_id: person.person1
zone: zone.home
- condition: zone
entity_id: person.person2
zone: zone.home
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.home_mode
data: {}
mode: single
- id: '1605241451517'
alias: Presence - Turn off Sleep mode when phones are unplugged
description: ''
trigger:
- platform: state
entity_id: sensor.person1s_iphone_battery_state
to: Not Charging
from: Full
for: 00:05:00
- platform: state
entity_id: sensor.person1_lastname_iphone_battery_state
to: Unplugged
from: Charging
for: 00:05:00
- platform: state
entity_id: sensor.person2s_iphone_battery_state
to: Not Charging
from: Full
for: 00:05:00
- platform: state
entity_id: sensor.person2_lastname_iphone_battery_state
to: Unplugged
from: Charging
for: 00:05:00
condition:
- condition: or
conditions:
- condition: state
entity_id: sensor.person1s_iphone_battery_state
state: Not Charging
- condition: state
entity_id: sensor.person1_lastname_iphone_battery_state
state: Unplugged
- condition: or
conditions:
- condition: state
entity_id: sensor.person2s_iphone_battery_state
state: Not Charging
- condition: state
entity_id: sensor.person2_lastname_iphone_battery_state
state: Unplugged
- condition: state
entity_id: input_boolean.home_mode
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.sleep_mode
data: {}
mode: single
- id: '1605242357343'
alias: Security - Arm Home when arriving
description: ''
trigger:
- platform: state
entity_id: input_boolean.home_mode
from: 'off'
to: 'on'
condition: []
action:
- service: alarm_control_panel.alarm_arm_home
entity_id: alarm_control_panel.home_alarm
data: {}
mode: single
- id: '1605242367376'
alias: Security - Arm Away when leaving
description: ''
trigger:
- platform: state
entity_id: input_boolean.home_mode
from: 'on'
to: 'off'
condition: []
action:
- service: alarm_control_panel.alarm_arm_away
entity_id: alarm_control_panel.home_alarm
data: {}
mode: single
- id: '1605242820295'
alias: Security - Trigger Alarm when armed and doors open
description: ''
trigger:
- platform: state
entity_id: binary_sensor.living_room_door_sensor
from: 'off'
- platform: state
entity_id: binary_sensor.back_foyer_door_open
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.exercise_room_door_open
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.front_door_open
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.garage_door_open
from: 'off'
to: 'on'
- platform: state
entity_id: binary_sensor.side_garage_door_open
from: 'off'
to: 'on'
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
- service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.home_alarm
data: {}
mode: restart
- id: '1605242980877'
alias: Security - Trigger Alarm when armed and garge doors open
description: ''
trigger:
- platform: state
entity_id: cover.back_garage_door
to: opening
- platform: state
entity_id: cover.house_left_garage_door_opener
to: opening
- platform: state
entity_id: cover.house_right_garage_door_opener
to: opening
- platform: state
entity_id: cover.left_garage_door
to: opening
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
- service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.home_alarm
data: {}
mode: restart
- id: '1605243281572'
alias: Security - Trigger Alarm when armed and locks change
description: ''
trigger:
- platform: state
entity_id: lock.back_foyer_door
to: unlocked
from: locked
- platform: state
entity_id: lock.exercise_room_door
to: unlocked
from: locked
- platform: state
entity_id: lock.front_door
to: unlocked
from: locked
- platform: state
entity_id: lock.garage_door
to: unlocked
from: locked
- platform: state
entity_id: lock.garage_side_door
to: unlocked
from: locked
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
- service: alarm_control_panel.alarm_trigger
data: {}
entity_id: alarm_control_panel.home_alarm
mode: restart
- id: '1605244719919'
alias: Christmas - Turn on lights at sunset
description: ''
trigger:
- platform: sun
event: sunset
condition:
- condition: or
conditions:
- condition: template
value_template: '{{ now().month == 11 }}'
- condition: template
value_template: '{{ now().month == 12 }}'
- condition: template
value_template: '{{ now().month == 1 }}'
action:
- service: homeassistant.turn_on
entity_id: group.christmas_lights
data: {}
mode: single
- id: '1605324410981'
alias: Outside - Turn on Garage wall lights when motion is detected
description: ''
trigger:
- platform: state
entity_id: binary_sensor.garage_doorbell_motion
from: 'off'
to: 'on'
for: 00:00:10
condition:
- condition: numeric_state
entity_id: sensor.illuminance
below: '1000'
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: switch.garage_front_outside_wall_light
state: 'off'
for: 00:00:15
action:
- service: switch.turn_on
entity_id: switch.garage_front_outside_wall_light
data: {}
mode: single
- id: '1605324481124'
alias: Outside - Turn on House wall lights when motion is detected
description: ''
trigger:
- platform: state
entity_id: binary_sensor.front_doorbell_motion
from: 'off'
to: 'on'
for: 00:00:05
condition:
- condition: numeric_state
entity_id: sensor.illuminance
below: '1000'
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: switch.front_foyer_wall_lights
for: 00:00:15
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.front_foyer_wall_lights
data: {}
mode: restart
- id: '1605325678968'
alias: Office - Turn off Closet lights after 15 minutes
description: ''
trigger:
- platform: state
entity_id: switch.office_closet_main_lights
from: 'off'
to: 'on'
for: 00:15:00
condition: []
action:
- service: switch.turn_off
entity_id: switch.office_closet_main_lights
data: {}
mode: single
- id: '1605325842831'
alias: Master Bedroom - Turn off Closet lights after 35 minutes
description: ''
trigger:
- platform: state
entity_id: light.master_bedroom_closet
from: 'off'
to: 'on'
for:
hours: 0
minutes: 35
seconds: 0
condition: []
action:
- service: light.turn_off
entity_id: light.master_bedroom_closet
data: {}
mode: single
- id: '1605326114209'
alias: Kids Room One - Turn off Closet lights after 45 minutes
description: ''
trigger:
- platform: state
entity_id: switch.kids_room_one_closet_main_lights
from: 'off'
to: 'on'
for: 00:45:00
condition: []
action:
- service: switch.turn_off
entity_id: switch.kids_room_one_closet_main_lights
data: {}
mode: single
- id: '1605326193355'
alias: Kids Room Two - Turn off Closet lights after 45 minutes
description: ''
trigger:
- platform: state
entity_id: switch.kids_room_two_closet_main_lights
from: 'off'
to: 'on'
for: 00:45:00
condition: []
action:
- service: switch.turn_off
entity_id: switch.kids_room_two_closet_main_lights
data: {}
mode: single
- id: '1605326263400'
alias: Guest Bedroom - Turn off Closet lights after 15 minutes
description: ''
trigger:
- platform: state
entity_id: switch.basement_bedroom_closet_light
from: 'off'
to: 'on'
for: 00:15:00
condition: []
action:
- service: switch.turn_off
entity_id: switch.basement_bedroom_closet_light
data: {}
mode: single
- id: '1605326349037'
alias: Front Foyer - Turn off Right Closet lights after 15 minutes
description: ''
trigger:
- platform: state
entity_id: switch.front_foyer_right_closet_motion_light
from: 'off'
to: 'on'
for: 00:15:00
condition: []
action:
- service: switch.turn_off
entity_id: switch.front_foyer_right_closet_motion_light
data: {}
mode: single
- id: '1605326802469'
alias: Christmas - Turn off lights at 9pm
description: ''
trigger:
- platform: time
at: '21:00:00'
condition:
- condition: or
conditions:
- condition: template
value_template: '{{ now().month == 11 }}'
- condition: template
value_template: '{{ now().month == 12 }}'
- condition: template
value_template: '{{ now().month == 1 }}'
action:
- service: homeassistant.turn_off
entity_id: group.christmas_lights
data: {}
mode: single
- id: '1605327027797'
alias: Outside - Turn on Garage wall lights at sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: 00:15:00
condition: []
action:
- service: switch.turn_on
entity_id: switch.garage_front_outside_wall_light
data: {}
mode: single
- id: '1605327387915'
alias: Outside - Turn off House wall lights
description: Turn off two hours after sunset or 15 minutes after last activity
trigger:
- platform: state
entity_id: binary_sensor.front_doorbell_motion
from: 'on'
to: 'off'
for: 00:10:00
- platform: state
entity_id: binary_sensor.front_door_noise
from: 'on'
to: 'off'
for: 00:10:00
- platform: sun
event: sunset
offset: 02:15:00
- platform: sun
event: sunrise
- platform: state
entity_id: switch.front_foyer_wall_lights
from: 'off'
to: 'on'
for: '2:00:00'
- platform: state
entity_id: switch.front_door_can_motion_light
from: 'off'
to: 'on'
for: '2:00:00'
condition:
- condition: state
entity_id: binary_sensor.front_doorbell_motion
state: 'off'
for: 00:10:00
- condition: state
entity_id: binary_sensor.front_door_noise
state: 'off'
for: 00:10:00
action:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.front_foyer_wall_lights
- switch.front_door_can_motion_light
mode: single
- id: '1605327871007'
alias: Outside - Turn on House wall lights at sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: 00:15:00
condition: []
action:
- service: switch.turn_on
entity_id: switch.front_foyer_wall_lights
data: {}
mode: single
- id: '1605328294408'
alias: Outside - Turn off Garage wall lights
description: Turn off two hours after sunset or 15 minutes after last activity
trigger:
- platform: state
entity_id: binary_sensor.garage_doorbell_motion
from: 'on'
to: 'off'
for: 00:10:00
- platform: state
entity_id: binary_sensor.garage_door_noise
from: 'on'
to: 'off'
for: 00:10:00
- platform: sun
event: sunset
offset: 02:15:00
- platform: sun
event: sunrise
- platform: state
entity_id: switch.garage_front_outside_wall_light
from: 'off'
to: 'on'
for: '2:00:00'
condition:
- condition: state
entity_id: binary_sensor.garage_doorbell_motion
state: 'off'
for: 00:10:00
- condition: state
entity_id: binary_sensor.garage_door_noise
state: 'off'
for: 00:10:00
action:
- service: switch.turn_off
entity_id: switch.garage_front_outside_wall_light
data: {}
mode: restart
- id: '1605364042255'
alias: First Floor Bathroom - Turn off exhaust fan after 15 minutes
description: ''
trigger:
- platform: state
entity_id: switch.first_floor_bathroom_exhaust_fan
from: 'off'
to: 'on'
for: 0:15:00
condition: []
action:
- service: switch.turn_off
entity_id: switch.first_floor_bathroom_exhaust_fan
data: {}
mode: single
- id: '1605364154242'
alias: Kids Bathroom - Turn off exhaust fan after 45 minutes
description: ''
trigger:
- platform: state
entity_id: switch.kids_bathroom_exhaust_fan
from: 'off'
to: 'on'
for:
hours: 0
minutes: 45
seconds: 0
condition: []
action:
- service: switch.turn_off
entity_id: switch.kids_bathroom_exhaust_fan
data: {}
mode: single
- id: '1605364277878'
alias: Master Bathroom - Turn off exhaust fan after 30 minutes
description: ''
trigger:
- platform: state
entity_id: switch.master_bathroom_shower_fan
from: 'off'
to: 'on'
for:
hours: 1
minutes: 0
seconds: 0
- platform: state
entity_id: water_heater.kohler_shower
from: 'on'
to: 'off'
for: 00:30:00
condition:
- condition: state
entity_id: water_heater.kohler_shower
state: 'off'
action:
- service: switch.turn_off
entity_id: switch.master_bathroom_shower_fan
data: {}
mode: single
- id: '1605364375292'
alias: Master Water Closet - Turn off exhaust fan after 5 minutes
description: ''
trigger:
- platform: state
entity_id: switch.master_bathroom_water_closet_fan
from: 'off'
to: 'on'
for:
hours: 0
minutes: 5
seconds: 0
condition: []
action:
- service: switch.turn_off
entity_id: switch.master_bathroom_water_closet_fan
data: {}
mode: single
- id: '1605364445899'
alias: Guest Bathroom - Turn off exhaust fan after 5 minutes
description: ''
trigger:
- platform: state
entity_id: switch.guest_bathroom_exhaust_fan
from: 'off'
to: 'on'
for:
hours: 0
minutes: 5
seconds: 0
condition: []
action:
- service: switch.turn_off
entity_id: switch.guest_bathroom_exhaust_fan
data: {}
mode: single
- id: '1605364749303'
alias: Kids Bathroom - Turn on exhaust fan when tub lights turn on
description: ''
trigger:
- platform: state
entity_id: light.kids_bathroom_tub_lights
from: 'off'
to: 'on'
for: 0:00:05
condition: []
action:
- service: switch.turn_on
entity_id: switch.kids_bathroom_exhaust_fan
data: {}
mode: single
- id: '1605365080620'
alias: Master Bathroom - Turn on exhaust fan when shower or tub lights turn on
description: ''
trigger:
- platform: state
entity_id: light.master_bathroom_shower_lights
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 5
- platform: state
entity_id: light.master_bathroom_tub_lights
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 5
- platform: state
entity_id: water_heater.kohler_shower
to: 'on'
for: 00:00:05
condition: []
action:
- service: switch.turn_on
entity_id: switch.master_bathroom_shower_fan
data: {}
mode: single
- id: '1605366062623'
alias: Audio - Normalize levels to 20% at 9am
description: ''
trigger:
- platform: time
at: 09:00:00
condition: []
action:
- service: media_player.volume_set
data:
volume_level: 0.2
target:
entity_id: media_player.kitchen_dash_wand,media_player.everywhere,media_player.basement_bedroom_ecobee_switch,media_player.living_room_echo_dot,media_player.master_bedroom_echo_plus,media_player.garage_echo_plus,media_player.kids_bedroom_one_ecobee_switch,media_player.kids_bedroom_two_ecobee_switch,media_player.kids_bathroom_ecobee_switch,media_player.master_water_closet_ecobee_switch,media_player.master_bathroom_ecobee_switch,media_player.basement_ecobee4,media_player.office_ecobee_switch,media_player.laundry_room_ecobee_switch,media_player.main_floor_ecobee4,media_player.upstairs_ecobee4,media_player.office_ecobee4,media_player.foyer_ecobee_switch,media_player.living_room_ecobee_switch,media_player.entertainment_room_ecobee_switch,media_player.back_foyer_ecobee_switch,media_player.first_floor_bathroom_ecobee_switch,media_player.master_bathroom_right_mirror,media_player.master_bathroom_left_mirror,media_player.basement_window_echo,media_player.basement_echo,media_player.kids_bathroom_mirror,media_player.guest_bathroom_ecobee_switch,media_player.person1_s_echo_auto,media_player.entertainment_room_tv2,media_player.living_room_echo,media_player.kitchen_echo_plus,media_player.office_echo_plus,media_player.person1_s_alexa_apps
mode: single
- id: '1605366631205'
alias: Audio - Normalize levels to 10% at 9pm
description: ''
trigger:
- platform: time
at: '21:00:00'
condition: []
action:
- service: media_player.volume_set
data:
volume_level: 0.1
entity_id: media_player.kitchen_dash_wand,media_player.everywhere,media_player.basement_bedroom_ecobee_switch,media_player.living_room_echo_dot,media_player.master_bedroom_echo_plus,media_player.garage_echo_plus,media_player.kids_bedroom_one_ecobee_switch,media_player.kids_bedroom_two_ecobee_switch,media_player.kids_bathroom_ecobee_switch,media_player.master_water_closet_ecobee_switch,media_player.master_bathroom_ecobee_switch,media_player.basement_ecobee4,media_player.office_ecobee_switch,media_player.laundry_room_ecobee_switch,media_player.main_floor_ecobee4,media_player.upstairs_ecobee4,media_player.office_ecobee4,media_player.foyer_ecobee_switch,media_player.living_room_ecobee_switch,media_player.entertainment_room_ecobee_switch,media_player.back_foyer_ecobee_switch,media_player.first_floor_bathroom_ecobee_switch,media_player.master_bathroom_right_mirror,media_player.master_bathroom_left_mirror,media_player.basement_window_echo,media_player.basement_echo,media_player.kids_bathroom_mirror,media_player.guest_bathroom_ecobee_switch,media_player.person1_s_echo_auto,media_player.entertainment_room_tv2,media_player.living_room_echo,media_player.kitchen_echo_plus,media_player.office_echo_plus,media_player.person1_s_alexa_apps
mode: single
- id: '1605367045043'
alias: Family Room - Turn on lamp when guests are here at sunset
description: ''
trigger:
- platform: sun
event: sunset
condition:
- condition: state
entity_id: input_boolean.guest_mode
state: 'on'
action:
- service: light.turn_on
entity_id: light.family_room_lamp
data: {}
mode: single
- id: '1605367221255'
alias: Family Room - Turn off lamp at 10mp
description: ''
trigger:
- platform: time
at: '22:00:00'
condition:
- condition: state
entity_id: binary_sensor.family_room_occupancy
state: 'off'
for: 00:15:00
action:
- service: light.turn_off
entity_id: light.family_room_lamp
data: {}
mode: single
- id: '1605367649153'
alias: Living Room - Turn off fireplace after 4 hours
description: ''
trigger:
- platform: state
entity_id: light.fireplace
from: 'off'
to: 'on'
for:
hours: 4
minutes: 0
seconds: 0
condition: []
action:
- service: light.turn_off
entity_id: light.fireplace
data: {}
mode: single
- id: '1605368010295'
alias: Back Foyer - Unlock door when left garage door opens
description: ''
trigger:
- platform: state
entity_id: cover.house_left_garage_door_opener
to: opened
condition:
- condition: state
entity_id: input_boolean.home_mode
state: 'on'
action:
- service: lock.unlock
entity_id: lock.back_foyer_door
data: {}
mode: single
- id: '1605368213397'
alias: Back Foyer - Lock door when left garage door closes
description: ''
trigger:
- platform: state
entity_id: cover.house_left_garage_door_opener
to: closed
condition:
- condition: not
conditions:
- condition: state
entity_id: device_tracker.model_3_location_tracker
state: home
action:
- service: lock.lock
data: {}
target:
entity_id: lock.back_foyer_door
mode: single
- id: '1605368280452'
alias: Back Foyer - Unlock door when right garage door opens
description: ''
trigger:
- platform: state
entity_id: cover.house_right_garage_door_opener
to: opened
condition:
- condition: state
entity_id: input_boolean.home_mode
state: 'on'
action:
- service: lock.unlock
data: {}
target:
entity_id:
- lock.back_foyer_door
mode: single
- id: '1605368316605'
alias: Back Foyer - Lock door when right garage door closes
description: ''
trigger:
- platform: state
entity_id: cover.house_right_garage_door_opener
to: closed
condition:
- condition: not
conditions:
- condition: state
entity_id: device_tracker.model_3_location_tracker
state: home
action:
- service: lock.lock
data: {}
target:
entity_id: lock.back_foyer_door
mode: single
- id: '1605368791297'
alias: Garage Small Bay - Unlock door when front garage door opens
description: ''
trigger:
- platform: state
entity_id: cover.left_garage_door
to: opened
condition:
- condition: state
entity_id: input_boolean.home_mode
state: 'on'
action:
- service: lock.unlock
entity_id: lock.garage_door
data: {}
mode: single
- id: '1605368854476'
alias: Garage Small Bay - Lock door when front garage door closes
description: ''
trigger:
- platform: state
entity_id: cover.left_garage_door
to: closed
condition: []
action:
- service: lock.lock
entity_id: lock.garage_door
data: {}
mode: single
- id: '1605368963290'
alias: Living Room - Turn on fan when fireplace turns on
description: ''
trigger:
- platform: state
entity_id: light.fireplace
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 30
condition: []
action:
- service: fan.turn_on
entity_id: fan.living_room
data: {}
mode: single
- id: '1605369046395'
alias: Living Room - Turn off fan a half hour after fireplace turns off
description: ''
trigger: