-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
executable file
·1935 lines (1932 loc) · 46.6 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: wk_muur2
alias: 'WK Muur: aan op Beweging'
trigger:
- entity_id: binary_sensor.wk_multisensor_burglar
platform: state
to: 'on'
condition:
- condition: and
conditions:
- condition: template
value_template: '{{ states.sun.sun.attributes.elevation | int < 8 }}'
- condition: state
entity_id: input_boolean.huis_slaapstand
state: 'off'
action:
- data:
brightness: 125
entity_id: light.wk_muur_level
transition: 10
service: light.turn_on
mode: single
- id: wk_muur3
alias: 'WK Muur: na zonsopgang uit'
trigger:
- above: '8'
entity_id: sun.sun
platform: numeric_state
value_template: '{{ state.attributes.elevation }}'
condition:
- condition: and
conditions:
- condition: state
entity_id: group.woonkamer_ex_muur
state: 'off'
- before: '12:00:00'
condition: time
action:
- data:
entity_id: light.wk_muur_level
service: light.turn_off
- service: light.turn_off
data: {}
entity_id: light.lichtsnoer
mode: single
- id: wk_muur4
alias: 'WK Muur: uit bij geen Beweging'
trigger:
- entity_id: binary_sensor.wk_multisensor_burglar
for: 0:10:00
platform: state
to: 'off'
condition:
- condition: and
conditions:
- condition: template
value_template: '{{ states.sun.sun.attributes.elevation | int > 8 }}'
- condition: state
entity_id: input_boolean.huis_slaapstand
state: 'off'
action:
- data:
entity_id: light.wk_muur_level
service: light.turn_off
- id: toggle_bankje
alias: 'WK muur: Toggle aan/uit'
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
node_id: 9
value: 26
action:
- data:
brightness: 125
entity_id: light.wk_muur_level
transition: 3
service: light.toggle
mode: single
- id: douche_counter
alias: 'Douche counter: count +1'
trigger:
- entity_id: input_boolean.shower2
for: 0:02:00
platform: state
to: 'on'
action:
- data:
entity_id: counter.douches
service: counter.increment
mode: single
- id: reset_douche_counter
alias: 'Douche Counter: Reset'
trigger:
- at: '1:00:00'
platform: time
action:
- data:
entity_id: counter.douches
service: counter.reset
- id: hank_wk1
alias: Hank wk1
trigger:
platform: event
event_type: zwave.scene_activated
event_data:
entity_id: zwave.hank_knop_wk
scene_id: 1
action:
- service: light.turn_on
data_template:
entity_id: light.wk_eettafel_plafond_level
brightness: '{% if is_state(''light.wk_eettafel_plafond_level'', ''off'') %}
50 {% else %} {% set suggested = states.light.wk_eettafel_plafond_level.attributes.brightness|int
+ 50 %} {% if suggested < 254 %} {{ suggested }} {% else %} 0 {% endif %}
{% endif %}
'
- service: light.turn_on
data_template:
entity_id: light.wk_eettafel_plafond_level
brightness: '{% if is_state(''light.wk_eettafel_plafond_level'', ''off'') %}
50 {% else %} {% set suggested = states.light.wk_eettafel_plafond_level.attributes.brightness|int
+ 50 %} {% if suggested < 254 %} {{ suggested }} {% else %} 0 {% endif %}
{% endif %}
'
- id: irremoteprevious
alias: IR Remote Previous
trigger:
- device_id: 1e1abf6192354ed4a54b11c3f8ea4679
domain: binary_sensor
entity_id: binary_sensor.ir_remote_previous
platform: device
type: turned_on
action:
- data:
entity_id: media_player.spotify_void
service: media_player.media_previous_track
- id: irremotenext
alias: IR Remote Next
trigger:
- device_id: 1e1abf6192354ed4a54b11c3f8ea4679
domain: binary_sensor
entity_id: binary_sensor.ir_remote_next
platform: device
type: turned_on
action:
- data:
entity_id: media_player.spotify_void
service: media_player.media_next_track
- id: irremoteplaypause
alias: IR Remote Play/Pause
trigger:
- device_id: 1e1abf6192354ed4a54b11c3f8ea4679
domain: binary_sensor
entity_id: binary_sensor.ir_remote_playpause
platform: device
type: turned_on
action:
- data:
entity_id: media_player.spotify_void
service: media_player.media_play_pause
- id: irremotevoldown
alias: IR Remote Volume Down
trigger:
- device_id: 1e1abf6192354ed4a54b11c3f8ea4679
domain: binary_sensor
entity_id: binary_sensor.ir_remote_voldown
platform: device
type: turned_on
action:
- data:
entity_id: media_player.spotify_void
service: media_player.volume_down
- id: irremotevolup
alias: IR Remote Volume Up
trigger:
- device_id: 1e1abf6192354ed4a54b11c3f8ea4679
domain: binary_sensor
entity_id: binary_sensor.ir_remote_volup
platform: device
type: turned_on
action:
- data:
entity_id: media_player.spotify_void
service: media_player.volume_up
- id: Keuken_aanrecht_muur_1
alias: Keuken aanrecht knop bediening
trigger:
- platform: event
event_type: zwave_js_value_notification
event_data:
node_id: 12
value: 26
action:
- service: light.toggle
data:
entity_id: light.keuken_aanrecht_groep
mode: single
- id: Keuken_aanrecht_muur_2
alias: Keuken aanrecht knop aan max
trigger:
- entity_id: light.keuken_aanrecht_groep
from: 'off'
platform: state
to: 'on'
action:
- data:
brightness: 255
entity_id: light.keuken_aanrecht_groep
service: light.turn_on
- id: Keuken_aanrecht_muur_3
alias: Keuken aanrecht dim om 20:00
trigger:
platform: time
at: '20:00:00'
condition:
- condition: state
entity_id: light.keuken_aanrecht_groep
state: 'on'
- condition: state
entity_id: input_boolean.pir_sensor_keuken_2oo2
state: 'off'
action:
- service: light.turn_on
data:
entity_id: light.keuken_aanrecht_groep
brightness: 150
transition: 30
- service: input_boolean.turn_on
data:
entity_id: input_boolean.pir_sensor_keuken
- id: keuken_aanrecht_pir_vol
alias: Keuken aanrecht vol bij Beweging
trigger:
platform: state
entity_id: input_boolean.pir_sensor_keuken_2oo2
to: 'on'
condition:
condition: state
entity_id: light.keuken_aanrecht_groep
state: 'on'
action:
- service: light.turn_on
data:
entity_id: light.keuken_aanrecht_groep
brightness: 255
transition: 1
- service: input_boolean.turn_on
data:
entity_id: input_boolean.pir_sensor_keuken
- id: keuken_aanrecht_pir_dim
alias: Keuken aanrecht dim bij geen Beweging
trigger:
platform: state
entity_id: input_boolean.pir_sensor_keuken_2oo2
to: 'off'
for:
seconds: '240'
condition:
- condition: state
entity_id: light.keuken_aanrecht_groep
state: 'on'
- condition: time
after: '20:00:00'
- condition: state
entity_id: input_boolean.huis_slaapstand
state: 'off'
action:
- service: light.turn_on
data:
entity_id: light.keuken_aanrecht_groep
brightness: 150
transition: 30
- id: keuken_aanrecht_reboot
alias: Keuken aanrecht sensor reboot
trigger:
- platform: mqtt
topic: keuken_aanrecht_rechts/boot
payload: reboot
- platform: mqtt
topic: keuken_aanrecht_links/boot
payload: reboot
action:
service: notify.telegram
data:
message: Keuken sensor reboot!
- id: keuken_aanrecht_geen_beweging
alias: Keuken aanrecht geen Beweging
trigger:
platform: state
entity_id: input_boolean.pir_sensor_keuken_2oo2
to: 'off'
for:
seconds: '240'
action:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.pir_sensor_keuken
- id: keuken_aanrecht_aan_ochtend
alias: Keuken aanrecht aan in ochtend
trigger:
- entity_id: input_boolean.pir_sensor_keuken_2oo2
platform: state
to: 'on'
condition:
- after: '5:30:00'
before: '6:45:00'
condition: time
- condition: template
value_template: '{{as_timestamp(now()) - as_timestamp(states.light.keuken_aanrecht_groep.last_changed)
> 30 }}'
- before: sunrise
condition: sun
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'on'
action:
- data:
brightness: 255
entity_id: light.keuken_aanrecht_groep
service: light.turn_on
- data:
entity_id: input_boolean.pir_sensor_keuken
service: input_boolean.turn_on
mode: single
- id: keuken_aanrecht_uit_ochtend
alias: Keuken aanrecht uit in ochtend
trigger:
platform: state
entity_id: input_boolean.pir_sensor_keuken
to: 'off'
condition:
- condition: time
after: '5:45:00'
before: '6:50:00'
action:
- service: light.turn_off
data:
entity_id: light.keuken_aanrecht_groep
- id: itho_1
alias: Restart ITHO on false status
trigger:
- entity_id: sensor.itho_ventilatie_status
for:
seconds: 20
platform: state
to: 'false'
action:
- data:
payload: restart
topic: hass/itho/cmd
service: mqtt.publish
- delay: 00:01:00
- data:
payload: State,1
topic: hass/itho/cmd
service: mqtt.publish
- id: updater
alias: 'Updater: Update Available Notification'
trigger:
- entity_id: binary_sensor.updater
platform: state
to: 'on'
action:
- data:
message: Home Assistant {{ state_attr('binary_sensor.updater', 'newest_version')
}} is available.
service: notify.telegram
- id: appdaemon_alive_1
alias: 'VOID appdaemon: off for 5 minutes'
description: Checks if appdaemon status is off for > 5 minutes
trigger:
- entity_id: input_boolean.appdaemon_alive
for: 0:05:00
platform: state
to: 'off'
action:
- data:
message: Appdaemon draait niet
service: notify.telegram
mode: single
- id: appdaemon_alive_2
alias: 'VOID appdaemon: switch off boolean every 5 minutes'
description: Switch off "appdaemon alive" boolean every 5 minutes
trigger:
- minutes: /5
platform: time_pattern
action:
- data:
entity_id: input_boolean.appdaemon_alive
service: input_boolean.turn_off
mode: single
- id: '1597000596741'
alias: 'appdaemon: check if online'
description: ''
trigger:
- minutes: /5
platform: time_pattern
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: counter.appdaemon_disconnected
state: '2'
sequence:
- service: notify.telegram
data:
message: Appdaemon restart
- service: counter.reset
data: {}
entity_id: counter.appdaemon_disconnected
- service: rest_command.appdaemon_restart
data: {}
- conditions:
- condition: state
entity_id: input_boolean.appdaemon_alive
for: 0:01:00
state: 'off'
sequence:
- data:
message: Appdaemon draait niet
service: notify.telegram
- service: counter.increment
data: {}
entity_id: counter.appdaemon_disconnected
default:
- data:
entity_id: input_boolean.appdaemon_alive
service: input_boolean.turn_off
- service: counter.reset
data: {}
entity_id: counter.appdaemon_disconnected
mode: single
- id: pingpong
alias: Telegram bot that reply pong to ping
trigger:
platform: event
event_type: telegram_command
event_data:
command: /ping
action:
- service: notify.telegram
data:
message: 'pong
pang'
- id: sander_gaat_weg
alias: Sander gaat weg
trigger:
- entity_id: device_tracker.phone_sander
platform: state
to: not_home
action:
- data:
message: Sander verlaat het huis
service: notify.telegram
- id: restart_ems-esp
alias: restart EMS ESP device
trigger:
platform: time
at: 03:00:00
action:
- service: mqtt.publish
data:
payload: 1
topic: home/ems-esp/restart
- id: rolluik_manual
alias: 'Zonnescherm: Manual operation'
description: Override automatische bediening rolluik
trigger:
- entity_id: sensor.rolluik_handbediening
platform: state
to: '16'
- entity_id: sensor.rolluik_handbediening
platform: state
to: '26'
- platform: event
event_type: zwave_js_value_notification
event_data:
node_id: 24
value: 16
- platform: event
event_type: zwave_js_value_notification
event_data:
node_id: 24
value: 26
action:
- data: {}
entity_id: input_boolean.zonnescherm_manual
service: input_boolean.turn_on
mode: single
- id: rolluik_reset
alias: 'Zonnescherm: reset'
description: Reset override automatische bediening rolluik
trigger:
- at: '22:00:00'
platform: time
action:
- entity_id: input_boolean.zonnescherm_manual
service: input_boolean.turn_off
- id: sous_vide_on
alias: Start Sous Vide unit
trigger:
- platform: state
entity_id: input_boolean.sousvide_active
to: 'on'
action:
- data:
payload: running
topic: anova/command/run
service: mqtt.publish
- id: sous_vide_off
alias: Stop Sous Vide unit
trigger:
- platform: state
entity_id: input_boolean.sousvide_active
to: 'off'
action:
- data:
payload: stopped
topic: anova/command/run
service: mqtt.publish
- id: wasmachine_01
alias: 'Wasmachine/droger: Washer Start'
trigger:
- entity_id: input_boolean.washer_pwrup
for: 0:03:00
from: 'off'
platform: state
to: 'on'
action:
- data:
entity_id: input_boolean.washer_switch
service: input_boolean.turn_on
- id: wasmachine_02
alias: 'Wasmachine/droger: Wasmachine Klaar'
trigger:
- entity_id: input_boolean.washer_pwrup
for: 0:03:00
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: input_boolean.washer_switch
state: 'on'
action:
- data:
message: Wasmachine is klaar!
service: notify.telegram
- data:
entity_id: input_boolean.washer_switch
service: input_boolean.turn_off
- id: droger_01
alias: 'Wasmachine/droger: Dryer Start'
trigger:
- entity_id: input_boolean.dryer_pwrup
for: 0:03:00
from: 'off'
platform: state
to: 'on'
action:
- data:
entity_id: input_boolean.dryer_switch
service: input_boolean.turn_on
- id: droger_02
alias: 'Wasmachine/droger: Droger Klaar'
trigger:
- entity_id: input_boolean.dryer_pwrup
for: 0:03:00
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: input_boolean.dryer_switch
state: 'on'
action:
- data:
message: Droger is klaar!
service: notify.telegram
- data:
entity_id: input_boolean.dryer_switch
service: input_boolean.turn_off
- id: wasmachine_05
alias: 'Wasmachine/droger: notify if wasmachine meting is uit'
trigger:
- entity_id: binary_sensor.powermeterwmdrstatus
for: 00:02
platform: state
to: 'off'
action:
- data:
message: Wasmachine meting staat uit!
service: notify.telegram
- id: thermostaat_3
alias: 'Slaapstand: Aan om 2:00'
trigger:
- at: '2:00:00'
platform: time
condition:
- condition: state
entity_id: input_boolean.huis_slaapstand
state: 'off'
action:
- data:
entity_id: input_boolean.huis_slaapstand
service: input_boolean.turn_on
- id: occupancy_sim_on
alias: Simulate Occupancy - on
trigger:
- entity_id: input_boolean.occupancy_simulation
platform: state
to: 'on'
action:
- data: {}
entity_id: scene.woonkamer_low
service: scene.turn_on
- data:
message: 'Occusim: lichten gaan aan'
service: notify.telegram
mode: single
- id: occupancy_sim_off
alias: 'Occusim: set trigger to off (PIR)'
trigger:
- entity_id: binary_sensor.wk_multisensor_burglar
platform: state
to: 'on'
- entity_id: input_boolean.pir_sensor_keuken_2oo2
platform: state
to: 'on'
action:
- entity_id: input_boolean.occupancy_simulation
service: input_boolean.turn_off
mode: single
- id: occupancy_sim_goodnight
alias: 'Occu_not_sim: occupancy_sim_goodnight'
trigger:
- at: '22:30'
platform: time
condition:
- condition: state
entity_id: input_boolean.occupancy_simulation
state: 'on'
action:
- data:
entity_id: input_boolean.occupancy_simulation
service: input_boolean.turn_off
- data:
entity_id: group.woonkamer
service: light.turn_off
- data:
entity_id: group.woonkamer
service: switch.turn_off
- data:
message: Lampen in huis gaan uit
service: notify.telegram
- id: reset_huis_slaapstand
alias: 'Slaapstand: Reset'
trigger:
- at: 04:00:00
platform: time
action:
- data:
entity_id: input_boolean.huis_slaapstand
service: input_boolean.turn_off
- id: set_huis_slaapstand
alias: 'Slaapstand: activeer'
trigger:
- entity_id: group.woonkamer
platform: state
to: 'off'
condition:
- condition: or
conditions:
- after: '21:00:00'
condition: time
- before: '4:00:00'
condition: time
action:
- data:
entity_id: input_boolean.huis_slaapstand
service: input_boolean.turn_on
- id: notify_when_not_home_1
alias: 'Occu_not_sim: Notify and activate Occupancy Simulation 1'
trigger:
- at: '18:10:00'
platform: time
condition:
- condition: and
conditions:
- after: sunset
condition: sun
- condition: state
entity_id: group.woonkamer
state: 'off'
action:
- data:
message: Lampen in huis gaan aan - aanwezigheidssimulatie
service: notify.telegram
- data:
entity_id: input_boolean.occupancy_simulation
service: input_boolean.turn_on
- id: notify_when_not_home_2
alias: 'Occu_not_sim: Start Notify and activate Occupancy Simulation'
trigger:
- event: sunset
platform: sun
condition:
- condition: and
conditions:
- after: '18:10:00'
condition: time
- condition: state
entity_id: group.woonkamer
state: 'off'
- before: '22:30:00'
condition: time
action:
- data:
message: Lampen in huis gaan aan - aanwezigheidssimulatie
service: notify.telegram
- data:
entity_id: input_boolean.occupancy_simulation
service: input_boolean.turn_on
- id: vals_woonkamer_on
alias: Detect vals aantal lampen aan in woonkamer
trigger:
- entity_id: binary_sensor.wk_multisensor_burglar
for: 0:60:00
platform: state
to: 'on'
condition:
- condition: and
conditions:
- after: '22:00:00'
condition: time
- condition: template
value_template: '{{ states.sensor.woonkamer_number_of_lights_on.state | int
<= 2 }}'
- condition: state
entity_id: media_player.chromecast6826
state: Unavailable
action:
- data:
entity_id: script.woonkamer_off
service: script.turn_on
- data:
entity_id: input_boolean.huis_slaapstand
service: input_boolean.turn_on
- id: disable_cv_ketel
alias: 'Vakantiemodus: aan'
trigger:
- entity_id: sensor.lichtknop_wk_links_boven
platform: state
to: '14'
action:
- data:
entity_id: input_boolean.vakantie
service: input_boolean.turn_on
- id: enable_cv_ketel
alias: 'Vakantiemodus: uit'
trigger:
- entity_id: person.sander
platform: state
to: home
- entity_id: person.linda
platform: state
to: home
- entity_id: light.keuken_aanrecht_groep
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.vakantie
state: 'on'
action:
- data:
entity_id: input_boolean.vakantie
service: input_boolean.turn_off
- id: wk_multisensor_battery1
alias: 'Multisensor Woonkamer: battery turns low'
trigger:
- below: '25'
entity_id: sensor.woonkamer_multisensor_battery_level_2
platform: numeric_state
action:
- data:
message: wkmultisensor batterij niveau is {{ states('sensor.woonkamer_multisensor_battery_level_2')
}}
service: notify.telegram
mode: single
- id: wk_multisensor_battery2
alias: 'Multisensor Woonkamer: reminder battery low'
trigger:
- at: '19:00:00'
platform: time
condition:
- below: '26'
condition: numeric_state
entity_id: sensor.woonkamer_multisensor_battery_level_2
action:
- data:
message: wkmultisensor batterij niveau is {{ states('sensor.woonkamer_multisensor_battery_level_2')
}}
service: notify.telegram
mode: single
- id: zolder_multisensor_battery1
alias: 'Multisensor Zolder: battery turns low'
trigger:
- below: '25'
entity_id: sensor.zolder_multisensor_battery_level
platform: numeric_state
action:
- data:
message: zolder multisensor batterij niveau is {{ states('sensor.zolder_multisensor_battery_level')
}}
service: notify.telegram
mode: single
- id: zolder_multisensor_battery2
alias: 'Multisensor Zolder: reminder battery low'
trigger:
- at: '19:00:00'
platform: time
condition:
- below: '26'
condition: numeric_state
entity_id: sensor.zolder_multisensor_battery_level
action:
- data:
message: zolder multisensor batterij niveau is {{ states('sensor.zolder_multisensor_battery_level')
}}
service: notify.telegram
mode: single
- id: beweging_zolder2
alias: Beweging zolder aan/uit
trigger:
- entity_id: binary_sensor.zolder_multisensor_burglar
platform: state
to: 'on'
action:
- entity_id: input_boolean.zolder_beweging
service: input_boolean.turn_on
- delay: 00:15:00
- entity_id: input_boolean.zolder_beweging
service: input_boolean.turn_off
mode: restart
- id: '1577117549221'
alias: 'Occusim: activate at sunset'
description: ''
trigger:
- event: sunset
offset: -00:30:00
platform: sun
condition:
- condition: state
entity_id: light.wk_muur_level
state: 'off'
- before: '22:00:00'
condition: time
- after: '18:00:00'
condition: time
- condition: state
entity_id: input_boolean.huis_slaapstand
state: 'off'
- condition: state
entity_id: light.keuken_aanrecht_groep
state: 'off'
- condition: state
entity_id: light.wk_eettafel_plafond_level
state: 'off'
- condition: state
entity_id: light.wk_achter_plafond_level
state: 'off'
action:
- delay: 00:{{ (range(10, 20)|random|int) }}:00
- entity_id: input_boolean.occupancy_simulation
service: input_boolean.turn_on
- scene: scene.woonkamer_low
- data:
message: Lichten gaan aan
service: notify.telegram
mode: single
- id: '1577122755949'
alias: 'Occusim: Notify on'
description: ''
trigger:
- entity_id: scene.woonkamer_low
platform: state
condition:
- condition: state
entity_id: input_boolean.vakantie
state: 'on'
action:
- data:
message: 'Occusim: lichten gaan aan'
service: notify.telegram
mode: single
- id: '1577123052505'
alias: 'Occusim: Notify off'
description: ''
trigger:
- entity_id: script.all_lights_off
platform: state
to: 'on'
condition:
- condition: state
entity_id: input_boolean.occupancy_simulation
state: 'on'
action:
- data:
message: 'Occusim: lichten gaan uit'
service: notify.telegram
- id: '1578223710807'
alias: 'Server: high CPU load'
description: ''
trigger:
- above: '2.5'
entity_id: sensor.load_15m
for: '"1:00:00"'
platform: numeric_state
condition: []
action:
- data:
message: Hoge server load
service: notify.telegram
- id: '1584773344706'
alias: 'fan: reset input_boolean.humidity_to_full'
description: ''
trigger:
- entity_id: input_boolean.humidity_to_full
for: 0:05:00
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: input_boolean.humidity_to_full
service: input_boolean.turn_off
- id: '1584773494573'
alias: 'fan: reset input_boolean.humidity_to_high'
description: ''
trigger:
- entity_id: input_boolean.humidity_to_high
for: 0:05:00
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: input_boolean.humidity_to_high
service: input_boolean.turn_off
- id: '1584773561864'
alias: 'fan: reset input_boolean.humidity_to_medium'
description: x
trigger:
- entity_id: input_boolean.humidity_to_medium
for: 0:05:00
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: input_boolean.humidity_to_medium
service: input_boolean.turn_off
- id: '1586547913019'
alias: 'Zonnescherm: open bij zonsondergang'
description: ''
trigger:
- above: '234'
entity_id: sensor.azimuth
platform: numeric_state
condition: []
action:
- data:
position: 99
entity_id: cover.rolluik
service: cover.set_cover_position
- data: {}
entity_id: input_boolean.zonnescherm_manual
service: input_boolean.turn_off
mode: single
- id: '1586548606521'
alias: 'Zonnescherm: dicht bij zon..'
description: ''
trigger:
- minutes: /5
platform: time_pattern
condition:
- condition: and
conditions:
- above: '54'
below: '234'
condition: numeric_state