-
Notifications
You must be signed in to change notification settings - Fork 15
/
automations.yaml
3212 lines (3200 loc) · 90.4 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: '1529366648322'
alias: Open Chicken Door At Morning
description: Open at Dawn
trigger:
- platform: time
at: 08:00:00
condition: []
action:
- entity_id: cover.chicken_coop_door
service: cover.open_cover
mode: single
- id: '1541895123592'
alias: 'Notify: if CCTV Goes Offline'
description: Notify if CCTV goes off for more than a specific length of time, originally
used ping detector binary sensors, but in 2022 migrated over to the camera availability,
provided by the axis camera component. 2022, moved back to Ping detects binary
sensors so that I can use the sensors for other things.
trigger:
- entity_id: binary_sensor.front_door_cctv_online
for: 00:10:00
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.bunny_cctv_online
for: 00:10:00
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.drive_cctv_online
for: 00:10:00
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.garden_cctv_online
for: 00:10:00
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.garage_cctv_online
for: 00:10:00
from: 'on'
platform: state
to: 'off'
- entity_id: binary_sensor.garage_2_cctv_online
for: 00:10:00
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
title: CCTV Offline
message: '{{trigger.entity_id}} offline'
service: notify.google_cloud_notify
- id: '1558317969078'
alias: CCTV Reboot Each Monday
trigger:
- at: 06:45
platform: time
condition:
- condition: time
weekday:
- mon
action:
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.11_front_door_reboot
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- action: button.press
metadata: {}
data: {}
target:
entity_id:
- button.12_drive_long_reboot
- button.18_garden_reboot
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- action: button.press
metadata: {}
data: {}
target:
entity_id:
- button.13_garage_reboot
- button.15_chickens_reboot
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.16_drive_high_reboot
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.21_drive_higher_reboot
- id: '1564192629041'
alias: 'Irrigation: Pot Irrigation Script Off to Valve Off'
description: 'If script is turned off manually, then close valve, else it will stay
open. '
trigger:
- entity_id: script.front_garden_pot_irrigation_timer
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: switch.front_garden_pot_irrigation_valve
service: switch.turn_off
- id: '1564192623451'
alias: 'Irrigation: Irrigate Front Garden Pots at Sunrise'
trigger:
- platform: template
value_template: '{{states(''sensor.time'') == states(''sensor.front_garden_pot_irrigation_next_run'')[19:24]}}'
condition:
- condition: and
conditions:
- condition: template
value_template: '{{states(''sensor.front_garden_pot_irrigation_next_run'')[5:15]
== now().date().strftime(''%d-%m-%Y'')}}'
- condition: state
entity_id: sensor.front_garden_pots_irrigation_interlock
state: Uninhibited
action:
- entity_id: script.front_garden_pot_irrigation_timer
service: script.front_garden_pot_irrigation_timer
- id: '1564192123451'
alias: 'Irrigation: Irrigate Back Garden at Sunrise'
description: With editable offset
trigger:
- platform: template
value_template: '{{states(''sensor.time'') == states(''sensor.back_garden_irrigation_next_run'')[19:24]}}'
condition:
- condition: and
conditions:
- condition: template
value_template: '{{states(''sensor.back_garden_irrigation_next_run'')[5:15]
== now().date().strftime(''%d-%m-%Y'')}}'
- condition: state
entity_id: sensor.back_garden_irrigation_interlock
state: Uninhibited
action:
- entity_id: script.back_garden_irrigation_timer
service: script.back_garden_irrigation_timer
- id: '1564192123123'
alias: 'Irrigation: Irrigate Back Garden Lawn at Sunrise'
trigger:
- platform: template
value_template: '{{states(''sensor.time'') == states(''sensor.back_garden_lawn_irrigation_next_run'')[19:24]}}'
condition:
- condition: and
conditions:
- condition: template
value_template: '{{states(''sensor.back_garden_lawn_irrigation_next_run'')[5:15]
== now().date().strftime(''%d-%m-%Y'')}}'
- condition: state
entity_id: sensor.back_garden_lawn_irrigation_interlock
state: Uninhibited
action:
- delay:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
- entity_id: script.back_garden_lawn_irrigation_timer
service: script.back_garden_lawn_irrigation_timer
- id: '1564192623452'
alias: 'Irrigation: Irrigate Front Lawn at Sunrise'
trigger:
- platform: template
value_template: '{{states(''sensor.time'') == states(''sensor.front_garden_lawn_irrigation_next_run'')[19:24]}}'
condition:
- condition: and
conditions:
- condition: template
value_template: '{{states(''sensor.front_garden_lawn_irrigation_next_run'')[5:15]
== now().date().strftime(''%d-%m-%Y'')}}'
- condition: state
entity_id: sensor.front_garden_lawn_irrigation_interlock
state: Uninhibited
action:
- entity_id: script.front_garden_lawn_irrigation_timer
service: script.front_garden_lawn_irrigation_timer
- id: '1564234217905'
alias: 'Irrigation: Lawn Irrigation Script Off to Valve Off'
description: 'If script is turned off manually, then close valve, else it will stay
open. '
trigger:
- entity_id: script.front_garden_lawn_irrigation_timer
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: switch.front_garden_lawn_irrigation_valve
service: switch.turn_off
- id: '1512334217905'
alias: 'Irrigation: Garden Irrigation Script Off to Valve Off'
description: 'If script is turned off manually, then close valve, else it will stay
open. '
trigger:
- entity_id: script.back_garden_irrigation_timer
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: switch.back_garden_irrigation_valve
service: switch.turn_off
- id: '1512331237905'
alias: 'Irrigation: Garden Lawn Irrigation Script Off to Valve Off'
description: 'If script is turned off manually, then close valve, else it will stay
open. '
trigger:
- entity_id: script.back_garden_lawn_irrigation_timer
from: 'on'
platform: state
to: 'off'
condition: []
action:
- entity_id: switch.back_garden_lawn_1_irrigation_valve
service: switch.turn_off
- entity_id: switch.back_garden_lawn_2_irrigation_valve
service: switch.turn_off
- id: '1564245956941'
alias: Kitchen Fan Script Off to Switch Off
description: Not sure why I wrote this?
trigger:
- entity_id: script.kitchen_extractor_timer
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: switch.kitchen_extractor_fan
service: switch.turn_off
mode: single
- id: '1572464632861'
alias: Smoke Machine Automation - Smoke
description: 'Don''t need to turn on and off, as RF Link signal_repetitions: xx
is used to set on the "on" time. Makes use of twrecked/hass-momentary Momentary
Switch Component for Home Assistant'
trigger:
- event_data: {}
event_type: smoke_machine_automation
platform: event
enabled: false
- type: motion
platform: device
device_id: 853ca02c816df4ce4860c07060837a6a
entity_id: binary_sensor.front_door_11_vmd4_camera1profile2
domain: binary_sensor
enabled: false
- type: motion
platform: device
device_id: 83dd8340e23fb86fef21b09a22a57929
entity_id: binary_sensor.drive_higher_21_vmd4_camera1profile2
domain: binary_sensor
enabled: false
- platform: state
entity_id:
- switch.smoke_machine
to: 'off'
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.smoke_machine
enabled: false
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
enabled: false
- service: switch.turn_off
data: {}
target:
entity_id: switch.smoke_machine
enabled: false
- event: smoke_machine_automation
event_data: {}
enabled: false
- service: switch.toggle
data: {}
target:
entity_id: switch.smoke_machine
- service: switch.turn_on
data: {}
target:
entity_id: switch.smoke_machine
enabled: false
- delay:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
enabled: true
- id: '1576599112935'
alias: Welcome home Richard
description: 'Note: These actions can only be edited with YAML'
trigger:
- entity_id: person.richard
for: 00:05:00
from: not_home
platform: state
to: home
condition: []
action:
- data_template:
cache: false
entity_id: media_player.ground_floor
message: "Welcome home Richard. {% if is_state('person.lucy', 'home') %} Lucy
is also at home and needs cuddles! {%- else -%}\n Lucy is away at {{state_attr('device_tracker.google_maps_114635444798949098363',
'address')}}.\n {%- endif %}\n Outside {{states('sensor.dark_sky_temperature')|
round(0)}}C {{states('sensor.dark_sky_humidity')| round(0) }}% Inside {{states('sensor.entryway_thermostat_temperature')|
round(0)}}C \n{{states('sensor.entryway_thermostat_humidity')| round(0)}}%
{% if is_state('climate.entryway', 'heat') %} Heating on and set to {{state_attr('climate.entryway',
'temperature')| round(0) }}°C\n{%- endif %}\n"
service: tts.google_translate_say
- id: '1576601014597'
alias: Plug-in Air Freshener - On-Off Automation
description: 'Turn on in the morning when someone is home as long as it between
certain times. Also turns back on after returning home. Turn off in the evening
or when no one is home. Repeat as it sometimes does not work '
trigger:
- platform: time
at: input_datetime.air_freshener_on_time
- platform: time
at: input_datetime.air_freshener_off_time
- platform: zone
entity_id: person.richard
zone: zone.home
event: leave
enabled: false
- platform: zone
entity_id: person.richard
zone: zone.home
event: enter
enabled: false
- platform: zone
entity_id: person.lucy
zone: zone.home
event: enter
enabled: false
- platform: zone
entity_id: person.lucy
zone: zone.home
event: leave
enabled: false
- platform: state
entity_id:
- person.lucy
to:
for:
hours: 0
minutes: 5
seconds: 0
enabled: true
- platform: state
entity_id:
- person.richard
to:
for:
hours: 0
minutes: 5
seconds: 0
enabled: true
condition: []
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: time
after: input_datetime.air_freshener_on_time
before: input_datetime.air_freshener_off_time
- condition: or
conditions:
- condition: state
entity_id: person.lucy
state: home
- condition: state
entity_id: person.richard
state: home
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.plug_in_air_freshener_1
data: {}
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: switch.turn_on
target:
entity_id:
- switch.plug_in_air_freshener_2
data: {}
default:
- service: switch.turn_off
target:
entity_id:
- switch.plug_in_air_freshener_1
data: {}
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: switch.turn_off
target:
entity_id:
- switch.plug_in_air_freshener_2
data: {}
mode: restart
- id: '1576601770197'
alias: Welcome home Lucy
description: 'Note: These actions can only be edited with YAML'
trigger:
- entity_id: person.lucy
for: 00:05:00
from: not_home
platform: state
to: home
condition: []
action:
- data_template:
cache: false
entity_id: media_player.ground_floor
message: "Welcome home Lucy. {% if is_state(\"person.richard\", \"home\") %}
Richard is also at home, please see him for cuddles! {%- else -%}\n Richard
is currently {{states('person.richard')}}, at\n{{states('sensor.richard_street_location')}}.
{%- endif %} The heating is set to {{states('climate.entryway')}} at {{state_attr('climate.entryway',
'temperature')| round(0) }}°C\n"
service: tts.google_translate_say
- id: '1576602219341'
alias: Keep Nest thermostat aware of our presence
description: contindion template {{ state_attr('climate.entryway', 'preset_mode')
== Away and Eco }}
trigger:
- minutes: /10
platform: time_pattern
- event: start
platform: homeassistant
- entity_id: binary_sensor.huishs_away
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: group.mobiles_group
state: home
- condition: state
entity_id: binary_sensor.huishs_away
state: 'on'
action:
- data:
away_mode: home
service: nest.set_away_mode
- data:
message: Nest forced back to heat mode while you are at home.
service: notify.google_cloud_notify
- id: '1576603673930'
alias: Close Chicken Door In The Evening Via Notification (action button has been
clicked)
description: Notification HTML5 push notification action button clicked
trigger:
- event_data:
action: close_door
event_type: html5_notification.clicked
platform: event
condition: []
action:
- entity_id: cover.chicken_coop_door
service: cover.close_cover
mode: single
- id: '1576603849046'
alias: Close Chicken Door In The Evening Via Notification
description: ''
trigger:
- event: sunset
platform: sun
offset: 01:30:00
condition:
- condition: state
entity_id: binary_sensor.chicken_coop_status
state: 'on'
action:
- service: notify.google_cloud_notify
data:
title: Chicken Bed-Time? [Home Assistant]
message: It's dark, close chicken coop door?
data:
actions:
- action: close_door
title: "\U0001F6AACLOSE DOOR \U0001F414"
mode: single
- id: '1581770041173'
alias: 'Notify: Electricity supply voltage is LOW/HIGH'
description: Send Notification when Electricity Voltage is Low or High
trigger:
- above: '254'
entity_id: sensor.myups_input_voltage
platform: numeric_state
- below: '220'
entity_id: sensor.myups_input_voltage
platform: numeric_state
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.myups_input_voltage
below: '220'
sequence:
- data:
title: Electricity Supply Voltage Low
message: 'Electricity Voltage Low: {{ states(''sensor.myups_input_voltage'')
}} Volts. {{now().strftime(''%Y-%m-%d %I:%M %p'')}}
'
service: notify.google_cloud_notify
- service: notify.pushover_notify
data:
title: Electricity Supply Voltage Low
message: 'Electricity Voltage Low: {{ states(''sensor.myups_input_voltage'')
}} Volts. {{now().strftime(''%Y-%m-%d %I:%M %p'')}}
'
- conditions:
- condition: numeric_state
entity_id: sensor.myups_input_voltage
above: '254'
sequence:
- data:
title: Electricity Supply Voltage High
message: 'Electricity Voltage High: {{ states(''sensor.myups_input_voltage'')
}} Volts. {{now().strftime(''%Y-%m-%d %I:%M %p'')}}
'
service: notify.google_cloud_notify
- id: '1581770321118'
alias: 'Notify: UPS is close to being depleted'
description: Send Notification when UPS is about to shutdown (10 mins left)
trigger:
- below: 600
entity_id: sensor.myups_battery_runtime
platform: numeric_state
condition: []
action:
- data:
message: 'UPS is running low: {{ (((states(''sensor.myups_battery_runtime'')
| int) / 60) | int )}} minutes left. {{now().strftime(''%Y-%m-%d %I:%M %p'')}}
'
title: 'WARNING: UPS close to being depleted'
service: notify.google_cloud_notify
- id: '1581773259354'
alias: Bunny shed status monitor notify
description: Monitor the health of my gateways
trigger:
- entity_id: binary_sensor.bs_status
for:
hours: 0
minutes: 10
seconds: 0
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
message: Bunny Shed Controller has been offline for 10 mins. {{now().strftime('%Y-%m-%d
%I:%M %p')}}
title: Irrigation offline
service: notify.google_cloud_notify
- id: '1581773123827'
alias: 'Notify: Possible DDOS attack'
trigger:
- above: '70000'
entity_id: sensor.pi_hole_dns_queries_today
platform: numeric_state
action:
- data:
message: 'DNS Queries: {{ states(''sensor.pi_hole_dns_queries_today'') }}
'
title: Possible DDOS Attack from inside network
service: notify.google_cloud_notify
- id: '1581123123827'
alias: Simulate Presence Lights
description: Automation Simulate Presence / Occupancy Simulation. Runs single and
if we get home it will turn off all the lights (cancel the run)
trigger:
- entity_id:
- person.richard
from: home
platform: state
to:
- entity_id:
- person.lucy
from: home
platform: state
to: not_home
- event: sunset
offset: +00:30:00
platform: sun
- event_type: event_simulate_presence
platform: event
condition:
- condition: and
conditions:
- condition: state
entity_id: sun.sun
state: below_horizon
- before: '23:55:00'
condition: time
- condition: state
entity_id: input_boolean.simulate_presence_enable
state: 'on'
- condition: state
entity_id: person.lucy
state: not_home
- condition: state
entity_id: person.richard
state: not_home
action:
- data_template:
entity_id: '{{ state_attr(''light.presence_simulation_lights'', ''entity_id'')
| random }}'
service: light.turn_on
- delay: 00:{{ (range(10, 30) | random) }}:00
- if:
- condition: or
conditions:
- condition: time
after: '11:50:00'
- condition: state
entity_id: person.lucy
state: home
- condition: state
entity_id: person.richard
state: home
then:
- service: light.turn_off
data: {}
target:
entity_id: light.presence_simulation_lights
- data_template:
entity_id: '{{ state_attr(''light.presence_simulation_lights'', ''entity_id'')
| random }}'
service: light.turn_on
- delay: 00:{{ (range(10, 30) | random) }}:00
- data_template:
entity_id: '{{ state_attr(''light.presence_simulation_lights'', ''entity_id'')
| random }}'
service: light.turn_off
- if:
- condition: or
conditions:
- condition: time
after: '11:50:00'
enabled: false
- condition: state
entity_id: person.lucy
state: home
- condition: state
entity_id: person.richard
state: home
then:
- service: light.turn_off
data: {}
target:
entity_id: light.presence_simulation_lights
- event: event_simulate_presence
mode: single
- id: '1590103997253'
alias: 'Server Getting Hot '
description: ''
trigger:
- above: '65'
entity_id: sensor.server_server_raid_controller_temperature
platform: numeric_state
condition: []
action:
- data:
message: Server is getting HOT!
service: notify.google_cloud_notify
- id: '1592486159377'
alias: Parcel Box Opened Notify - Rev 1
description: ''
trigger:
- type: opened
platform: device
device_id: 2aadd916ad46270ecda5ab407a461e6c
entity_id: binary_sensor.parcel_box_contact
domain: binary_sensor
condition: []
action:
- data:
message: Parcel box has just been opened
title: Delivery
service: notify.pushover_notify
enabled: false
- data:
filename: /config/www/tmp/drive.jpg
entity_id: camera.drive_high_16
service: camera.snapshot
enabled: false
- data:
data:
attachment: /config/www/tmp/drive.jpg
message: Delivery person?
title: Driveway CCTV Photo
service: notify.pushover_notify
enabled: false
- data:
cache: false
entity_id: media_player.whole_house
message: Parcel box has just been opened
service: tts.google_translate_say
enabled: false
- service: notify.mobile_app_rich_mob_app
data:
message: Parcel Box Opened
data:
image: /api/camera_proxy/camera.garage_13
color: green
channel: ParcelBox1
vibrationPattern: 100,200,100,200,100,200,100,200
importance: default
timeout: 86400
visibility: public
notification_icon: mdi:package-variant-closed
enabled: true
- service: notify.mobile_app_lucy_mob_app
data:
message: Front Door Doorbell
data:
image: /api/camera_proxy/camera.garage_13
color: green
channel: ParcelBox1
vibrationPattern: 100,200,100,200,100,200,100,200
importance: default
timeout: 86400
visibility: public
notification_icon: mdi:package-variant-closed
enabled: true
- data:
filename: /config/www/tmp/garage.jpg
service: camera.snapshot
enabled: false
target:
entity_id:
- camera.garage_13
- service: notify.mobile_app_rich_mob_app
data:
message: Parcel Box Opened
data:
image: /local/tmp/garage.jpg
color: green
channel: ParcelBox1
vibrationPattern: 100,200,100,200,100,200,100,200
importance: default
timeout: 86400
visibility: public
notification_icon: mdi:package-variant-closed
enabled: false
mode: single
- id: '1601037277352'
alias: Proximity/Perimeter Warning System - Primary and Secondary Zone Failure
description: ''
trigger:
- platform: zone
entity_id: device_tracker.google_maps_113691586554404814686
zone: zone.outer_perimeter
event: enter
- platform: zone
entity_id: device_tracker.google_maps_113691586554404814686
zone: zone.inner_perimeter
event: enter
condition:
- condition: or
conditions:
- condition: zone
entity_id: person.richard
zone: zone.home
- condition: zone
entity_id: person.lucy
zone: zone.home
action:
- choose:
- conditions:
- condition: zone
entity_id: device_tracker.google_maps_113691586554404814686
zone: zone.inner_perimeter
sequence:
- service: notify.google_cloud_notify
data:
message: '!!Primary Zone Failure - Inner Perimeter!!'
- service: notify.pushover_notify
data:
message: '!!Primary Zone Failure - Inner Perimeter!!'
title: '!!Primary Zone Failure - Inner Perimeter!!'
data:
sound: alien
priority: 1
- service: script.flash_dining_room_lights
- service: script.flash_dining_room_lights
- data:
cache: false
entity_id: media_player.whole_house
message: WOOP! WOOP! WOOP! WOOP! WOOP! ALERT:Warning! Primary Zone Failure!
Warning! Primary Zone Failure! Warning! Primary Zone Failure! Close the
fucking doors and windows for the love of bunnies hide! Arg!!!!
service: tts.google_translate_say
- conditions:
- condition: zone
entity_id: device_tracker.google_maps_113691586554404814686
zone: zone.outer_perimeter
sequence:
- service: notify.google_cloud_notify
data:
message: Secondary Zone Failure - Outer Perimeter
- service: notify.pushover_notify
data:
message: Secondary Zone Failure - Outer Perimeter
title: Secondary Zone Failure - Outer Perimeter
data:
sound: tugboat
priority: 0
- data:
cache: false
entity_id: media_player.whole_house
message: Notice! Secondary Zone Failure! Secondary Zone Failure - Outer
Perimeter - Outer Perimeter
service: tts.google_translate_say
mode: single
- id: '1601317646616'
alias: Front Lawn Anti Cat Defences
description: Front Lawn Anti Cat Defence
trigger:
- type: motion
platform: device
device_id: 99689212065c11ebbd2ecbef1587dfe1
entity_id: binary_sensor.drive_high_16_vmd4_camera1profile2
domain: binary_sensor
condition:
- condition: time
after: input_datetime.fld_active_start
before: input_datetime.fld_active_till
- type: is_no_motion
condition: device
device_id: ed137229065c11eb8030a1dacd09fb94
entity_id: binary_sensor.p3224_lv_0_vmd4_camera1profile2
domain: binary_sensor
- condition: device
type: is_off
device_id: 1a18e37d81f9eaee6c1870e944461b6b
entity_id: light.outside_1_down
domain: light
- condition: numeric_state
entity_id: weather.openweathermap
attribute: temperature
above: 3
- type: is_not_open
condition: device
device_id: 86b815b15cbf84a75984db3b46f6cc17
entity_id: f0cb1ec8ad721e92bd29b0684af17fe6
domain: binary_sensor
action:
- service: switch.turn_on
entity_id: switch.front_garden_lawn_irrigation_valve
- delay:
hours: 0
minutes: 0
seconds: '{{ states(''input_number.fld_water_on_time'')|float }}'
milliseconds: 0
- service: switch.turn_off
entity_id: switch.front_garden_lawn_irrigation_valve
mode: restart
- id: '1607604378569'
alias: AutoHotKey - Webhook Driven - Busy Light - Process Presence Incoming Webhook
description: 'If the automation is not restarted within 6 minutes due to a new incoming
webhook, the status is changed to offline. Ref: https://github.com/ajobbins/AHK-Teams-Presence'
trigger:
- platform: webhook
webhook_id: 6pKQYcAJY3kWdj56MVUYb4tWLr9QmGP7kKYBd5rMBz9r6ZBrQXyKhJPbuYR3vVkV
allowed_methods:
- POST
- PUT
local_only: true
condition: []
action:
- service: input_text.set_value
data:
value: '{{ trigger.json.status }}'
entity_id: input_text.autohotkey1
- delay: 00:06:00
- service: input_text.set_value
data:
value: Offline
entity_id: input_text.autohotkey1
mode: restart
- id: '1607605238090'
alias: AutoHotKey - Webhook Driven - Busy Light - Change Busy Light Colours
description: 'Change an RGB light to signal presence. Ref: https://github.com/ajobbins/AHK-Teams-Presence'
trigger:
- platform: state
entity_id: input_text.autohotkey1
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_text.autohotkey1
state: Available
sequence:
- service: light.turn_on
data:
color_name: green
transition: 3
brightness_pct: 100
target:
entity_id:
- light.busy_light_2
- light.busy_light_1
- conditions:
- condition: state
entity_id: input_text.autohotkey1
state: Busy
sequence:
- service: light.turn_on
data:
color_name: red
transition: 3
brightness_pct: 100
target:
entity_id:
- light.busy_light_2
- light.busy_light_1
- conditions:
- condition: state
entity_id: input_text.autohotkey1
state: On The Phone
sequence:
- service: light.turn_on
data:
color_name: orange
transition: 3
brightness_pct: 100
target:
entity_id:
- light.busy_light_2
- light.busy_light_1
- conditions:
- condition: state
entity_id: input_text.autohotkey1
state: In A Meeting
sequence:
- service: light.turn_on
data:
color_name: orange
transition: 3
brightness_pct: 100
target:
entity_id:
- light.busy_light_2
- light.busy_light_1
- conditions:
- condition: state
entity_id: input_text.autohotkey1
state: Do Not Disturb
sequence:
- service: light.turn_on