-
Notifications
You must be signed in to change notification settings - Fork 2
/
automations.yaml
1211 lines (1207 loc) · 30 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: 2a197cb06cf7
alias: 'Theme: Change automatically ✔️'
trigger:
- event: start
platform: homeassistant
- entity_id: sun.sun
platform: state
to: above_horizon
- entity_id: sun.sun
platform: state
to: below_horizon
action:
- data:
name: "{% if states.sun.sun.state == \"above_horizon\" %}\n My Light UI\n{%
else %}\n My Dark UI\n{% endif %}\n"
service: frontend.set_theme
- id: 28c90f5faaa5
alias: 'Home: Away mode ✔️'
description: Disable home automations while away.
trigger:
- platform: template
value_template: '{{ is_state(''person.eric'', ''not_home'') and is_state(''person.caro'',
''not_home'') }}'
id: away
for:
minutes: 2
- platform: template
value_template: '{{ is_state(''person.eric'', ''home'') }}'
- platform: template
value_template: '{{ is_state(''person.caro'', ''home'') }}'
condition: []
action:
- service: "{% if is_state('person.eric', 'home') or is_state('person.caro', 'home')
%}\n automation.turn_on\n{% else %}\n automation.turn_off\n{% endif %}\n"
data: {}
target:
entity_id:
- automation.bathroom_motion
- automation.entrance_motion
- automation.closet_motion
- automation.office_turn_on_desktop_while_arriving
- choose:
- conditions:
- condition: trigger
id: away
sequence:
- entity_id: scene.turn_off_everything
service: scene.turn_on
default: []
mode: restart
- id: c9f3148d9539
alias: 'Bedroom: Turn off everything in low light ✔️'
trigger:
- platform: state
entity_id: light.bedroom
from: 'on'
to: 'off'
condition:
- condition: template
value_template: "{{ trigger.from_state and \n trigger.from_state.attributes.brightness
== 2 }}\n"
action:
- service: scene.turn_on
target:
entity_id: scene.turn_off_everything
data: {}
mode: single
- id: '1586909791957'
alias: 'Bedroom: Curtains'
description: ''
trigger:
- entity_id: sun.sun
platform: state
condition:
- condition: state
entity_id: input_boolean.use_sunrise_curtains
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: sun.sun
state: above_horizon
sequence:
- service: cover.open_cover
data: {}
target:
entity_id: cover.curtains
- conditions:
- condition: state
entity_id: sun.sun
state: below_horizon
sequence:
- service: cover.close_cover
data: {}
target:
entity_id: cover.curtains
default: []
- id: '1608127387393'
alias: 'Everything: Turn off with phone charger ✔️'
description: ''
trigger:
- platform: state
entity_id:
- sensor.eric_phone_charger_type
to: wireless
condition:
- condition: time
after: '21:30:00'
before: 04:00:00
action:
- scene: scene.bedtime
mode: single
- id: '1620346496383'
alias: 'Bedroom: Sync under_bed with ceiling light ✔️'
description: ''
trigger:
- platform: state
entity_id: light.bedroom
condition: []
action:
- service: light.turn_on
target:
entity_id: light.under_bed
data:
rgb_color: "{% set ambiance = [255, 71, 71] %}\n{% set low_light = [255, 117,
71] %}\n{% if (state_attr('light.bedroom', 'brightness') or 0) < 5 %}\n {{
low_light }}\n{% else %}\n {{ ambiance }}\n{% endif %}\n"
brightness: "{% set threshold = 200 %}\n{% if states('light.bedroom') == 'off'
or state_attr('light.bedroom', 'brightness') > threshold %}\n 0\n{% elif
(state_attr('light.bedroom', 'brightness') or 0) < 5 %}\n 90\n{% else %}\n
\ 200\n {# threshold - min(state_attr('light.bedroom', 'brightness'), threshold)
#}\n{% endif %}\n"
mode: restart
- id: '1623326884562'
alias: 'Plants: Grow lights ✔️'
description: ''
trigger:
- platform: state
entity_id: sun.sun
to: above_horizon
id: sun
- platform: time
at: '17:00:00'
id: time
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: sun
sequence:
- service: light.turn_on
target:
entity_id: light.plants
data:
brightness: 255
color_temp: 158
- conditions:
- condition: trigger
id: time
sequence:
- service: light.turn_off
data: {}
target:
entity_id: light.plants
default: []
mode: single
- id: '1643482972962'
alias: 'Closet: motion ✔️'
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.motion_closet
target_entity: switch.closet
no_motion_wait: input_number.motion_time_off
time_limit_after: input_datetime.motion_on
time_limit_before: input_datetime.motion_off
- id: '1643521875134'
alias: 'Theatre: Turn on when TV is on ✔️'
description: ''
trigger:
- platform: device
device_id: 1c05c6a0aaa4f4be1645832535abfd7d
domain: media_player
entity_id: media_player.tv
type: playing
condition:
- condition: time
before: 01:00:00
after: '17:00:00'
action:
- service: light.turn_on
target:
entity_id: light.theatre
data:
brightness: 255
mode: single
- id: '1643594926751'
alias: 'Entrance: Button 3 turn off all ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.entrance_button_3
from: 'off'
to: 'on'
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.turn_off_everything
data: {}
mode: single
- id: '1643595025000'
alias: 'Office: Turn on desktop while arriving ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.motion_entrance
to: 'on'
condition:
- condition: time
after: 07:00:00
before: '10:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: light.turn_on
target:
entity_id: light.desktop
data:
color_temp: 251
brightness: 255
mode: single
- id: '1643860305249'
alias: 'Dining table: Sync with Kitchen island ✔️'
description: ''
trigger:
- platform: state
entity_id: light.kitchen_island
condition:
- condition: template
value_template: '{{ trigger.to_state.context.parent_id == none }}'
- condition: template
value_template: '{{ trigger.to_state.context.user_id == none }}'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.to_state.state == ''on'' }}'
sequence:
- service: light.turn_on
data:
brightness: '{{ state_attr(''light.kitchen_island'', ''brightness'') }}'
target:
entity_id: light.dining_table
- conditions:
- condition: template
value_template: '{{ trigger.to_state.state == ''off'' }}'
sequence:
- service: light.turn_off
target:
entity_id: light.dining_table
data: {}
default: []
mode: parallel
max: 10
- id: '1643899203409'
alias: 'Bathroom: Motion ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.motion_bathroom
to: 'on'
from: 'off'
condition:
- condition: not
conditions:
- condition: state
entity_id: vacuum.roby
state: cleaning
- condition: state
entity_id: light.small_bathroom
state: 'off'
for:
hours: 0
minutes: 0
seconds: 45
action:
- service: light.turn_on
data:
brightness: '{% if state_attr("light.small_bathroom", "brightness") != None
%}{{ state_attr("light.small_bathroom", "brightness") }}{% elif now().hour
> 22 %}2{% elif now().hour > 20 %}180{% elif now().hour < 6 %}2{% elif now().hour
< 8 %}200{% else %}255{% endif %}
'
target:
entity_id: light.small_bathroom
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.motion_bathroom
to: 'off'
for:
hours: 1
minutes: 30
seconds: 0
from: 'on'
timeout: 01:30:00
- service: light.turn_off
data:
transition: 3
target:
entity_id: light.small_bathroom
mode: restart
- id: '1644094148476'
alias: 'Entrance: Motion ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.motion_entrance
to: 'on'
from: 'off'
condition:
- condition: time
after: 06:00:00
before: 01:00:00
action:
- service: light.turn_on
data:
brightness: '{% if state_attr("light.hall", "brightness") != None %}{{ state_attr("light.hall",
"brightness") }}{% elif now().hour > 22 %}80{% elif now().hour > 20 %}100{%
elif now().hour < 8 %}100{% else %}255{% endif %}
'
transition: 2
target:
entity_id: light.hall
- wait_for_trigger:
- platform: state
entity_id: binary_sensor.motion_entrance
from: 'on'
to: 'off'
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: light.turn_off
data:
transition: 5
target:
entity_id: light.hall
mode: restart
- id: '1645234889986'
alias: 'Bathroom: Sync cabinets with Hall/Kitchen lights ✔️'
description: ''
trigger:
- platform: state
entity_id: light.kitchen
- platform: state
entity_id: light.hall
condition:
- condition: time
after: '16:00:00'
before: 00:00:00
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: state
entity_id: light.kitchen
state: 'off'
- condition: state
entity_id: light.hall
state: 'off'
sequence:
- service: light.turn_off
data:
transition: 3
target:
entity_id: light.under_cabinet
- conditions:
- condition: state
entity_id: light.under_cabinet
state: 'off'
sequence:
- service: light.turn_on
data:
rgb_color:
- 255
- 218
- 108
brightness: 210
target:
entity_id: light.under_cabinet
default: []
mode: single
- id: '1646710305446'
alias: 'Office: Desktop light sync with PC ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.gaming_pc
to:
condition:
- condition: template
value_template: '{{ trigger.to_state.state != trigger.from_state.state }}'
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.gaming_pc
state: 'on'
sequence:
- service: homeassistant.turn_off
data: {}
target:
entity_id: switch.desktop_flux
- service: light.turn_on
data:
rgb_color:
- 255
- 110
- 254
brightness: 178
target:
entity_id: light.desktop
- conditions:
- condition: state
entity_id: binary_sensor.eric_mbp_active
state: 'on'
sequence:
- service: light.turn_on
data:
color_temp: 251
brightness: 255
target:
entity_id: light.desktop
default:
- service: homeassistant.turn_off
data: {}
target:
entity_id:
- light.desktop
mode: single
- id: '1646710431195'
alias: 'Office: Wardrobe light from sensor ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.office_wardrobe_sensor
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.office_wardrobe_sensor
state: 'on'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.office_wardrobe
default:
- service: switch.turn_off
data: {}
target:
entity_id: switch.office_wardrobe
mode: single
- id: '1646710542220'
alias: 'Plants: Wardrobe light from sensor ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.caro_wardrobe_sensor
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.caro_wardrobe_sensor
state: 'on'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.caro_wardrobe
default:
- service: switch.turn_off
data: {}
target:
entity_id: switch.caro_wardrobe
mode: single
- id: '1646933996426'
alias: 'Bedroom: Sync climate ✔️'
description: ''
trigger:
- platform: state
entity_id: climate.bedroom_thermostat
attribute: temperature
id: bedroom
- platform: state
entity_id: climate.small_bathroom_thermostat
attribute: temperature
id: bathroom
condition:
- condition: template
value_template: '{{ trigger.to_state.context.parent_id == none }}'
- condition: template
value_template: '{{ now() > state_attr(this.entity_id, ''last_triggered'') + timedelta(seconds=2)
}}'
action:
- choose:
- conditions:
- condition: trigger
id: bedroom
sequence:
- service: climate.set_temperature
data:
temperature: '{{ state_attr(''climate.bedroom_thermostat'', ''temperature'')
}}
'
target:
entity_id: climate.small_bathroom_thermostat
- conditions:
- condition: trigger
id: bathroom
sequence:
- service: climate.set_temperature
data:
temperature: '{{ state_attr(''climate.small_bathroom_thermostat'', ''temperature'')
}}
'
target:
entity_id: climate.bedroom_thermostat
default: []
mode: single
- id: '1648313126065'
alias: 'Office: Desktop flux ✔️'
description: ''
use_blueprint:
path: ericmatte/flux_light.yaml
input:
light_target: light.desktop
flux_switch: switch.desktop_flux
- id: '1648313564753'
alias: 'Dining table: Flux ✔️'
description: ''
use_blueprint:
path: ericmatte/flux_light.yaml
input:
light_target: light.dining_table
flux_switch: switch.dining_table_flux
- id: '1648320672728'
alias: 'Bedroom: Heat intervals ✔️'
description: ''
use_blueprint:
path: ericmatte/heat_intervals.yaml
input:
time_low_2: 00:15:00
climate_target:
entity_id:
- climate.bedroom_thermostat
- climate.small_bathroom_thermostat
time_low_1: 08:45:00
time_high_2: '21:30:00'
time_high_1: 06:45:00
low_temp: 19.5
high_temp: 21
- id: '1648324723671'
alias: 'Thermostats: Sync outdoor temperature ✔️'
description: ''
use_blueprint:
path: ericmatte/climate_outdoor_temperature.yaml
input:
device_id_1: 11
device_id_2: 17
device_id_3: 13
device_id_4: 14
temperature_input: weather.home
- id: '1648330845926'
alias: 'Thermostats: Away/Eco heat mode ✔️'
description: ''
use_blueprint:
path: ericmatte/heat_away_eco_mode.yaml
input:
eco_mode_boolean: input_boolean.heat_eco_mode
outside_temp: weather.home
climate_target:
entity_id:
- climate.small_bathroom_thermostat
- climate.living_room_thermostat
- climate.bedroom_thermostat
automations:
entity_id:
- automation.living_room_heat_on
- automation.bedroom_heats
person_1: person.eric
person_2: person.caro
low_temp_target: 17
- id: '1648331331944'
alias: 'Living room: Heat on ✔️'
description: ''
trigger:
- platform: time
at: 08:00:00
condition: []
action:
- service: climate.set_temperature
data:
temperature: 21
target:
entity_id: climate.living_room_thermostat
mode: single
- id: '1648352164561'
alias: 'Office: Heat sync ✔️'
description: ''
use_blueprint:
path: ericmatte/heat_office_custom.yaml
input:
time_low: '16:00:00'
person: person.eric
climate_target:
entity_id: climate.office_thermostat
high_temp: 22.5
low_temp: 21
time_high: 08:30:00
gaming_pc: binary_sensor.gaming_pc
macbook_active: binary_sensor.eric_mbp_active
macbook_ping: binary_sensor.macbook
macbook_displays: sensor.eric_mbp_displays
- id: '1648361041950'
alias: Robot cleaning reminder
description: ''
use_blueprint:
path: ericmatte/robot_cleaning_reminder.yaml
input:
notification_time: '15:00:00'
person: person.eric
notify_device: 0392bfe3ca5e1a7ce067065214927018
vacuum: vacuum.roby
vacuum_last_clean: sensor.roby_last_clean_start
days_threshold: 6
- id: '1649100465676'
alias: 'Entrance: Toggle lights with door sensor ✔️'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.entrance_door
from: 'off'
to: 'on'
condition: []
action:
- service: homeassistant.turn_on
data: {}
target:
entity_id:
- light.hall
- switch.closet
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.closet
mode: restart
- id: '1650826951281'
alias: 'Bathroom: Sync with walk-in ✔️'
description: ''
use_blueprint:
path: ericmatte/sync_lights.yaml
input:
light_1: light.small_bathroom
light_2: light.walk_in
before: 00:30:00
after: 06:00:00
- id: '1663460627355'
alias: 'Living room: User toggles RGB lights ✔️'
description: ''
trigger:
- platform: state
entity_id:
- light.living_room
condition:
- condition: template
value_template: '{{ trigger.to_state.context.parent_id == none }}'
- condition: template
value_template: '{{ trigger.to_state.context.user_id == none }}'
- condition: or
conditions:
- condition: state
entity_id: light.living_room
state: 'on'
- condition: state
entity_id: light.living_room
state: 'off'
action:
- service: light.turn_{{ trigger.to_state.state }}
target:
entity_id:
- light.left_theatre
- light.right_theatre
- light.metal_lamp
- light.wood_lamp
mode: restart
- id: '1663881882173'
alias: 'Hue Remote: Living room'
description: ''
use_blueprint:
path: ericmatte/philips_hue_v2_smart_dimmer_switch.yaml
input:
hue_device: eba9d8b4257ce13c892979b9e850a7fb
Power_Press:
- service: light.turn_on
data: {}
target:
entity_id: light.living_room
Up_Press:
- service: scene.turn_on
data: {}
target:
entity_id: scene.movies_and_eat
enabled: false
Down_Press:
- service: scene.turn_on
data: {}
target:
entity_id: scene.main_movies
enabled: false
Hue_Press:
- service: light.turn_off
data: {}
target:
area_id:
- 3819a3b2650b481b91e3f0c306c056df
- dining
- entrance
- f14230912df149a39e30c5bd5c08e3c9
Power_Long_Release:
- service: scene.turn_on
data: {}
target:
entity_id: scene.main_all_up
Up_Short_Release:
- service: scene.turn_on
data: {}
target:
entity_id: scene.movies_and_eat
enabled: true
Up_Long_Release: []
Up_Repeat:
- service: media_player.volume_up
data: {}
target:
entity_id: media_player.kitchen_speaker
Down_Short_Release:
- service: scene.turn_on
data: {}
target:
entity_id: scene.main_movies
Down_Repeat:
- service: media_player.volume_down
data: {}
target:
entity_id: media_player.kitchen_speaker
- id: '1663895419097'
alias: 'Hue Remote: Kitchen'
description: ''
use_blueprint:
path: ericmatte/philips_hue_v2_smart_dimmer_switch.yaml
input:
hue_device: e94cf02d004ef2682f3d97632158391f
Power_Press:
- service: scene.turn_on
data: {}
target:
entity_id: scene.main_dining_table
Up_Press:
- service: scene.turn_on
data: {}
target:
entity_id: scene.main_kitchen
enabled: false
Down_Press:
- service: scene.turn_on
data: {}
target:
entity_id: scene.morning_light
enabled: false
Hue_Press:
- service: light.turn_off
data: {}
target:
area_id:
- 3819a3b2650b481b91e3f0c306c056df
- dining
- entrance
- f14230912df149a39e30c5bd5c08e3c9
Down_Short_Release:
- service: scene.turn_on
data: {}
target:
entity_id: scene.morning_light
Down_Repeat:
- service: media_player.volume_down
data: {}
target:
entity_id: media_player.kitchen_speaker
Up_Short_Release:
- service: scene.turn_on
data: {}
target:
entity_id: scene.main_kitchen
Up_Repeat:
- service: media_player.volume_up
data: {}
target:
entity_id: media_player.kitchen_speaker
- id: '1663970460750'
alias: 'Cat: Litter box reminder ✔️'
description: ''
use_blueprint:
path: ericmatte/litter_box.yaml
input:
notification_time: '18:00:00'
clean_button:
- binary_sensor.entrance_button_1
- input_button.clean_litter_box
days_threshold: 1
days_since_last_cleanup: input_number.litter_box_day_since_last_changed
person_select: input_select.litter_box_assigned_person
who_is_button:
- binary_sensor.entrance_button_2
- id: '1665580545291'
alias: 'Office: Close curtain while in meeting'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.eric_mbp_camera_in_use
for:
hours: 0
minutes: 0
seconds: 6
id: camera
- platform: state
entity_id:
- binary_sensor.eric_mbp_audio_input_in_use
to: 'off'
condition:
- condition: state
entity_id: person.eric
state: home
- condition: time
before: '13:00:00'
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.eric_mbp_camera_in_use
state: 'on'
- condition: trigger
id: camera
sequence:
- service: cover.close_cover
data: {}
target:
entity_id: cover.office_curtain
- conditions:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.eric_mbp_camera_in_use
state: 'off'
- condition: state
entity_id: binary_sensor.eric_mbp_audio_input_in_use
state: 'off'
sequence:
- service: cover.open_cover
data: {}
target:
entity_id: cover.office_curtain
mode: single
- id: '1670216159205'
alias: 'Heat: Pump'
description: ''
trigger:
- platform: time
at: 07:00:00
id: morning
- platform: time
at: '23:30:00'
id: night
condition:
- condition: not
conditions:
- condition: state
entity_id: climate.heat_pump
state: 'off'
action:
- choose:
- conditions:
- condition: trigger
id: morning
sequence:
- service: climate.set_temperature
data:
temperature: 23
hvac_mode: heat
target:
entity_id: climate.heat_pump
- conditions:
- condition: trigger
id: night
sequence:
- service: climate.set_temperature
data:
temperature: 23
hvac_mode: heat
target:
entity_id: climate.heat_pump
mode: single
- id: '1670285018851'
alias: 'TV: Fireplace scene ✔️'
description: ''
trigger:
- platform: state
entity_id:
- media_player.tv
attribute: media_title
for:
hours: 0
minutes: 0
seconds: 1
condition:
- condition: template
value_template: '{{ state_attr(''media_player.tv'', ''media_title'') and "fireplace"
in state_attr(''media_player.tv'', ''media_title'').lower() }}'
action:
- service: scene.turn_on
data:
transition: 3
target:
entity_id: scene.fireplace
mode: single
- id: '1673010589798'
alias: 'Office: Sync curtains for gaming'
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.gaming_pc
for:
hours: 0
minutes: 0
seconds: 6
id: pc
to: 'on'
from: 'off'
- platform: time
at: 04:00:00
id: time
condition:
- condition: state
entity_id: person.eric
state: home
action:
- choose:
- conditions:
- condition: trigger
id: pc
- condition: time
before: 00:00:00
after: '18:00:00'
sequence:
- service: cover.close_cover
data: {}
target:
entity_id: cover.office_curtain
- conditions:
- condition: trigger
id: time
- condition: state
entity_id: cover.office_curtain
state: closed
sequence:
- service: cover.open_cover