-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
918 lines (918 loc) · 25.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
---
- id: Air Data Alert
alias: Air Data Alert
trigger:
platform: numeric_state
entity_id: sensor.Air_Data_Received_in_2hrs
below: 13
action:
- service: notify.push_bullet
data:
target: device/robsphone
message: No Air Data received for an hour
title: IoT Data
- id: Kirsty To Stepping Hill Alert
alias: Kirsty To Stepping Hill Alert
trigger:
- platform: time
at: 07:45:00
condition:
condition: and
conditions:
- condition: time
after: 07:45:00
before: 08:00:00
weekday:
- mon
- tue
- wed
action:
- service: notify.push_bullet
data:
target: device/kirstysphone
message:
Your commute will currently take {{ states('sensor.KirstyHome2Work')
}} minutes
title: Kirsty Commute
- id: Notify Me when its time to leave for work
alias: Notify Me when its time to leave for work
trigger:
- platform: state
entity_id: sensor.time_to_leave_for_work
to: "True"
from: "False"
condition:
condition: and
conditions:
- condition: numeric_state
entity_id: sensor.ha_runtime_in_minutes
above: 1
- condition: state
entity_id: binary_sensor.workday_sensor
state: "on"
action:
- service: notify.push_bullet
data:
message:
Based on current traffic, you have 10 minutes to leave if you want
to get to work by 9:00am.
Traffic is {{ states('sensor.my_traffic_density_to_work')
}} today.
target: device/robsphone
title: Rob Time to Leave for Work
- id: Update garage door state on startup
alias: Update garage door state on startup
trigger:
- platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: garage/door/1/action
payload: STATE
- id: Battery Alert
alias: Battery Alert
trigger:
- platform: time
at: "18:00:00"
condition:
condition: template
value_template:
'{%- set threshold = 40 -%}
{%- for item in states.sensor
if (item.attributes.battery_level
is defined and item.attributes[''battery_level''] | int < threshold)
or ("battery"
in item.name | lower and ((item.state | int < threshold
and item.state|int !=0) or item.state | lower == "low"
or item.state | lower == "unknown")) -%} {%-
if loop.first -%} {{ true }} {%- endif -%} {%- endfor -%}'
action:
- service: notify.push_bullet
data:
target: device/robsphone
message:
'{%- set threshold = 40 -%} {%- set domains = [states.sensor ] -%}
{%- for domain in domains -%} {%- if loop.first -%}
The following devices have low battery levels:
{%- endif -%} {%- for item in domain if (item.attributes.battery_level
is defined and item.attributes[''battery_level''] |
int < threshold) or ("battery"
in item.name | lower and ((item.state |
int < threshold and item.state|int
!= 0) or item.state | lower == "low" or
item.state | lower == "unknown"))
-%} {%- if (item.attributes.battery_level is
defined and item.attributes[''battery_level'']
| int < threshold) %} {{ item.name }}
({{ item.attributes[''battery_level'']
}}), {% endif -%} {%- if "battery"
in item.name | lower and ((item.state |
int < threshold and item.state|int != 0)
or item.state | lower == "low" or
item.state | lower == "unknown") -%}
{{ item.name }} ({{ item.state }}), {%
endif -%} {%- endfor -%} {%- endfor -%}'
title: Battery Low
- id: Ethans Bedroom Lamp on
alias: Kids Bedroom Lamps on
trigger:
- at: "19:00:00"
platform: time
- platform: sun
event: sunset
action:
- data:
entity_id: switch.ethansbedroomlamp
service: switch.turn_on
- data:
entity_id: switch.ionasbedroomlamp
service: switch.turn_on
- id: Ethans Bedroom Lamp off
alias: Kids Bedroom Lamps off
trigger:
- at: 08:00:00
platform: time
action:
- data:
entity_id: switch.ethansbedroomlamp
service: switch.turn_off
- data:
entity_id: switch.ionasbedroomlamp
service: switch.turn_off
- id: Electric Blanket on at 930
alias: Electric Blanket on at 930
trigger:
- platform: time
at: "21:30:00"
action:
service: switch.turn_on
entity_id: switch.electric_blanket
- id: Electric Blanket off at 11
alias: Electric Blanket off at 11
trigger:
- platform: time
at: "23:00:00"
action:
service: switch.turn_off
entity_id: switch.electric_blanket
- id: EnSuite underfloor heating on
alias: EnSuite underfloor heating on
trigger:
- at: 06:30:00
platform: time
condition:
- condition: and
conditions:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- below: 5
condition: numeric_state
entity_id: sensor.dark_sky_outside
action:
- service: climate.set_temperature
entity_id: climate.underfloorheating
data:
temperature: 25
- service: climate.set_hvac_mode
data:
entity_id: climate.underfloorheating
hvac_mode: heat
- id: EnSuite underfloor heating off
alias: EnSuite underfloor heating off
trigger:
- at: 07:00:00
platform: time
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
action:
- service: climate.set_temperature
entity_id: climate.underfloorheating
data:
temperature: 15
- service: climate.turn_off
entity_id: climate.underfloorheating
- service: climate.set_hvac_mode
data:
entity_id: climate.underfloorheating
hvac_mode: false
- id: Media Center on at Bedtime
alias: Media Center on at Bedtime
trigger:
platform: state
entity_id: sensor.charging_robsiphone
to: Charging
condition:
condition: and
conditions:
- condition: state
entity_id: switch.media_center
state: "on"
- condition: time
after: "20:00:00"
action:
- service: notify.ios_robsiphone
data:
message: The HTPC is on and you are in bed
data:
push:
badge: 0
category: htpc
- id: Desktop on at Bedtime
alias: Desktop on at Bedtime
trigger:
platform: state
entity_id: sensor.charging_robsiphone
to: Charging
condition:
condition: and
conditions:
- condition: state
entity_id: switch.desktop_pc
state: "on"
- condition: time
after: "20:00:00"
action:
- service: notify.ios_robsiphone
data:
message: The Desktop is on and you are in bed
data:
push:
badge: 0
category: desktop
- id: Scan for Objects at Frontdoor when motion detected
alias: Scan for Objects at Frontdoor when motion detected
trigger:
- platform: state
entity_id: binary_sensor.frontdoor_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.frontdoor
filename: >
/home/rob/.homeassistant/www/camera_snapshot/frontdoor_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_frontdoor
- id: Scan for Objects in Garage when motion detected
alias: Scan for Objects in Garage when motion detected
trigger:
- platform: state
entity_id: binary_sensor.gac_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.GAC
filename: /home/rob/.homeassistant/www/camera_snapshot/gac_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_gac
- delay: 00:00:01
- id: Scan for Objects at Right Side Camera when motion detected
alias: Scan for Objects at Right Side Camera when motion detected
trigger:
- platform: state
entity_id: binary_sensor.rsc_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.RSC
filename: /home/rob/.homeassistant/www/camera_snapshot/rsc_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_rsc
- delay: 00:00:01
- id: Scan for Objects at Left Side Camera when motion detected
alias: Scan for Objects at Left Side Camera when motion detected
trigger:
- platform: state
entity_id: binary_sensor.lsc_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.LSC
filename: /home/rob/.homeassistant/www/camera_snapshot/lsc_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_lsc
- delay: 00:00:01
- id: Scan for Objects at Backdoor Camera when motion detected
alias: Scan for Objects at Backdoor Camera when motion detected
trigger:
- platform: state
entity_id: binary_sensor.bdc_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.BDC
filename: /home/rob/.homeassistant/www/camera_snapshot/bdc_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_bdc
- delay: 00:00:01
- id: Scan for Objects at Back Garden Camera when motion detected
alias: Scan for Objects at Back Garden Camera when motion detected
trigger:
- platform: state
entity_id: binary_sensor.bgc_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.BGC
filename: /home/rob/.homeassistant/www/camera_snapshot/bgc_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_bgc
- delay: 00:00:01
- id: Scan for Objects at Floodlight when motion detected
alias: Scan for Objects at Floodlight when motion detected
trigger:
- platform: state
entity_id: binary_sensor.frontfloodlight_motion
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.frontfloodlight
filename: >
/home/rob/.homeassistant/www/camera_snapshot/frontfloodlight_latest.jpg
- service: image_processing.scan
data:
entity_id: image_processing.deepstack_object_frontfloodlight
- delay: 00:00:01
- id: Scan for Car Registrations at Floodlight when motion detected
alias: Scan for Car Registrations at Floodlight when motion detected
trigger:
- platform: state
entity_id: binary_sensor.frontfloodlight_motion
to: "on"
action:
- service: image_processing.scan
data:
entity_id: image_processing.openalpr_frontfloodlight
- id: Door Bell Pushed Take Snapshot
alias: Door Bell Pushed Take Snapshot
trigger:
- platform: state
entity_id: binary_sensor.frontdoor_ding
to: "on"
action:
- service: camera.snapshot
data:
entity_id: camera.frontdoor
filename: >
/mnt/squeeze_media/Fileserver/Rob/deepstacksnapshots/frontdoor_ring_{{now().year}}{{now().month}}{{now().day}}-{{now().hour}}{{now().minute}}.jpg
- service: camera.snapshot
data:
entity_id: camera.frontdoor
filename: >
/home/rob/.homeassistant/www/camera_snapshot/frontdoor_ring_latest.jpg
- id: "1629665231203"
alias: Turn On Away Mode
description: ""
trigger:
- platform: state
entity_id: binary_sensor.home_away
from: "off"
to: "on"
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.awaymode
mode: single
- id: "Turn Off Away Mode"
alias: Turn Off Away Mode
description: ""
trigger:
- platform: state
entity_id: binary_sensor.home_away
from: "on"
to: "off"
condition: []
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.awaymode
mode: single
- id: Enable Away Security Mode
alias: Enable Away Security Mode
trigger:
- platform: state
entity_id: input_boolean.awaymode
from: "off"
to: "on"
action:
- service: automation.turn_on
entity_id:
- automation.lights_on_when_away
- automation.lights_off_when_away_and_past_midnight
- service: automation.turn_off
entity_id:
- automation.EnSuite_underfloor_heating_off
- automation.EnSuite_underfloor_heating_on
- automation.Electric_Blanket_off_at_11
- automation.Electric_Blanket_on_at_930
- automation.Hallway_Light_on_at_sunset
- automation.Hallway_Light_off_at_2330
- service: switch.turn_off
entity_id:
- switch.garagerouter5g
- switch.gardenrouter5g
- switch.loungrouter5g
- switch.mainrouter5g
- switch.upstairsrouter5g
- id: Disable Away Security Mode
alias: Disable Away Security Mode
trigger:
- platform: state
entity_id: input_boolean.awaymode
from: "on"
to: "off"
action:
- service: automation.turn_off
entity_id:
- automation.lights_on_when_away
- automation.lights_off_when_away_and_past_midnight
- service: automation.turn_on
entity_id:
- automation.EnSuite_underfloor_heating_off
- automation.EnSuite_underfloor_heating_on
- automation.Electric_Blanket_off_at_11
- automation.Electric_Blanket_on_at_930
- automation.Hallway_Light_on_at_sunset
- automation.Hallway_Light_off_at_2330
- service: switch.turn_on
entity_id:
- switch.garagerouter5g
- switch.gardenrouter5g
- switch.loungrouter5g
- switch.mainrouter5g
- switch.upstairsrouter5g
- id: Lights on when away
alias: Lights on when away
trigger:
- platform: sun
event: sunset
action:
service: switch.turn_on
entity_id:
- switch.lounge_lamp_1
- switch.lounge_lamp_2
- switch.hallwaylamp
- switch.kitchenlamp
- switch.ethansbedroomlamp
- switch.ionasbedroomlamp
- id: Lights off when away and past midnight
alias: Lights off when away and past midnight
trigger:
- platform: time
at: 00:01:00
action:
service: switch.turn_off
entity_id:
- switch.lounge_lamp_1
- switch.lounge_lamp_2
- switch.hallwaylamp
- switch.kitchenlamp
- switch.ethansbedroomlamp
- switch.ionasbedroomlamp
- id: Turn on Porch light on when there is movement
alias: Turn on Porch light on when there is movement
trigger:
- platform: state
entity_id: binary_sensor.frontfloodlight_motion
from: "off"
to: "on"
- platform: state
entity_id: binary_sensor.frontdoor_motion
from: "off"
to: "on"
condition:
condition: or
conditions:
- condition: time
after: "23:00:00"
- condition: sun
before: sunrise
- condition: state
entity_id: switch.porch_light
state: "Off"
action:
service: switch.turn_on
entity_id: switch.porch_light
- id: Porch Light on at Sunset
alias: Porch Light on at Sunset
trigger:
- platform: sun
event: sunset
action:
service: switch.turn_on
entity_id: switch.porch_light
- id: Porch Light off at 2300
alias: Porch Light off at 2300
trigger:
- platform: time
at: "23:00:00"
action:
service: switch.turn_off
entity_id: switch.porch_light
- id: Turn off Porch light 5 minutes after last movement
alias: Turn off Porch light 5 minutes after last movement
trigger:
- entity_id: binary_sensor.frontfloodlight_motion
for: 0:05:00
from: "on"
platform: state
to: "off"
- entity_id: binary_sensor.frontdoor_motion
for: 0:05:00
from: "on"
platform: state
to: "off"
condition:
- condition: or
conditions:
- after: "23:00:00"
condition: time
- before: sunrise
before_offset: 01:00:00
condition: sun
action:
- entity_id: switch.porch_light
service: homeassistant.turn_off
- id: Turn off GuestWifi If no users for 12 hours
alias: Turn off GuestWifi If no users for 12 hours
trigger:
platform: numeric_state
entity_id: sensor.GuestWifiUserCount
below: 1
for:
hours: 12
action:
service: homeassistant.turn_off
entity_id:
- switch.guestwifimain
- switch.guestwifiupstairs
- id: Lights off at Bedtime
alias: Lights off at Bedtime
trigger:
- platform: time
at: "23:00:00"
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.device_tracker_lgtv
state: "off"
- condition: state
entity_id: binary_sensor.device_tracker_kirstyslaptop
state: "off"
action:
service: switch.turn_off
entity_id:
- switch.lounge_lamp_1
- switch.lounge_lamp_2
- id: AmbiLight off when TV is off
alias: AmbiLight off when TV is off
trigger:
- platform: state
entity_id: media_player.lg_smart_tv
to: "off"
from: playing
action:
service: homeassistant.turn_off
entity_id: switch.ambitvmode1
- id: Hallway Light on at sunset
alias: Hallway Light on at sunset
trigger:
- platform: sun
event: sunset
action:
service: switch.turn_on
entity_id: switch.hallwaylamp
- id: Hallway Light off at 2330
alias: Hallway Light off at 2330
trigger:
- platform: time
at: "23:30:00"
action:
service: switch.turn_off
entity_id: switch.hallwaylamp
- id: Kitchen Lamp on at sunset
alias: Kitchen Lamp on at sunset
trigger:
- platform: sun
event: sunset
action:
service: switch.turn_on
entity_id: switch.kitchenlamp
- id: Kitchen Lamp off at 2330
alias: Kitchen Lamp off at 2330
trigger:
- platform: time
at: "23:30:00"
action:
service: switch.turn_off
entity_id: switch.kitchenlamp
- id: Turn on Hallway light when there is movement
alias: Turn on Hallway light when there is movement
trigger:
platform: state
entity_id: binary_sensor.Hallway_Motion_sensor
from: "off"
to: "on"
condition:
condition: or
conditions:
- condition: time
after: "23:30:00"
- condition: sun
before: sunrise
- condition: state
entity_id: switch.hallwaylamp
state: "Off"
action:
service: homeassistant.turn_on
entity_id: switch.hallwaylamp
- id: Turn off Hallway light 5 minutes after last movement
alias: Turn off Hallway light 5 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.Hallway_Motion_sensor
to: "off"
from: "on"
for:
minutes: 5
condition:
condition: or
conditions:
- condition: time
after: "23:30:00"
- condition: sun
before: sunrise
before_offset: 01:00:00
action:
service: homeassistant.turn_off
entity_id: switch.hallwaylamp
- id: Christmas Lights on at sunset
alias: Christmas Lights on at sunset
trigger:
- platform: sun
event: sunset
action:
service: switch.turn_on
entity_id: switch.christmaslights
- id: Christmas Lights on in the morning
alias: Christmas Lights on in the morning
trigger:
- platform: time
at: 06:00:00
action:
service: switch.turn_on
entity_id: switch.christmaslights
- id: Christmas Lights off in the morning
alias: Christmas Lights off in the morning
trigger:
- platform: time
at: 09:00:00
action:
service: switch.turn_off
entity_id: switch.christmaslights
- id: Christmas Lights off at 2300
alias: Christmas Lights off at 2300
trigger:
- platform: time
at: "23:00:00"
action:
service: switch.turn_off
entity_id: switch.christmaslights
- id: Turn on kitchen light when there is movement
alias: Turn on kitchen light when there is movement
trigger:
platform: state
entity_id: binary_sensor.Kitchen_Motion_sensor
from: "off"
to: "on"
condition:
condition: or
conditions:
- condition: sun
after: sunset
- condition: sun
before: sunrise
action:
service: homeassistant.turn_on
entity_id: switch.kitchencabinetlighting
- id: Turn off kitchen light 5 minutes after last movement
alias: Turn off kitchen light 5 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.Kitchen_Motion_sensor
to: "off"
from: "on"
for:
minutes: 5
action:
service: homeassistant.turn_off
entity_id: switch.kitchencabinetlighting
- id: Turn on Garage light when there is movement
alias: Turn on Garage light when there is movement
trigger:
platform: state
entity_id: binary_sensor.garage_motion_sensor
from: "off"
to: "on"
action:
service: homeassistant.turn_on
entity_id:
- switch.garage_bench_light
- switch.shelly1l_e09806aa3f43
- id: Turn off Garage light 5 minutes after last movement
alias: Turn off Garage light 5 minutes after last movement
trigger:
platform: state
entity_id: binary_sensor.garage_motion_sensor
to: "off"
from: "on"
for:
minutes: 5
action:
service: homeassistant.turn_off
entity_id:
- switch.garage_bench_light
- switch.shelly1l_e09806aa3f43
- id: Enable MQTT discovery for all devices
alias: Enable MQTT discovery for all devices
trigger:
platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: cmnd/porchlight/SetOption19
payload: "1"
- id: Study Light on when using PC
alias: Study Light on when using PC
trigger:
platform: numeric_state
entity_id: sensor.luxvalue
above: 500
condition:
condition: and
conditions:
- condition: state
entity_id: switch.desktop_pc
state: "on"
action:
service: homeassistant.turn_on
entity_id: switch.studydesklight
- id: Make sure Billion is on
alias: Make sure Billion is on
trigger:
platform: state
entity_id: switch.billioninternet
to: "off"
for:
minutes: 5
action:
service: homeassistant.turn_on
entity_id: switch.billioninternet
- id: Make sure Billion is on at HA Startup
alias: Make sure Billion is on at HA Startup
trigger:
platform: homeassistant
event: start
action:
service: homeassistant.turn_on
entity_id: switch.billioninternet
- id: "1570742635270"
alias: Upgrade Home Assistant
trigger:
- entity_id: input_boolean.upgradehomeassistant
from: "off"
platform: state
to: "on"
action:
service: shell_command.cmd_upgrade_ha
- id: Github ha current version to SVG
alias: Run Current HA Version Check every 1 hour
trigger:
platform: time_pattern
hours: "/2"
minutes: 0
action:
service: shell_command.cmd_haversion_svg
- id: "1609413047490"
alias: Garage Bench Light on when 3D Printing
description: ""
trigger:
- type: turned_on
platform: device
device_id: 4319212804f311ebae9e5fcaa04d0cb0
entity_id: binary_sensor.octoprint_printing_3
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: ff699b5fac6148f48107f1c8d761893b
entity_id: switch.garage_bench_light
domain: switch
mode: single
- id: "1613324697056"
alias: Shut Kitchen Blinds 20 mins after Sunset
description: ""
trigger:
- platform: sun
event: sunset
offset: +00:20:00
condition: []
action:
- domain: cover
entity_id: cover.left_bifold
device_id: 8935e4585c60f40ea3b3fc9ec509cc1f
type: close
- domain: cover
entity_id: cover.mid_bifold
device_id: 2f4b8d63b7d677c387de988d77fa6d8c
type: close
- domain: cover
entity_id: cover.right_bifold
device_id: 76aca443faa4e4ec1a66229564247b6e
type: close
mode: single
- id: "1613324697057"
alias: Open Kitchen Blinds 20 mins before Sunrise
description: ""
trigger:
- platform: sun
event: sunrise
offset: -00:20:00
condition: []
action:
- domain: cover
entity_id: cover.left_bifold
device_id: 8935e4585c60f40ea3b3fc9ec509cc1f
type: open
- domain: cover
entity_id: cover.mid_bifold
device_id: 2f4b8d63b7d677c387de988d77fa6d8c
type: open
- domain: cover
entity_id: cover.right_bifold
device_id: 76aca443faa4e4ec1a66229564247b6e
type: open
mode: single
- id: Garage Door Open Alert
alias: Notif when garage door opens
trigger:
- platform: state
entity_id: cover.garage_door
to: open
from: closed
action:
- service: notify.telegram
data:
title: Garage Door Status
message: Garage Door just opened
data:
photo:
- url: !secret ReoCameraGarageURL
caption: Garage Door Opened
- id: Garage Door Closed Alert
alias: Notify when garage door closes
trigger:
- platform: state
entity_id: cover.garage_door
to: closed
from: open
action:
- service: notify.telegram
data:
title: Garage Door Status
message: Garage Door just closed
data:
photo:
- url: !secret ReoCameraGarageURL
caption: Garage Door Closed