-
Notifications
You must be signed in to change notification settings - Fork 4
/
automations.yaml
1493 lines (1422 loc) · 46.1 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
########## Quick Music Buttons ##########
- alias: Sunday Music
trigger:
- platform: state
entity_id: input_boolean.sunday_music
to: "on"
action:
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumiohomelocal
source: Sunday
- delay: 0:01
- service: input_boolean.turn_off
entity_id: input_boolean.sunday_music
- alias: Lindsay Music
trigger:
- platform: state
entity_id: input_boolean.lindsay_music
to: "on"
action:
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumiohomelocal
source: Lindsay
- delay: 0:01
- service: input_boolean.turn_off
entity_id: input_boolean.lindsay_music
- alias: Rock Music
trigger:
- platform: state
entity_id: input_boolean.rock_music
to: "on"
action:
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumiohomelocal
source: Rock On
- delay: 0:01
- service: input_boolean.turn_off
entity_id: input_boolean.rock_music
- alias: Country Music
trigger:
- platform: state
entity_id: input_boolean.country_music
to: "on"
action:
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumiohomelocal
source: Country
- delay: 0:01
- service: input_boolean.turn_off
entity_id: input_boolean.country_music
########## Boys Bathroom Lock ###########
- alias: Boys Bathroom Lock on
trigger:
- platform: state
entity_id: binary_sensor.boys_toilet
from: "off"
to: "on"
action:
- service: switch.turn_on
entity_id: switch.boys_bathroom_lock
- alias: Boys Bathroom Lock off
trigger:
- platform: state
entity_id: binary_sensor.boys_toilet
to: "off"
action:
- service: switch.turn_off
entity_id: switch.boys_bathroom_lock
- alias: Boys Bathroom Lock off after 20
trigger:
- platform: state
entity_id: binary_sensor.boys_toilet
to: "on"
for:
minutes: 20
action:
- service: switch.turn_off
entity_id: switch.boys_bathroom_lock
########## Destinkinators ###########
- alias: Boys Toilet Destinker
trigger:
- platform: state
entity_id: binary_sensor.boys_toilet
to: "on"
action:
- service: switch.turn_on
entity_id: switch.10024200b4e62d51cd4b
- delay: 0:10
- service: switch.turn_off
entity_id: switch.10024200b4e62d51cd4b
- alias: Main Toilet Destinker
trigger:
- platform: state
entity_id: binary_sensor.main_toilet
to: "on"
action:
- service: switch.turn_on
entity_id: switch.10024200b4e62d51d3d7
- delay: 0:10
- service: switch.turn_off
entity_id: switch.10024200b4e62d51d3d7
- alias: Master Toilet Destinker
trigger:
- platform: state
entity_id: binary_sensor.master_toilet
to: "on"
action:
- service: switch.turn_on
entity_id: switch.10024200b4e62d51d558
- delay: 0:10
- service: switch.turn_off
entity_id: switch.10024200b4e62d51d558
########## Climate Control ###########
- alias: Fan off after AC off
trigger:
- platform: state
entity_id: switch.upstairs_ac
to: "off"
action:
- delay: 0:20
- service: switch.turn_off
entity_id: switch.upstairs_fan
- alias: Fan off after Heat off
trigger:
- platform: state
entity_id: switch.upstairs_furnace
to: "off"
action:
- delay: 0:20
- service: switch.turn_off
entity_id: switch.upstairs_fan
- alias: No AC when the Heat is on
trigger:
- platform: state
entity_id: switch.upstairs_ac
to: "on"
action:
- service: switch.turn_off
entity_id: switch.upstairs_furnace
- service: switch.turn_on
entity_id: switch.upstairs_fan
- alias: No Heat when the AC is on
trigger:
- platform: state
entity_id: switch.upstairs_furnace
to: "on"
action:
- service: switch.turn_off
entity_id: switch.upstairs_ac
- service: switch.turn_on
entity_id: switch.upstairs_fan
- alias: Summer Night Temp adjustment
trigger:
- platform: time
at: '22:30:00'
condition:
condition: or
conditions:
- condition: template
value_template: '{{ now().month == 5 }}'
- condition: template
value_template: '{{ now().month == 6 }}'
- condition: template
value_template: '{{ now().month == 7 }}'
- condition: template
value_template: '{{ now().month == 8 }}'
- condition: template
value_template: '{{ now().month == 9 }}'
action:
- service: climate.set_temperature
data:
entity_id: climate.upstairs_ac, climate.main_floor_ac
temperature: 76
operation_mode: Cool
- alias: Summer Daytime Temp adjustment
trigger:
- platform: time
at: '09:00:00'
condition:
condition: or
conditions:
- condition: template
value_template: '{{ now().month == 5 }}'
- condition: template
value_template: '{{ now().month == 6 }}'
- condition: template
value_template: '{{ now().month == 7 }}'
- condition: template
value_template: '{{ now().month == 8 }}'
- condition: template
value_template: '{{ now().month == 9 }}'
action:
- service: climate.set_temperature
data:
entity_id: climate.upstairs_ac, climate.main_floor_ac
temperature: 72
operation_mode: Cool
- alias: No one home Away Mode On
trigger:
- platform: state
entity_id: device_tracker.janis7, device_tracker.justin_iphone7
to: 'not_home'
for:
hours: 24
action:
- service: climate.set_away_mode
data:
entity_id: climate.upstairs_ac, climate.upstairs_furnace, climate.main_floor_ac, climate.main_floor_heat, climate.master_bedroom_heat, climate.kitchen_heat, climate.kids_bedroom_heat, climate.entryway_heat, climate.toy_room_heat, climate.guest_bedroom_heat, climate.theater_room_heat
away_mode: 'on'
# - alias: Winter Night Temp adjustment
# trigger:
# - platform: time
# at: '22:00:00'
# condition:
# condition: or
# conditions:
# - condition: template
# value_template: '{{ now().month == 10 }}'
# - condition: template
# value_template: '{{ now().month == 11 }}'
# - condition: template
# value_template: '{{ now().month == 12 }}'
# - condition: template
# value_template: '{{ now().month == 1 }}'
# - condition: template
# value_template: '{{ now().month == 2 }}'
# - condition: template
# value_template: '{{ now().month == 3 }}'
# - condition: template
# value_template: '{{ now().month == 4 }}'
# action:
# - service: climate.set_temperature
# data:
# entity_id: climate.main_floor_heat, climate.toy_room_heat, climate.kitchen_heat, climate.entryway_heat, climate.theater_room_heat
# temperature: 68
# operation_mode: Heat
# - service: climate.set_temperature
# data:
# entity_id: climate.guest_bedroom_heat, climate.master_bedroom_heat, climate.kids_bedroom_heat
# temperature: 70
# operation_mode: Heat
########## IR Remotes #############
- alias: Projector Receiver Toggle
trigger:
- platform: state
entity_id: input_boolean.receiver
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: "JgCoAQABJZQRFBE4ERQRFBE4ERQRORE4ExIRFBE4ETkRFBE4ETkRFBA5ETkRExE5ERQRExE5ETkRExEUETkRExE5ETgRFBEUEQAFHAABJE0RAAxJAAEmSxIADEgAASZLEgAMSAABJksSAAxIAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAElTBEADEkAASVMEQAMSgABJkoTAAxHAAElTBEADEkAASdIFQAMSAABJEwRAAxKAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASVLEgAMSQABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJkoUAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShQADQU="
- alias: Select Desk LEDs Blue
trigger:
- platform: state
entity_id: input_select.desk_leds
to: "Blue"
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: "JgC4AQABKZQSExMSFBIRFRESFBMRFBISEzcTNxI3FDcTNxI3FDcTNxI4EzcTEhM3EzcSFBISExMRFBISEzcTEhMTETgTNxM3EgAFHQABKUsTAAxUAAEpSxIADFAAASlLEwAMVAABKUsSAAxUAAEqShMADFUAASlLEgAMVQABKUsTAAxUAAEqShMADFQAASpKEwAMVQABKUoTAAxVAAEpShMADFUAASlKEwAMVQABKEsTAAxUAAEpSxIADFUAASlLEgAMVQABKUsTAAxUAAEqShMADFQAASlLEwAMVAABKUsTAAxUAAEpSxMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASpKEwAMVAABKUsTAAxUAAEpSxMADFQAASlLEwAMVAABKkoTAAxUAAEpSxMADFQAASlLEwAMVAABKUsTAAxUAAEpSxIADFUAASlKEwAMVAABKUsTAAxUAAEpShMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASlLEwAMRQABKksTAA0F"
- alias: Select Desk LEDs Maize
trigger:
- platform: state
entity_id: input_select.desk_leds
to: "Maize"
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: "JgCYAQABJ5YRFRETEhMRFRETEhQQFREUEjgRORA5EzgRORA6EjgRORAVERQSOBI4EDoRFBAVEhMSOBI4EBUSExITEDoSOBI4EQAFIAABKEwSAAxWAAEpShEADFcAASdMEQAMVgABJ00SAAxVAAEoSxMADFQAAShLEwAMVAABKUoTAAxUAAEpShMADFQAASlKEwAMVAABKEsTAAxUAAEoSxMADFQAASlKEwAMVAABKUoTAAxUAAEpShMADFQAASlKEwAMVAABKEsTAAxUAAEoSxIADFUAAShLEwAMUwABKUsSAAxUAAEpSxIADFQAASlKEwAMVAABKUoTAAxUAAEpShMADFQAAShLEwAMUwABKUsSAAxUAAEpShMADFQAAShLEwAMUwABKUoTAAxUAAEmTRIADFQAASdMEwAMUwABJ00QAAxWAAEnTBEADFYAASZNEAAMVgABKUoRAAxWAAEpShAADFYAASdNEAAMVgABJ0wRAAxWAAEnTBAADFYAASdMEQAMVgABJ0wQAAxWAAEnTBEADFYAASdMEQANBQ=="
- alias: Select Desk LEDs Green
trigger:
- platform: state
entity_id: input_select.desk_leds
to: "Green"
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: "JgAgAQABKpUSExITERUQFBMTEBURFBITETkSORE4ETkTOBE5EDkTOBI4EBUSExITETkSExEVERMSFBA6EjgRORAVETkQOhI4EgAFIAABKUsSAAxTAAEqShIADFYAASlLEgAMVQABKkoSAAxWAAEpSxIADFYAASlKEwAMVQABKkoSAAxVAAEqShMADFEAASlLEgAMVgABKUsSAAxWAAEpSxIADFYAASpKEgAMVgABKkoSAAxWAAEpSxIADFUAASlLEwAMVQABK0kTAAxVAAEqShMADFQAAStJFAAMVAABK0kUAAxUAAErSRQADFQAAStJFAAMVAABK0kUAAxUAAErSRQADFQAASpKEwAMVAABKUsUAAxUAAEqShMADFIAAStKEwANBQAAAAAAAAAA"
- alias: Select Desk LEDs Red
trigger:
- platform: state
entity_id: input_select.desk_leds
to: "Red"
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: ""
- alias: Select Desk LEDs Smooth
trigger:
- platform: state
entity_id: input_select.desk_leds
to: "Smooth"
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: "JgCYAQABJpYSExITEBURFBEUEBURFBITEDoRORE5EDkTOBE5EDkROhAUEhMRORI5ERMSExEVEBQSORA5EBYQFBI4EjgQOhE5EQAFIAABJ0sSAAxWAAEnSxIADFcAASZMEQAMVQABKEsSAAxWAAEnTBEADFcAASdMEQAMVwABJ0wRAAxXAAEoShIADFYAASlKEgAMVgABKEsSAAxWAAEoSxEADFYAASlKEgAMVgABKUoSAAxWAAEpShIADFYAASlKEgAMVgABKEsRAAxXAAEoSxEADFcAAShKEgAMVgABKUoSAAxWAAEnTBEADFYAAShLEgAMVgABJ0sRAAxXAAEnSxIADFYAASdMEQAMVwABJ0sSAAxWAAEoSxIADFYAASdLEgAMVgABJ0wRAAxWAAEoSxEADFYAAShLEgAMVgABJ0sSAAxWAAEnTBEADFYAASdMEQAMVwABJ0sSAAxWAAEoShMADFUAASdMEgAMVQABKEsSAAxVAAEoSxIADFYAASdLEgAMVgABJ0sSAAxWAAEnSxIADFYAASZMEgANBQ=="
- alias: Select Projector Input Roku
trigger:
- platform: state
entity_id: input_select.projector_input
to: "Roku"
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: "JgAoAgABJpQTEhM2ExITEhM2FBETNhM3FDYTERQ2FDUUERQ2FDUUERM3EzYUNhM2FBETEhMRExITEhMSExETEhM3EzYTNxM2EwAE9gABJkoUAAxHAAEkTBEADEoAASRMEQAMSgABJkoTAAxIAAEkTREADEkAASRNEQAMSQABJE0SAAxIAAEmSxIADEkAASVLEgAMSQABJUsSAAxJAAElSxIADEkAASVLEgAMSQABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAEmSxEADEkAASZLEwAMRwABJksTAAxIAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmSxIADEgAASZLEgAMSAABJksTAAxHAAEmSxMADEcAASZLEwAMSAABJkoTAAxIAAEmShMADEgAASdJEwAMSAABJ0kTAAxIAAEnShMADEcAASdKEwAMRwABJ0oUAAxGAAEnShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJE0TAAxHAAEkTREADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQANBQ=="
- alias: Select Projector Input Cable
trigger:
- platform: state
entity_id: input_select.projector_input
to: "Cable"
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: "JgDgAQABJpMTEhM3EhITEhM3EhITNxM2EzcTEhM2EzcTEhI3EzcSEhMSEzcTNhM3ExISEhMSExITNhMSExITEhI3EzcTNhM3EwAE9QABJksTAAxHAAEmSxMADEgAASVLEwAMSAABJUsTAAxIAAEmShMADEgAASdJFAAMRwABJkoTAAxIAAEmShMADEgAASZLEwAMRwABJksRAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwSAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTREADEkAASRNEQAMSQABJE0RAAxJAAElTBEADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBIADEkAASRNEQAMSQABJE0RAAxJAAEkTREADEkAASZLEQANBQAAAAAAAAAA"
- alias: Select Projector Input DVD
trigger:
- platform: state
entity_id: input_select.projector_input
to: "DVD"
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: "JgDYAgABJJYRExI4ERQRExI4ERQROBE5ETgSExE5ETgRFBE5ETgRFBE5ERMRORE4ERQRFBEUERMRFBE5ERMSExE5ETgRORE4EgAE9wABJE0RAAxJAAEkTREADEkAASRNEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBIADEkAASRNEQAMSQABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAEkTREADEkAASVMFAAMRwABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEgAMSQABJE0RAAxJAAEkTREADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEgAMSQABJE0RAAxJAAEkTREADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEgAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAElTBEADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBIADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTREADEkAASRNEQAMSQABJUwRAA0F"
- alias: Select Projector Input extra
trigger:
- platform: state
entity_id: input_select.projector_input
to: "extra"
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: "JgCYAgABJpMTEhM2FBETEhM2FBETNxM2ExITEhM2EzcTEhM2EzcTERQRExITNhQ2ExITEhMREzcTNhQ2ExITERQ2EzYUNhMSEwAFGgABJkoUAAxHAAEmShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJksTAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEmSxMADEcAASZLEwAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASZLEwAMRwABJkoUAAxHAAEmShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASZLEwAMRwABJkoUAAxHAAEmShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMRwABJ0oTAAxHAAEnShMADEcAASZLEwAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJksTAAxHAAEmSxIADEgAASVLEwAMSAABJEwRAAxKAAEkTBEADEkAASVMEQAMSQABJE0RAAxJAAEkTREADEkAASRMEQAMSgABJUsSAAxJAAElSxIADQU="
########## ALARM ###########
- alias: Trigger alarm while armed home or away
trigger:
- platform: state
entity_id: binary_sensor.shop_door
to: 'on'
- platform: state
entity_id: binary_sensor.garage_motion
to: 'on'
- platform: state
entity_id: binary_sensor.basement_door
to: 'on'
- platform: state
entity_id: binary_sensor.garage_entry
to: 'on'
- platform: state
entity_id: binary_sensor.front_door
to: 'on'
- platform: state
entity_id: binary_sensor.kitchen_door
to: 'on'
- platform: state
entity_id: binary_sensor.kitchen_windows
to: 'on'
- platform: state
entity_id: binary_sensor.front_windows
to: 'on'
- platform: state
entity_id: binary_sensor.master_bedroom
to: 'on'
- platform: state
entity_id: binary_sensor.theater_windows
to: 'on'
- platform: state
entity_id: binary_sensor.hafens_room
to: 'on'
- platform: state
entity_id: binary_sensor.grandmas_room
to: 'on'
- platform: state
entity_id: binary_sensor.gym_window
to: 'on'
condition:
condition: or
conditions:
- condition: state
entity_id: alarm_control_panel.alarm
state: armed_away
- condition: state
entity_id: alarm_control_panel.alarm
state: armed_home
action:
service: alarm_control_panel.alarm_trigger
entity_id: alarm_control_panel.alarm
- alias: Alarm Triggered
trigger:
- platform: state
entity_id: alarm_control_panel.alarm
to: 'triggered'
action:
- service: notify.notify
data:
message: "!Alarm Triggered!"
- service: media_player.alexa_tts
data:
entity_id: media_player.theater_room_dot, media_player.kitchen_dot, media_player.amazon_office, media_player.mom_and_dads_room
message: "The Alarm has been triggered. Input the disarm code or an automated message will be sent to the police in 30 seconds."
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumioboxlocal
source: Sneak Caught
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumiohomelocal
source: Home Alarm
- service: input_select.select_option
data:
entity_id: input_select.all_leds
option: Police All
- service: notify.ios_justin_iphone7
data:
title: ALARM TRIGGERED
message: "Maybe check the cameras"
- service: notify.ios_janis7
data:
title: ALARM TRIGGERED
message: "Scream! Run! Hide!"
####### HomeKit ######
- alias: Homekit Delayed Start
hide_entity: true
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:05
- service: homekit.start
########### Audible Notifications #########
- alias: 'Back Door Open'
hide_entity: true
trigger:
- platform: state
entity_id: binary_sensor.kitchen_door
from: 'off'
to: 'on'
for: '00:02:00'
action:
- service: media_player.alexa_tts
data:
entity_id: media_player.kitchen_dot
message: "Can someone please close the backdoor?"
- service: media_player.alexa_tts
data:
entity_id: media_player.kitchen_dot
message: "Can someone please close the backdoor?"
- alias: 'Garage Fridge Open'
hide_entity: true
trigger:
- platform: state
entity_id: binary_sensor.garage_fridge
from: 'off'
to: 'on'
for: '00:02:00'
action:
- service: media_player.alexa_tts
data:
entity_id: media_player.kitchen_dot
message: "Can someone please close the garage fridge?"
- service: tts.google_say
data:
entity_id: media_player.adenaudiocast
message: "Can someone please close the garage fridge?"
- alias: 'Basement Water Leak'
hide_entity: true
trigger:
- platform: state
entity_id: binary_sensor.basment_water
from: 'off'
to: 'on'
action:
- service: tts.google_say
data:
entity_id: media_player.adenaudiocast
message: "Holy Crap there's water in the Basement again! Call someone, do something, ahhhhhhhh?"
- service: media_player.alexa_tts
data:
entity_id: media_player.dads_office
message: "Holy Crap there's water in the Basement again! Call someone, do something, ahhhhhhhh?"
- service: notify.ios_justin_iphone7
data:
title: WATER LEAK
message: "Holy Crap there's water in the Basement again! Call someone, do something, ahhhhhhhh?"
- service: input_select.select_option
data:
entity_id: input_select.all_leds
option: Police All
########## X-box Warnings ###########
- alias: DrZzs Xbox 2hr warning
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: sensor.drzzs_xbox
to: 'on'
for:
minutes: 120
action:
- service: notify.drzzs_xbox
data:
message: "You've been playing for 2 hours bud. Time to take a break."
- alias: Zach Xbox 3hr text
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: sensor.i_am_zerp
to: 'on'
for:
minutes: 180
action:
service: notify.ios_justin_iphone7
data:
title: "Zach Xbox" #customizable
message: "Zach's been on the Xbox for 3 hours" #customizable
######## Garage #########
- alias: Reset garagePIR state
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.garage_motion
from: 'off'
to: 'on'
for:
seconds: 5
action:
- service: mqtt.publish
data:
topic: tele/RF_Bridge/RESULT
payload: D54C1Eoff
- alias: Garage Lights Off
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.garage_motion
from: 'on'
to: 'off'
for:
minutes: 5
action:
- service: switch.turn_off
data:
entity_id: switch.88800443bcddc2e42e95
- alias: Garage Lights On
hide_entity: true
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.shop_door
to: 'on'
- platform: state
entity_id: binary_sensor.garage_entry
to: 'on'
- platform: state
entity_id: binary_sensor.garage_motion
to: 'on'
condition:
- condition: state
entity_id: switch.88800443bcddc2e42e95
state: 'off'
action:
service: switch.turn_on
data:
entity_id: switch.88800443bcddc2e42e95
- action:
- alias: janis garage notice
data:
message: It's 10pm. I'm closing Janis' garage door
title: Garage Door
service: notify.ios_justin_iphone7
- alias: close her door
data:
payload: OPEN
topic: sensor/garage/actionjanis
service: mqtt.publish
alias: Check on Janis garage door
hide_entity: true
condition:
- condition: state
entity_id: cover.double
state: open
id: '1504414132239'
trigger:
- at: '22:00:00'
platform: time
- action:
- data:
entity_id: cover.double
service: cover.open_cover
alias: CarPresenceJanis_on
hide_entity: true
condition:
- condition: state
entity_id: cover.double
state: closed
id: '1519173799770'
trigger:
- entity_id: binary_sensor.carpresencejanis
from: 'off'
platform: state
to: 'on'
- action:
- data:
entity_id: cover.double
service: cover.close_cover
alias: CarPresenceJanis_off
hide_entity: true
condition:
- condition: state
entity_id: cover.double
state: open
id: '1519174129370'
trigger:
- entity_id: binary_sensor.carpresencejanis
from: 'on'
platform: state
to: 'off'
- action:
- data:
entity_id: cover.test
service: cover.open_cover
alias: CarPresenceJustin_on
hide_entity: true
condition:
- condition: state
entity_id: cover.test
state: closed
id: '1519177386792'
trigger:
- entity_id: binary_sensor.carpresencejustin
from: 'off'
platform: state
to: 'on'
- action:
- data:
entity_id: cover.test
service: cover.close_cover
alias: CarPresenceJustin_off
hide_entity: true
condition:
- condition: state
entity_id: cover.test
state: open
id: '1519177468452'
trigger:
- entity_id: binary_sensor.carpresencejustin
from: 'on'
platform: state
to: 'off'
# - alias: Reset officeWand state
# hide_entity: true
# initial_state: 'on'
# trigger:
# - platform: state
# entity_id: binary_sensor.office_wand
# from: 'off'
# to: 'on'
# for:
# seconds: 5
# action:
# - service: mqtt.publish
# data:
# topic: tele/RF_Bridge/RESULT
# payload: D31421off
# - alias: Reset officeBook state
# hide_entity: true
# initial_state: 'on'
# trigger:
# - platform: state
# entity_id: binary_sensor.office_book
# from: 'off'
# to: 'on'
# for:
# seconds: 5
# action:
# - service: mqtt.publish
# data:
# topic: tele/RF_Bridge/RESULT
# payload: C7C2A19off
# - alias: Office Lock Magic
# hide_entity: true
# initial_state: 'on'
# trigger:
# - platform: state
# entity_id: binary_sensor.office_book
# to: 'on'
# - platform: state
# entity_id: binary_sensor.office_wand
# to: 'on'
# action:
# - service: switch.toggle
# data:
# entity_id: switch.office_lock
# - service: tts.google_say
# data:
# entity_id: media_player.adenaudiocast
# message: "You have chosen wisely. You may enter my realm"
# - alias: Poorly
# hide_entity: True
# trigger:
# - platform: state
# entity_id: binary_sensor.office_wand
# from: 'off'
# to: 'on'
# action:
# - service: media_player.select_source
# data:
# entity_id: media_player.volumio_volumioboxlocal
# source: Poorly
- alias: DrZzs leaving Work
trigger:
- platform: state
entity_id: device_tracker.justin_iphone7
from: 'Work'
to: 'not_home'
action:
- service: notify.notify
data:
message: Daddy just left work, should be home soon
- service: media_player.select_source
data:
entity_id: media_player.volumio_volumiohomelocal
source: DaddyisComingHome
- delay: 00:30:00
- service: input_select.select_option
data:
entity_id: input_select.all_leds
option: Touchdown
- delay: 00:15:00
- service: input_select.select_option
data:
entity_id: input_select.all_leds
option: solid
- delay: 00:00:10
- service: lights.turn_off
entity_id: lights.holiday_lights, lights.side_lights, lights.tree_lights, lights.office_test_lights
# - alias: DrZzs leaving to Janis
# action:
# data:
# message: Dr Zzs just left work
# service: notify.ios_janis_iphone
# alias: Leaving Work notify Janis
# condition: []
# id: '1504118215103'
# trigger:
# - entity_id: device_tracker.justin_iphone7
# from: Work
# platform: state
# to: not_home
# - action:
# alias: my garage notice
# data:
# message: It's 10pm. I'm closing your garage door
# title: Garage Door
# service: notify.justin_iphone7
# - alias: close the door
# data:
# payload: 'ON'
# topic: cmnd/sonoffSV04/POWER
# service: mqtt.publish
# - alias: Check on Justin garage door
# condition:
# - condition: state
# entity_id: cover.test
# state: open
# id: '1504215020828'
# trigger:
# - at: '22:30:00'
# platform: time
- action:
- alias: Halloween Scheduled Lights
data:
payload: Halloween
topic: bruh/mqttstrip/seteffect
service: mqtt.publish
alias: Halloween Lights
hide_entity: true
condition: []
id: '1504484128174'
trigger:
- platform: template
value_template: '"{% if is_state(''sensor.date__time'', ''2017-10-31, 18:00'')
%}true{% endif %}"'
# - action:
# - alias: Lights off
# data:
# entity_id: light.holiday_lights
# service: light.turn_off
# data:
# entity_id: light.tree_lights
# service: light.turn_off
# - data:
# entity_id: light.side_lights
# service: light.turn_off
# alias: Turn off Holiday lights at 10pm
# hide_entity: true
# condition: []
# id: '1506099449511'
# trigger:
# - at: '22:00:00'
# platform: time
- action:
- alias: garage blink
data:
friendly_name: Garage
service: blink.snap_picture
alias: Garage Blink Pic
hide_entity: true
condition: []
id: '1509405186382'
trigger:
- entity_id: input_boolean.garage_blink
from: 'on'
platform: state
to: 'off'
- entity_id: input_boolean.garage_blink
from: 'off'
platform: state
to: 'on'
- action:
- data:
entity_id: switch.office_light
service: switch.turn_on
- data:
entity_id: switch.office_fan
service: switch.turn_on
- data:
entity_id: switch.office_crown
service: switch.turn_on
- data:
entity_id: media_player.spotify
source: Dad's Office
service: media_player.select_source
- data:
entity_id: media_player.spotify
service: media_player.media_play
- alias: ''
data:
entity_id: input_boolean.office_on
service: input_boolean.turn_off
- data:
payload: Touchdown
topic: bruh/mqttstripTEST/seteffect
service: mqtt.publish
- delay: 00:03:00
- data:
entity_id: light.office_test_lights
service: light.turn_off
alias: Office Home
hide_entity: true
condition: []
id: '1514337924171'
trigger:
- entity_id: input_boolean.office_on
from: 'off'
platform: state
to: 'on'
- action:
- data:
entity_id: switch.office_crown
service: switch.turn_off
- data:
entity_id: switch.office_fan
service: switch.turn_off
- data:
entity_id: switch.office_light
service: switch.turn_off
- data:
entity_id: media_player.spotify
service: media_player.media_pause
- data:
entity_id: input_boolean.office_off
service: input_boolean.turn_off
alias: Going to Bed Office
hide_entity: true
condition: []
id: '1514340361137'
trigger:
- entity_id: input_boolean.office_off
from: 'off'
platform: state
to: 'on'
############### Hall 3-way Switches ##############
- action:
- data:
entity_id: switch.upstairs_hall
service: switch.toggle
alias: Multi Switch Hall Lights
hide_entity: true
condition: []
id: '1514764929766'
trigger:
- entity_id: switch.sonoff_11
from: 'on'
platform: state
to: 'off'
- entity_id: switch.sonoff_11
from: 'off'
platform: state
to: 'on'
- entity_id: switch.sonoff_12
from: 'on'
platform: state
to: 'off'
- entity_id: switch.sonoff_12
from: 'off'
platform: state
to: 'on'
- action:
- delay: 00:30:00
- data:
entity_id: switch.back_porch
service: switch.turn_off
alias: side porch timer
hide_entity: true
condition: []
id: '1515120730104'
trigger:
- entity_id: switch.back_porch
from: 'off'
platform: state
to: 'on'
# - action:
# - delay: 00:00:01
# - data:
# payload: 'OFF'
# topic: cmnd/sonoffSV04/POWER
# service: mqtt.publish
# alias: MQTT SV test
# hide_entity: true
# condition: []
# id: '1515737754284'
# trigger:
# - payload: 'ON'
# platform: mqtt
# topic: cmnd/sonoffSV04/POWER
- action:
- data:
entity_id: switch.back_porch
service: switch.turn_off
alias: light timer
hide_entity: true
condition:
- condition: state
entity_id: switch.back_porch
state: 'on'
id: '1519190216462'
trigger:
- at: '22:00:00'
platform: time
- action:
- data:
entity_id: input_select.all_leds
option: Touchdown
service: input_select.select_option