-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathautomations.yaml
1174 lines (1162 loc) · 31.2 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: '1534899458430'
alias: 'Exterior Lights: On at Dusk'
trigger:
- event: sunset
offset: -00:10
platform: sun
- platform: sun
event: sunset
offset: -00:08
condition: []
action:
- data: {}
service: light.turn_on
target:
entity_id:
- light.string_lights
- light.front_porch_lights
- light.front_landscape_lights
- light.pool_light
- light.holiday_spotlight
- light.christmas_eave_lights
- light.olive_tree_holiday_lights
- light.ash_tree_holiday_lights
- light.front_pine_tree_holiday_lights
- light.backyard_landscape_lights
- light.front_landscape_lights_power
- light.north_front_yard_holiday_lights
- light.northern_string_lights
- light.controller_rgbw_c3c8ba
- id: '1534899747739'
alias: 'Exterior Lights: Off at 10pm'
trigger:
- at: '22:00:00'
platform: time
- platform: time
at: '22:02:00'
condition: []
action:
- data: {}
service: light.turn_off
target:
entity_id:
- light.string_lights
- light.front_porch_lights
- light.front_landscape_lights
- light.pool_light
- light.holiday_spotlight
- light.christmas_eave_lights
- light.olive_tree_holiday_lights
- light.ash_tree_holiday_lights
- light.front_pine_tree_holiday_lights
- light.backyard_landscape_lights
- light.front_landscape_lights_power
- light.north_front_yard_holiday_lights
- light.northern_string_lights
- light.controller_rgbw_c3c8ba
mode: single
- id: '1537420454578'
alias: 'HAStatus: Shutdown'
trigger:
- event: shutdown
platform: homeassistant
condition: []
action:
- data:
message: brb
service: notify.nick
- id: '1537420502502'
alias: 'HAStatus: Start'
trigger:
- event: start
platform: homeassistant
condition: []
action:
- data:
message: back
service: notify.nick
- id: '1537936842222'
alias: 'Alarm State: Armed, Run "Alarm State: Armed (Any)" Script'
trigger:
- entity_id: alarm_control_panel.home_alarm
platform: state
to: armed_night
- entity_id: alarm_control_panel.home_alarm
platform: state
to: armed_home
- entity_id: alarm_control_panel.home_alarm
platform: state
to: armed_away
condition: []
action:
- service: script.alarm_state_armed_any
- id: '1537938020420'
alias: 'Alarm State: Disarmed, run Disarmed script'
trigger:
- entity_id: alarm_control_panel.home_alarm
platform: state
to: disarmed
condition: []
action:
- service: script.alarm_state_disarmed
- id: '1538007620959'
alias: 'Alarm State: Armed Night, run "Armed Night" script'
trigger:
- entity_id: alarm_control_panel.home_alarm
platform: state
to: armed_night
condition: []
action:
- service: script.alarm_state_armed_night
- id: '1538111242565'
alias: 'Security: Doop Doop when backyard motion and armed night'
trigger:
- entity_id: group.motion_backyard
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_night
- condition: state
entity_id: group.motion_front_yard
state: 'on'
action:
- service: script.siren_beep_beep
- id: backyard_flood_lights_on_when_back_door_unlocked
alias: 'Backyard Floodlights On When Back Door Unlocked '
trigger:
- entity_id: lock.kwikset_touchpad_electronic_deadbolt_locked
from: locked
platform: state
to: unlocked
condition:
- condition: state
entity_id: light.backyard_flood_lights
state: 'off'
- after: sunset
after_offset: 00:30:00
condition: sun
action:
- data:
entity_id: light.backyard_flood_lights
service: homeassistant.turn_on
- id: backyard_flood_lights_off_when_back_door_locked
alias: 'Backyard Floodlights Off When Back Door Locked '
trigger:
- entity_id: lock.kwikset_touchpad_electronic_deadbolt_locked
from: unlocked
platform: state
to: locked
condition:
- condition: state
entity_id: light.backyard_flood_lights
state: 'on'
- after: sunset
after_offset: 00:30:00
condition: sun
action:
- data:
entity_id: light.backyard_flood_lights
service: homeassistant.turn_off
- id: '1547347950847'
alias: Zwift Level Up
trigger:
- entity_id: sensor.zwift_level_803962
platform: state
condition:
- condition: template
value_template: '{{ trigger.to_state.state | int > trigger.from_state.state |
int }}'
action:
- data:
message: congrats on your zwift level!
service: notify.nick
- id: '1550015887078'
alias: 'Nick gets Home by car/bike: Activate Scene'
trigger:
- entity_id: input_boolean.presence_nick_homekit
from: 'off'
platform: state
to: 'on'
condition:
- above: '7'
condition: numeric_state
entity_id: sensor.velocity_nick
action:
- scene: scene.nick_gets_home
- service: cover.open_cover
data: {}
entity_id: cover.driveway_swing_gate
mode: single
- id: '1551828897602'
alias: HA Server Overload
trigger:
- above: '2'
entity_id: sensor.load_5m
platform: numeric_state
condition: []
action:
- data:
message: Homeassistant load has been over 2.00 for the 5m average... might want
to look into it
service: notify.nick
- id: '1558144520212'
alias: turn off pool lights when you turn them on
trigger:
- entity_id: light.pool_light
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: light.pool_light
service: light.turn_off
- id: '1561093920492'
alias: flood lights off automatically
trigger:
- entity_id: light.backyard_flood_lights
platform: state
to: 'on'
condition: []
action:
- service: light.turn_off
data:
entity_id: light.backyard_flood_lights
- id: '1567051911910'
alias: Pantry Light Off After 3 Mins
trigger:
- entity_id: light.pantry_light
for: 00:03:00
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: light.pantry_light
service: light.turn_off
- id: '1573699277520'
alias: Garage Lights Off After 2.5 Mins No Motion
description: ''
trigger:
- entity_id: binary_sensor.garage_camera_motion
for: 00:02:30
platform: state
to: 'off'
- entity_id: light.garage_overhead_light
for: 00:02:30
platform: state
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.garage_camera_motion
state: 'off'
action:
- data:
entity_id: light.garage_overhead_light
service: light.turn_off
- id: '1573699279520'
alias: Ballet Studio Lights Off After 5 Mins No Motion
description: ''
trigger:
- entity_id: binary_sensor.ballet_studio_camera_motion_sensor_debounced
for: 00:05:00
platform: state
to: 'off'
- entity_id: light.zwaveproducts_com_wd_100_level_2
for: 00:05:00
platform: state
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.ballet_studio_camera_motion_sensor_debounced
state: 'off'
action:
- data:
entity_id: light.zwaveproducts_com_wd_100_level_2
service: light.turn_off
- id: '1573699508759'
alias: Garage Lights On If Doors Open After Dusk
description: ''
trigger:
- above: '0'
entity_id: sensor.garage_door_position
for: 00:00:01
platform: numeric_state
- entity_id: binary_sensor.garage_interior_door
platform: state
to: 'on'
condition:
- after: '16:00:00'
before: '6:00:00'
condition: time
action:
- data:
entity_id: light.garage_overhead_light
service: homeassistant.turn_on
- id: '1580193218706'
alias: Plant room lights on at sunrise
description: ''
trigger:
- event: sunrise
platform: sun
condition: []
action:
- entity_id: light.zwaveproducts_com_wd_100_level_4
service: light.turn_on
- id: '1580193276234'
alias: Plant room lights off at sundown
description: ''
trigger:
- event: sunset
platform: sun
condition: []
action:
- entity_id: light.zwaveproducts_com_wd_100_level_4
service: light.turn_off
- id: '1581130104525'
alias: Ballet studio lights on when motion detected at night
description: ''
trigger:
- entity_id: binary_sensor.ballet_studio_camera_motion_sensor_debounced
from: 'off'
platform: state
to: 'on'
condition:
- after: sunset
condition: sun
action:
- entity_id: light.zwaveproducts_com_wd_100_level_2
service: light.turn_on
- id: '1582359841784'
alias: porch lights on when front yard motion after dark
description: ''
trigger:
- entity_id: binary_sensor.front_door_camera_motion_detected
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.front_yard_camera_motion
from: 'off'
platform: state
to: 'on'
condition:
- after: sunset
after_offset: 01:30:00
before: sunrise
before_offset: 00:30:00
condition: sun
action:
- entity_id: light.front_porch_lights
service: light.turn_on
- id: '1582359845715'
alias: porch lights on when front yard motion after dark
description: ''
trigger:
- entity_id: binary_sensor.front_door_camera_motion_detected
platform: state
to: 'on'
- entity_id: binary_sensor.front_yard_camera_motion
platform: state
to: 'on'
condition:
- after: sunset
after_offset: 01:30:00
before: sunrise
before_offset: 00:30:00
condition: sun
action:
- entity_id: light.front_porch_lights
service: light.turn_on
- id: '1582360083628'
alias: porch lights off if on after 10pm for more than 2 minutes
description: ''
trigger:
- entity_id: light.front_porch_lights
for: 00:02:00
platform: state
to: 'on'
condition:
- condition: or
conditions:
- before: sunrise
before_offset: -00:15:00
condition: sun
- after: '22:00:00'
condition: time
action:
- entity_id: light.front_porch_lights
service: light.turn_off
- id: '1583941722746'
alias: 'Internet: came back online'
description: ''
trigger:
- entity_id: binary_sensor.internet_connection_status
from: 'off'
platform: state
to: 'on'
condition:
- condition: template
value_template: '{{ (now() - trigger.from_state.last_changed).total_seconds()
> 60 }}'
action:
- data:
message: The internet connection at home is back online after {{ ((now() - states.binary_sensor.internet_connection_status.last_changed).total_seconds()
/ 60) | int }}m{{ ((now() - states.binary_sensor.internet_connection_status.last_changed).total_seconds()
% 60) | int }}s!
service: notify.nick
- data:
message: The internet is back online!
service: script.alexa_announcement
mode: single
- id: '1585787709740'
alias: Zwift Ride On
description: ''
trigger:
- event_data: {}
event_type: ''
platform: event
condition: []
action:
- data:
message: ride on!
service: script.notify_alexa
- data:
message: ride on!
service: notify.nick
- id: '1587237199784'
alias: 'Nick gets Home by walking: Activate Scene'
description: ''
trigger:
- entity_id: input_boolean.presence_nick_homekit
from: 'off'
platform: state
to: 'on'
condition:
- below: '7'
condition: numeric_state
entity_id: sensor.velocity_nick
action:
- data: {}
service: script.alarm_disarm
- scene: scene.nick_gets_home_by_walking
- id: '1589162185956'
alias: Kitchen Lights On With Motion
description: ''
trigger:
- entity_id: binary_sensor.konnected_motion_kitchen
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- before: sunrise
before_offset: -00:10:00
condition: sun
- after: sunset
after_offset: -00:40:00
condition: sun
- condition: state
entity_id: light.kitchen_sconces
for: 00:00:05
state: 'off'
action:
- data: {}
entity_id: light.kitchen_sconces
service: light.turn_on
- id: '1589323818157'
alias: Kitchen Lights Off when No Motion
description: ''
trigger:
- entity_id: binary_sensor.konnected_motion_kitchen
for: 00:15:00
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data: {}
entity_id: light.kitchen_sconces
service: light.turn_off
- id: '1590342751412'
alias: 'iOS Action : Beer'
description: increments beer counter by one
trigger:
- event_data:
actionName: beer
event_type: ios.action_fired
platform: event
condition: []
action:
- data_template:
entity_id: input_number.ounces_of_beer
value: '{{ (states.input_number.ounces_of_beer.state | int ) + 1 }}'
service: input_number.set_value
- id: '1592460864088'
alias: Master Subwoofer On With Amp
description: ''
trigger:
- entity_id: switch.master_bedroom_powerstrip_socket_1
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data: {}
entity_id: switch.master_bedroom_powerstrip_socket_2
service: switch.turn_on
- id: '1592460866877'
alias: Master Subwoofer On With Amp
description: ''
trigger:
- entity_id: switch.master_bedroom_powerstrip_socket_1
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data: {}
entity_id: switch.master_bedroom_powerstrip_socket_2
service: switch.turn_on
- id: '1592460952328'
alias: Master Subwoofer Off With Amp
description: ''
trigger:
- entity_id: switch.master_bedroom_powerstrip_socket_1
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data: {}
entity_id: switch.master_bedroom_powerstrip_socket_2
service: switch.turn_off
- id: '1593232218257'
alias: Dining Room Lights On Motion
description: ''
trigger:
- entity_id: binary_sensor.konnected_motion_dining_room
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- before: sunrise
before_offset: -00:10:00
condition: sun
- after: sunset
after_offset: -00:40:00
condition: sun
- condition: state
entity_id: light.zwaveproducts_com_wd_100_level
for: 00:00:05
state: 'off'
action:
- data: {}
entity_id: light.zwaveproducts_com_wd_100_level
service: light.turn_on
- id: '1593232338954'
alias: Dining Room Lights Off No Motion
description: ''
trigger:
- entity_id: binary_sensor.konnected_motion_dining_room
for: 00:20:00
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data: {}
entity_id: light.zwaveproducts_com_wd_100_level
service: light.turn_off
- id: '1593233346948'
alias: Master Bedroom Lights On Motion
description: ''
trigger:
- entity_id: binary_sensor.konnected_motion_master_bedroom
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- before: sunrise
before_offset: -00:10:00
condition: sun
- after: sunset
after_offset: -00:40:00
condition: sun
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_night
- condition: state
entity_id: light.leviton_dzmx1_1lz_dimmer_level
for: 00:00:05
state: 'off'
action:
- data: {}
entity_id: light.leviton_dzmx1_1lz_dimmer_level
service: light.turn_on
- id: '1593233573752'
alias: Master Bedroom Lights Off No Motion
description: ''
trigger:
- entity_id: binary_sensor.konnected_motion_master_bedroom
for: 00:15:00
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data: {}
entity_id: light.leviton_dzmx1_1lz_dimmer_level
service: light.turn_off
- id: '1603835967318'
alias: Pedestrian Gate Open In Night Mode
description: ''
trigger:
- device_id: 604fb2f1eced4b23971103bcab4aeca9
domain: binary_sensor
entity_id: binary_sensor.driveway_pedestrian_gate
for:
hours: 0
minutes: 0
seconds: 2
platform: device
type: opened
condition:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_night
action:
- device_id: deaf39e9c0f843eda4386b7c325a13e9
domain: switch
entity_id: switch.konnected_alarm_bell
type: turn_on
- data: {}
entity_id: light.front_landscape_lights
service: light.turn_on
- data: {}
entity_id: light.front_porch_lights
service: light.turn_on
- data: {}
entity_id: light.living_room_lights
service: light.turn_on
- service: notify.mobile_app_spacecell
data:
title: the fucken gate opened
message: that guy is probably here
data:
push:
sound:
name: default
critical: 1
volume: 1
mode: single
- id: '1603862067713'
alias: turn off alarm after 3min
description: ''
trigger:
- device_id: deaf39e9c0f843eda4386b7c325a13e9
domain: switch
entity_id: switch.konnected_alarm_bell
for:
hours: 0
minutes: 3
seconds: 0
platform: device
type: turned_on
condition: []
action:
- device_id: deaf39e9c0f843eda4386b7c325a13e9
domain: switch
entity_id: switch.konnected_alarm_bell
type: turn_off
mode: single
- id: '1603906962823'
alias: Moen Flo To Away When Alarm Away
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
to: armed_away
condition: []
action:
- service: flo.set_away_mode
data: {}
entity_id: switch.shutoff_valve
mode: single
- id: '1603907093782'
alias: Moen Flo to Home when Alarm Disarmed
description: ''
trigger:
- platform: state
entity_id: alarm_control_panel.home_alarm
from: armed_away
to: armed_home
- platform: state
entity_id: alarm_control_panel.home_alarm
from: armed_away
to: disarmed
condition: []
action:
- service: flo.set_home_mode
data: {}
entity_id: switch.shutoff_valve
mode: single
- id: '1617582655772'
alias: Home Assistant update notification
description: ''
use_blueprint:
path: Klumper/update_notification.yaml
input:
notification_message: Home Assistant {{ newest_version }} is available
delay: 0
updater: binary_sensor.updater
notify_device: 31a0fe0697834079bfc41dcd13669f6b
- id: '1622606858616'
alias: Run Sprinklers on Schedule
description: ''
trigger:
- platform: time
at: 04:00
condition:
- condition: time
weekday:
- wed
action:
- service: script.front_yard_sprinklers_full_cycle
mode: single
- id: '1622995690538'
alias: Zwift Speed Fan Control
trigger:
- platform: numeric_state
entity_id: sensor.zwift_speed_803962
below: 10
- platform: numeric_state
entity_id: sensor.zwift_speed_803962
above: 10
below: 25
- platform: numeric_state
entity_id: sensor.zwift_speed_803962
above: 25
below: 40
- platform: numeric_state
entity_id: sensor.zwift_speed_803962
above: '40'
action:
- service: fan.turn_on
data_template:
entity_id: fan.portable_wifi_fan
speed: '{% set hr = states(''sensor.zwift_speed_803962'') | float %} {% if hr
<= 10 %} off {% elif hr > 10 and hr <= 25 %} low {% elif hr > 25 and hr <=
40 %} medium {% elif hr > 40 %} high {% endif %}'
mode: single
- id: '1624461794899'
alias: Turn Stuff Off In Summer At 11am
description: ''
trigger:
- platform: time
at: '10:59'
condition:
- condition: template
value_template: '{{ now().month >= 6 and now().month <= 9 and now().weekday()
<= 4 }}'
action:
- service: switch.turn_off
target:
entity_id:
- switch.master_bedroom_humidifier
- switch.coffee_machine_switch
- switch.master_bedroom_powerstrip_socket_1
- switch.master_bedroom_powerstrip_socket_2
- service: light.turn_off
target:
entity_id:
- light.zwaveproducts_com_wd_100_level_4
- light.kitchen_sconces
- light.zwaveproducts_com_wd_100_level_2
- light.leviton_dzmx1_1lz_dimmer_level
- light.living_room_lights
- light.garage_overhead_light
- light.inovelli_lzw31_sn_dimmer_red_series_level_4
- light.office_desk_lamp
- light.pantry_light_conditional
- light.ballet_studio_lamp
- light.zwaveproducts_com_wd_100_level
mode: single
- id: '1625666458279'
alias: Coffee Machine Schedule
description: ''
trigger:
- platform: time
at: input_datetime.coffee_machine_start_time
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.coffee_machine_switch
- service: homeassistant.turn_off
target:
entity_id: automation.coffee_machine_schedule
mode: single
- id: '1628369471321'
alias: Sync AQI to Alexa Sensor
description: ''
trigger:
- platform: state
entity_id: sensor.airnow_aqi
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.air_quality_index_for_alexa
data:
value: '{{ states(''sensor.airnow_aqi'') | int }}'
mode: single
- id: '1628373516745'
alias: Air Quality Notifications
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.airnow_aqi
below: 50
- platform: numeric_state
entity_id: sensor.airnow_aqi
above: 50
below: 100
- platform: numeric_state
entity_id: sensor.airnow_aqi
above: 100
below: 150
- platform: numeric_state
entity_id: sensor.airnow_aqi
above: '150'
below: '200'
- platform: numeric_state
entity_id: sensor.airnow_aqi
above: '200'
below: '300'
- platform: numeric_state
entity_id: sensor.airnow_aqi
above: '300'
condition: []
action:
- service: notify.nick
data_template:
message: 'Air quality alert: {% if trigger.get(''to_state'') %}{% if trigger.to_state.state|int(default=0)
> trigger.from_state.state|int(default=0) %} Air quality is getting worse. {%
else %} Air quality is improving. {% endif %}{% endif %} {% set aqi = states(''sensor.airnow_aqi'')
| int %} A Q I is {{ aqi }}
'
- service: script.alexa_announcement
data:
message: 'Air quality alert: {% if trigger.get(''to_state'') %}{% if trigger.to_state.state|int
> trigger.from_state.state|int %} Air quality is getting worse. {% else %}
Air quality is improving. {% endif %}{% endif %} {% set aqi = states(''sensor.airnow_aqi'')
| int %} A Q I is {{ aqi }}.
'
mode: single
- id: '1632367714028'
alias: FreeNAS Alert Level
description: ''
trigger:
- platform: state
entity_id: sensor.freenas_alert_level
condition: []
action:
- service: notify.nick
data_template:
message: 'FreeNAS Alert ({{states("sensor.freenas_alert_level")}}) : {{ states(''sensor.freenas_alert_message'')
}}'
mode: single
- id: '1637732207612'
alias: Leak Detected - Shut off water
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.govee_leak_detector_25410
- binary_sensor.govee_leak_detector_28624
- binary_sensor.govee_leak_detector_26832
- binary_sensor.govee_leak_detector_27124
- binary_sensor.govee_leak_detector_23480
- binary_sensor.govee_leak_detector_2842
- binary_sensor.govee_leak_detector_2186
to: 'on'
condition: []
action:
- type: turn_off
device_id: 6a9e8e74194111eba48e6bcf988c4893
entity_id: switch.shutoff_valve
domain: switch
- service: notify.mobile_app_spacecell
data:
title: Water leak detected!
message: A water leak has been detected in the {{ state_attr(trigger.entity_id,'friendly_name')
| replace('Leak Sensor - ','') }}!! Water will be shut off immediately!
data:
push:
sound:
name: default
critical: 1
volume: 1
mode: single
- id: '1638817196166'
alias: Gurushots vote reminder!
description: ''
trigger:
- platform: time_pattern
minutes: /30
condition: []
action:
- service: notify.nick
data:
message: Time to vote!
title: VOTE!
mode: single
- id: '1643034875718'
alias: 'Greenhouse: Lights on at sunrise'
description: ''
trigger:
- platform: sun
event: sunrise
offset: '0'
condition: []
action:
- type: turn_on
device_id: c4b474e9ab703a1301179d979acc783c
entity_id: switch.greenhouse_powerstrip_socket_1
domain: switch
mode: single
- id: '1643034917185'
alias: 'Greenhouse: Lights off at sundown'
description: ''
trigger:
- platform: sun
event: sunset
offset: '0'
condition: []
action:
- type: turn_off
device_id: c4b474e9ab703a1301179d979acc783c
entity_id: switch.greenhouse_powerstrip_socket_1
domain: switch
mode: single
- id: '1646025607997'
alias: Greenhouse Fan Shutoff Timer
description: ''
trigger:
- platform: time_pattern
minutes: '*'
condition:
- condition: device
type: is_on
device_id: c4b474e9ab703a1301179d979acc783c
entity_id: switch.greenhouse_powerstrip_usb_ports
domain: switch
- condition: template
value_template: '{{ as_timestamp(now()) - as_timestamp(states.switch.greenhouse_powerstrip_usb_ports.last_changed)
> (states(''input_number.greenhouse_fan_run_time'') | int * 60) }}'
action:
- type: turn_off
device_id: c4b474e9ab703a1301179d979acc783c
entity_id: switch.greenhouse_powerstrip_usb_ports
domain: switch
mode: single
- id: '1646026088711'
alias: Greenhouse Fans Auto On
description: Turns on hourly
trigger:
- platform: time_pattern
hours: '*'
condition: []
action:
- type: turn_on
device_id: c4b474e9ab703a1301179d979acc783c
entity_id: switch.greenhouse_powerstrip_usb_ports
domain: switch
mode: single
- id: '1661021071678'
alias: Ignore Connectivity Sensors on Boot
description: ''
trigger:
- platform: homeassistant
event: start
condition: []
action:
- service: group.set
data:
object_id: ignored_connectivity_sensors
add_entities:
- binary_sensor.sonoff_4ch_status
- binary_sensor.tesla_model_3_online_sensor