-
Notifications
You must be signed in to change notification settings - Fork 1
/
automations.yaml
2905 lines (2897 loc) · 75.3 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: '1608636183988'
alias: Notify, wenn Fenster zu lange offen und kalt draussen
description: ''
trigger:
- platform: state
from: 'off'
for: 00:10:00
to: 'on'
entity_id: group.dachfenster
- platform: state
entity_id: group.ogfenster
from: 'off'
for: 00:10:00
to: 'on'
- platform: state
entity_id: group.egfenster
from: 'off'
to: 'on'
for: 00:10:00
condition:
- condition: numeric_state
entity_id: sensor.heidelberg_temperature
below: '15'
action:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: '{% set w = expand( trigger.entity_id ) | selectattr(''state'', ''eq'',
''on'') | map(attribute=''name'') | list %} Fenster {{ w }} aus Gruppe {{
trigger.to_state.attributes.friendly_name }} ist zu lange ({{trigger.for}}
min) offen. Temperatur unter 15°C.'
mode: single
- id: l1k3
alias: Push HA configuration regularly to GitHub repo
trigger:
- platform: time_pattern
hours: '2'
minutes: '8'
condition:
- condition: time
after: 06:00:00
before: 00:00:00
action:
- data: {}
action: shell_command.push_to_github
mode: single
- id: '1609858165994'
alias: Windfanglicht bei Dunkelheit
description: Windfanglicht an, wenn dunkel draußen; aus, wenn es hell wird
trigger:
- platform: state
entity_id: binary_sensor.dunkel_draussen
from: 'off'
to: 'on'
id: an
- platform: state
entity_id: binary_sensor.dunkel_draussen
id: aus
from: 'on'
to: 'off'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: an
sequence:
- service: switch.turn_on
target:
entity_id: switch.licht_windfang
- conditions:
- condition: trigger
id: aus
sequence:
- service: switch.turn_off
target:
entity_id: switch.licht_windfang
default: []
mode: single
- id: '1611480761802'
alias: Wenn Garage geöffnet wird und dunkel draußen, dann Flur-EG Licht an und LED-Fluter
an
description: ''
trigger:
- platform: state
entity_id: binary_sensor.garagentur
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.dunkel_draussen
state: 'on'
action:
- type: turn_on
device_id: d824de0a6c667da98e0f508d5d4129e5
entity_id: switch.eg_flur_licht
domain: switch
- type: turn_on
device_id: 33202a9524f56b2023ed57884e81af71
entity_id: switch.shelly25_garage_channel_2
domain: switch
mode: single
- id: '1611495931370'
alias: Wenn Kellerpumpe Treppe anläuft, dann Zähler erhöhen
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.shellys_keller_pumpe_treppe_power
above: '5'
for: 00:00:03
condition: []
action:
- service: counter.increment
data: {}
entity_id: counter.kellerpumpe
mode: single
- id: '1611496375383'
alias: Wenn Mitternacht, dann Zähler zurücksetzen
description: ''
trigger:
- platform: time
at: 00:00
condition: []
action:
- service: counter.reset
data: {}
target:
entity_id:
- counter.kellerpumpe
mode: single
- id: '1611515523821'
alias: zAlexa Media Player TTS/Announce from Lovelace UI
description: ''
use_blueprint:
path: NachtaktiverHalbaffe/alexa-tts-announcement-from-lovelace-ui-and-without-nabu-casa-alexa-media-player.yaml
input:
message: input_text.swa_alexa_text
target: input_select.swa_alexa_device
- id: '1612096410696'
alias: Notify, wenn Waschmaschine fertig
description: Waschmaschine fertig
use_blueprint:
path: Sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
input:
finishing_hysteresis: 5
power_sensor: sensor.shellys_wama_power
starting_threshold: '100'
starting_hysteresis: '3'
finishing_threshold: '40'
actions:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Waschmaschine ist fertig seit {{ '{:02}:{:02}'.format(now().hour,
now().minute) }}.
- service: script.alexa_wama_fertig
data: {}
- id: '1612602466906'
alias: Notify, wenn Katzentuer abends geschlossen
description: ''
trigger:
- platform: state
from: 'off'
for: 00:05:00
to: 'on'
entity_id: binary_sensor.abend_eg_wohnzimmer_tuer_zu
condition: []
action:
- service: script.alexa_doorbell
data: {}
entity_id: script.alexa_doorbell
- service: script.alexa_tts_katzentur_offnen
data: {}
entity_id: script.alexa_tts_katzentur_offnen
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Die Wohnzimmertür für die Katzen offen lassen.
mode: single
- id: '1612709996219'
alias: Notify, wenn Garage zu lange offen ist
description: ''
trigger:
- platform: state
entity_id: binary_sensor.shelly1_garage_input
to: 'off'
for: 00:30:00
id: garage1
- platform: state
entity_id: binary_sensor.shelly1_garage_input
to: 'off'
for: 00:45:00
id: garage2
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: trigger
id: garage1
- condition: trigger
id: garage2
sequence:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Garagentor ist (zu lange) offen
default: []
mode: single
- id: '1612710199273'
alias: Notify, wenn Haustür zu lange offen ist
description: ''
trigger:
- platform: state
entity_id: binary_sensor.haustur
to: 'on'
for: 00:10:00
condition: []
action:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Haustür ist (zu lange) offen. Es hat {{ states('sensor.heidelberg_temperature')
}} Grad draußen."
mode: single
- id: '1612710265420'
alias: Notify, wenn Kellertür zu lange offen ist
description: ''
trigger:
- platform: state
entity_id: binary_sensor.kellertur
to: 'on'
for: 00:30:00
condition: []
action:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Kellertür ist (zu lange) offen. Es hat {{ states('sensor.heidelberg_temperature')
}} Grad draußen."
mode: single
- id: '1612710429192'
alias: Urgent Notify, wenn Freezer im Büro zu lange offen ist
description: ''
trigger:
- platform: state
entity_id: binary_sensor.eg_freezer
to: 'on'
for: 00:02:00
- platform: state
entity_id: binary_sensor.eg_freezer
to: 'on'
for: 00:04:00
condition: []
action:
- if:
- condition: time
after: 09:00:00
before: '22:00:00'
then:
- service: script.urgent_notify_people_who_are_present
data:
title: Hinweis
message: Freezer im Büro ist (zu lange) offen.
else:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Freezer im Büro ist (zu lange) offen.
mode: single
- id: '1623348230796'
alias: Wenn Nacht, dann lasse Pool Pumpe laufen
description: ''
trigger:
- platform: time
at: '23:00'
condition: []
action:
- type: turn_on
device_id: 0890c146d5a406d9af64dcbe0662bd4e
entity_id: switch.shellys_poolpump
domain: switch
- delay:
hours: 6
minutes: 0
seconds: 0
milliseconds: 0
- type: turn_off
device_id: 0890c146d5a406d9af64dcbe0662bd4e
entity_id: switch.shellys_poolpump
domain: switch
mode: single
- id: '1626027211313'
alias: 'Notify Stefan, wenn major shelly und esp devices nicht verfügbar sind '
description: ''
use_blueprint:
path: bfranke1973/device_connectivity_notification.yaml
input:
message: ' Hint: network connection lost for devices: {{ disconnected_servers
}} '
notify_device: fb01246b7faea05d42d7df1ff8e71a1b
server_group: group.servers
- id: '1631904142960'
alias: Advanced Heating Monitor_
description: Sends message to Stefan if heating shows non-regular codes, checks
pressure, sets NTP time at night
trigger:
- platform: state
entity_id: sensor.boiler_service_code
to: 6A
for:
hours: 0
minutes: 10
seconds: 0
id: servicecode
- platform: time
at: 00:01
id: setntp
- platform: numeric_state
entity_id: sensor.boiler_system_pressure
below: '1.9'
id: heizungsdruck
for:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: servicecode
sequence:
- service: script.notify_stefan
data:
title: Heating
message: 'Service Code: {{ states(''sensor.boiler_service_code'') }} Service
Code Number: {{ states(''sensor.boiler_service_code_number'') }}'
- conditions:
- condition: trigger
id: setntp
sequence:
- service: mqtt.publish
data:
topic: ems-esp/thermostat
payload: '{"cmd":"datetime","data":"ntp"}'
qos: '1'
- conditions:
- condition: trigger
id: heizungsdruck
sequence:
- service: notify.persistent_notification
data:
title: Heating
message: Heizungsdruck über 1h unter 1.9 bar.
mode: single
- id: '1632288672635'
alias: Notify, if basement dehumidifier is full
description: ''
trigger:
- platform: state
entity_id: sensor.entfeuchter_voll
to: 'True'
for:
hours: 1
minutes: 0
seconds: 0
id: entfeuchtervoll
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: entfeuchtervoll
sequence:
- service: script.notify_parents
data: {}
- service: script.alexa_tts_entfeuchter_voll
data: {}
default: []
mode: single
- id: '1632543105220'
alias: Power Save bei Waschmaschine
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.shellys_wama_power
below: '4'
above: '0'
for:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Waschmaschine ist noch an.
- delay:
hours: 1
minutes: 0
seconds: 0
milliseconds: 0
- condition: numeric_state
entity_id: sensor.shellys_wama_power
above: '0'
below: '4'
- service: script.notify_people_who_are_present
data:
title: Hinweis
message: Waschmaschine ist noch immer an.
mode: single
- id: '1632671280558'
alias: Advanced Monitor Stefan
description: ''
trigger:
- platform: time
at: '21:00'
condition:
- condition: or
conditions:
- condition: device
device_id: 5bf5071ab5a3fc16e59cf627ced76b85
domain: climate
entity_id: climate.roofac
type: is_hvac_mode
hvac_mode: heat_cool
- condition: device
device_id: 5bf5071ab5a3fc16e59cf627ced76b85
domain: climate
entity_id: climate.roofac
type: is_hvac_mode
hvac_mode: cool
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.fenster_sw
state: 'on'
for:
hours: 0
minutes: 11
seconds: 0
milliseconds: 0
- condition: state
entity_id: binary_sensor.fenster_o
state: 'on'
for:
hours: 0
minutes: 11
seconds: 0
milliseconds: 0
action:
- service: script.notify_stefan
data:
title: Hinweis
message: Klimaanlage im DG läuft noch.
mode: single
- id: '1633366928831'
alias: Fake test automation
description: ''
trigger:
- platform: time
at: '19:02'
id: swatrigger
condition: []
action:
- service: script.notify_stefan
data:
title: automation.fake_test_automation
message: foo bar {{ trigger.id }} {{ trigger.platform }}
- service: logbook.log
data:
entity_id: automation.fake_test_automation
message: some message
name: automation.fake_test_automation
mode: single
- id: '1634985348876'
alias: Advanced Heating workdays v2
description: Set temp low during Julia's workdays, skip holidays
trigger:
- platform: time
at: 07:00
id: morning
- platform: time
id: noon
at: '12:00'
condition:
- condition: state
entity_id: calendar.ferien
state: 'off'
action:
- choose:
- conditions:
- condition: trigger
id: morning
- condition: time
weekday:
- wed
- fri
sequence:
- service: script.heating_set_room_temp_low
data: {}
- service: logbook.log
data:
entity_id: automation.advanced_heating_workdays_v2
name: automation.advanced_heating_workdays_v2
message: Started script.heating_set_room_temp_low
- conditions:
- condition: trigger
id: noon
- condition: time
weekday:
- wed
- fri
sequence:
- service: script.heating_set_room_temp_high
data: {}
- service: logbook.log
data:
entity_id: automation.advanced_heating_workdays_v2
name: automation.advanced_heating_workdays_v2
message: Started script.heating_set_room_temp_high
default: []
mode: single
- id: '1634985436165'
alias: Advanced Heating Reset offsets v2
description: Reset offsets with check
trigger:
- platform: time
at: '23:05'
condition: []
action:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_resetoffsets
circuit: 1
offset: 0
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_resetoffsets
circuit: 2
offset: 0
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_resetoffsets
circuit: 3
offset: 0
mode: single
- id: '1634986084052'
alias: Advanced Heating HC3 v2
description: ''
trigger:
- platform: time_pattern
minutes: /20
condition:
- condition: time
after: 05:00
before: '22:00'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc3'') == "ok" and states(''number.thermostat_hc3_offset_temperature'')|float
!= 0 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc3
circuit: 3
offset: 0
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc3'') == "too-warm" and states(''number.thermostat_hc3_offset_temperature'')|float
!= -3 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc3
circuit: 3
offset: -3
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc3'') == "too-cold" and states(''number.thermostat_hc3_offset_temperature'')|float
!= 3 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc3
circuit: 3
offset: 3
default: []
mode: queued
max: 10
- id: '1634986156492'
alias: Advanced Heating HC1 v2
description: ''
trigger:
- platform: time_pattern
minutes: /20
condition:
- condition: time
after: 05:00
before: '22:00'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc1'') == "ok" and states(''number.thermostat_hc1_offset_temperature'')|float
!= 0 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc1
circuit: 1
offset: 0
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc1'') == "too-warm" and states(''number.thermostat_hc1_offset_temperature'')|float
!= -3 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc1
circuit: 1
offset: -3
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc1'') == "too-cold" and states(''number.thermostat_hc1_offset_temperature'')|float
!= 3 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc1
circuit: 1
offset: 3
default:
- service: alarm_control_panel.alarm_arm_away
mode: queued
max: 10
- id: '1634996229621'
alias: Advanced Heating HC2 v2
description: ''
trigger:
- platform: time_pattern
minutes: /20
condition:
- condition: time
after: 05:00
before: '22:00'
- condition: template
value_template: '{{ states(''sensor.thermostat_damped_outdoor_temperature'')|float
<=10 }}'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc2'') == "ok" and states(''number.thermostat_hc2_offset_temperature'')|float
!= 0 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc2
circuit: 2
offset: 0
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc2'') == "too-warm" and states(''number.thermostat_hc2_offset_temperature'')|float
!= -3 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc2
circuit: 2
offset: -3
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc2'') == "too-cold" and states(''number.thermostat_hc2_offset_temperature'')|float
!= 3 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_hc2
circuit: 2
offset: 3
default: []
mode: queued
max: 10
- id: '1635933038164'
alias: Advanced Rolladen KidsGross
description: Rolladensteuerung KidsGross zeitgesteuert Wochentags/Wochenende
trigger:
- platform: sun
event: sunset
offset: 00:30:00
id: abends1
- platform: time
at: '19:45'
id: abends2
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: trigger
id: abends1
- condition: trigger
id: abends2
sequence:
- service: cover.set_cover_position
data:
position: 5
target:
entity_id: cover.shelly25_og_clara
default: []
mode: queued
max: 10
- id: '1636051529526'
alias: Send a camera snapshot when motion is detected
description: ''
use_blueprint:
path: vorion/send-camera-snapshot-notification-on-motion.yaml
input:
notification_message: '{{ motion_sensor_name }} detected movement!'
motion_sensor: binary_sensor.garagecam_person
camera: camera.garagecam_sub
notify_device: fb01246b7faea05d42d7df1ff8e71a1b
is_ios: true
notification_title: Motion person detected!
delay: 1
- id: '1639549122553'
alias: Notebook aus wenn an
description: switch is a button, can be removed if button entity is available
trigger:
- platform: state
entity_id: switch.wake_up_thinkpad_t430
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
condition: []
action:
- service: switch.turn_off
target:
entity_id: switch.wake_up_thinkpad_t430
mode: single
- id: '1639842026898'
alias: Send a camera snapshot to Stefan when doorbell is pressed
description: ''
use_blueprint:
path: vorion/send-camera-snapshot-notification-on-motion.yaml
input:
notification_message: Look who is there :-)
motion_sensor: binary_sensor.doorbell_pressed
camera: camera.garagecam_sub
notify_device: fb01246b7faea05d42d7df1ff8e71a1b
is_ios: true
notification_title: Doorbell pressed!
delay: 1
- id: '1640281201989'
alias: Kalender Schreibtisch
description: ''
trigger:
- platform: state
entity_id: calendar.ha_schreibtisch
to: 'on'
id: an
- platform: state
entity_id:
- calendar.ha_schreibtisch
id: aus
to: 'off'
- platform: time
at: '22:00'
id: ausaus
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: an
- condition: state
entity_id: calendar.ferien
state: 'off'
- condition: state
entity_id: person.stefan
state: home
sequence:
- service: switch.turn_on
target:
entity_id: switch.shellyp_dg_stefan_tisch
data: {}
- conditions:
- condition: or
conditions:
- condition: trigger
id: aus
- condition: trigger
id: ausaus
- condition: state
entity_id: binary_sensor.stefan_working_in_office
state: 'off'
sequence:
- service: switch.turn_off
target:
entity_id: switch.shellyp_dg_stefan_tisch
data: {}
default: []
mode: single
- id: '1640540334226'
alias: Licht an, wenn sich Haustür im dunkeln öffnet oder der Klingelknopf gedrückt
wurde
description: ''
trigger:
- platform: state
entity_id: binary_sensor.haustur
from: 'off'
to: 'on'
- platform: time
at: input_datetime.haustur
- platform: homeassistant
event: start
- platform: state
entity_id: binary_sensor.doorbell_pressed
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.dunkel_draussen
state: 'on'
action:
- variables:
swaobject: group.einfahrt
is_on: '{{ is_state(swaobject, ''on'') }}'
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.platform == ''state'' }}'
sequence:
- service: homeassistant.turn_on
target:
entity_id: '{{ swaobject }}'
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.haustur
data:
timestamp: '{{ (now() + timedelta(minutes=5)).timestamp()| int(0) }}'
- conditions:
- condition: template
value_template: '{{ (trigger.platform == ''time'' or trigger.platform == ''homeassistant''
) and is_on }}'
sequence:
- service: homeassistant.turn_off
target:
entity_id: '{{ swaobject }}'
mode: single
- id: '1640788626220'
alias: Heizung KidsGross Wochentags runterregeln
description: Regelt die Heizung von 0700-1130 auf 19 Grad. Läuft nicht an Wochenende
und in Ferien.
trigger:
- platform: time
at: 07:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: calendar.ferien
state: 'off'
action:
- service: tado.set_climate_timer
target:
entity_id: climate.kidsgross
data:
time_period: 04:30:00
temperature: 19
mode: single
- id: '1640796447418'
alias: Heizung KidsKlein Wochentags runterregeln
description: Regelt die Heizung von 0700-1130 auf 19 Grad. Läuft nicht an Wochenende
und in Ferien.
trigger:
- platform: time
at: 07:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
- condition: state
entity_id: calendar.ferien
state: 'off'
action:
- service: tado.set_climate_timer
data:
time_period: 04:30:00
temperature: 19
target:
entity_id: climate.kidsklein
mode: single
- id: '1640852446580'
alias: 'Heizung KidsGross Offset '
description: ''
trigger:
- platform: state
entity_id:
- sensor.kidsgross_temperature
- sensor.multi_og_konstantin_temperature
condition:
- condition: template
value_template: '{% set tado_temp = states(''sensor.kidsgross_temperature'')|float(20)
%} {% set room_temp = states(''sensor.multi_og_konstantin_temperature'')|float(20)
%} {{ (tado_temp - room_temp) | abs > 0.5 }}
'
action:
- service: tado.set_climate_temperature_offset
target:
entity_id: climate.kidsgross
data:
offset: '{% set tado_temp = states(''sensor.kidsgross_temperature'')|float(20)
%} {% set room_temp = states(''sensor.multi_og_konstantin_temperature'')|float(20)
%} {% set current_offset = state_attr(''climate.kidsgross'', ''offset_celsius'')
%} {{ (-(tado_temp - room_temp) + current_offset)|round(1) }}
'
mode: single
- id: '1640852486884'
alias: Heizung KidsKlein Offset
description: ''
trigger:
- platform: state
entity_id:
- sensor.kidsklein_temperature
- sensor.multi_og_clara_temperature
condition:
- condition: template
value_template: '{% set tado_temp = states(''sensor.kidsklein_temperature'')|float(20)
%} {% set room_temp = states(''sensor.multi_og_clara_temperature'')|float(20)
%} {{ (tado_temp - room_temp) | abs > 0.5 }}
'
action:
- service: tado.set_climate_temperature_offset
target:
entity_id: climate.kidsklein
data:
offset: '{% set tado_temp = states(''sensor.kidsklein_temperature'')|float(20)
%} {% set room_temp = states(''sensor.multi_og_clara_temperature'')|float(20)
%} {% set current_offset = state_attr(''climate.kidsklein'', ''offset_celsius'')
%} {{ (-(tado_temp - room_temp) + current_offset)|round(1) }}
'
mode: single
- id: '1641313703802'
alias: Advanced Heating HC2HC1 v3
description: Keep flow temp of HC2 below HC1 between 0500 and 2200. Check every
15min.
trigger:
- platform: time_pattern
minutes: /15
condition:
- condition: time
after: 05:00
before: '22:00'
action:
- choose:
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc2_delta'')|float > 0.0 }}'
sequence:
- service: script.heating_change_offset
data:
origin: automation.advanced_heating_HC2HC1_v3
circuit: 2
offset: '{{ [-(states(''sensor.heating_hc2_delta'')|float/3)|round(0,''floor''),-3]|max
}}'
- conditions:
- condition: template
value_template: '{{ states(''sensor.heating_hc2_delta'')|float <= 0.0 }}'
- condition: template
value_template: '{{ states(''number.thermostat_hc2_offset_temperature'') !=
''0'' }}'
sequence:
- service: script.heating_change_offset
data: