-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
executable file
·7464 lines (7461 loc) · 206 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: '1597672576485'
alias: Abstellkammer Licht aus nach Timer zum Strom sparen
description: ''
trigger:
- entity_id: light.deckenlicht
platform: state
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: light.deckenlicht
state: 'on'
sequence:
- data: {}
entity_id: script.abstellraum_licht_timer
service: script.turn_off
- data: {}
entity_id: script.abstellraum_licht_timer
service: script.turn_on
- conditions:
- condition: state
entity_id: light.deckenlicht
state: 'off'
sequence:
- data: {}
entity_id: script.abstellraum_licht_timer
service: script.turn_off
default: []
mode: single
- id: c2b4af6552d5ef9ac7576742bc8a0a74
alias: Aufladen automatisch beenden reset beendet (Living Charge)
trigger:
- entity_id: switch.charger_relay
platform: state
to: 'off'
action:
- entity_id: input_boolean.automatic_charging_control
service: input_boolean.turn_on
initial_state: true
- id: e6174789ceedc698677de2917e708a03
alias: Aufladen beendet (Living Charge)
trigger:
- below: '1.2'
entity_id: sensor.charger_wattage
platform: numeric_state
condition:
- condition: state
entity_id: switch.charger_relay
state: 'on'
- condition: state
entity_id: input_boolean.automatic_charging_control
state: 'on'
action:
- entity_id: switch.charger_relay
service: switch.turn_off
- data:
message: Aufladen im Wohnzimmer beendet
service: notify.send_to_input_text
initial_state: true
mode: single
- id: '1587050057539'
alias: Aufladen beendet - Power Charger (Living Charger)
description: ''
trigger:
- below: '2'
entity_id: sensor.power_charger_wattage
platform: numeric_state
condition:
- condition: state
entity_id: switch.power_charger_relay
state: 'on'
action:
- data: {}
entity_id: switch.power_charger_relay
service: switch.turn_off
- data:
message: Aufladen im Arbeitszimmer beendet
service: notify.send_to_input_text
mode: single
- id: '1587051592118'
alias: Power Charger on, check if needed (Living Charger)
description: ''
trigger:
- entity_id: switch.power_charger_relay
platform: state
to: 'on'
condition: []
action:
- data: {}
service: script.power_charger_not_used_check
- id: '1587051662107'
alias: Charger on, check if needed (Living Charger)
description: ''
trigger:
- entity_id: switch.charger_relay
platform: state
to: 'on'
condition: []
action:
- data: {}
service: script.charger_not_used_check
- id: 415f791871428224f7bee82cbc47c202
alias: Fahre SkyNas für Rsync Backup hoch (Kitchen SkyNas)
initial_state: true
trigger:
- platform: time
at: 03:00:00
condition:
- condition: state
entity_id: input_boolean.holiday
state: 'off'
action:
service: switch.turn_on
entity_id: switch.skynas
- id: bb027aa10c638ddb7c6ddcb27877698b
alias: Fahre Backup Server Filme für Rsync Backup hoch (Kitchen SkyNas)
initial_state: true
trigger:
- platform: time
at: 03:00:00
condition:
- condition: state
entity_id: input_boolean.holiday
state: 'off'
action:
service: switch.turn_on
entity_id: switch.backup_server_filme
- id: aded564135e70cef56f4167ade53cddf
alias: Nachricht wenn SkyNas runtergefahren (Kitchen SkyNas)
trigger:
- platform: state
entity_id: switch.skynas
to: 'off'
action:
- service: notify.send_to_input_text
data:
message: SkysServer runtergefahren
- service: shell_command.comlicated_app
data:
complications: graphicCorner
value: 'AUS
Server Status'
- service: shell_command.comlicated_app
data:
complications: utilitarianSmall
value: Server aus
initial_state: true
mode: single
- id: 4d8f896625e0de99c756a16da3e7ce3e
alias: Nachricht wenn SkyNas hochgefahren (Kitchen SkyNas)
trigger:
- platform: state
entity_id: switch.skynas
to: 'on'
action:
- service: notify.send_to_input_text
data:
message: SkysServer hochgefahren
- service: shell_command.comlicated_app
data:
complications: graphicCorner
value: 'AN
Server Status'
- service: shell_command.comlicated_app
data:
complications: utilitarianSmall
value: Server AN
initial_state: true
mode: single
- id: c7c4fc7e6d5d07ac460fb129549aab00
alias: Cleaning mode aktiviert (General Cleaning)
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.cleaning_mode
from: 'off'
to: 'on'
action:
- service: homeassistant.turn_on
entity_id: group.all_light
- id: 929e542b827bba368b87a93e0b2ef7be
alias: Gleiches Lautstärke für alle Alexa wenn Musik überall spielt (General Alexa)
initial_state: true
trigger:
- platform: state
entity_id: sensor.spotify_speaker
to: Überall
- platform: state
entity_id: input_number.alexa_max_volume
condition:
- condition: state
entity_id: sensor.spotify_speaker
state: Überall
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.kuche
volume_level: '{{ states("input_number.alexa_max_volume")|int / 10 }}'
- service: media_player.volume_set
data_template:
entity_id: media_player.schlafzimmer
volume_level: '{{ states("input_number.alexa_max_volume")|int / 10 }}'
- service: media_player.volume_set
data_template:
entity_id: media_player.wohnzimmer
volume_level: '{{ states("input_number.alexa_max_volume")|int / 10 }}'
- service: media_player.volume_set
data_template:
entity_id: media_player.arbeitszimmer
volume_level: '{{ states("input_number.alexa_max_volume")|int / 10 }}'
- id: '1586951160002'
alias: Home Office Off (Kitchen Home Office)
description: ''
trigger:
- entity_id: sensor.monitor_wattage
platform: numeric_state
below: '3'
- below: '20'
entity_id: sensor.laptop_wattage
platform: numeric_state
condition:
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.laptop_wattage
below: '3'
- condition: numeric_state
entity_id: sensor.monitor_wattage
below: '20'
action:
- data: {}
entity_id: input_boolean.home_office
service: input_boolean.turn_off
- condition: state
entity_id: input_boolean.sleepmode
state: 'off'
- data: {}
entity_id: input_boolean.silent_messages_only
service: input_boolean.turn_off
mode: single
- id: e6f1a742ec393e308508cb0df06305e1
alias: Home Office On (Kitchen Home office)
trigger:
- above: '20'
entity_id: sensor.laptop_wattage
platform: numeric_state
- above: '20'
entity_id: sensor.monitor_wattage
platform: numeric_state
condition:
- above: '20'
condition: numeric_state
entity_id: sensor.laptop_wattage
- above: '20'
condition: numeric_state
entity_id: sensor.monitor_wattage
action:
- entity_id: input_boolean.home_office
service: input_boolean.turn_on
- data: {}
entity_id: input_boolean.silent_messages_only
service: input_boolean.turn_on
initial_state: true
mode: single
- id: 2d2fe55e62b039b8754d270010169017
alias: Movie Server Backup Abort after 5 hours (General movie backup server)
initial_state: true
trigger:
- platform: state
entity_id: switch.backup_server_filme
to: 'on'
action:
- service: script.turn_on
entity_id: script.backup_server_movie_shutdown
- id: 213191814aeecc9c2afd086ae400e7b2
alias: MQTT Switch ON dann Skyserver ON (MQTT)
initial_state: true
trigger:
- platform: state
entity_id: switch.christians_server
from: 'off'
to: 'on'
action:
service: switch.turn_on
entity_id: switch.skynas
- id: 3b8e5708263dc41ad1d9abb15bf5b725
alias: MQTT Switch OFF wenn Skyserver OFF (MQTT)
initial_state: true
trigger:
- platform: state
entity_id: switch.skynas
from: 'on'
to: 'off'
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: switch.skynas
state: 'off'
action:
service: switch.turn_off
entity_id: switch.christians_server
- id: c9a45fb11d394c6f166ebfa0748d5d19
alias: MQTT Switch ON wenn Skyserver ON (MQTT)
initial_state: true
trigger:
- platform: state
entity_id: switch.skynas
from: 'off'
to: 'on'
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: switch.skynas
state: 'on'
action:
service: switch.turn_on
entity_id: switch.christians_server
- id: 63ac8635ccd1ebb7bf9775489d3afe03
alias: Schlafmodus aktiv - Nachrichten nur noch Stumm senden (General Moving Message)
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.sleepmode
to: 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.silent_messages_only
- id: 8172f3c1786f30babf784d7a4d57b689
alias: Schlafmodus inaktiv - Nachrichten nur noch Stumm senden - off (General Moving
Message)
trigger:
- entity_id: input_boolean.sleepmode
platform: state
to: 'off'
condition:
- condition: state
entity_id: input_boolean.home_office
state: 'off'
action:
- entity_id: input_boolean.silent_messages_only
service: input_boolean.turn_off
initial_state: true
- id: 5d8be620aadd30933ca21b9179137336
alias: Nachricht in Schlafzimmer abspielen (General Moving Message Bedroom)
trigger:
- entity_id: input_text.message_module
platform: state
condition:
- condition: state
entity_id: input_boolean.someone_in_bedroom
state: 'on'
- condition: state
entity_id: input_boolean.silent_messages_only
state: 'off'
- condition: template
value_template: '{{ not is_state("input_text.message_module", "###reset###") }}'
- condition: state
entity_id: input_boolean.sleepmode_bedroom
state: 'off'
action:
- data_template:
data:
type: announce
message: '{{states.input_text.message_module.state}}'
service: notify.alexa_media_schlafzimmer
- data:
value: '###reset###'
entity_id: input_text.message_module
service: input_text.set_value
initial_state: true
mode: single
- id: 4b3d218bc932653a6c6008a366aa236f
alias: Nachricht in Arbeitszimmer abspielen (General Moving Message Bedroom)
trigger:
- entity_id: input_text.message_module
platform: state
condition:
- condition: state
entity_id: input_boolean.someone_in_workingroom
state: 'on'
- condition: state
entity_id: input_boolean.silent_messages_only
state: 'off'
- condition: template
value_template: '{{ not is_state("input_text.message_module", "###reset###")}}'
- condition: state
entity_id: input_boolean.sleepmode_workingroom
state: 'off'
action:
- data_template:
data:
type: announce
message: '{{states.input_text.message_module.state}}'
service: notify.alexa_media_arbeitszimmer
- data:
value: '###reset###'
entity_id: input_text.message_module
service: input_text.set_value
initial_state: true
mode: single
- id: b5e08f18783d516554b9d6f191a4c668
alias: Nachricht in Küche abspielen (General Moving Message Kitchen)
trigger:
- platform: state
entity_id: input_text.message_module
condition:
- condition: state
entity_id: input_boolean.someone_in_kitchen
state: 'on'
- condition: state
entity_id: input_boolean.silent_messages_only
state: 'off'
- condition: template
value_template: '{{ not is_state("input_text.message_module", "###reset###")}}'
action:
- service: notify.alexa_media_kuche
data_template:
message: '{{states.input_text.message_module.state}}'
data:
type: announce
- service: input_text.set_value
entity_id: input_text.message_module
data:
value: '###reset###'
initial_state: true
mode: single
- id: 5be34859293362fc35c2b0bde7e8d13d
alias: Nachricht in Wohnzimmer abspielen (General Moving Message Living)
trigger:
- platform: state
entity_id: input_text.message_module
condition:
- condition: state
entity_id: input_boolean.someone_in_living
state: 'on'
- condition: state
entity_id: input_boolean.silent_messages_only
state: 'off'
- condition: template
value_template: '{{ not is_state("input_text.message_module", "###reset###") }}'
action:
- service: notify.alexa_media_wohnzimmer
data_template:
message: '{{states.input_text.message_module.state}}'
data:
type: announce
- service: input_text.set_value
entity_id: input_text.message_module
data:
value: '###reset###'
initial_state: true
mode: single
- id: 7dca0e0f703c5135439fca3e8d8af0f5
alias: Nachricht - stumm - als text senden (General Moving Message Rest)
trigger:
- entity_id: input_text.message_module
platform: state
condition:
- condition: template
value_template: '{% if is_state("input_boolean.silent_messages_only", "on") or
is_state("sensor.someone_home", "false") %}true{% else %}false{% endif %}'
- condition: template
value_template: '{{ not is_state("input_text.message_module", "###reset###") }}'
action:
- data:
message: '{{ states("input_text.message_module") }}'
service: script.messages_to_christian
- data:
message: '{{ states("input_text.message_module") }}'
service: script.messages_to_elitsa
- data:
value: '###reset###'
entity_id: input_text.message_module
service: input_text.set_value
initial_state: true
- id: b525c6b5b3b39a6183df7eb67dd7a406
alias: Plex Spielt Server runterfahren abbrechen (Living Plex)
initial_state: true
trigger:
- platform: state
entity_id: sensor.show_plex_activity
from: '0'
- platform: state
entity_id: input_boolean.server_shutdown_overwrite
from: 'off'
to: 'on'
- platform: state
entity_id: switch.skynas
from: 'on'
to: 'off'
action:
- service: script.turn_on
entity_id: script.shutdown_server_abort
- id: 5201a2b0689b1ffadf86d763af53a85e
alias: Plex Standby Server runterfahren (Living Plex)
initial_state: true
trigger:
- platform: state
entity_id: sensor.show_plex_activity
to: '0'
- platform: state
entity_id: input_number.server_shutdown_timer
condition:
- condition: numeric_state
entity_id: sensor.show_plex_activity
below: 1
action:
- service: script.turn_off
entity_id: script.shutdown_server
- service: script.turn_on
entity_id: script.shutdown_server
- id: af8eba75da9355ff891c84ee9571d63d
alias: Reset all Alexa Echo to default volume (General Alexa)
trigger:
- at: 05:00:00
platform: time
- entity_id: sensor.spotify_speaker
from: Überall
platform: state
action:
- data_template:
entity_id: media_player.kuche
volume_level: 0.{{ states("input_number.alexa_kitchen_volume")|int }}
service: media_player.volume_set
- data_template:
entity_id: media_player.schlafzimmer
volume_level: 0.{{ states("input_number.alexa_bedroom_volume")|int }}
service: media_player.volume_set
- data_template:
entity_id: media_player.wohnzimmer
volume_level: 0.{{ states("input_number.alexa_living_volume")|int }}
service: media_player.volume_set
- data_template:
entity_id: media_player.arbeitszimmer
volume_level: 0.{{ states("input_number.alexa_workingroom_volume")|int }}
service: media_player.volume_set
initial_state: true
mode: single
- id: 3b8409a8e2e4033b4cc7d3419b743f9c
alias: say wich windows are open on sleepmode activate (Bedroom Sleepmode)
trigger:
- entity_id: input_boolean.sleepmode_bedroom
from: 'off'
platform: state
to: 'on'
condition:
- condition: template
value_template: '{{ states("sensor.window_open_check") | int > 0 }}'
- condition: state
entity_id: input_boolean.open_windows_info_given
state: 'off'
- condition: state
entity_id: input_boolean.nickerchen_aktiv
state: 'off'
- after: '21:00'
condition: time
action:
- data_template:
data:
type: announce
message: 'Es sind noch Fenster in folgenden Räumen offen: {%- if is_state(''binary_sensor.bathroom_window_manualy'',''on'')
-%} Badezimmer {% endif %} {%- if is_state(''binary_sensor.bedroom_window_sensor_right'',''on'')
or is_state(''binary_sensor.schlafzimmer_fenster_links'',''on'') -%} Schlafzimmer
{% endif %} {%- if is_state(''binary_sensor.kitchen_window_sensor_right'',''on'')
or is_state(''binary_sensor.kuchen_fenster_links'',''on'') -%} Küche {% endif%}
{%- if is_state(''binary_sensor.kiving_window_sensor_right'',''on'') or is_state(''binary_sensor.wohnzimmerzimmer_fenster_links'',''on'')
-%} Wohnzimmer {% endif %} {%- if is_state(''binary_sensor.balkon_fenster_rechts'',''on'')
or is_state(''binary_sensor.balkon_fenster_links'',''on'') -%} Balkon {% endif
%} {%- if is_state(''binary_sensor.arbeitszimmer_fenster_rechts'',''on'')
or is_state(''binary_sensor.arbeitszimmer_fenster_links'',''on'') -%} Arbeitszimmer
{% endif %}'
service: notify.alexa_media_schlafzimmer
- data: {}
entity_id: input_boolean.open_windows_info_given
service: input_boolean.turn_on
initial_state: true
mode: single
- id: 3def337534d3a50762278261b050cdbf
alias: send critical message if any window is open on door open (Floor Window Check)
trigger:
- entity_id: binary_sensor.floor_door_sensor
platform: state
to: 'on'
condition:
- condition: state
entity_id: switch.floor_main_switch_switch
state: 'on'
- condition: template
value_template: '{{ states("sensor.window_open_check") | int > 0 }}'
- condition: state
entity_id: input_boolean.sleepmode
state: 'off'
action:
- data_template:
variables:
message: 'Es sind noch Fenster in folgenden Räumen offen: {%- if is_state(''binary_sensor.bathroom_window_manualy'',''on'')
-%} Badezimmer {% endif %} {%- if is_state(''binary_sensor.bedroom_window_sensor_right'',''on'')
or is_state(''binary_sensor.schlafzimmer_fenster_links'',''on'') -%} Schlafzimmer
{% endif %} {%- if is_state(''binary_sensor.kitchen_window_sensor_right'',''on'')
or is_state(''binary_sensor.kuchen_fenster_links'',''on'') -%} Küche {%
endif%} {%- if is_state(''binary_sensor.kiving_window_sensor_right'',''on'')
or is_state(''binary_sensor.wohnzimmerzimmer_fenster_links'',''on'') -%}
Wohnzimmer {% endif %} {%- if is_state(''binary_sensor.balkon_fenster_rechts'',''on'')
or is_state(''binary_sensor.balkon_fenster_links'',''on'') -%} Balkon {%
endif %} {%- if is_state(''binary_sensor.arbeitszimmer_fenster_rechts'',''on'')
or is_state(''binary_sensor.arbeitszimmer_fenster_links'',''on'') -%} Arbeitszimmer
{% endif %}'
title: '{{ states("sensor.window_open_check") }} Fenster noch offen'
entity_id: script.open_windows_message_christian
service: script.turn_on
- data_template:
variables:
message: 'Es sind noch Fenster in folgenden Räumen offen: {%- if is_state(''binary_sensor.bathroom_window_manualy'',''on'')
-%} Badezimmer {% endif %} {%- if is_state(''binary_sensor.bedroom_window_sensor_right'',''on'')
or is_state(''binary_sensor.schlafzimmer_fenster_links'',''on'') -%} Schlafzimmer
{% endif %} {%- if is_state(''binary_sensor.kitchen_window_sensor_right'',''on'')
or is_state(''binary_sensor.kuchen_fenster_links'',''on'') -%} Küche {%
endif%} {%- if is_state(''binary_sensor.kiving_window_sensor_right'',''on'')
or is_state(''binary_sensor.wohnzimmerzimmer_fenster_links'',''on'') -%}
Wohnzimmer {% endif %} {%- if is_state(''binary_sensor.balkon_fenster_rechts'',''on'')
or is_state(''binary_sensor.balkon_fenster_links'',''on'') -%} Balkon {%
endif %} {%- if is_state(''binary_sensor.arbeitszimmer_fenster_rechts'',''on'')
or is_state(''binary_sensor.arbeitszimmer_fenster_links'',''on'') -%} Arbeitszimmer
{% endif %}'
title: '{{ states("sensor.window_open_check") }} Fenster noch offen'
entity_id: script.open_windows_message_elitsa
service: script.turn_on
- service: script.popup_floor_show_windows_open
data: {}
initial_state: true
mode: single
- id: 2f0a0852bfcdd52ff539ebb8e8c37ef8
alias: Server started - start shutdown timer (Kitchen SkyNas)
trigger:
- platform: state
entity_id: switch.skynas
from: 'off'
to: 'on'
- platform: state
entity_id: input_boolean.server_shutdown_overwrite
from: 'on'
to: 'off'
condition:
- condition: numeric_state
entity_id: sensor.show_plex_activity
below: 1
- condition: state
entity_id: input_boolean.server_shutdown_overwrite
state: 'off'
action:
- service: script.turn_on
entity_id: script.shutdown_server
- id: '1587038210382'
alias: update sleepmode (Bedroom Sleepmode)
description: ''
trigger:
- entity_id: group.living_all
platform: state
to: 'off'
- entity_id: group.kitchen_all
platform: state
to: 'off'
- entity_id: group.bedroom_all
platform: state
to: 'off'
- entity_id: group.floor_light
platform: state
to: 'off'
- entity_id: group.workingroom_all
platform: state
to: 'off'
- entity_id: group.bathroom_all
platform: state
to: 'off'
- entity_id: input_boolean.someone_in_kitchen
platform: state
to: 'off'
- entity_id: input_boolean.someone_in_living
platform: state
to: 'off'
- entity_id: input_boolean.someone_in_bathroom
platform: state
to: 'off'
- entity_id: input_boolean.someone_in_workingroom
platform: state
to: 'off'
- entity_id: input_boolean.someone_in_bedroom
platform: state
to: 'off'
- entity_id: input_boolean.someone_in_guestroom
platform: state
to: 'off'
condition:
- above: '1'
condition: numeric_state
entity_id: sensor.rooms_with_sleepmode_active
- condition: state
entity_id: input_boolean.nickerchen_aktiv
state: 'off'
action:
- data: {}
entity_id: script.alexa_good_night
service: script.turn_on
mode: single
- id: 935733951c519bc95b42a176a8d0bdd2
alias: Waschmaschine ausgeschaltet (Kitchen Washing Machine)
trigger:
- below: '0.5'
entity_id: sensor.washing_power
for: 00:05:00
platform: numeric_state
- platform: state
entity_id: switch.washing_switch
to: 'off'
action:
- entity_id: input_boolean.washing_machine_switch
service: input_boolean.turn_off
- entity_id: input_boolean.washing_machine_running
service: input_boolean.turn_off
- service: input_select.select_option
data:
option: Kein Program gewählt
entity_id: input_select.waschprogramme
initial_state: true
mode: single
- id: 41ba21910bf1863cc3e657f319b73716
alias: Waschmaschine fertig (Kitchen Washing Machine)
trigger:
- above: '0.5'
below: '2'
entity_id: sensor.washing_power
platform: numeric_state
for: 00:02:00
action:
- entity_id: input_boolean.washing_machine_switch
service: input_boolean.turn_on
- entity_id: input_boolean.washing_machine_running
service: input_boolean.turn_off
- data:
value: 0
entity_id: input_number.minuten_bis_waschmaschine_fertig
service: input_number.set_value
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.washing_timer_activate
- service: input_select.select_option
data:
option: Kein Program gewählt
entity_id: input_select.waschprogramme
initial_state: true
mode: single
- id: 99cfdfa0006aafef9b338b87d74e0e14
alias: Waschmaschine läuft (Kitchen Washing Machine)
trigger:
- above: '5'
entity_id: sensor.washing_power
platform: numeric_state
condition:
- condition: state
entity_id: input_boolean.washing_machine_running
state: 'off'
action:
- entity_id: input_boolean.washing_machine_running
service: input_boolean.turn_on
- service: input_boolean.turn_on
data: {}
entity_id: input_boolean.washing_timer_activate
initial_state: true
mode: single
- id: eecc47eb4eb1fe17bc0f70279247624d
alias: Zwave Network Ready (General Home Assistant)
initial_state: true
trigger:
- platform: event
event_type: zwave.network_ready
action:
- service: notify.devices_christian
data:
message: Z-Wave Network Ready
- id: '1597674322744'
alias: Licht in Abstellraum
description: ''
trigger:
- entity_id: binary_sensor.hauswirtschaftsraum_tur
platform: state
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.hauswirtschaftsraum_tur
state: 'on'
sequence:
- data: {}
entity_id: light.deckenlicht
service: light.turn_on
- conditions:
- condition: state
entity_id: binary_sensor.hauswirtschaftsraum_tur
state: 'off'
sequence:
- data: {}
entity_id: light.deckenlicht
service: light.turn_off
default: []
mode: single
- id: '1597674554816'
alias: Open Balcony Rollo when open window
description: ''
trigger:
- entity_id: binary_sensor.balkon_fenster_links
platform: state
to: 'on'
condition: []
action:
- data: {}
entity_id: cover.balcony_roller_shutter_level
service: cover.open_cover
mode: single
- id: '1597674680949'
alias: someone in bathroom - on
description: ''
trigger:
- entity_id: binary_sensor.bathroom_multi_sensor_sensor
platform: state
to: 'on'
- entity_id: binary_sensor.bathroom_door_manualy
platform: state
to: 'on'
- entity_id: binary_sensor.badezimmer_dusche_motion
platform: state
to: 'on'
- entity_id: switch.bathroom_main_light_switch
platform: state
to: 'on'
- entity_id: switch.bathroom_shower_light_switch
platform: state
to: 'on'
- entity_id: input_boolean.force_occupied_bathroom
platform: state
to: 'on'
- entity_id: input_boolean.force_light_off_bathroom
platform: state
to: 'on'
- platform: state
entity_id: binary_sensor.badezimmer_motion
to: 'on'
condition: []
action:
- data: {}
entity_id: script.someone_in_bathroom_off
service: script.turn_off
- data: {}
entity_id: input_boolean.someone_in_bathroom
service: input_boolean.turn_on
mode: single
- id: '1597674771305'
alias: someone in bathroom - off
description: ''
trigger:
- entity_id: binary_sensor.bathroom_multi_sensor_sensor
platform: state
to: 'off'
- entity_id: binary_sensor.badezimmer_dusche_motion
platform: state
to: 'off'
- entity_id: input_boolean.force_occupied_bathroom
platform: state
to: 'off'
- entity_id: input_boolean.force_light_off_bathroom
platform: state
to: 'off'
- platform: state
entity_id: binary_sensor.badezimmer_motion
to: 'off'
- platform: state
entity_id: input_boolean.sleepmode_bedroom
to: 'on'
for: 00:00:30
condition:
- condition: state
entity_id: binary_sensor.bathroom_multi_sensor_sensor
state: 'off'
- condition: state
entity_id: binary_sensor.badezimmer_dusche_motion
state: 'off'
- condition: state
entity_id: input_boolean.force_occupied_bathroom
state: 'off'
- condition: state
entity_id: input_boolean.force_light_off_bathroom
state: 'off'
- condition: state
entity_id: binary_sensor.badezimmer_motion
state: 'off'
action:
- data: {}
entity_id: script.someone_in_bathroom_off
service: script.turn_on
mode: single
- id: '1597674973476'
alias: someone in bathroom - light
description: ''
trigger:
- entity_id: input_boolean.someone_in_bathroom
platform: state
- entity_id: input_boolean.force_occupied_bathroom
platform: state
to: 'on'
- entity_id: input_boolean.force_light_off_bathroom
platform: state
to: 'on'
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.someone_in_bathroom
state: 'on'
- below: '100'
condition: numeric_state
entity_id: sensor.bathroom_multi_sensor_luminance
- condition: state
entity_id: input_boolean.sleepmode_bathroom
state: 'off'
- condition: state
entity_id: input_boolean.force_light_off_bathroom
state: 'off'
- condition: state
entity_id: input_boolean.force_occupied_bathroom
state: 'off'
sequence:
- data: {}
entity_id: switch.bathroom_main_light_switch
service: switch.turn_on
- conditions:
- condition: state
entity_id: input_boolean.someone_in_bathroom
state: 'off'
- condition: state
entity_id: input_boolean.force_occupied_bathroom
state: 'off'
sequence:
- data: {}
entity_id: group.bathroom_light
service: homeassistant.turn_off
- data: {}
entity_id: light.golight
service: light.turn_off
- conditions:
- condition: state
entity_id: input_boolean.sleepmode_bathroom
state: 'on'
sequence:
- data:
brightness: 20
color_temp: 500
entity_id: light.golight
service: light.turn_on
- conditions:
- condition: state
entity_id: input_boolean.force_occupied_bathroom
state: 'on'
- condition: state
entity_id: input_boolean.someone_in_bathroom
state: 'on'
- condition: state
entity_id: input_boolean.force_light_off_bathroom
state: 'off'
sequence:
- data: {}
entity_id: switch.bathroom_main_light_switch
service: switch.turn_on
- conditions:
- condition: state
entity_id: input_boolean.force_light_off_bathroom
state: 'on'
- condition: state
entity_id: input_boolean.force_occupied_bathroom
state: 'off'
sequence:
- data: {}
entity_id: switch.bathroom_main_light_switch
service: switch.turn_off
default: []
mode: single
- id: '1597675027902'
alias: someone in bathroom shower - light
description: ''
trigger:
- entity_id: binary_sensor.badezimmer_dusche_motion
platform: state
to: 'on'
condition:
- condition: state