-
Notifications
You must be signed in to change notification settings - Fork 6
/
automations.yaml
2144 lines (2144 loc) · 58.3 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: '1587871051850'
alias: Test Webhook
description: ''
trigger:
- platform: webhook
webhook_id: bladewebhooktest
condition: []
action:
- event: event.hookTriggered
event_data_template:
name: myEvent
customData: '{{ trigger.json }}'
- id: writesteppervaluetestesp32
alias: Write Stepper Value to ESP
trigger:
platform: state
entity_id: input_number.stepper_control
action:
- service: esphome.steppers_control_stepper
data_template:
target: '{{ trigger.to_state.state | int }}'
- id: ACoffifcoldoutside
alias: ACoffifcoldoutside
trigger:
- platform: homeassistant
event: start
condition:
- condition: numeric_state
entity_id: sensor.yr_temperature
below: 65
action:
- service: climate.turn_off
data:
entity_id:
- climate.upstairs_ac
- climate.main_floor_ac
- id: fire_switch_control_crownLEDs
alias: fire_switch_control_crownLEDs
trigger:
- entity_id: switch.master_fire
platform: state
condition: []
action:
service: switch.toggle
entity_id: switch.master_crown
- alias: Holly_LEDs_Button
id: hollyledbutton
trigger:
platform: event
event_type: deconz_event
event_data:
id: transmitter_2_gang
event: 1001
action:
service: mqtt.publish
data:
topic: wled/holly/api
payload: T=2
- alias: Holly_LEDs_Button_tap
id: hollyledbuttontap
trigger:
platform: event
event_type: deconz_event
event_data:
id: transmitter_2_gang
event: 1002
action:
service: mqtt.publish
data:
topic: wled/holly/api
payload: PL=~
- alias: Holly_LEDs_Button_dbltap
id: hollyledbuttondbltap
trigger:
platform: event
event_type: deconz_event
event_data:
id: transmitter_2_gang
event: 1004
action:
service: mqtt.publish
data:
topic: wled/holly/api
payload: NL=15
- alias: Grace_LEDs_Button
id: graceledbutton
trigger:
platform: event
event_type: deconz_event
event_data:
id: transmitter_2_gang
event: 2001
action:
service: mqtt.publish
data:
topic: wled/grace/api
payload: T=2
- alias: Grace_LEDs_Button_tap
id: graceledbuttontap
trigger:
platform: event
event_type: deconz_event
event_data:
id: transmitter_2_gang
event: 2002
action:
service: mqtt.publish
data:
topic: wled/grace/api
payload: PL=~
- alias: Grace_LEDs_Button_dbltap
id: graceledbuttondbltap
trigger:
platform: event
event_type: deconz_event
event_data:
id: transmitter_2_gang
event: 2004
action:
service: mqtt.publish
data:
topic: wled/grace/api
payload: NL=15
- alias: shakeitforbedtime
id: shakeitforbedtime3423895492345
trigger:
platform: event
event_type: deconz_event
event_data:
id: switch_14
event: 7007
action:
service: input_boolean.toggle
entity_id: input_boolean.bedtime
- alias: janis garage button
id: janisgaragebutton12312472895yhsdfj
trigger:
platform: event
event_type: deconz_event
event_data:
id: switch_8
event: 1002
action:
service: switch.toggle
entity_id: switch.janis_garage_control_2
- alias: Main Bathroom Lights Off
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.main_bathroom_motion
from: 'on'
to: 'off'
for:
minutes: 10
action:
- service: switch.turn_off
entity_id: switch.main_bathroom_light, switch.main_bathroom_fan
id: mainbathroomlightoffifnomotion
- alias: turn off quietcool if AC is on
id: 48y54893ytufhjdnvbjkdfu34ry489u234ui23orwedfd
trigger:
- platform: state
entity_id: switch.upstairs_ac
to: 'on'
- platform: state
entity_id: switch.main_floor_ac
to: 'on'
action:
service: switch.turn_off
entity_id: switch.quietcool_low
- alias: turn on quietcool when temp is low outside
id: i482u348923ufjdsknfjkwnr9823ru32unrfjsdnfwc
trigger:
- platform: time
at: 05:00:00
- platform: time
at: '22:00:00'
condition:
- condition: numeric_state
entity_id: sensor.yr_temperature
above: 50
below: 68
- condition: numeric_state
entity_id: sensor.average_upstairs_temp
above: 74
action:
- service: switch.turn_on
entity_id: switch.quietcool_low
- delay: 04:00:00
- service: switch.turn_off
entity_id: switch.quietcool_low
- alias: turn on mudroom lights if motion
id: 47534895yjknfgdfjghelrrjkthhtgdf
trigger:
- platform: state
entity_id: binary_sensor.mudroom_motion
to: 'on'
action:
service: switch.turn_on
entity_id: switch.mudroom_light
- alias: turn off mudroom lights if no motion
id: 47534895y34723894yhjkfdsrrjkthhtgdf
trigger:
- platform: state
entity_id: binary_sensor.mudroom_motion
to: 'off'
for:
minutes: 3
action:
service: switch.turn_off
entity_id: switch.mudroom_light
- alias: window open when quietcool fan is on
id: openwindowwhenquietcoolfanison2875478945y34y
trigger:
- platform: state
entity_id:
- switch.quietcool_low
- switch.quietcool_med
- switch.quietcool_high
from: 'off'
to: 'on'
condition:
condition: or
conditions:
- condition: state
entity_id: binary_sensor.theater_windows
state: 'off'
- condition: state
entity_id: binary_sensor.toyroom_window_state
state: 'off'
action:
- service: cover.open_cover
entity_id:
- cover.window_control
- cover.toyroom_window
- cover.master_bath_window
- alias: window close when quietcool fan is off
id: openwindowwhenquietcoolfanisoff28543545345345
trigger:
- platform: state
entity_id:
- switch.quietcool_low
- switch.quietcool_med
- switch.quietcool_high
from: 'on'
to: 'off'
condition:
condition: or
conditions:
- condition: state
entity_id: binary_sensor.theater_windows
state: 'on'
- condition: state
entity_id: binary_sensor.toyroom_window_state
state: 'on'
action:
- service: cover.close_cover
entity_id:
- cover.window_control
- cover.toyroom_window
- cover.master_bath_window
- alias: temperature to start quietcool fan
id: temptostartqcfan7487238945y
trigger:
- platform: time
at: 07:00:00
- platform: time
at: '20:00:00'
condition:
- condition: numeric_state
entity_id: sensor.yr_temperature
above: 50
below: 68
- condition: numeric_state
entity_id: sensor.upstairs_temp
above: 70
- condition: state
entity_id: switch.quietcool_low
state: 'off'
action:
- service: notify.ios_justin_iphone7
data:
title: It's really nice outside
message: Shall I open the window and turn on the fan?
data:
push:
category: quietcool
- alias: QCfanlow
id: qcfanlow234234234
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: QC_LOW
action:
- service: switch.turn_on
entity_id: switch.quietcool_low
- delay: 01:00:00
- service: switch.turn_off
entity_id: switch.quietcool_low
- alias: QCfanMed
id: qcfanmed234234234
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: QC_MED
action:
- service: switch.turn_on
entity_id: switch.quietcool_med
- delay: 01:00:00
- service: switch.turn_off
entity_id: switch.quietcool_med
- alias: QCfanHigh
id: qcfanhigh234234234
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: QC_HIGH
action:
- service: switch.turn_on
entity_id: switch.quietcool_high
- delay: 01:00:00
- service: switch.turn_off
entity_id: switch.quietcool_high
- alias: who is out of bed
initial_state: false
id: howisoutofbed7583475893475897345
trigger:
- platform: state
entity_id: binary_sensor.ttgocam_pir
from: 'off'
to: 'on'
condition:
condition: time
after: '23:00:00'
before: 05:00:00
action:
- service: notify.ios_justin_iphone7
data:
title: Busted
message: Who is out of Bed?
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.ttgocam_camera
- service: notify.ios_janis7
data:
title: Mommy Alert
message: Who is out of Bed?
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.ttgocam_camera
- alias: girls room doorbell button press
id: girlsroomdoorbellbuttonpress94847589y4rthjs
trigger:
- platform: state
entity_id: binary_sensor.ttgocam_button
from: 'off'
to: 'on'
action:
- service: media_player.alexa_tts
data:
entity_id: media_player.zoe_s_echo_dot
message: Knock Knock. Someone is at the Lovely Beautiful's door
- service: notify.ios_girls_ipad
data:
title: Knock Knock
message: Who is at the door?
data:
attachment:
content-type: jpeg
push:
category: camera
entity_id: camera.ttgocam_camera
- alias: blinds tilt servo input
id: blindstiltservoinput45765934785
trigger:
platform: state
entity_id: input_number.blinds_tilt
action:
- service: esphome.blinds_control_servo
data_template:
level: '{{ trigger.to_state.state | int }}'
- alias: office blinds tilt servo input
id: officeblindstiltservoinput45765934785
trigger:
platform: state
entity_id: input_number.office_blinds_tilt
action:
- service: esphome.office_blinds_control_servo
data_template:
level: '{{ trigger.to_state.state | int }}'
- alias: salt level Notifications
id: saltlevelnotifications3274639872
trigger:
platform: time
at: '15:00:00'
condition:
condition: numeric_state
entity_id: sensor.salt_level
above: 0.39
action:
- service: notify.ios_justin_iphone7
data:
title: Maintenance
message: Water Softener Salt Level is Low
- service: notify.alexa_media
data:
target:
- media_player.justin_s_echo_plus
- media_player.jackson_s_echo_dot
- media_player.justin_s_echo_show
title: Refill Water Softener
data:
type: tts
message: The Salt in the Water Softener is Low. Please get some Salt and Refill
it as soon as possible.
- alias: leaf charging status
id: isdadscarpluggedin0001
trigger:
platform: time
at: '22:00:00'
condition:
condition: and
conditions:
- condition: state
entity_id: device_tracker.life360_drzzs
state: home
- condition: state
entity_id: sensor.adensville_charging_status
state: standby
action:
- service: notify.ios_justin_iphone7
data:
message: It's 10pm and your car isn't charging
data:
attachment:
url: https://468y981o84o43v2wo2600a0gcj-wpengine.netdna-ssl.com/wp-content/uploads/2014/07/LEAF-Charging.png
- service: notify.alexa_media_justin_s_echo_plus
data:
type: tts
message: It's 10pm and your car isn't charging. Maybe you should do something
about that.
- service: notify.alexa_media
data:
target:
- media_player.kitchen_dot_2
- media_player.kitchen
- media_player.justin_s_echo_show
- media_player.zoe_s_echo_dot
data:
type: tts
message: It's 10pm and daddy's car isn't charging. Please make sure he knows
so he can plug it in.
- alias: FHE
initial_state: 'on'
trigger:
- platform: state
entity_id: input_boolean.fhe
to: 'on'
action:
- service: notify.alexa_media
data:
target:
- media_player.basement
- media_player.jackson_s_echo_dot
- media_player.kitchen
- media_player.kitchen_dot_2
- media_player.workbench
- media_player.toy_room_2
- media_player.zoe_s_echo_dot
- media_player.mom_and_dads_room_2
- media_player.garage
- media_player.theater_room
- media_player.justin_s_echo_show
data:
type: announce
message: Everyone please pause what you're doing and come to the Piano Room.
I know you heard me. Yes I mean you too. Everyone gather in the Piano room
or I will shut off everything in the house. Thank you!
id: 0728e0a7aeb849b09ed6392a06fbadf3
- alias: FHE shutdown
initial_state: 'on'
trigger:
- platform: state
entity_id: input_boolean.fhe
to: 'on'
for:
minutes: 5
action:
- service: switch.turn_off
entity_id: switch.toy_room, switch.upstairs_hall, switch.theater, switch.office_light,
switch.office_crown, switch.office_light, switch.master_lights, switch.girls_sun,
switch.girls_lights, switch.boys_sun, switch.boys_lights, switch.boys_shower,
switch.boys_bathroom
id: 507123d287314b4e94e047f9798b14c2
- id: 4d6f13fd347646c99afaa93d0fa03197
alias: Dinner Time
trigger:
- entity_id: input_boolean.dinner_time
platform: state
to: 'on'
action:
- data:
message: Its dinner time. Come and get it while its hot. Please go now, I dont
want your mom to have to yell at you again.
type: tts
service: notify.alexa_media_everywhere
- delay: 0:01
- entity_id: input_boolean.dinner_time
service: input_boolean.turn_off
initial_state: 'on'
- alias: Boys Bathroom Lock on
initial_state: '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
id: a9b4a16ad5ce49eca8ec847711c273bb
- alias: Boys Bathroom Lock off
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.boys_toilet
to: 'off'
action:
- service: switch.turn_off
entity_id: switch.boys_bathroom_lock
id: dd556dc5eec340b5b1976d6b42645ba1
- alias: Boys Bathroom Lock off after 20
initial_state: 'on'
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
id: 0f4e2bd8e3e542d29b790cf70de44b30
- alias: Boys Toilet Destinker
initial_state: 'on'
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
id: 725b8df5d57745f7b0766f80631fcc54
- alias: Main Toilet Destinker
initial_state: 'on'
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
id: 0e3c84d89f9d4f0cafba3d92fd2fe5de
- alias: Master Toilet Destinker
initial_state: 'on'
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
id: f96c692b6395461297acc245e8f3cd77
- alias: Summer Night Temp adjustment
initial_state: 'on'
trigger:
- platform: time
at: '20: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: 80
id: 8948e266c4164b5cbb16e1e79a24abf6
- alias: Summer Daytime Temp adjustment
initial_state: 'on'
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: 76
id: 7484b3bb02134d9982554fb3fd6bcbcb
- alias: No one home Away Mode On
initial_state: 'on'
trigger:
- platform: state
entity_id: device_tracker.life360_mom, device_tracker.life360_drzzs
to: not_home
for:
hours: 24
action:
- service: climate.set_preset_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
preset_mode: away
id: c00e26e2f8b94214a81fc8c5c71b38dd
- alias: Projector Receiver Toggle
initial_state: 'on'
trigger:
- platform: state
entity_id: input_boolean.receiver
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: JgCoAQABJZQRFBE4ERQRFBE4ERQRORE4ExIRFBE4ETkRFBE4ETkRFBA5ETkRExE5ERQRExE5ETkRExEUETkRExE5ETgRFBEUEQAFHAABJE0RAAxJAAEmSxIADEgAASZLEgAMSAABJksSAAxIAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAElTBEADEkAASVMEQAMSgABJkoTAAxHAAElTBEADEkAASdIFQAMSAABJEwRAAxKAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASVLEgAMSQABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJkoUAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShQADQU=
id: cb3a14e7fba742a78a27b499b0bac5a8
- alias: Select Desk LEDs Blue
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.desk_leds
to: Blue
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: JgC4AQABKZQSExMSFBIRFRESFBMRFBISEzcTNxI3FDcTNxI3FDcTNxI4EzcTEhM3EzcSFBISExMRFBISEzcTEhMTETgTNxM3EgAFHQABKUsTAAxUAAEpSxIADFAAASlLEwAMVAABKUsSAAxUAAEqShMADFUAASlLEgAMVQABKUsTAAxUAAEqShMADFQAASpKEwAMVQABKUoTAAxVAAEpShMADFUAASlKEwAMVQABKEsTAAxUAAEpSxIADFUAASlLEgAMVQABKUsTAAxUAAEqShMADFQAASlLEwAMVAABKUsTAAxUAAEpSxMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASpKEwAMVAABKUsTAAxUAAEpSxMADFQAASlLEwAMVAABKkoTAAxUAAEpSxMADFQAASlLEwAMVAABKUsTAAxUAAEpSxIADFUAASlKEwAMVAABKUsTAAxUAAEpShMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASpKEwAMVAABKkoTAAxUAAEqShMADFQAASlLEwAMRQABKksTAA0F
id: 8280772fbac04f11bdc6b2309d8078d7
- alias: Select Desk LEDs Maize
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.desk_leds
to: Maize
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: JgCYAQABJ5YRFRETEhMRFRETEhQQFREUEjgRORA5EzgRORA6EjgRORAVERQSOBI4EDoRFBAVEhMSOBI4EBUSExITEDoSOBI4EQAFIAABKEwSAAxWAAEpShEADFcAASdMEQAMVgABJ00SAAxVAAEoSxMADFQAAShLEwAMVAABKUoTAAxUAAEpShMADFQAASlKEwAMVAABKEsTAAxUAAEoSxMADFQAASlKEwAMVAABKUoTAAxUAAEpShMADFQAASlKEwAMVAABKEsTAAxUAAEoSxIADFUAAShLEwAMUwABKUsSAAxUAAEpSxIADFQAASlKEwAMVAABKUoTAAxUAAEpShMADFQAAShLEwAMUwABKUsSAAxUAAEpShMADFQAAShLEwAMUwABKUoTAAxUAAEmTRIADFQAASdMEwAMUwABJ00QAAxWAAEnTBEADFYAASZNEAAMVgABKUoRAAxWAAEpShAADFYAASdNEAAMVgABJ0wRAAxWAAEnTBAADFYAASdMEQAMVgABJ0wQAAxWAAEnTBEADFYAASdMEQANBQ==
id: 812e653601504c63873d58f053b69d0c
- alias: Select Desk LEDs Green
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.desk_leds
to: Green
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: JgAgAQABKpUSExITERUQFBMTEBURFBITETkSORE4ETkTOBE5EDkTOBI4EBUSExITETkSExEVERMSFBA6EjgRORAVETkQOhI4EgAFIAABKUsSAAxTAAEqShIADFYAASlLEgAMVQABKkoSAAxWAAEpSxIADFYAASlKEwAMVQABKkoSAAxVAAEqShMADFEAASlLEgAMVgABKUsSAAxWAAEpSxIADFYAASpKEgAMVgABKkoSAAxWAAEpSxIADFUAASlLEwAMVQABK0kTAAxVAAEqShMADFQAAStJFAAMVAABK0kUAAxUAAErSRQADFQAAStJFAAMVAABK0kUAAxUAAErSRQADFQAASpKEwAMVAABKUsUAAxUAAEqShMADFIAAStKEwANBQAAAAAAAAAA
id: 7a524f8ce9514511b186268c83271aa7
- alias: Select Desk LEDs Red
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.desk_leds
to: Red
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: ''
id: 41cc87d510a14a5c9512202311ec0220
- alias: Select Desk LEDs Smooth
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.desk_leds
to: Smooth
action:
- service: switch.broadlink_send_packet_192_168_1_62
data:
packet: JgCYAQABJpYSExITEBURFBEUEBURFBITEDoRORE5EDkTOBE5EDkROhAUEhMRORI5ERMSExEVEBQSORA5EBYQFBI4EjgQOhE5EQAFIAABJ0sSAAxWAAEnSxIADFcAASZMEQAMVQABKEsSAAxWAAEnTBEADFcAASdMEQAMVwABJ0wRAAxXAAEoShIADFYAASlKEgAMVgABKEsSAAxWAAEoSxEADFYAASlKEgAMVgABKUoSAAxWAAEpShIADFYAASlKEgAMVgABKEsRAAxXAAEoSxEADFcAAShKEgAMVgABKUoSAAxWAAEnTBEADFYAAShLEgAMVgABJ0sRAAxXAAEnSxIADFYAASdMEQAMVwABJ0sSAAxWAAEoSxIADFYAASdLEgAMVgABJ0wRAAxWAAEoSxEADFYAAShLEgAMVgABJ0sSAAxWAAEnTBEADFYAASdMEQAMVwABJ0sSAAxWAAEoShMADFUAASdMEgAMVQABKEsSAAxVAAEoSxIADFYAASdLEgAMVgABJ0sSAAxWAAEnSxIADFYAASZMEgANBQ==
id: 3b3c6dc9cf5c4e9fa2af736e5d62a352
- alias: Select Projector Input Roku
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.projector_input
to: Roku
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: JgAoAgABJpQTEhM2ExITEhM2FBETNhM3FDYTERQ2FDUUERQ2FDUUERM3EzYUNhM2FBETEhMRExITEhMSExETEhM3EzYTNxM2EwAE9gABJkoUAAxHAAEkTBEADEoAASRMEQAMSgABJkoTAAxIAAEkTREADEkAASRNEQAMSQABJE0SAAxIAAEmSxIADEkAASVLEgAMSQABJUsSAAxJAAElSxIADEkAASVLEgAMSQABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAEmSxEADEkAASZLEwAMRwABJksTAAxIAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmSxIADEgAASZLEgAMSAABJksTAAxHAAEmSxMADEcAASZLEwAMSAABJkoTAAxIAAEmShMADEgAASdJEwAMSAABJ0kTAAxIAAEnShMADEcAASdKEwAMRwABJ0oUAAxGAAEnShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMSAABJE0TAAxHAAEkTREADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQANBQ==
id: 71f9e69542d14f39a768f7ca213662d4
- alias: Select Projector Input Cable
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.projector_input
to: Cable
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: JgDgAQABJpMTEhM3EhITEhM3EhITNxM2EzcTEhM2EzcTEhI3EzcSEhMSEzcTNhM3ExISEhMSExITNhMSExITEhI3EzcTNhM3EwAE9QABJksTAAxHAAEmSxMADEgAASVLEwAMSAABJUsTAAxIAAEmShMADEgAASdJFAAMRwABJkoTAAxIAAEmShMADEgAASZLEwAMRwABJksRAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwSAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTREADEkAASRNEQAMSQABJE0RAAxJAAElTBEADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBIADEkAASRNEQAMSQABJE0RAAxJAAEkTREADEkAASZLEQANBQAAAAAAAAAA
id: 6f6b8f682ddd4ad884e1639025d79534
- alias: Select Projector Input DVD
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.projector_input
to: DVD
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: JgDYAgABJJYRExI4ERQRExI4ERQROBE5ETgSExE5ETgRFBE5ETgRFBE5ERMRORE4ERQRFBEUERMRFBE5ERMSExE5ETgRORE4EgAE9wABJE0RAAxJAAEkTREADEkAASRNEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBIADEkAASRNEQAMSQABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAEkTREADEkAASVMFAAMRwABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJE0RAAxJAAEkTREADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEgAMSQABJE0RAAxJAAEkTREADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEgAMSQABJE0RAAxJAAEkTREADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRMEgAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAElTBEADEkAASVMEQAMSgABJEwRAAxKAAEkTBEADEoAASRNEQAMSQABJE0RAAxJAAElTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTBIADEkAASRNEQAMSQABJUwRAAxKAAEkTBEADEoAASRMEQAMSgABJEwRAAxKAAEkTREADEkAASRNEQAMSQABJUwRAA0F
id: 417dc34db40446e2b0bb00438a30ff5b
- alias: Select Projector Input extra
initial_state: 'on'
trigger:
- platform: state
entity_id: input_select.projector_input
to: extra
action:
- service: switch.broadlink_send_packet_192_168_1_66
data:
packet: JgCYAgABJpMTEhM2FBETEhM2FBETNxM2ExITEhM2EzcTEhM2EzcTERQRExITNhQ2ExITEhMREzcTNhQ2ExITERQ2EzYUNhMSEwAFGgABJkoUAAxHAAEmShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJksTAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEgAASZKEwAMRwABJ0oTAAxHAAEnShMADEcAASdKEwAMRwABJ0oTAAxHAAEmSxMADEcAASZLEwAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASZLEwAMRwABJkoUAAxHAAEmShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEnShMADEcAASZLEwAMRwABJkoUAAxHAAEmShQADEcAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJ0oTAAxHAAEmShQADEcAASZKFAAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMRwABJ0oTAAxHAAEnShMADEcAASZLEwAMRwABJkoUAAxHAAEmShMADEgAASZKEwAMSAABJkoTAAxIAAEmShMADEcAASdKEwAMRwABJksTAAxHAAEmSxIADEgAASVLEwAMSAABJEwRAAxKAAEkTBEADEkAASVMEQAMSQABJE0RAAxJAAEkTREADEkAASRMEQAMSgABJUsSAAxJAAElSxIADQU=
id: 1142c7e7a9f347bc9edc8cb465990279
- alias: Trigger alarm while armed home or away
initial_state: 'on'
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_doors
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
id: a55d6b63cb9346488b00ad75b882b4c8
- alias: Alarm Triggered
initial_state: 'on'
trigger:
- platform: state
entity_id: alarm_control_panel.alarm
to: triggered
action:
- service: notify.alexa_media_echo_show
data:
message: The Alarm has been triggered. Input the disarm code or an automated
message will be sent to the police in 30 seconds.
data:
type: announce
- service: light.turn_on
data:
entity_id: light.windows_2
effect: Police All
- service: media_player.volume_set
data:
entity_id: media_player.office_display
volume_level: 0.9
- delay: 00:00:10
- service: media_player.play_media
data:
entity_id: media_player.office_display
media_content_id: http://192.168.1.71:8123/local/audio/labrador-barking-daniel_simon.mp3
media_content_type: music
- delay: 00:00:30
- service: media_player.play_media
data:
entity_id: media_player.justin_s_echo_plus
media_content_id: police sirens
media_content_type: SPOTIFY
- service: notify.notify
data:
message: '!Alarm Triggered!'
- delay: 00:01:00
- service: light.turn_off
data:
entity_id: light.windows_2
id: fa737cb5d10b410eb3fb083c8113dd2f
- alias: Homekit Delayed Start
initial_state: 'on'
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:05
- service: homekit.start
id: aab945cad3e8491a95bde9cd0c5e496d
- id: ae896abf285e4e83a324fe48aaa42682
alias: Back Door Open
trigger:
- entity_id: binary_sensor.kitchen_door
for: 00:02:00
from: 'off'
platform: state
to: 'on'
action:
- data:
target:
- media_player.justin_s_echo_show
title: Close the Backdoor
data:
type: tts
message: Can someone please close the backdoor?
service: notify.alexa_media
initial_state: 'on'
- alias: Garage Fridge Open
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.garage_fridge
from: 'off'
to: 'on'
for: 00:05:00
action:
- service: notify.alexa_media_everywhere
data:
type: tts
message: Can someone please close the garage fridge?
id: 1962b6a39a044432b2d7ce2827420a1e
- alias: Basement Water Leak
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.basment_water
from: 'off'
to: 'on'
action:
- service: notify.alexa_media_everywhere
data:
type: tts
message: Holy Crap there's water in the Basement again! Call someone, do something,
ahhhhhhhh?
id: 7cbfef8b83d74ccc9b224c230206c9d8
- alias: Reset garagePIR state
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
id: 942c07bde7734b5e8c14b73f0c8cd8c9
- id: 272f2724cb7f41cda55cf7243f34rfsd
alias: Boy Bathroom Lights Off
trigger:
- entity_id: binary_sensor.boys_bathroom_motion
for: 00:10:00
platform: state
to: 'off'
action:
- data:
entity_id: switch.boys_bathroom
service: switch.turn_off
- data:
entity_id: switch.boys_shower
service: switch.turn_off
initial_state: 'on'
mode: single
- id: 957b28584f3543bb862d5dc3b18689fd
alias: Garage Lights On
trigger:
- entity_id: binary_sensor.shop_door
platform: state
to: 'on'
- entity_id: binary_sensor.garage_entry
platform: state
to: 'on'
- entity_id: binary_sensor.garage_motion
platform: state
to: 'on'
condition: []
action:
- device_id: 3d20aefb2ec74b398ed8dbcf5a61ebe4
domain: switch
entity_id: switch.garage_lights
type: turn_on
- delay: 00:05:00
- device_id: 3d20aefb2ec74b398ed8dbcf5a61ebe4
domain: switch
entity_id: switch.garage_lights
type: turn_off
initial_state: 'on'
mode: restart
- action:
- data:
entity_id: cover.test
service: cover.open_cover
alias: CarPresenceJustin_on
initial_state: 'on'
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
initial_state: 'on'
condition:
- condition: state
entity_id: cover.test
state: open
id: '1519177468452'
trigger: