-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
1240 lines (1239 loc) · 31.4 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: '1607379994170'
alias: WC lampen aan bij beweging
description: ''
use_blueprint:
path: homeassistant/motion_light.yaml
input:
no_motion_wait: 120
motion_entity: binary_sensor.wc_bewegingssensor_occupancy
light_target:
entity_id: light.wc_plafond
- id: '1624693593116'
alias: Thermostaat uitzetten
description: ''
trigger:
- platform: time
at: '23:00:00'
- platform: state
entity_id:
- group.trackable_family
to: not_home
for:
hours: 0
minutes: 5
seconds: 0
id: adults-away
condition:
- condition: not
conditions:
- condition: state
entity_id: climate.woonkamer
state: 'off'
action:
- service: climate.turn_off
target:
entity_id: climate.woonkamer
data: {}
- condition: trigger
id:
- adults-away
- service: notify.mobile_app_telefoon_rudolf
metadata: {}
data:
message: Thermostaat is automatisch uit gegaan omdat er niemand meer thuis is.
title: Verwarming is uit!
data:
ttl: 0
priority: high
mode: single
- id: '1624693689373'
alias: Afval
trigger:
- platform: time
at: '17:00:00'
condition:
- condition: not
conditions:
- condition: state
entity_id: sensor.afvalinfo_thuis_trash_type_tomorrow
state: Geen
action:
- service: notify.family
data:
title: Morgen is een afvaldag
message: 'Opgehaalde afval: {{ state_translated("sensor.afvalinfo_thuis_trash_type_tomorrow")|
lower }}'
initial_state: true
- id: '1624693857334'
alias: Nachtverlichting buiten
description: Handle night lights based on illumination
trigger:
- platform: state
entity_id: binary_sensor.donker_buiten
action:
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.donker_buiten
state: 'on'
sequence:
- service: light.turn_on
entity_id: light.buitenverlichting
- conditions:
- condition: state
entity_id: binary_sensor.donker_buiten
state: 'off'
sequence:
- service: light.turn_off
entity_id: light.buitenverlichting
initial_state: true
- id: '1624693897568'
alias: Ramen boven staan nog open
trigger:
- platform: state
entity_id: group.trackable_family
to: home
- platform: time
at: '16:00:00'
condition:
- condition: and
conditions:
- condition: time
after: '16:00:00'
before: '20:00:00'
- condition: state
entity_id: group.parents
state: home
- condition: state
entity_id: binary_sensor.ramen_boven
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: person.rudolf
state: home
sequence:
- data:
title: Er staan nog ramen open
message: '{{ message_data }}'
data:
ttl: 0
priority: high
action: notify.mobile_app_telefoon_rudolf
- conditions:
- condition: state
entity_id: person.leny
state: home
sequence:
- data:
title: Er staan nog ramen open
message: '{{ message_data }}'
data:
ttl: 0
priority: high
action: notify.mobile_app_telefoon_leny
variables:
message_data: "{% for entity_id in states.binary_sensor.ramen_boven.attributes.entity_id
-%}\n {% if(states(entity_id) == 'on')-%}\n {{- '\\n' -}}\n - {% print(state_attr(entity_id,'friendly_name'))
| regex_replace(find=' Raam Door',replace='')-%}\n {% endif-%}\n{%- endfor
%}"
- id: '1624693921089'
alias: Takken
trigger:
- platform: time
at: 09:00:00
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.dagen_tot_ophalen_takken
below: 8
- condition: time
weekday:
- fri
action:
- service: notify.family
data_template:
title: Takken worden binnenkort opghaald
message: 'Ophaaldatum: {{ states(''sensor.afvalinfo_thuis_takken'')}}'
initial_state: true
- id: '1629894664286'
alias: Achtertuinverlichting aan
trigger:
- platform: time
at: 07:00
condition:
- condition: state
entity_id: binary_sensor.donker_buiten
state: 'on'
action:
- service: light.turn_on
target:
entity_id: light.achtertuin_lantaarnpaal
initial_state: true
mode: single
- id: '1629894698473'
alias: Achtertuin verlichting 's nachts uit
description: '''s nachts na 10 minuten achtertuinverlichting uit.'
trigger:
- platform: state
entity_id: light.achtertuin_lantaarnpaal
to: 'on'
for: 0:10:00
condition:
- condition: time
after: 00:00
before: 07:00
action:
- service: switch.turn_off
target:
entity_id: light.achtertuin_lantaarnpaal
mode: single
- id: '1629894738043'
alias: Achtertuinverlichting uit
trigger:
- platform: time
at: 00:00
action:
- service: light.turn_off
target:
entity_id: light.achtertuin_lantaarnpaal
initial_state: true
mode: single
- id: '1629895298921'
alias: Bel inschakelen / uitschakelen
description: Schakelt de bel in of uit.
trigger:
- platform: time
at: 07:00
id: inschakeltijd
- platform: homeassistant
event: start
id: ha-start
- platform: time
at: '20:00:00'
id: uitschakeltijd
condition: []
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: state
entity_id: switch.gang_bel_enabled
state: 'off'
- condition: or
conditions:
- condition: trigger
id: inschakeltijd
- condition: and
conditions:
- condition: trigger
id: ha-start
- condition: time
after: 07:00:00
before: '20:00:00'
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.gang_bel_enabled
- conditions:
- condition: and
conditions:
- condition: state
entity_id: switch.gang_bel_enabled
state: 'on'
- condition: or
conditions:
- condition: trigger
id: uitschakeltijd
- condition: and
conditions:
- condition: trigger
id: ha-start
- condition: time
after: '20:00:00'
before: 07:00:00
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.gang_bel_enabled
initial_state: true
mode: single
- id: '1629895350290'
alias: Zolder schakelaar
trigger:
- platform: event
event_type: shelly.click
event_data:
device_id: b7ba6c24535c5f0e51d88cf35b43199f
device: shellydimmer-D479CB
action:
- service: light.toggle
data: {}
target:
entity_id: light.zolder_plafond
mode: single
- id: '1631009095968'
alias: Notificatie ramen zolder open
description: ''
trigger:
- platform: time
at: '19:00'
condition:
- condition: state
entity_id: binary_sensor.zolder_raam_achter_contact
state: 'on'
action:
- service: notify.mobile_app_telefoon_rudolf
data:
message: Dus dicht doen makker!
title: Het zolderraam staat nog open
data:
ttl: 0
priority: high
channel: alarm_stream
importance: high
mode: single
- id: '1632469998878'
alias: Wall tablet - Screen auto off
description: ''
trigger:
- platform: state
entity_id: binary_sensor.wall_tablet_motion
to: 'off'
for:
hours: 0
minutes: 0
seconds: 5
- platform: time
at: '23:00'
- platform: state
entity_id:
- binary_sensor.wall_tablet_motion
to: unavailable
for:
hours: 0
minutes: 0
seconds: 5
- platform: state
entity_id:
- group.trackable_family
to: not_home
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: time
after: '23:00'
before: 07:00
- condition: state
entity_id: group.trackable_family
state: not_home
sequence:
- service: number.set_value
data:
value: '0'
target:
entity_id: number.lenovo_tab_m10_fhd_plus_screen_brightness
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.lenovo_tab_m10_fhd_plus_screen
default:
- service: number.set_value
data:
value: '0'
target:
entity_id: number.lenovo_tab_m10_fhd_plus_screen_brightness
mode: restart
- id: '1632471920007'
alias: Wall tablet - Bright on motion
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.wall_tablet_motion
to: 'on'
condition: []
action:
- service: number.set_value
data:
value: '100'
target:
entity_id: number.lenovo_tab_m10_fhd_plus_screen_brightness
- service: switch.turn_on
data: {}
target:
entity_id: switch.lenovo_tab_m10_fhd_plus_screen
mode: single
- id: '1632481170491'
alias: Voortuin verlichting 's nachts
description: Wanneer het donker is, lampen hek na 10 minuten weer aan.
trigger:
- platform: state
entity_id: light.voortuin_hek
to: 'off'
for:
minutes: 10
condition:
- condition: state
entity_id: binary_sensor.donker_buiten
state: 'on'
action:
- service: light.turn_on
entity_id: light.voortuin_hek
mode: single
- id: '1632481269015'
alias: Achterdeur open in het donker
description: Wijzig verlichting wanneer achterdeur open gaat
trigger:
- platform: state
entity_id:
- binary_sensor.bijkeuken_achterdeur_contact
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.donker_buiten
state: 'on'
action:
- service: light.turn_on
entity_id: light.achtertuin_lantaarnpaal
- service: light.turn_off
entity_id: light.voortuin_hek
mode: single
- id: '1654416602001'
alias: Rudolf Antibiotica
description: ''
trigger:
- platform: time
at:
- 07:00:00
- '12:00:00'
- '17:00:00'
- '22:00:00'
condition: []
action:
- service: notify.mobile_app_telefoon_rudolf
data:
title: Antibiotica
message: Het is tijd om je antibiotica te nemen!
data:
ttl: 0
priority: high
notification_icon: mdi:pill
channel: alarm_stream
mode: single
- id: '1654613094104'
alias: Meld restafval afhaling
description: ''
trigger:
- platform: state
entity_id:
- sensor.aantal_ophalingen_restafval_dit_jaar
not_from: unknown
condition:
- condition: template
value_template: '{{ trigger.from_state is not none and trigger.to_state is not
none}}'
action:
- service: notify.family
data:
title: Het restafval is opgehaald
message: 'Het restafval is dit jaar voor de {{ states(''sensor.aantal_ophalingen_restafval_dit_jaar'')}}e
keer opgehaald
'
data:
ttl: 0
priority: high
mode: single
- id: '1656497997657'
alias: Badkamer - Knop rechts
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.wastafel_input
from: 'off'
to: 'on'
enabled: false
- platform: event
event_type: shelly.click
event_data:
device_id: c5de9c3be9b1a0c71e52fa9a57a9c0a2
device: shellyswitch25-68C63AF9AF42
channel: 1
click_type: single
generation: 1
condition: []
action:
- service: light.toggle
data: {}
target:
entity_id: light.badkamer_wastafel
mode: single
- id: '1671801460867'
alias: Wasmachine - Status
description: Status afhandeling wasmachine
trigger:
- platform: numeric_state
entity_id: sensor.bijkeuken_wasmachine_power
for:
hours: 0
minutes: 1
seconds: 0
id: 'off'
below: 1
- platform: numeric_state
entity_id: sensor.bijkeuken_wasmachine_power
for:
hours: 0
minutes: 2
seconds: 0
id: waiting
below: 7
above: 1
- platform: numeric_state
entity_id: sensor.bijkeuken_wasmachine_power
for:
hours: 0
minutes: 0
seconds: 0
id: running
above: 10
- platform: event
event_type: mobile_app_notification_action
id: machine_emptied
event_data:
action: MACHINE_EMPTIED
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: 'off'
sequence:
- service: input_select.select_option
data:
option: Uit
target:
entity_id: input_select.bijkeuken_wasmachine_status
- conditions:
- condition: trigger
id: waiting
- condition: state
entity_id: input_select.bijkeuken_wasmachine_status
state: Bezig
sequence:
- service: input_select.select_option
data:
option: Klaar
target:
entity_id: input_select.bijkeuken_wasmachine_status
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.bijkeuken_wasmachine_legen
- service: notify.mobile_app_telefoon_rudolf
data:
title: De wasmachine is klaar!
message: Leegmaken!
data:
tag: washing
persistent: true
actions:
- action: MACHINE_EMPTIED
title: Ik heb hem geleegd!
notification_icon: mdi:washing-machine-alert
- conditions:
- condition: trigger
id: waiting
- condition: state
entity_id: input_select.bijkeuken_wasmachine_status
state: Uit
sequence:
- service: input_select.select_option
data:
option: Wachten
target:
entity_id: input_select.bijkeuken_wasmachine_status
- conditions:
- condition: trigger
id: running
sequence:
- service: input_select.select_option
data:
option: Bezig
target:
entity_id: input_select.bijkeuken_wasmachine_status
- conditions:
- condition: trigger
id: machine_emptied
sequence:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.bijkeuken_wasmachine_legen
- service: notify.mobile_app_telefoon_rudolf
data:
data:
tag: washing
message: clear_notification
mode: single
- id: '1671804817486'
alias: Airfryer - Status
description: Status afhandeling airfryer
trigger:
- platform: numeric_state
entity_id: sensor.kleine_schuur_airfryer_huidig_wattage
for:
hours: 0
minutes: 1
seconds: 0
id: 'off'
below: 1
- platform: numeric_state
entity_id: sensor.kleine_schuur_airfryer_huidig_wattage
for:
hours: 0
minutes: 0
seconds: 2
id: waiting
below: 7
above: 1
- platform: numeric_state
entity_id: sensor.kleine_schuur_airfryer_huidig_wattage
for:
hours: 0
minutes: 0
seconds: 0
id: running
above: 10
- platform: event
event_type: mobile_app_notification_action
id: fryer_emptied
event_data:
action: FRYER_EMPTIED
- platform: state
entity_id:
- input_select.kleine_schuur_airfryer_status
to: Uit
for:
hours: 0
minutes: 10
seconds: 0
id: long-off
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: 'off'
sequence:
- service: input_select.select_option
data:
option: Uit
target:
entity_id: input_select.kleine_schuur_airfryer_status
- conditions:
- condition: trigger
id: waiting
- condition: state
entity_id: input_select.kleine_schuur_airfryer_status
state: Bezig
sequence:
- service: input_select.select_option
data:
option: Klaar
target:
entity_id: input_select.kleine_schuur_airfryer_status
- service: notify.mobile_app_telefoon_rudolf
data:
title: De airfryer is klaar!
message: Eten!
data:
tag: frying
persistent: true
actions:
- action: FRYER_EMPTIED
title: Ik heb hem geleegd!
notification_icon: mdi:french-fries
- service: tts.microsoft_say
data:
language: nl-nl
entity_id: media_player.nests_beneden
message: De airfryer is klaar
cache: true
- conditions:
- condition: trigger
id: waiting
- condition: state
entity_id: input_select.kleine_schuur_airfryer_status
state: Uit
sequence:
- service: input_select.select_option
data:
option: Wachten
target:
entity_id: input_select.kleine_schuur_airfryer_status
- conditions:
- condition: trigger
id: running
sequence:
- service: input_select.select_option
data:
option: Bezig
target:
entity_id: input_select.kleine_schuur_airfryer_status
- conditions:
- condition: trigger
id: fryer_emptied
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
data:
tag: frying
message: clear_notification
- conditions:
- condition: trigger
id: long-off
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.kleine_schuur_airfryer
mode: single
- id: '1672759812479'
alias: Smoke detection
description: ''
trigger:
- type: smoke
platform: device
device_id: c2da30671c1cf363c0117e9b7947817f
entity_id: binary_sensor.keuken_rookmelder_smoke
domain: binary_sensor
id: keuken
- type: smoke
platform: device
device_id: ed2375136e4094c936c2036bd3704bd7
entity_id: binary_sensor.overloop_rookmelder_smoke
domain: binary_sensor
id: overloop
- type: smoke
platform: device
device_id: c94896b59076d3d9067446b1a091045d
entity_id: binary_sensor.zolder_rookmelder_smoke
domain: binary_sensor
id: zolder
condition: []
action:
- service: notify.family
data:
title: ROOK GEDETECTEERD!
message: Er is rook gedetecteerd in de {{ trigger.id }}
data:
channel: alarm_stream
ttl: 0
priority: high
mode: single
- id: '1677237418061'
alias: Radarr Webhook
description: ''
trigger:
- platform: webhook
webhook_id: -7Kgxxk-5PWQXQLRXhCivP-ur
allowed_methods:
- POST
- PUT
local_only: true
condition: []
action:
- choose:
- conditions:
- condition: template
value_template: '{{trigger.json.eventType == ''Grab''}}'
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
message: '{{ trigger.json.movie.title }}'
title: Nieuwe film wordt gedownload!
data:
ttl: 0
priority: high
- conditions:
- condition: template
value_template: '{{trigger.json.eventType == ''Download''}}'
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
message: '{{ trigger.json.movie.title }}'
title: Nieuwe film is klaar met downloaden!
data:
ttl: 0
priority: high
- conditions:
- condition: template
value_template: '{{trigger.json.eventType == ''Test''}}'
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
data:
ttl: 0
priority: high
message: Testbericht van Radarr!
mode: single
- id: '1677238382816'
alias: Sonarr Webhook
description: ''
trigger:
- platform: webhook
webhook_id: -o3qrQHmtUUPunjW4QaE7f0lt
allowed_methods:
- POST
- PUT
local_only: true
condition: []
action:
- choose:
- conditions:
- condition: template
value_template: '{{trigger.json.eventType == ''Grab''}}'
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
title: Nieuwe aflevering van {{trigger.json.series.title}} wordt gedownload!
message: Seizoen {{trigger.json.episodes[0].seasonNumber}} - aflevering
{{ trigger.json.episodes[0].episodeNumber}}
data:
ttl: 0
priority: high
- conditions:
- condition: template
value_template: '{{trigger.json.eventType == ''Download''}}'
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
title: Nieuwe aflevering van {{trigger.json.series.title}} is gedownload!
message: Seizoen {{trigger.json.episodes[0].seasonNumber}} - aflevering
{{ trigger.json.episodes[0].episodeNumber}}
data:
ttl: 0
priority: high
- conditions:
- condition: template
value_template: '{{trigger.json.eventType == ''Test''}}'
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
data:
ttl: 0
priority: high
message: Testbericht van Sonarr!
mode: single
- id: '1677277974469'
alias: Update ESPHome entities
description: Updates all updateable esphome entities at 02:00 at night.
trigger:
- platform: time
at: 00:30:00
condition: []
action:
- service: update.install
target:
entity_id: '{{ integration_entities(''esphome'') | select(''match'', ''^update.'')
| select(''is_state'', ''on'') | list }}'
mode: single
- id: '1677601535487'
alias: Bazarr Webhook
description: ''
trigger:
- platform: webhook
webhook_id: -O9_Ycbdv-OQ2InxwBhZZYW21
allowed_methods:
- POST
- PUT
local_only: true
condition: []
action:
- choose:
- conditions: []
sequence: []
default:
- service: notify.mobile_app_telefoon_rudolf
data:
message: Sonarr FTW
mode: single
- id: '1678708313676'
alias: Schapen voeren
description: ''
trigger:
- platform: time
at: 08:00:00
condition:
- condition: time
weekday:
- sat
- mon
- wed
- fri
action:
- service: notify.mobile_app_telefoon_leny
data:
data:
ttl: 0
priority: high
message: Schapen hebben drinken en eten nodig!
title: Schapen voeren
mode: single
- id: '1687170214961'
alias: Buiten te warm - Ramen nog open
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.buiten_warmer_dan_binnen
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: binary_sensor.ramen_boven
state: 'on'
action:
- choose:
- conditions:
- condition: state
entity_id: person.rudolf
state: home
sequence:
- service: notify.mobile_app_telefoon_rudolf
data:
title: Er staan nog ramen open
message: "Het wordt wel erg warm buiten. De volgende ramen staan nog open:\n
\n{{ message_data }}"
data:
ttl: 0
priority: high
- conditions:
- condition: state
entity_id: person.leny
state: home
sequence:
- service: notify.mobile_app_telefoon_leny
data:
title: Er staan nog ramen open
message: "Het wordt wel erg warm buiten. De volgende ramen staan nog open:\n
\n{{ message_data }}"
data:
ttl: 0
priority: high
variables:
message_data: "{% for entity_id in states.binary_sensor.ramen_boven.attributes.entity_id
-%}\n {% if(states(entity_id) == 'on')-%}\n {{- '\\n' -}}\n - {% print(state_attr(entity_id,'friendly_name'))
| regex_replace(find=' Raam| contact',replace='')-%}\n {% endif-%}\n{%- endfor
%}"
mode: single
- id: '1702301389683'
alias: Update water price
description: ''
trigger:
- platform: time
at: input_datetime.water_tariff_change
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.water_price
data:
value: 1.04
mode: single
- id: '1703877804565'
alias: Bijkeuken licht
description: ''
use_blueprint:
path: freakshock88/motion_illuminance_activated_entity.yaml
input:
motion_sensor: binary_sensor.bijkeuken_bewegingssensor_occupancy
target_entity: light.bijkeuken_plafond
blocker_entity: binary_sensor.licht_binnen
no_motion_wait: input_number.bijkeuken_turn_off_light_after
- id: '1704015365838'
alias: Leny kerk
description: ''
trigger:
- platform: state
entity_id:
- person.leny
from: Kerk
condition:
- condition: state
entity_id: person.rudolf
state: home
action:
- service: notify.mobile_app_telefoon_rudolf
data:
title: Kerk is uit
message: Leny verlaat de kerk
data:
ttl: 0
priority: high
channel: HA Alarm
importance: max
notification_icon: mdi:church
mode: single
- id: '1707254496023'
alias: Droger status
description: ''
use_blueprint:
path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
input:
power_sensor: sensor.bijkeuken_droger_power