-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathautomations.yaml
2589 lines (2588 loc) · 65.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: '1591481819436'
alias: System - Startup Tasks
description: ''
trigger:
- event: start
platform: homeassistant
condition: []
action:
- data:
payload: announce
topic: shellies/command
service: mqtt.publish
- data:
topic: cmnd/tasmotas/state
service: mqtt.publish
- data:
topic: cmnd/tasmotas/status
payload: '2'
service: mqtt.publish
- data:
topic: cmnd/tasmotas/status
payload: '11'
service: mqtt.publish
mode: single
- id: '1603043020584'
alias: Doorbell - Front Ring
description: ''
trigger:
- platform: state
entity_id: binary_sensor.doorbell_doorbell
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: time
after: 08:00:00
before: '22:00:00'
- condition: state
entity_id: group.family_devices
state: home
action:
- service: media_player.play_media
data:
media_content_id: https://home.eatsleepbreach.ca/local/doorbell_front.mp3
media_content_type: music
target:
device_id:
- c03750400bd411ebbd21d302c0018c1a
- c03891860bd411eba6bb6b655e54293d
- service: camera.play_stream
data:
media_player:
- media_player.master_bedroom_display
- media_player.office_display
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: media_player.turn_off
data: {}
target:
entity_id:
- media_player.master_bedroom_display
- media_player.office_display
mode: parallel
max: 10
- id: '1602687924312'
alias: Cover - Garage Door Opened
description: ''
trigger:
- platform: state
entity_id: cover.garage_door
from: closed
to: open
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- service: notify.ios_all_devices
data:
message: Garage Cover has been opened.
title: "\U0001F697 Garage Cover Opened!"
data:
attachment:
content-type: jpeg
hide-thumbnail: false
push:
category: camera
entity_id: camera.garage_snapshot
mode: single
- id: '1602786040005'
alias: Notify - Mailbox
description: ''
trigger:
- type: vibration
platform: device
device_id: 36d2ce018f352aab0ae0c1d81eec0b00
entity_id: binary_sensor.vibration_mailbox_vibration
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- service: notify.ios_all_devices
data:
message: You've got mail!
title: "\U0001F4EC Mailbox"
data:
attachment:
content-type: jpeg
hide-thumbnail: false
push:
category: camera
entity_id: camera.front_door_snapshot
mode: single
- id: '1591375582026'
alias: Lock - Secure all at night
description: ''
trigger:
- at: '21:00:00'
platform: time
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- data: {}
service: lock.lock
target:
entity_id:
- lock.back_door_lock
- lock.front_door_lock
- lock.garage_door_lock
mode: single
- id: '1602346908294'
alias: Lock - Front Door Unlocked
description: ''
trigger:
- platform: device
device_id: 17ad4d3482096182954b88c4f35bb21f
domain: lock
entity_id: lock.front_door_lock
type: unlocked
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: numeric_state
entity_id: sensor.uptime_minutes
above: '3.0'
- type: is_no_motion
condition: device
device_id: 0f34f53f31643c2d0308786febfb660a
entity_id: binary_sensor.motion_front_door_inside_occupancy
domain: binary_sensor
action:
- service: notify.ios_all_devices
data:
message: Front Door has been opened.
title: "\U0001F6AA Front Door Unlocked!"
data:
attachment:
content-type: jpeg
hide-thumbnail: false
push:
category: camera
entity_id: camera.front_door_snapshot
mode: single
- id: '1603502802809'
alias: Lock - Back Door Unlocked
description: ''
trigger:
- platform: device
device_id: 87bc70b6345efdbf37f8c5b676cf3e4d
domain: lock
entity_id: lock.back_door_lock
type: unlocked
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: numeric_state
entity_id: sensor.uptime_minutes
above: '3.0'
- type: is_no_motion
condition: device
device_id: 78493bd91a6c4aaa7ff02541d827d747
entity_id: binary_sensor.motion_back_door_inside_occupancy
domain: binary_sensor
action:
- service: notify.ios_all_devices
data:
message: Back Door has been opened.
title: "\U0001F6AA Back Door Unlocked!"
data:
attachment:
content-type: jpeg
hide-thumbnail: false
push:
category: camera
entity_id: camera.back_door_snapshot
mode: single
- id: '1602687787297'
alias: Lock - Garage Door Unlocked
description: ''
trigger:
- platform: device
device_id: 5fa5f875376772df0a5008c64b7b4eea
domain: lock
entity_id: lock.garage_door_lock
type: unlocked
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: numeric_state
entity_id: sensor.uptime_minutes
above: '3.0'
action:
- service: notify.ios_all_devices
data:
message: Garage Door has been opened.
title: "\U0001F6AA Garage Door Unlocked!"
data:
attachment:
content-type: jpeg
hide-thumbnail: false
push:
category: camera
entity_id: camera.back_door_snapshot
mode: single
- id: '1602440187444'
alias: Amps - Power Control
description: ''
trigger:
- platform: state
entity_id: media_player.patio_speaker
- platform: state
entity_id: media_player.master_bedroom_speaker
- platform: state
entity_id: media_player.kitchen_ceiling
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.to_state.state == ''playing'' }}'
sequence:
- service: switch.turn_on
data: {}
entity_id: switch.amp
default:
- repeat:
until:
- condition: and
conditions:
- condition: state
entity_id: media_player.kitchen_ceiling
state: 'off'
for:
hours: 0
minutes: 5
seconds: 0
- condition: state
entity_id: media_player.patio_speaker
state: 'off'
for:
hours: 0
minutes: 5
seconds: 0
- condition: state
entity_id: media_player.master_bedroom_speaker
state: 'off'
for:
hours: 0
minutes: 5
seconds: 0
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.amp
mode: single
- id: '1602435177490'
alias: Light - Seasonal Effects
description: ''
trigger:
- platform: state
entity_id: light.front_porch
to: 'on'
from: 'off'
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: sensor.month
state: December
sequence:
- service: light.turn_on
data:
effect: Christmas
entity_id: light.front_porch
- conditions:
- condition: state
entity_id: sensor.month
state: October
sequence:
- service: light.turn_on
data:
effect: Halloween
default: []
mode: single
- id: '1602430306575'
alias: Light - Sunrise
description: ''
trigger:
- platform: sun
event: sunrise
offset: 00:10:00
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- service: switch.turn_off
data: {}
target:
entity_id:
- switch.front_door
- switch.back_door
- switch.garage_exterior_lights
- type: turn_off
device_id: 38d965d356ff44218994d149daf1634c
entity_id: light.front_porch
domain: light
mode: single
- id: '1602430417396'
alias: Light - Sunset
description: ''
trigger:
- platform: sun
event: sunset
offset: -00:05:00
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- service: switch.turn_on
data: {}
target:
entity_id:
- switch.front_door
- switch.back_door
- switch.garage_exterior_lights
- service: light.turn_on
data:
brightness_pct: 100
color_name: yellow
entity_id: light.front_porch
mode: single
- id: '1598110682886'
alias: Cover - Garage Cover Open for 5 Minutes
description: ''
trigger:
- entity_id: cover.garage_door
for: 00:05:00
from: closed
platform: state
to: open
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- data:
actions:
- action: close_garage
title: Close Garage Door
message: Garage door has been open for 5 minutes. Close it?
title: "\U0001F699 Garage left open!"
service: notify.ios_all_devices
mode: single
- id: '1602274353769'
alias: Laundry - Notifications
description: ''
trigger:
- platform: state
entity_id: sensor.dryer
attribute: remain_time
to: 0:01:00
from: 0:02:00
id: dryer_done
- platform: state
entity_id: sensor.washer
id: washer_done
from: 0:02:00
to: 0:01:00
attribute: remain_time
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- choose:
- conditions:
- condition: trigger
id: dryer_done
sequence:
- service: input_text.set_value
target:
entity_id: input_text.dryer_time
data:
value: '{{ relative_time(states.sensor.dryer.attributes.initial_time) }}'
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: notify.ios_all_devices
data:
title: "\U0001F9E6 Dryer is done!"
message: '{%- if is_state(''sensor.washer'', ''on'') %}Washer will be done
in {{ relative_time(states.sensor.washer.attributes.remain_time) }}{%-
else -%}Cycle took {{ states(''input_text.dryer_time'') }}{% endif %}'
- conditions:
- condition: trigger
id: washer_done
sequence:
- service: input_text.set_value
target:
entity_id: input_text.washer_time
data:
value: '{{ relative_time(states.sensor.washer.attributes.initial_time) }}'
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: notify.ios_all_devices
data:
title: "\U0001F455 Washer is done!"
message: '{%- if is_state(''sensor.dryer'', ''on'') %}Dryer will be done
in {{ relative_time(states.sensor.dryer.attributes.remain_time) }}{%-
else -%}Cycle took {{ states(''input_text.washer_time'') }}{% endif %}'
default: []
mode: single
- id: '1605810087167'
alias: Waste Collection - Collection Day Alerts
description: Turn on the kitchen LEDs depending on the collection day.
trigger:
- platform: time
at: '17:00:00'
id: 5pm_time
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: sensor.black_bin
state: tomorrow
sequence:
- service: light.turn_on
data:
brightness_pct: 100
color_name: red
entity_id: light.kitchen_cabinets
- conditions:
- condition: state
entity_id: sensor.blue_bin
state: tomorrow
sequence:
- service: light.turn_on
data:
brightness_pct: 100
color_name: blue
entity_id: light.kitchen_left_led
- conditions:
- condition: state
entity_id: sensor.green_bin
state: tomorrow
sequence:
- service: light.turn_on
data:
brightness_pct: 100
color_name: green
entity_id: light.kitchen_right_led
default: []
mode: single
- id: '1607991157120'
alias: Notify - Refrigerator Open
description: ''
trigger:
- type: opened
platform: device
device_id: c58dfc0d22b38b87d0482e1c65b2a256
entity_id: binary_sensor.door_refridgerator_contact
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- repeat:
until:
- type: is_not_open
condition: device
device_id: c58dfc0d22b38b87d0482e1c65b2a256
entity_id: binary_sensor.door_refridgerator_contact
domain: binary_sensor
sequence:
- service: notify.ios_all_devices
data:
message: Close the fridge!
title: "\U0001F9CA Refrigerator"
- delay: 00:02:00
mode: single
- id: '1608008281551'
alias: Alarm - Disarm at Time
description: Disarm the alarm based on the time
trigger:
- platform: time
at: input_datetime.alarm_disarm
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: group.family_devices
state: home
action:
- service: alarm_control_panel.alarm_disarm
data: {}
entity_id: alarm_control_panel.calgary_alarm
mode: single
- id: '1608334851404'
alias: Alarm - Arm Home
description: ''
trigger:
- platform: time
at: input_datetime.alarm_arm
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: group.family_devices
state: home
action:
- service: switch.turn_off
data: {}
entity_id: switch.garage_cover_outlet_2
- service: alarm_control_panel.alarm_arm_home
data: {}
entity_id: alarm_control_panel.calgary_alarm
- service: input_boolean.turn_on
target:
entity_id: input_boolean.quiet_time
data: {}
- service: switch.turn_on
target:
entity_id: switch.entryway_outlet_1
data: {}
mode: single
- id: '1609684788084'
alias: Presence - Family is Away
description: Arm Alarm, Climate Away, Shut things off, Notify open windows
trigger:
- platform: state
entity_id: group.family_devices
from: home
to: not_home
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: input_boolean.guestmode
state: 'off'
action:
- service: alarm_control_panel.alarm_arm_away
target:
device_id: d2f4d5b400ef24f2f92f7e5beb98fd34
data: {}
- service: switch.turn_on
target:
entity_id: switch.entryway_outlet_1
data: {}
- service: climate.set_preset_mode
target:
entity_id:
- climate.main_floor
- climate.master_bathroom
data:
preset_mode: Away
- service: light.turn_off
data: {}
target:
entity_id: light.inside_lights
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.all_windows
state: 'on'
sequence:
- service: notify.ios_all_devices
data:
message: '{{ states | selectattr(''entity_id'',''in'', state_attr(''binary_sensor.all_windows'',''entity_id''))
| selectattr(''state'',''eq'',''on'') | map(attribute=''name'') | join('',
'') }}
'
title: "\U0001FA9F Windows Open:"
data: {}
default: []
mode: single
- id: '1613599134512'
alias: Printer - Power Control
description: ''
trigger:
- platform: state
entity_id: sensor.lexmark_cs310_series
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: not
conditions:
- condition: state
entity_id: sensor.lexmark_cs310_series
state: unavailable
action:
- choose:
- conditions:
- condition: not
conditions:
- condition: state
entity_id: sensor.lexmark_cs310_series
state: idle
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.switch_printer
default:
- condition: state
entity_id: sensor.lexmark_cs310_series
state: idle
for:
hours: 0
minutes: 30
seconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.switch_printer
mode: single
- id: '1614538081222'
alias: Door - Basement Stairs Light
description: ''
trigger:
- platform: state
entity_id: binary_sensor.basement_door
to: 'on'
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: device
type: is_off
device_id: 82e0c17532a89c0f67d225445a48a13c
entity_id: switch.basement_stairs
domain: switch
for:
hours: 0
minutes: 0
seconds: 10
milliseconds: 0
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.basement_stairs
mode: single
- id: '1614558915813'
alias: Climate - Window Control
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.all_windows
for:
hours: 0
minutes: 1
seconds: 0
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.all_windows
state: 'on'
sequence:
- service: climate.set_hvac_mode
target:
entity_id: climate.main_floor
data:
hvac_mode: 'off'
- service: climate.set_fan_mode
target:
entity_id: climate.main_floor
data:
fan_mode: 'on'
- conditions:
- condition: state
entity_id: binary_sensor.all_windows
state: 'off'
sequence:
- service: climate.turn_on
target:
entity_id: climate.main_floor
data: {}
- service: climate.set_preset_mode
target:
entity_id: climate.main_floor
data:
preset_mode: Home
- service: climate.set_fan_mode
target:
entity_id: climate.main_floor
data:
fan_mode: auto
default: []
mode: single
- id: '1614829216486'
alias: Light - Kitchen Night Light Motion
description: ''
trigger:
- type: motion
platform: device
device_id: 149cb6ad605345b28fa0b9e63ddd9cfc
entity_id: binary_sensor.motion_upstairs_stairway_occupancy
domain: binary_sensor
- type: motion
platform: device
device_id: e8d280d931dfd93ddacfcfe74785c318
entity_id: binary_sensor.stairway_motion
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: light.island
state: 'off'
- condition: state
entity_id: switch.kitchen_light
state: 'off'
action:
- service: light.turn_on
data:
brightness_pct: 100
rgb_color:
- 255
- 255
- 0
target:
entity_id: light.kitchen_cabinets
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: light.turn_off
data: {}
target:
entity_id:
- light.kitchen_left_led
- light.kitchen_right_led
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
mode: single
- id: '1615395552931'
alias: Blind - Dining Room
description: ''
trigger:
- platform: sun
event: sunset
offset: 00:05:00
id: sunset
- platform: time
at: 08:30:00
id: morning
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: input_select.blinds_dining_room_mode
state: Automatic
action:
- choose:
- conditions:
- condition: trigger
id: sunset
- type: is_not_open
condition: device
device_id: 3a7619b5375a979495ac7f6ed872fbfb
entity_id: binary_sensor.dining_room_window
domain: binary_sensor
sequence:
- device_id: a188d65077fed6db336e64e4bf6affac
domain: cover
entity_id: cover.blinds_dining_room
type: set_position
position: 0
- conditions:
- condition: trigger
id: morning
sequence:
- device_id: a188d65077fed6db336e64e4bf6affac
domain: cover
entity_id: cover.blinds_dining_room
type: set_position
position: 100
default: []
mode: single
- id: '1615478976864'
alias: Switch - Basement Stairs Inactivity
description: ''
trigger:
- platform: state
entity_id: switch.basement_stairs
to: 'on'
for: 00:05:00
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- type: is_no_motion
condition: device
device_id: e8d280d931dfd93ddacfcfe74785c318
entity_id: binary_sensor.stairway_motion
domain: binary_sensor
action:
- service: switch.turn_off
target:
entity_id: switch.basement_stairs
mode: single
- id: '1615652464813'
alias: Blind - Library
description: ''
trigger:
- platform: sun
event: sunset
offset: 00:05:00
id: sunset
- platform: time
at: 08:30:00
id: morning
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: input_select.blinds_library_mode
state: Automatic
action:
- choose:
- conditions:
- condition: trigger
id: sunset
sequence:
- service: cover.close_cover
target:
entity_id: cover.blinds_library
- conditions:
- condition: trigger
id: morning
sequence:
- service: cover.open_cover
target:
entity_id: cover.blinds_library
default: []
mode: single
- id: '1615652668231'
alias: Blind - Stairway
description: ''
trigger:
- platform: sun
event: sunset
offset: 00:05:00
id: sunset
- platform: time
at: 08:30:00
id: morning
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
- condition: state
entity_id: input_select.blinds_stairway_mode
state: Automatic
action:
- choose:
- conditions:
- condition: trigger
id: sunset
sequence:
- device_id: 1d12d8fb4efd74d94cafdee673e25260
domain: cover
entity_id: cover.blinds_stairway
type: set_position
position: 0
- conditions:
- condition: trigger
id: morning
sequence:
- device_id: 1d12d8fb4efd74d94cafdee673e25260
domain: cover
entity_id: cover.blinds_stairway
type: set_position
position: 100
default: []
mode: single
- id: '1615754157293'
alias: Tag - Front Door Camera
description: Turns off camera alerts when scanned
trigger:
- platform: tag
tag_id: 07a17b17-1185-4176-b8ee-9e45dcab91e8
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- service: switch.turn_off
target:
entity_id: switch.front_door_detect
- delay:
hours: 4
minutes: 0
seconds: 0
milliseconds: 0
- service: switch.turn_on
target:
entity_id: switch.front_door_detect
mode: single
- id: '1615757783776'
alias: Tag - Back Door Camera
description: Turns off camera alerts when scanned
trigger:
- platform: tag
tag_id: d8e2ba2e-778c-41a1-a2ef-2a5a15142534
condition:
- condition: state
entity_id: input_boolean.automations
state: 'on'
action:
- service: switch.turn_off
target:
entity_id:
- switch.back_door_detect
mode: single
- id: '1618257119742'
alias: Notify - Water Leak
description: ''
trigger:
- type: moist
platform: device
device_id: bc44ee932cad5e210f67fedd29f5122f
entity_id: binary_sensor.water_bathtub_water_leak