-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
4663 lines (4659 loc) · 109 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: '1669640676229'
alias: Boys' Bedroom - Lighting - Presence
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.boys_bedroom_presence_sensor_fp2_cf9d_presence_sensor_room
to: 'off'
for:
hours: 0
minutes: 20
seconds: 0
from: 'on'
condition: []
action:
- service: light.turn_off
data: {}
target:
area_id: boys_bedroom
mode: single
- id: '1669641631656'
alias: Boys' Bedroom - Lighting - Lights dim at 21:00
description: ''
trigger:
- platform: time
at: '21:00:00'
condition: []
action:
- service: light.turn_on
data:
brightness: 10
target:
entity_id:
- light.boys_bedroom_light
mode: single
- id: '1669642353245'
alias: Bedroom - Lighting - Presence
description: ''
triggers:
- entity_id:
- binary_sensor.apollo_msr_1_38c3bc_radar_zone_3_occupancy
from: 'off'
to: 'on'
id: '1'
for:
hours: 0
minutes: 0
seconds: 1
trigger: state
- entity_id:
- binary_sensor.apollo_msr_1_38c3bc_radar_target
to: 'off'
for:
hours: 0
minutes: 10
seconds: 0
from: 'on'
id: '2'
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: time
after: 08:15:00
before: '21:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- condition: numeric_state
entity_id: sensor.apollo_msr_1_38c3bc_ltr390_light
below: 25
- condition: trigger
id:
- '1'
- condition: not
conditions:
- condition: state
entity_id: binary_sensor.bluespike_bedroom_tv_wireless_connected
state: 'on'
- condition: state
entity_id: binary_sensor.bedroom_window_right
state: 'off'
- condition: state
entity_id: light.bedside_lights
state: 'off'
sequence:
- metadata: {}
data: {}
target:
entity_id: light.bedroom_light
action: light.turn_on
- conditions:
- condition: trigger
id:
- '2'
sequence:
- data: {}
target:
area_id: bedroom
action: light.turn_off
mode: single
- id: '1669642513302'
alias: Bedroom - Air Purifier - Presence
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.apollo_msr_1_38c3bc_radar_target
to: 'on'
id: '1'
from: 'off'
- platform: state
entity_id:
- binary_sensor.apollo_msr_1_38c3bc_radar_target
to: 'off'
for:
hours: 0
minutes: 5
seconds: 0
id: '2'
from: 'on'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
- condition: time
after: 07:00:00
before: '21:29:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
sequence:
- service: fan.turn_on
data:
preset_mode: sleep
target:
entity_id: fan.bedroom_air_purifier
- conditions:
- condition: trigger
id: '2'
sequence:
- service: fan.turn_off
data: {}
target:
entity_id: fan.bedroom_air_purifier
mode: single
- id: '1669643114640'
alias: Bedroom - Air Purifier - Off at 21:30
description: ''
trigger:
- platform: time
at: '21:30:00'
condition: []
action:
- service: fan.turn_off
data: {}
target:
entity_id: fan.bedroom_air_purifier
mode: single
- id: '1669643508858'
alias: Boys' Bedroom - Air Purifier - Presence
description: ''
triggers:
- entity_id:
- binary_sensor.boys_bedroom_presence_sensor_fp2_cf9d_presence_sensor_room
to: 'on'
id: '1'
from: 'off'
trigger: state
- entity_id:
- binary_sensor.boys_bedroom_presence_sensor_fp2_cf9d_presence_sensor_room
to: 'off'
for:
hours: 0
minutes: 0
seconds: 0
id: '2'
from: 'on'
trigger: state
- at: '21:00:00'
id: '3'
trigger: time
- at: 06:30:00
id: '4'
trigger: time
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: '1'
sequence:
- choose:
- conditions:
- condition: time
after: '21:00:00'
before: 06:30:00
sequence:
- data:
preset_mode: sleep
target:
entity_id: fan.boys_bedroom_air_purifier
action: fan.turn_on
- conditions:
- condition: time
after: 06:30:00
before: '21:00:00'
sequence:
- data:
preset_mode: sleep
target:
entity_id: fan.boys_bedroom_air_purifier
action: fan.turn_on
- conditions:
- condition: trigger
id: '2'
sequence:
- data: {}
target:
entity_id: fan.boys_bedroom_air_purifier
action: fan.turn_off
- conditions:
- condition: trigger
id:
- '3'
- condition: state
entity_id: fan.boys_bedroom_air_purifier
state: 'on'
sequence:
- data:
preset_mode: sleep
target:
entity_id: fan.boys_bedroom_air_purifier
action: fan.set_preset_mode
- conditions:
- condition: trigger
id:
- '4'
- condition: state
entity_id: fan.boys_bedroom_air_purifier
state: 'on'
sequence:
- data:
preset_mode: sleep
target:
entity_id: fan.boys_bedroom_air_purifier
action: fan.set_preset_mode
mode: single
- id: '1669644349426'
alias: Home - Lighting - Lights off at Sunrise
description: ''
triggers:
- entity_id: sensor.sun_solar_elevation
above: -1.5
trigger: numeric_state
conditions: []
actions:
- data: {}
target:
entity_id:
- light.christmas_tree
- light.boys_bedroom_air_purifier_night_light
area_id:
- landing
- hall
- garden
- porch
action: light.turn_off
- action: select.select_option
metadata: {}
data:
option: Light Off
target:
entity_id: select.ben_s_bedroom_dehumidifier_light_mode
mode: single
- id: '1669645094970'
alias: Kitchen - Lighting - Motion
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.everything_presence_lite_214fd8_occupancy
to: 'on'
id: '1'
from: 'off'
- platform: state
entity_id:
- binary_sensor.everything_presence_lite_214fd8_occupancy
to: 'off'
for:
hours: 0
minutes: 5
seconds: 0
id: '2'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
- condition: numeric_state
entity_id: sensor.everything_presence_lite_214fd8_illuminance
below: 10
sequence:
- data:
brightness_pct: 100
target:
entity_id: light.kitchen_light
action: light.turn_on
- conditions:
- condition: trigger
id: '2'
sequence:
- data: {}
target:
area_id: kitchen
action: light.turn_off
mode: single
- id: '1669645883067'
alias: Living Room - Air Purifier - Presence
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.living_room_presence_sensor_fp2_243e_presence_sensor_room
to: 'on'
id: '1'
from: 'off'
- platform: state
entity_id:
- binary_sensor.living_room_presence_sensor_fp2_243e_presence_sensor_room
to: 'off'
for:
hours: 0
minutes: 10
seconds: 0
id: '2'
from: 'on'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
sequence:
- data:
preset_mode: sleep
target:
entity_id: fan.living_room_air_purifier
action: fan.turn_on
- conditions:
- condition: trigger
id: '2'
sequence:
- data: {}
target:
entity_id: fan.living_room_air_purifier
action: fan.turn_off
mode: single
- id: '1669652542466'
alias: Living Room - Devices - Presence
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.living_room_presence_sensor_fp2_243e_presence_sensor_room
to: 'off'
for:
hours: 0
minutes: 15
seconds: 0
from: 'on'
condition: []
action:
- service: light.turn_off
data: {}
target:
area_id: living_room
- service: fan.turn_off
data: {}
target:
area_id: living_room
mode: single
- id: '1669652909742'
alias: Utility Room - Lighting - Motion
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.utility_room_motion_sensor
to: 'on'
id: '1'
from: 'off'
- platform: state
entity_id:
- binary_sensor.utility_room_motion_sensor
to: 'off'
for:
hours: 0
minutes: 10
seconds: 0
id: '2'
from: 'on'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
- condition: numeric_state
entity_id: sensor.everything_presence_lite_2fbc58_illuminance
below: 1.1
sequence:
- data: {}
target:
entity_id: light.utility_room_light
action: light.turn_on
- conditions:
- condition: trigger
id: '2'
sequence:
- data: {}
target:
entity_id: light.utility_room_light
action: light.turn_off
mode: single
- id: '1669655182401'
alias: Living Room - Lighting - TV
description: ''
trigger:
- platform: state
entity_id:
- media_player.living_room_tv_airplay
to: 'on'
id: '1'
from:
- platform: state
entity_id:
- media_player.living_room_tv_airplay
id: '2'
from:
to: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
- condition: state
entity_id: binary_sensor.living_room_presence_sensor_fp2_243e_presence_sensor_room
state: 'on'
sequence:
- service: light.turn_on
data: {}
target:
entity_id: light.living_room_tv_backlight
- service: humidifier.turn_off
metadata: {}
data: {}
target:
entity_id: humidifier.living_room_dehumidifier_none
- if:
- condition: state
entity_id: fan.living_room_fan
state: 'off'
then:
- service: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.living_room_light
- conditions:
- condition: trigger
id: '2'
sequence:
- service: light.turn_off
data: {}
target:
entity_id:
- light.living_room_tv_backlight
- delay:
hours: 0
minutes: 0
seconds: 3
milliseconds: 0
- if:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.living_room_presence_sensor_fp2_243e_presence_sensor_room
state: 'on'
- condition: numeric_state
entity_id: sensor.living_room_presence_sensor_fp2_243e_light_sensor_light_level
below: 10
then:
- service: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.living_room_light
mode: restart
- id: '1669732535776'
alias: Home - Windows - Notify if open
description: ''
trigger:
- platform: time_pattern
minutes: /30
condition:
- condition: numeric_state
entity_id: sensor.forecast_home_temperature
below: 12
- condition: time
after: 07:30:00
before: '20:30:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: state
entity_id: binary_sensor.all_windows
state: 'on'
for:
hours: 0
minutes: 30
seconds: 0
action:
- service: notify.notify
data:
title: Windows are open - it's cold!
message: '{{ states | selectattr(''entity_id'',''in'', state_attr(''binary_sensor.all_windows'',''entity_id''))
| selectattr(''state'',''eq'',''on'') | map(attribute=''name'') | join('',
'') }}
'
mode: single
- id: '1669735216190'
alias: Home - Doors - Notify if open
description: ''
trigger:
- platform: time_pattern
minutes: /30
condition:
- condition: numeric_state
entity_id: sensor.forecast_home_temperature
below: 12
- condition: time
after: 07:29:00
before: '21:31:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: state
entity_id: binary_sensor.all_doors
state: 'on'
for:
hours: 0
minutes: 30
seconds: 0
action:
- service: notify.notify
data:
title: Doors are open!
message: '{{ states | selectattr(''entity_id'',''in'', state_attr(''binary_sensor.all_doors'',''entity_id''))
| selectattr(''state'',''eq'',''on'') | map(attribute=''name'') | join('',
'') }}
'
mode: single
- id: '1669759904806'
alias: Home - Alarm - Disarmed
description: ''
trigger:
- platform: state
entity_id:
- alarm_control_panel.home_alarm
to: disarmed
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.wiser_away_mode
mode: single
- id: '1669760445018'
alias: Home - Alarm - Armed Home
description: ''
trigger:
- platform: state
entity_id:
- alarm_control_panel.home_alarm
to: armed_home
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- if:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_home
then:
- service: light.turn_off
data: {}
target:
floor_id: downstairs
area_id:
- garden
- porch
- service: fan.turn_off
data: {}
target:
floor_id: downstairs
- service: media_player.turn_off
data: {}
target:
floor_id: downstairs
mode: restart
- id: '1669784210807'
alias: Home - Battery - Low level notification
description: ''
trigger:
- platform: time
at: 07:30:00
condition:
- condition: template
value_template: '{{ sensors != '''' and (day | int == 0 or day | int == now().isoweekday())
}}'
action:
- choose: []
default:
- data:
message: '{{sensors}}'
title: Low battery warning
data:
url: /lovelace/battery-status
action: notify.mobile_app_neils_iphone
variables:
day: 6
threshold: 10
exclude:
entity_id:
- sensor.heathers_iphone_battery_level
- sensor.neils_iphone_battery_level
sensors: "{% set result = namespace(sensors=[]) %} {% for state in states.sensor
| selectattr('attributes.device_class', '==', 'battery') %}\n {% if 0 <= state.state
| int(-1) < threshold | int and not state.entity_id in exclude.entity_id %}\n
\ {% set result.sensors = result.sensors + [state.name ~ ' (' ~ state.state
~ ' %)'] %}\n {% endif %}\n{% endfor %} {% for state in states.binary_sensor
| selectattr('attributes.device_class', '==', 'battery') | selectattr('state',
'==', 'on') %}\n {% if not state.entity_id in exclude.entity_id %}\n {%
set result.sensors = result.sensors + [state.name] %}\n {% endif %}\n{% endfor
%} {{result.sensors|join(', ')}}"
mode: single
- id: '1669786710313'
alias: Home - Alarm - Armed Away
description: ''
trigger:
- platform: state
entity_id:
- alarm_control_panel.home_alarm
to: armed_away
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
- if:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
then:
- data: {}
target:
floor_id: downstairs
area_id:
- boys_bedroom
- ben_s_bedroom
entity_id:
- light.bedroom_light
- light.bedroom_mirror_light
- light.bedroom_air_purifier_night_light
action: light.turn_off
- data: {}
target:
entity_id: switch.wiser_away_mode
action: switch.turn_on
- data: {}
target:
floor_id:
- downstairs
- upstairs
action: media_player.turn_off
mode: restart
- id: '1669789669778'
alias: Living Room - TV - Presence
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.living_room_presence_sensor_fp2_243e_presence_sensor_room
to: 'off'
for:
hours: 1
minutes: 0
seconds: 0
condition: []
action:
- service: media_player.turn_off
data: {}
target:
area_id: living_room
- service: media_player.play_media
data:
media_content_type: routine
media_content_id: Living Room - Turn off TV
target:
entity_id: media_player.living_room_echo_dot
mode: single
- id: '1669807196729'
alias: Bedroom - Heating - Schedule Neil - Presence
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.apollo_msr_1_38c3bc_radar_target
to: 'off'
id: '1'
from: 'on'
for:
hours: 0
minutes: 15
seconds: 0
- platform: state
entity_id:
- binary_sensor.apollo_msr_1_38c3bc_radar_target
to: 'on'
id: '2'
from: 'off'
condition:
- condition: state
entity_id: person.neil
state: home
action:
- choose:
- conditions:
- condition: trigger
id: '1'
sequence:
- service: wiser.assign_schedule
data:
to_entity_id: climate.wiser_bedroom
schedule_name: Bedroom - Neil not working
- conditions:
- condition: trigger
id: '2'
- condition: time
after: 08:00:00
before: '18:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: person.neil
state: home
- condition: not
conditions:
- condition: and
conditions:
- condition: template
value_template: '{{ (''pto'' | lower in state_attr(''calendar.neil_work'',
''message'') | lower) or (''lunch'' | lower in state_attr(''calendar.neil_work'',
''message'') | lower) }}'
- condition: state
entity_id: calendar.neil_work
state: 'on'
- condition: state
entity_id: calendar.united_kingdom_eng
state: 'off'
sequence:
- service: wiser.assign_schedule
data:
to_entity_id: climate.wiser_bedroom
schedule_name: Bedroom - Neil working
mode: single
- id: '1669834868112'
alias: Kitchen - Smart Button
description: ''
trigger:
- platform: state
entity_id:
- event.kitchen_smart_button_button_1
attribute: event_type
from: repeat
to: long_release
condition: []
action:
- service: vacuum.start
data: {}
target:
entity_id: vacuum.deebot_t9
mode: single
- id: '1669893268652'
alias: Utility Room - Smart Button
description: ''
trigger:
- platform: state
entity_id:
- event.utility_room_smart_button_button_1
attribute: event_type
from: repeat
to: long_release
condition: []
action:
- service: light.toggle
data:
brightness_pct: 100
target:
entity_id:
- light.garden_light
mode: single
- id: '1669894322950'
alias: Ben's Bedroom - Geofence
description: ''
trigger:
- platform: state
entity_id:
- person.ben
to: not_home
id: '1'
from: home
for:
hours: 0
minutes: 0
seconds: 0
- platform: state
entity_id:
- person.ben
to: home
id: '2'
from: not_home
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
sequence:
- data:
hvac_mode: 'off'
target:
area_id: ben_s_bedroom
action: climate.set_hvac_mode
- action: script.ben_s_bedroom_all_devices_off
metadata: {}
data: {}
- conditions:
- condition: trigger
id: '2'
- condition: state
entity_id: binary_sensor.ben_s_bedroom_window
state: 'off'
sequence:
- data:
hvac_mode: auto
target:
area_id:
- ben_s_bedroom
action: climate.set_hvac_mode
mode: single
- id: '1669974397900'
alias: Home - Heating - Temperature Cap
description: ''
trigger:
- platform: event
event_type: wiser_event
event_data:
type: target_temperature_increased
variables:
cap_temp: 20
room: '{{trigger.event.data.entity_id}}'
target_temp: '{{state_attr(trigger.event.data.entity_id, ''temperature'')}}'
condition:
- condition: template
value_template: '{{ target_temp|float > cap_temp }}'
action:
- service: climate.set_temperature
data:
temperature: '{{cap_temp}}'
target:
entity_id: '{{room}}'
mode: queued
max: 10
- id: '1669980286519'
alias: Boys' Bedroom - Geofence
description: ''
trigger:
- platform: state
entity_id:
- person.kyle
- person.liam
from: home
to: not_home
id: '1'
for:
hours: 0
minutes: 0
seconds: 0
- platform: state
entity_id:
- person.kyle
- person.liam
from: not_home
to: home
id: '2'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: '1'
- condition: and
conditions:
- condition: not
conditions:
- condition: state
entity_id: person.kyle
state: home
- condition: not
conditions:
- condition: state
entity_id: person.liam
state: home
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: 'off'
target:
area_id: boys_bedroom
- service: light.turn_off
data: {}
target:
area_id: boys_bedroom
- service: media_player.turn_off
data: {}
target:
area_id: boys_bedroom
- conditions:
- condition: trigger
id: '2'
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.boys_bedroom_window_awning
state: 'off'
- condition: state
entity_id: binary_sensor.boys_bedroom_window_casement
state: 'off'
sequence:
- service: climate.set_hvac_mode
data:
hvac_mode: auto
target:
area_id: boys_bedroom
mode: single
- id: '1670048920727'
alias: System - Backup - Notify on failure
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.backups_stale
from: