-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
2226 lines (2226 loc) · 61.1 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: '1686857009649'
alias: Notification - Postkasten Einwurf
description: 'Setze Helfer auf true bei Einwurf '
trigger:
- type: opened
platform: device
device_id: 3194e85fdd595fda73ac2101642fbaee
entity_id: binary_sensor.briefkasten_einwurf_contact
domain: binary_sensor
condition: []
action:
- service: input_boolean.turn_on
data: {}
entity_id: input_boolean.briefkasten_status
- service: notify.mobile_app_christians_iphone
data:
message: "Die Post ist da! \U0001F4EC"
title: "Sweet Home \U0001F3E1"
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
mode: single
- id: '1686867402107'
alias: States - Briefkasten Entleerung
description: 'Setze Helfer auf false bei Entleerung '
trigger:
- type: opened
platform: device
device_id: 37e4b5e97956a09bc9df3564760f3c5f
entity_id: binary_sensor.briefkasten_klappe_contact
domain: binary_sensor
condition: []
action:
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.briefkasten_status
mode: single
- id: '1687360370770'
alias: Notification - System/Addon Update
description: ''
use_blueprint:
path: mdegat01/update_notifications.yaml
input:
send_to_ha: true
reminder_hours: '24'
mobile_app_device: 8c8704041f95b4a801662374c49fc21f
mobile_app_device_2: 5b916f6c2a8e3ac7c68cee8a9f0612ff
update_entities:
- update.home_assistant_core_update
- update.home_assistant_operating_system_update
- update.home_assistant_supervisor_update
- update.hacs_update
- id: '1688243312052'
alias: Notification - Klingel Nachricht
description: Sende Nachricht wenn jemand an der Haustür klingelt
trigger:
- platform: device
domain: homematicip_local
device_id: f12cc6440e04f0698fded750d72af250
event_type: homematic.keypress
address: 0026DBE998FDA3
device_type: HmIP-DSD-PCB
interface_id: RaspberryMatic-HmIP-RF
type: press_short
subtype: 1
condition: []
action:
- service: camera.snapshot
data:
filename: /config/www/tmp/auffahrt_snapshot.jpg
target:
entity_id: camera.auffahrt_high
- service: notify.mobile_app_christians_iphone
data:
message: Ding Dong! Jemand ist an der Tür!
title: "Sweet Home \U0001F3E1"
data:
image: https://hass.christian-behrends.de/local/tmp/auffahrt_snapshot.jpg
entity_id: camera.auffahrt_high
mode: single
- id: '1688768107414'
alias: Licht - Küche BWM
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.anwesenheit_sensoren_kuche
light_switch:
entity_id: scene.kuche_tag
end_scenes:
- scene.kuche_aus
time_delay: 1
include_bypass: bypass_enabled_turn_on
bypass_time_delay: 0.25
include_ambient: ambient_enabled
ambient_light_sensor: sensor.sensorengruppe_helligkeit_kuche
ambient_light_options: ambient_light_option_enabled
include_night_lights: night_lights_enabled
night_time_delay: 0.5
night_lights_after_time: '23:00:00'
night_lights_before_time: 07:00:00
include_time: time_disabled
after_time: 07:00:00
before_time: '23:00:00'
include_light_control:
- use_transition
night_lights:
entity_id: scene.kuche_nacht
night_lights_conditions:
- time_enabled
motion_bypass: input_boolean.licht_kuche_bypass
include_night_light_control:
- use_transition
ambient_light_value: 20
light_transition_on: 0.6
light_transition_off: 0.6
night_light_transition_on: 0.6
night_light_transition_off: 0.6
motion_bypass_lights_on:
- input_boolean.licht_kuche_bypass
- id: '1688840530518'
alias: Notification - Temperatur Aussen Innen
description: ''
trigger:
- platform: state
entity_id:
- sensor.boiler_outside_temperatur
condition:
- condition: state
entity_id: person.christian
state: home
action:
- if:
- condition: state
entity_id: input_boolean.helfer_temperatur_a_h_i
state: 'on'
- condition: template
value_template: '{{ (states(''sensor.boiler_room_temperatur'') | float - states(''sensor.boiler_outside_temperatur'')
| float) >= 1.5 }}'
then:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.helfer_temperatur_a_h_i
- service: notify.mobile_app_christians_iphone
data:
title: "Sweet Home \U0001F3E1"
message: Außentemperatur({{states.sensor.boiler_outside_temperatur.state}}°C)
ist niedriger als Innentemperatur({{states.sensor.boiler_room_temperatur.state}}°C)
else:
- condition: numeric_state
entity_id: sensor.boiler_outside_temperatur
above: sensor.boiler_room_temperatur
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.helfer_temperatur_a_h_i
mode: single
- id: '1689530556005'
alias: Anwesenheit - Ankommen / Verlassen
description: "Ankommen: \n- Alarmanlage aus\n- Haustür aufschliessen\n- im Dunkeln
Lichter bypässe aktivieren\n- Rufumleitung deaktivieren\n\nVerlassen: \n- Alarmanlage
an\n- Haustür abschliessen\n- Rufumleitung aktivieren"
triggers:
- entity_id:
- sensor.home_christian_fahrtrichtung
from: towards
to: arrived
for:
hours: 0
minutes: 0
seconds: 0
id: Anwesend
trigger: state
- entity_id:
- sensor.home_christian_entfernung
id: Abwesend
for:
hours: 0
minutes: 3
seconds: 0
above: 1000
trigger: numeric_state
conditions:
- condition: state
entity_id: input_boolean.gastemodus
state: 'off'
actions:
- choose:
- conditions:
- condition: trigger
id:
- Anwesend
- condition: state
entity_id: input_boolean.urlaubsmodus
state: 'off'
sequence:
- data: {}
target:
entity_id:
- alarm_control_panel.alarmanlage
action: alarm_control_panel.alarm_disarm
- data: {}
action: lock.unlock
target:
entity_id: lock.nuki_bridge_haustuer
- if:
- condition: sun
after: sunset
after_offset: '-15'
then:
- data: {}
target:
entity_id: switch.auffahrt_licht
action: switch.turn_on
- data: {}
target:
entity_id:
- input_boolean.licht_bypass_flur_eg
action: input_boolean.turn_on
- data: {}
target:
entity_id:
- scene.kuche_tag
- scene.wohnzimmer_abends_standart
action: scene.turn_on
- conditions:
- condition: trigger
id:
- Abwesend
sequence:
- data: {}
target:
entity_id: scene.schlafenszeit
action: scene.turn_on
- data: {}
target:
entity_id:
- lock.nuki_bridge_haustuer
action: lock.lock
- data: {}
target:
entity_id:
- alarm_control_panel.alarmanlage
action: alarm_control_panel.alarm_arm_home
mode: single
- id: '1689950884736'
alias: Notification - Heizung ausgefallen
description: ''
trigger:
- platform: state
entity_id:
- sensor.boiler_locking
for:
hours: 0
minutes: 1
seconds: 0
from: Keine Störung
condition: []
action:
- if:
- condition: not
conditions:
- condition: state
entity_id: sensor.boiler_locking
state: Keine Störung
then:
- service: notify.mobile_app_christians_iphone
data:
message: Die Heizung ist ausgefallen!
title: "Sweet Home \U0001F3E1"
data:
actions:
- action: Heizung_reset
title: Heizung reset
icon: mdi:restart
else:
- service: notify.mobile_app_christians_iphone
data:
title: "Sweet Home \U0001F3E1"
message: Die Heizung läuft wieder!
mode: single
- id: '1689951494669'
alias: Licht - Terrasse Sonnenuntergang
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
id: Sonnenuntergang
- platform: time
at: 00:00:00
id: 0 Uhr
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Sonnenuntergang
sequence:
- metadata: {}
target:
entity_id: scene.terrasse_abend
action: scene.turn_on
- action: light.turn_on
metadata: {}
data:
brightness_pct: 25
target:
entity_id: light.terrasse_leuchtkugel
- conditions:
- condition: trigger
id:
- 0 Uhr
sequence:
- type: turn_off
device_id: 64d50194e3b193a20bfe154775cb4077
entity_id: eacc108d5b64af3252ae9e6ab6e996e5
domain: light
- type: turn_off
device_id: f4815c5c151df0711edca3935e446055
entity_id: f9da9ba0761d40bbcdf48780533add98
domain: light
- type: turn_off
device_id: aeb95c0bbf647a2159cdc90d02f80fcc
entity_id: 3205dd9bcd0efa2bc13b5bcba721bcec
domain: light
mode: single
- id: '1690218603223'
alias: Backup - Full - Every Night
description: ''
trigger:
- platform: time
at: 03:03:00
condition: []
action:
- service: auto_backup.backup_full
data:
keep_days: 7
location: Synology_NAS
mode: single
- id: '1690228220678'
alias: Notification - Fenster/Tür geöffnet
description: ''
trigger:
- platform: state
entity_id:
- sensor.fenster_zuletzt_geoffnet
id: fenster
from:
to:
- platform: state
entity_id:
- sensor.tur_zuletzt_geoffnet
id: tür
from:
to:
condition:
- condition: state
entity_id: person.christian
state: not_home
- condition: state
entity_id: input_boolean.gastemodus
state: 'off'
- condition: state
entity_id: alarm_control_panel.alarmanlage
state: disarmed
action:
- choose:
- conditions:
- condition: trigger
id:
- tür
sequence:
- data:
title: Sicherheitssystem
message: 'Achtung! Folgende Tür wurde geöffnet: {{states(''sensor.tur_zuletzt_geoffnet'')}}'
data:
push:
sound:
name: default
critical: 1
volume: 1
action: notify.notify
- conditions:
- condition: trigger
id:
- fenster
sequence:
- data:
title: Sicherheitssystem
message: 'Achtung! Folgendes Fenster wurde geöffnet: {{states(''sensor.fenster_zuletzt_geoffnet'')}}'
data:
push:
sound:
name: default
critical: 1
volume: 1
action: notify.notify
mode: single
- id: '1690543145284'
alias: Licht - Büro
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.anwesenheit_sensoren_buro
light_switch:
entity_id: scene.buro_tag
end_scenes:
- scene.buro_alles_aus
time_delay: 1.5
include_bypass: bypass_enabled_turn_on
include_ambient: ambient_enabled
ambient_light_sensor: sensor.buro_bewegungsmelder_illuminance_lux
ambient_light_options: ambient_light_option_enabled
ambient_light_value: 10
include_night_lights: night_lights_enabled
night_lights:
entity_id: scene.buro_nacht
night_time_delay: 0.5
night_lights_conditions:
- time_enabled
night_lights_after_time: '23:00:00'
night_lights_before_time: 07:00:00
include_light_control:
- use_transition
- use_colour_temperature
include_night_light_control:
- use_transition
light_transition_on: 0.6
night_light_transition_on: 0.6
night_light_transition_off: 0.6
light_transition_off: 0.6
motion_bypass: input_boolean.licht_buro_bypass
motion_bypass_lights_on:
- input_boolean.licht_buro_bypass
- id: '1691157592844'
alias: Licht - HSW Hue Tap
description: ''
use_blueprint:
path: svh1985/z2m-philips-hue-tap-switch.yaml
input:
dimmer: sensor.waschkueche_schalter_action
button_1:
- type: toggle
device_id: 509d68c8a49eda8556ec96ed8bdb487a
entity_id: e5044675b338f2d1b886ad9185b6e6a2
domain: switch
button_4:
- type: toggle
device_id: 509d68c8a49eda8556ec96ed8bdb487a
entity_id: e5044675b338f2d1b886ad9185b6e6a2
domain: switch
button_2:
- type: toggle
device_id: c7e82181252e0c13bc1d6926ec17b000
entity_id: 32b7a347b971b25486bea3c6c699aa5e
domain: light
button_3:
- type: toggle
device_id: 4ef3b85f601b5354cc6762f0a80cd460
entity_id: acfad3aa2375825c0301122013e449b4
domain: switch
- id: '1691158909569'
alias: Licht - Auffahrt
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.auffahrt_etwas_auf
light_switch:
entity_id: light.auffahrt_licht
time_delay: 0.75
motion_bypass: binary_sensor.auffahrt_etwas_auf
include_bypass: []
include_ambient: ambient_enabled
ambient_light_sensor: sensor.auffahrt_bewegungsmelder_illuminance_lux
ambient_light_options: ambient_light_option_disabled
ambient_light_value: 35
bypass_time_delay: 0.75
night_lights_conditions: []
motion_bypass_lights_on: []
- id: '1691166473313'
alias: Licht - Wohnzimmer BWM
description: ''
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.wohnzimmer_bmw_bewegung
light_switch:
entity_id: scene.wohnzimmer_abends_standart
end_scenes:
- scene.wohnzimmer_alles_aus
time_delay: 1.5
include_ambient: ambient_enabled
ambient_light_sensor: sensor.wohnzimmer_bmw_beleuchtungsstarke
ambient_light_options: ambient_light_option_enabled
ambient_light_value: 5
motion_bypass: input_boolean.licht_wohnzimmer_bypass
include_bypass: bypass_enabled_turn_on
include_bypass_auto_off: bypass_auto_off_disabled
light_transition_on: 0.6
light_transition_off: 0.6
night_light_transition_on: 0.6
night_light_transition_off: 0.6
include_light_control:
- use_transition
motion_bypass_lights_on:
- input_boolean.licht_wohnzimmer_bypass
bypass_time_delay: 0.25
- id: '1691242530952'
alias: Roku - Harmony Hub Tasten
description: ''
trigger:
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Left
id: Left
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Right
id: Right
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Back
id: Back
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: BackSpace
id: BackSpace
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Rev
id: Rev
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Fwd
id: Fwd
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Down
id: Down
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Up
id: Up
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Play
id: Play
- platform: event
event_type: roku_command
event_data:
source_name: Home Assistant
type: keypress
key: Info
id: Info
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Left
sequence:
- type: turn_on
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
brightness_pct: 25
- conditions:
- condition: trigger
id:
- Right
sequence:
- type: turn_off
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- conditions:
- condition: trigger
id:
- Back
sequence:
- type: turn_on
device_id: 5dd52aca928925cdcbb25506b63c1eb8
entity_id: 8ecfdad40bfa5e0746ce55ca0c37d73b
domain: light
- conditions:
- condition: trigger
id:
- BackSpace
sequence:
- type: turn_off
device_id: 5dd52aca928925cdcbb25506b63c1eb8
entity_id: 8ecfdad40bfa5e0746ce55ca0c37d73b
domain: light
- conditions:
- condition: trigger
id:
- Rev
sequence:
- type: turn_on
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
brightness_pct: 15
- conditions:
- condition: trigger
id:
- Fwd
sequence:
- type: turn_off
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
- conditions:
- condition: trigger
id:
- Down
sequence:
- service: media_player.turn_on
data: {}
target:
device_id: 3c188dd62678660180b3c7fbe72fa0b5
- conditions:
- condition: trigger
id:
- Up
sequence:
- service: media_player.turn_off
data: {}
target:
device_id: 3c188dd62678660180b3c7fbe72fa0b5
- conditions:
- condition: trigger
id:
- Play
sequence:
- if:
- condition: and
conditions:
- condition: device
type: is_on
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- condition: device
type: is_on
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
then:
- device_id: de7197e94a0d1bef2ec930ea9c234e31
domain: light
entity_id: d505cf6ac79696588bc59e7e8779c3a4
type: brightness_increase
- device_id: 279ef68ea0c5a74e292f44af7f332043
domain: light
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
type: brightness_increase
- if:
- condition: and
conditions:
- condition: device
type: is_on
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- condition: device
type: is_off
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
then:
- device_id: de7197e94a0d1bef2ec930ea9c234e31
domain: light
entity_id: d505cf6ac79696588bc59e7e8779c3a4
type: brightness_increase
- if:
- condition: and
conditions:
- condition: device
type: is_off
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- condition: device
type: is_on
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
then:
- device_id: 279ef68ea0c5a74e292f44af7f332043
domain: light
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
type: brightness_increase
- conditions:
- condition: trigger
id:
- Info
sequence:
- if:
- condition: and
conditions:
- condition: device
type: is_on
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- condition: device
type: is_on
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
then:
- device_id: de7197e94a0d1bef2ec930ea9c234e31
domain: light
entity_id: d505cf6ac79696588bc59e7e8779c3a4
type: brightness_decrease
- device_id: 279ef68ea0c5a74e292f44af7f332043
domain: light
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
type: brightness_decrease
- if:
- condition: and
conditions:
- condition: device
type: is_on
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- condition: device
type: is_off
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
then:
- device_id: de7197e94a0d1bef2ec930ea9c234e31
domain: light
entity_id: d505cf6ac79696588bc59e7e8779c3a4
type: brightness_decrease
- if:
- condition: and
conditions:
- condition: device
type: is_off
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- condition: device
type: is_on
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
then:
- device_id: 279ef68ea0c5a74e292f44af7f332043
domain: light
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
type: brightness_decrease
mode: single
- id: '1691246057609'
alias: Licht - Wohnzimmer
description: ''
trigger:
- platform: state
entity_id:
- remote.harmony_hub
id: Harmony
- platform: state
entity_id:
- sensor.wohnzimmer_bmw_beleuchtungsstarke
id: Lichtsensor
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Harmony
sequence:
- choose:
- conditions:
- condition: state
entity_id: remote.harmony_hub
state: 'on'
sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.licht_wohnzimmer_bypass
- type: turn_on
device_id: 5dd52aca928925cdcbb25506b63c1eb8
entity_id: 8ecfdad40bfa5e0746ce55ca0c37d73b
domain: light
- if:
- condition: sun
before: sunrise
after: sunset
then:
- service: scene.turn_on
data: {}
target:
entity_id: scene.wohnzimmer_abends_tv
- conditions:
- condition: state
entity_id: remote.harmony_hub
state: 'off'
for:
hours: 0
minutes: 0
seconds: 0
sequence:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.licht_wohnzimmer_bypass
enabled: true
- conditions:
- condition: trigger
id:
- Lichtsensor
- condition: state
entity_id: remote.harmony_hub
state: 'on'
- condition: sun
before: sunset
after: sunrise
sequence:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.wohnzimmer_bmw_beleuchtungsstarke
above: 0.4
sequence:
- type: turn_off
device_id: c63362514c42d9112b345678b7bb22c4
entity_id: fb568fd70ae4c6d19f9ac33a799a0820
domain: light
- type: turn_off
device_id: de7197e94a0d1bef2ec930ea9c234e31
entity_id: d505cf6ac79696588bc59e7e8779c3a4
domain: light
- type: turn_off
device_id: 279ef68ea0c5a74e292f44af7f332043
entity_id: c5b8607bdc1d3285a0d6b0133e6edea5
domain: light
- conditions:
- condition: numeric_state
entity_id: sensor.wohnzimmer_bmw_beleuchtungsstarke
below: 0.4
sequence:
- service: scene.turn_on
target:
entity_id: scene.wohnzimmer_abends_tv
metadata: {}
mode: single
- id: '1691254885537'
alias: Licht - Küche - Schalter
description: ''
trigger:
- platform: device
type: changed_states
device_id: bfa03b529527c661ef264625ca77e5e3
entity_id: 5da488ca0136264de0f413952e730864
domain: light
condition: []
action:
- if:
- condition: device
type: is_on
device_id: bfa03b529527c661ef264625ca77e5e3
entity_id: 5da488ca0136264de0f413952e730864
domain: light
then:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.licht_kuche_bypass
- service: scene.turn_on
target:
entity_id: scene.kuche_tag
metadata: {}
else:
- if:
- condition: state
entity_id: binary_sensor.anwesenheit_sensoren_kuche
state: 'on'
then:
- wait_for_trigger:
- platform: state
entity_id:
- binary_sensor.anwesenheit_sensoren_kuche
from: 'on'
to: 'off'
- delay:
hours: 0
minutes: 0
seconds: 15
milliseconds: 0
- service: scene.turn_on
target:
entity_id: scene.kuche_aus
metadata: {}
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.licht_kuche_bypass
mode: single
- id: '1691346643021'
alias: Licht - Wohnzimmer Ambilight
description: ''
trigger:
- platform: device
device_id: 1a2bbc7cbf3a3e220769e7c6c10b1bb6
domain: select
entity_id: 4e3732e26b909cd4f35b796301def542
type: current_option_changed
- platform: state
entity_id:
- sensor.wohnzimmer_bmw_beleuchtungsstarke
- platform: state
entity_id:
- media_player.home_theater
condition: []
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.wohnzimmer_bmw_beleuchtungsstarke
below: 0.5
- condition: and
conditions:
- condition: or
conditions:
- condition: device
type: is_on
device_id: 1a2bbc7cbf3a3e220769e7c6c10b1bb6
entity_id: 132911bfbadee2cc73493618141d505a
domain: remote
- condition: state
entity_id: media_player.home_theater
state: 'on'
enabled: true
sequence:
- service: scene.turn_on
metadata: {}
target:
entity_id: scene.ambilight_standart
- conditions:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.wohnzimmer_bmw_beleuchtungsstarke
above: 0.5
- condition: or
conditions:
- condition: device
type: is_on
device_id: 1a2bbc7cbf3a3e220769e7c6c10b1bb6
entity_id: 132911bfbadee2cc73493618141d505a
domain: remote
- condition: state
entity_id: media_player.home_theater
state: 'on'