-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
3960 lines (3959 loc) · 97.7 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: '1578466646528'
alias: Master Bedroom Window Fan On
description: ''
trigger:
- type: opened
platform: device
device_id: cb817c7dcd0ae3254a9d012244c85186
entity_id: binary_sensor.master_bedroom_window_contact
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: 7d9d041ee5f366a69b17bc3f3bf0948a
entity_id: switch.master_bedroom_fan
domain: switch
mode: single
- id: '1578466688232'
alias: Master Bedroom Window Fan Off
description: ''
trigger:
- type: not_opened
platform: device
device_id: cb817c7dcd0ae3254a9d012244c85186
entity_id: binary_sensor.master_bedroom_window_contact
domain: binary_sensor
condition: []
action:
- type: turn_off
device_id: 7d9d041ee5f366a69b17bc3f3bf0948a
entity_id: switch.master_bedroom_fan
domain: switch
mode: single
- id: '1578580241880'
alias: Bathroom 2 Fan Shut-off
description: Turn off Fan after 1 hour
trigger:
- platform: device
type: turned_on
device_id: 51712097468aee01ce672151da882347
entity_id: fan.bath_fan
domain: fan
for:
hours: 1
minutes: 0
seconds: 0
condition: []
action:
- type: turn_off
device_id: 51712097468aee01ce672151da882347
entity_id: fan.bath_fan
domain: fan
mode: single
- id: '1601933548957'
alias: Movie Mode Off by Sony TV
description: Turn off movie mode when Sony TV is turned off, or emby pauses
trigger:
- platform: state
to: 'off'
entity_id:
- media_player.android_tv_living_room
- platform: state
entity_id:
- media_player.android_tv_living_room
from: playing
for:
hours: 0
minutes: 0
seconds: 0
condition:
- condition: state
entity_id: input_boolean.movie_mode
state: 'on'
for:
hours: 0
minutes: 0
seconds: 5
action:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.movie_mode
mode: restart
- alias: set Themes - by caulecriativo.com
initial_state: true
trigger:
platform: state
entity_id: input_select.themes
action:
- service: frontend.set_theme
data_template:
name: '{{ trigger.to_state.state }}'
id: c0a643d84bc24c0ba44d1ab8360d75b8
- id: '1602877000479'
alias: Tristyn's Morning Workdays
description: ''
trigger:
- platform: time
at: input_datetime.tristyn_wakeup_time
condition:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.tristyn_morning_wakeup
state: 'on'
- condition: and
conditions:
- condition: template
value_template: '{{ ((as_timestamp(states.calendar.tristyn_s_work.attributes.start_time)
- as_timestamp(now())) < 43200) and ((as_timestamp(states.calendar.tristyn_s_work.attributes.start_time)
- as_timestamp(now())) > 0) }}'
- condition: zone
entity_id: person.tristyn
zone: zone.home
- condition: state
entity_id: calendar.tristyn_vacation
state: 'off'
action:
- service: scene.turn_on
target:
entity_id: scene.tristyn_morning_hass
metadata: {}
- type: toggle
device_id: 264e08b63b489b711feff7063e310af9
entity_id: switch.espresso_machine
domain: switch
- choose:
- conditions:
- condition: sun
before: sunset
after: sunrise
after_offset: 00:30:00
sequence:
- device_id: 977b1fdfbcd0a1c98813956aaf9901f8
domain: cover
entity_id: cover.master_bedroom_shade
type: set_position
position: 100
mode: single
- id: '1603156991145'
alias: Dad coming home automation
description: ''
trigger:
- platform: zone
zone: zone.home
event: enter
entity_id: person.terry
condition: []
action:
- service: lock.unlock
data: {}
target:
entity_id: lock.front_deadbolt
- scene: scene.den_lights_on
- type: turn_on
device_id: ee9ef71468ecfd9bc08b3316889ed7a4
entity_id: switch.den_hub_watch_pc
domain: switch
- service: notify.mobile_app_tristyn_s_note_10
data:
message: Dad has arrived home.
- service: automation.trigger
data:
skip_condition: true
target:
entity_id: automation.disarm_the_alarm
mode: single
- id: '1603417837218'
alias: Garage Lights on.
description: ''
trigger:
- platform: state
entity_id: binary_sensor.blueiris_garage_camera_motion
to: 'on'
- type: opened
platform: device
device_id: 62c596a4ffc555668803b25c21198a7f
entity_id: binary_sensor.garage_house_door_contact
domain: binary_sensor
- type: opened
platform: device
device_id: 73e677d6b468bee892c70bbaeba97a7d
entity_id: binary_sensor.garage_side_door_contact
domain: binary_sensor
- platform: device
device_id: af7d0b942f696737856bbd9cb4ccd6d0
domain: cover
entity_id: cover.garage_door
type: opened
- platform: state
entity_id:
- binary_sensor.garage_motion
to: 'on'
condition: []
action:
- type: turn_on
device_id: 48f80993735ea7d9389c193049622112
entity_id: switch.garage_lights
domain: switch
mode: single
- id: '1605765827939'
alias: Bedroom 2 Humidifier On
description: If humidity is below 35 and time is between 8pm and 4am - turn on humidifier
trigger:
- platform: numeric_state
below: '35'
entity_id: sensor.bedroom_2_temp_humidity_sensor_relative_humidity_measurement
condition:
- condition: time
after: '20:00:00'
before: 04:00:00
action:
- type: turn_on
device_id: 84c242827a1e3823bcef7d262fd36718
entity_id: switch.humidifier
domain: switch
mode: single
- id: '1605766714738'
alias: Bedroom 2 Humidifier Off
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.bedroom_2_temp_humidity_sensor_relative_humidity_measurement
above: '40'
- platform: time
at: 04:00:00
condition: []
action:
- type: turn_off
device_id: 84c242827a1e3823bcef7d262fd36718
entity_id: switch.humidifier
domain: switch
mode: single
- id: '1606063892572'
alias: Vacuum Undocked Notification
description: ''
trigger:
- platform: state
entity_id: vacuum.bitch_vac
from: docked
to: idle
condition:
- condition: time
after: 07:00:00
before: '21:00:00'
action:
- service: tts.google_say
data:
entity_id: media_player.notification_group_2
message: The Bitch has completed, but has not returned to it's dock.
cache: true
language: en-us
- service: notify.mobile_app_tristyn_s_note_10
data:
message: The bitch has completed, but not returned to it's dock.
title: Vacuum Notification
- service: notify.mobile_app_terry_s_flip
data:
message: The bitch has completed, but not returned to its dock.
title: Vacuum Notification
mode: single
- id: '1606065939947'
alias: Vacuum Done - Docked Notification
description: ''
trigger:
- platform: state
entity_id: vacuum.bitch_vac
to: docked
from: cleaning
condition:
- condition: time
after: 07:00
before: '21:00:00'
action:
- service: tts.google_say
data:
entity_id: media_player.notification_group_2
message: The Bitch has returned to its dock.
cache: true
mode: single
- id: '1606067377914'
alias: Vacuum Undocked (30 min) Notification
description: ''
trigger:
- platform: state
entity_id: vacuum.bitch_vac
to: idle
for: 00:30:00
condition:
- condition: time
after: 07:00
before: '21:00:00'
action:
- service: tts.google_say
data:
entity_id: media_player.notification_group_2
message: The bitch has been undocked for 30 minutes.
cache: true
language: en-us
- service: notify.mobile_app_tristyn_s_note_10
data:
message: The Bitch has been undocked for 30 min.
title: Vacuum Notification
- service: notify.mobile_app_terry_s_flip
data:
message: The Bitch has been undocked for 30 min.
title: Vacuum Notification
mode: single
- id: '1606185951384'
alias: Alert for open windows when raining Notification
description: ''
trigger:
- platform: state
entity_id: sensor.openweathermap_condition
to: rain
condition:
- condition: state
entity_id: binary_sensor.house_windows
state: 'on'
action:
- service: tts.google_say
entity_id: media_player.notification_group_2
data_template:
message: It is raining and the {{ dict((states|selectattr('entity_id', 'in',
state_attr('binary_sensor.house_windows', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(',
') }} is opened.
- service: notify.mobile_app_tristyn_s_note_10
data:
title: Alert
message: It is raining and the {{ dict((states|selectattr('entity_id', 'in',
state_attr('binary_sensor.house_windows', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(',
') }} is opened.
data:
channel: Alert
- service: notify.mobile_app_terry_s_flip
data:
title: Alert
message: It is raining and the {{ dict((states|selectattr('entity_id', 'in',
state_attr('binary_sensor.house_windows', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(',
') }} is opened.
data:
channel: Alert
mode: single
- id: '1606195208315'
alias: Start Van on Workdays
description: Start vehicle at set time if calendar says Tristyn works today
trigger:
- platform: time
at: 07:30:00
- platform: time
at: 07:46:00
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: weather.openweathermap
attribute: temperature
below: '10'
- condition: template
value_template: "{%- if as_timestamp(strptime(state_attr('calendar.tristyn_s_work',
'start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom(\"%Y-%m-%d\") == now().strftime(\"%Y-%m-%d\")
%}\n true\n{%- endif -%}\n"
- condition: state
entity_id: calendar.tristyn_vacation
state: 'off'
action:
- service: switch.turn_on
data: {}
entity_id: switch.fordpass_ignition_switch
mode: single
- id: '1606854864368'
alias: Vacuum Done - Undocked Notification
description: ''
trigger:
- platform: state
entity_id: vacuum.bitch_vac
to: idle
from: cleaning
condition:
- condition: time
after: 07:00:00
before: '21:00:00'
action:
- service: tts.google_say
data:
entity_id: media_player.kitchen_display, media_player.red_mini, media_player.basement_speakers
message: The bitch has completed, but not returned to its dock.
language: en-us
mode: single
- id: '1606859940715'
alias: Vacuum Stuck Notification
description: ''
trigger:
- platform: state
entity_id: vacuum.bitch_vac
to: error
for: 00:00:30
from: cleaning
condition:
- condition: time
after: 07:00
before: '21:00:00'
action:
- service: tts.google_say
data:
entity_id: media_player.notification_group_2
message: The bitch is stuck.
cache: true
language: en-us
- service: notify.mobile_app_tristyn_s_note_10
data:
message: The bitch is stuck
title: Vacuum Notification
- service: notify.mobile_app_terry_s_flip
data:
title: Vacuum Notification
message: The bitch is stuck
mode: single
- id: '1606927468760'
alias: Van Update when On
description: ''
trigger:
- platform: time_pattern
minutes: '15'
- platform: state
entity_id: switch.fordpass_ignition_switch
from: 'off'
to: 'on'
for: 00:00:30
condition:
- condition: state
entity_id: sensor.fordpass_ignitionstatus
state: Run
attribute: value
action:
- service: fordpass.refresh_status
data: {}
mode: single
- id: '1606927500352'
alias: Van Update when Off
description: ''
trigger:
- platform: time_pattern
hours: '4'
condition:
- condition: state
entity_id: sensor.fordpass_ignitionstatus
state: 'Off'
attribute: value
action:
- service: fordpass.refresh_status
data: {}
mode: single
- id: '1607059998499'
alias: Closet Light Off with bathroom lights
description: ''
trigger:
- platform: device
type: turned_off
device_id: 5e3d9ffcdfad66f789af3f39d4f82ac1
entity_id: switch.master_bathroom_lights
domain: switch
condition: []
action:
- type: turn_off
device_id: 1bc4cb05aa790414c3f7a2cb1d3e25a7
entity_id: light.closet
domain: light
mode: single
- id: '1608778716366'
alias: Coffee Maker OFF after 2 hours
description: ''
trigger:
- platform: state
entity_id: switch.coffee_machine
from: 'off'
to: 'on'
for: 02:00:00
- platform: homeassistant
event: start
condition: []
action:
- service: python_script.set_attribute
data_template:
entity_id: switch.coffee_machine
state: 'off'
mode: single
- id: '1610166256230'
alias: PTZ Front Door Opened
description: ''
trigger:
- type: opened
platform: device
device_id: e54d8a38965049c11432e724455635cd
entity_id: binary_sensor.front_door_contact
domain: binary_sensor
condition: []
action:
- service: shell_command.ptz_front_door
data: {}
- wait_for_trigger:
- type: not_opened
platform: device
device_id: e54d8a38965049c11432e724455635cd
entity_id: binary_sensor.front_door_contact
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 5
- service: shell_command.ptz_living_room_home
data: {}
mode: restart
- id: '1611624120527'
alias: Front Door Left Open Notification
description: ''
trigger:
- type: opened
platform: device
device_id: e54d8a38965049c11432e724455635cd
entity_id: binary_sensor.front_door_contact
domain: binary_sensor
condition:
- condition: time
after: 07:00:00
before: '21:00:00'
action:
- service: tts.google_say
data:
entity_id: media_player.notification_group_2
message: The front door has been open for 1 minute.
cache: true
mode: single
- id: '1623246395659'
alias: Van status every morning
description: ''
trigger:
- platform: time
at: '8:00'
- platform: time
at: '8:15'
- platform: time
at: '8:30'
- platform: time
at: 09:00:00
- platform: time
at: '10:15:00'
condition: []
action:
- service: script.refresh_van_status
data: {}
mode: single
- id: '1623710777330'
alias: Entryway Motion
description: ''
trigger:
- type: motion
platform: device
device_id: 10363391ecab7584cd61ba00b29101db
entity_id: binary_sensor.entryway_motion_sensor_occupancy
domain: binary_sensor
- type: opened
platform: device
device_id: e54d8a38965049c11432e724455635cd
entity_id: binary_sensor.front_door_contact
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.movie_mode
state: 'off'
- condition: state
entity_id: input_boolean.house_is_occupied
state: 'on'
action:
- choose:
- conditions:
- condition: time
after: '21:00:00'
before: 04:30:00
sequence:
- scene: scene.entryway_night
default:
- scene: scene.entryway_day
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.entryway_motion_sensor_occupancy
to: 'off'
for:
hours: 0
minutes: 5
seconds: 0
- scene: scene.entryway_lights_off
mode: restart
- id: '1627523367951'
alias: PC Mode ON when Monitor ON
description: Turn on Master Bedroom Samsung when Monitor Energy is Above level
trigger:
- platform: numeric_state
entity_id: sensor.computer_monitor_power
above: '100'
for:
hours: 0
minutes: 0
seconds: 5
condition:
- condition: device
type: is_off
device_id: b8a1ccd4af6947ec98a5e8175047f6e7
entity_id: remote.harmony_hub_2
domain: remote
action:
- type: turn_on
device_id: b8a1ccd4af6947ec98a5e8175047f6e7
entity_id: switch.harmony_hub_pc_mode
domain: switch
mode: single
- id: '1640303827755'
alias: Lava Lamp off with ceiling
description: Master Bedroom
trigger:
- platform: device
type: turned_off
device_id: 6399bfd7526749b56e40ba57d3147c9b
entity_id: light.master_bedroom_ceiling
domain: light
condition: []
action:
- type: turn_off
device_id: dc201c0bbc3a181674d9fdd2b7b56ac5
entity_id: switch.lava_lamp
domain: switch
mode: single
- id: '1643769865590'
alias: Den fan and TV off with lights
description: ''
trigger:
- platform: device
type: turned_off
device_id: f2f3d3cb5546e95da1e1ef24ab5b98c8
entity_id: light.den_2
domain: light
condition: []
action:
- type: turn_off
device_id: 8e86c338ff52cbf5eee0c1eb6ac139ec
entity_id: switch.den_fan
domain: switch
- type: turn_off
device_id: ee9ef71468ecfd9bc08b3316889ed7a4
entity_id: remote.den_hub
domain: remote
mode: single
- id: '1643999628413'
alias: Den Motion
description: ''
trigger:
- type: motion
platform: device
device_id: 507d0b2f88e1d3c774bcc420e19d10d1
entity_id: binary_sensor.den_motion_occupancy
domain: binary_sensor
condition:
- condition: device
type: is_off
device_id: 69bf6136979f5fb6d693fd293d036dd5
entity_id: light.den_2
domain: light
- condition: state
entity_id: input_boolean.house_is_occupied
state: 'on'
action:
- scene: scene.den_lights_on
- type: turn_on
device_id: ee9ef71468ecfd9bc08b3316889ed7a4
entity_id: switch.den_hub_watch_pc
domain: switch
mode: single
- id: '1643999847452'
alias: Master Bathroom Off with Master Bedroom
description: ''
trigger:
- platform: device
type: turned_off
device_id: 6399bfd7526749b56e40ba57d3147c9b
entity_id: light.master_bedroom_ceiling
domain: light
condition: []
action:
- type: turn_off
device_id: d6fa0500bf02a49a44c7892bee9e810e
entity_id: switch.master_bathroom_lights
domain: switch
mode: single
- id: '1643999963797'
alias: Master Bathroom Motion
description: ''
trigger:
- type: motion
platform: device
device_id: e40ff633ee805b22bdce5cd40be2d760
entity_id: binary_sensor.master_bathroom_motion_sensor_motion
domain: binary_sensor
condition:
- condition: device
type: is_on
device_id: 6399bfd7526749b56e40ba57d3147c9b
entity_id: light.master_bedroom_ceiling
domain: light
action:
- type: turn_on
device_id: d6fa0500bf02a49a44c7892bee9e810e
entity_id: switch.master_bathroom_lights
domain: switch
mode: single
- id: '1644000768041'
alias: Bedroom 2 Motion
description: ''
trigger:
- type: motion
platform: device
device_id: f849bcb08c1f7afc1a790d176fdd5dbc
entity_id: binary_sensor.bedroom_2_motion_sensor_occupancy
domain: binary_sensor
condition:
- condition: and
conditions:
- condition: time
after: 05:00:00
before: '21:00:00'
- condition: device
type: is_off
device_id: ef18381fcb995cb2db05df77185f09e3
entity_id: light.bedroom_2_ceiling
domain: light
- condition: state
entity_id: switch.bedroom_2_bed_sensor
state: 'off'
- condition: state
entity_id: input_boolean.house_is_occupied
state: 'on'
action:
- service: scene.turn_on
target:
entity_id: scene.bedroom_2_on
metadata: {}
mode: single
- id: '1644004902127'
alias: Upstairs Motion
description: ''
trigger:
- type: motion
platform: device
device_id: 9ca4f6b2556959ecf29d476a6af80458
entity_id: binary_sensor.upstairs_motion_sensor_occupancy
domain: binary_sensor
condition:
- condition: state
entity_id: input_boolean.movie_mode
state: 'off'
- condition: state
entity_id: input_boolean.house_is_occupied
state: 'on'
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: switch.bedroom_2_bed_sensor
state: 'on'
- condition: not
conditions:
- condition: state
entity_id: switch.bedroom_2_bed_sensor
state: 'off'
for:
hours: 0
minutes: 5
seconds: 0
sequence:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.evening
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 40
target:
entity_id:
- light.stairs_1
- light.hue_white_lamp_2
- conditions:
- condition: state
entity_id: binary_sensor.night
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 15
target:
entity_id: light.stairs_1
- conditions:
- condition: state
entity_id: binary_sensor.morning
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 60
target:
entity_id:
- light.stairs_1
- light.hue_white_lamp_2
default:
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id:
- light.stairs_1
- light.hue_white_lamp_2
default:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.evening
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 40
target:
entity_id:
- light.stairs_1
- light.hue_white_lamp_2
- light.upstairs_top
- conditions:
- condition: state
entity_id: binary_sensor.night
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 25
target:
entity_id:
- light.stairs_1
- light.upstairs_top
- conditions:
- condition: state
entity_id: binary_sensor.morning
state: 'on'
sequence:
- service: light.turn_on
data:
brightness_pct: 60
target:
entity_id:
- light.stairs_1
- light.hue_white_lamp_2
- light.upstairs_top
default:
- service: light.turn_on
data:
brightness_pct: 100
target:
entity_id:
- light.stairs_1
- light.hue_white_lamp_2
- light.upstairs_top
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.upstairs_motion_sensor_occupancy
to: 'off'
for:
hours: 0
minutes: 0
seconds: 40
- service: scene.turn_on
target:
entity_id: scene.upstairs_lights_off
metadata: {}
mode: restart
- id: '1644006278146'
alias: Movie Mode On by Emby on Sony TV
description: Turn on Movie mode by Emby, in evening when table lights off
trigger:
- platform: state
entity_id:
- media_player.android_tv_living_room
to: playing
condition:
- condition: and
conditions:
- condition: state
state: tv.emby.embyatv
attribute: app_id
entity_id: media_player.android_tv_living_room
- condition: device
type: is_off
device_id: 4e6bd31c2554ea26ff861582e2e6d0b6
entity_id: light.kitchen_table_2
domain: light
- condition: time
after: '17:00:00'
before: 03:00:00
enabled: false
- condition: not
conditions:
- condition: state
entity_id: input_boolean.movie_mode
state: 'on'
for:
hours: 0
minutes: 0
seconds: 15
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.movie_mode
mode: single
- id: '1644037075991'
alias: Den Monitors off with TV
description: ''
trigger:
- platform: device
type: turned_off
device_id: ee9ef71468ecfd9bc08b3316889ed7a4
entity_id: remote.den_hub
domain: remote
condition: []
action:
- type: turn_off
device_id: c221d4e062d5c8395a063e4c34b0ec9a
entity_id: switch.den_left_monitor
domain: switch
- type: turn_off
device_id: 992dad9281634494eafc5699becb4a80
entity_id: switch.den_right_monitor
domain: switch
mode: single
- id: '1644081398256'
alias: Bedroom 2 Fan off with Wall Switch
description: ''
trigger:
- device_id: 8cb0123dd17b5d4b939887cd27418d8e
domain: hue
platform: device
type: initial_press
subtype: 1
unique_id: f9fc5209-3273-4970-97ed-9cdb2483b06c
condition:
- condition: state
entity_id: light.bedroom_2_ceiling
state: 'on'
action:
- type: turn_off
device_id: d1eb9318c5392a78c7997bbff56b7613
entity_id: fan.bedroom_2_fan
domain: fan
mode: single
- id: '1644099970720'
alias: Den Monitors on with TV
description: ''
trigger:
- platform: device
type: turned_on
device_id: ee9ef71468ecfd9bc08b3316889ed7a4
entity_id: switch.den_hub_watch_pc
domain: switch
condition: []
action:
- type: turn_on
device_id: c221d4e062d5c8395a063e4c34b0ec9a
entity_id: switch.den_left_monitor
domain: switch
- type: turn_on
device_id: 992dad9281634494eafc5699becb4a80
entity_id: switch.den_right_monitor
domain: switch
mode: single
- id: '1644212226399'
alias: Bathroom 2 Motion
description: ''
trigger:
- type: motion
platform: device
device_id: a316ccbf2e831afd7a561d4acaf092b4
entity_id: binary_sensor.bathroom_2_motion_sensor_motion
domain: binary_sensor
condition:
- condition: device
type: is_off
device_id: 58052be76adc99a4519c69aa3fa2c746
entity_id: light.bathroom_2_lights
domain: light