This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautomations.yaml
executable file
·1486 lines (1479 loc) · 41.5 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: '1642157915331'
alias: 'System: Home Assistant Alert'
description: ''
use_blueprint:
path: CentralCommand/get-notified-any-time-there-is-a-new-home-assistant-alert.yaml
input:
notifier: robert
urls_supported: true
- id: c1de5e22-30c1-41c6-873a-88e081e7048a
alias: Signaallamp - bijwerken via scene
description: Werk de signaallamp bij met behulp van de geselecteerde scene.
trigger:
- entity_id: input_select.signaallamp_scene
platform: state
action:
- data:
entity_id: '{{ ("scene.signaal_" ~ trigger.to_state.state) | lower | replace("
", "_") }}'
service: scene.turn_on
- id: ff08a450-aa5f-4bc4-bf21-bdea71c552ce
alias: Signaallamp - uitschakelen synchroniseren met scene
description: Synchroniseer scene input (en activeer daarmee de scene) als de signaallamp
handmatig wordt uitgeschakeld.
trigger:
- entity_id: light.signaal
platform: state
to: 'off'
action:
- data:
entity_id: input_select.signaallamp_scene
option: Uit
service: input_select.select_option
- id: 26e358e0-da5c-4ef1-8349-e9f0bde623bd
alias: Signaallamp - regenalarm melden op werkdagen
description: Trigger rain alarm when rain expected on workdays between 6 and 9 am,
but only when someone is home
trigger:
- above: 0
entity_id: sensor.buienradar_precipitation_forecast_average
platform: numeric_state
condition:
- condition: state
entity_id: binary_sensor.signaallamp_ingeschakeld
state: 'on'
- condition: time
after: 06:00:00
before: 09:00:00
- condition: state
entity_id: binary_sensor.workday
state: 'on'
- condition: state
entity_id: input_boolean.verlof
state: 'off'
- condition: state
entity_id: sensor.occupancy
state: home
- condition: state
entity_id: group.family
state: home
action:
- service: input_select.select_option
data:
entity_id: input_select.signaallamp_scene
option: Regenalarm
mode: single
- id: ca89521c-7219-4e8e-acda-9c9537ff98a1
alias: Signaallamp - regenalarm annuleren
description: Annuleer regenalarm om 9:00 of als er geen regen meer wordt verwacht.
trigger:
- platform: template
value_template: '{{ states(''sensor.buienradar_precipitation_forecast_average'')
|float==0}}'
- at: 09:00:00
platform: time
condition:
- condition: state
entity_id: input_select.signaallamp_scene
state: Regenalarm
action:
- service: input_select.select_option
data:
entity_id: input_select.signaallamp_scene
option: Uit
- id: '1660920784418'
alias: 'Media: Update Sonos Source Selector'
description: Update input selector with when Sonos favorites update.
trigger:
- platform: state
entity_id:
- input_select.sonos_favorites
- platform: homeassistant
event: start
condition: []
action:
- variables:
favs: '{{ state_attr(''sensor.sonos_favorites'', ''items'').values() | list
}}'
- service: input_select.set_options
data:
options: '{{ favs }}'
target:
entity_id: input_select.sonos_favorites
mode: restart
- id: '1660923058113'
alias: 'Office: Play selected Sonos favorite on office speaker'
description: Switch to selected favorite (playlist or radio) when Office speaker
is already playing.
trigger:
- platform: state
entity_id:
- input_select.sonos_favorites
condition:
- condition: device
device_id: 7bdba22c447d5ca9504e896de5e891d4
domain: media_player
entity_id: media_player.office_speaker
type: is_playing
action:
- service: media_player.select_source
target:
entity_id: media_player.office_speaker
data:
source: '{{ states(''input_select.sonos_favorites'') }}'
mode: single
- id: 934b4450-7816-4064-b906-3a3894d99345
alias: Energy - Save consumption to file
description: "Save energy consumption to file every hour, at the full hour.\nEntities
used: \n- sensor.energy_consumption_tarif_1 \n- sensor.energy_consumption_tarif_2\n
- sensor.gas_consumption"
trigger:
- platform: time_pattern
hours: '*'
minutes: '0'
seconds: '0'
action:
- service: notify.save_energy_consumption
data:
message: '{{ now() }}, {{ states(''sensor.energy_consumption_tarif_1'') }},
{{ states(''sensor.energy_consumption_tarif_2'') }}, {{ states(''sensor.gas_consumption'')}}'
- service: logbook.log
data:
name: Energieverbruik (tarief 1)
message: opgeslagen
entity_id: sensor.energy_consumption_tarif_1
domain: sensor
- service: logbook.log
data:
name: Energieverbruik (tarief 2)
message: opgeslagen
entity_id: sensor.energy_consumption_tarif_2
domain: sensor
- service: logbook.log
data:
name: Gasverbruik
message: opgeslagen
entity_id: sensor.gas_consumption
domain: sensor
- id: '1662102264901'
alias: 'Zolder: Wasmachine is klaar'
description: Verstuur meldingen als de wasmachine klaar is.
use_blueprint:
path: metbril/appliance_has_finished.yaml
input:
power_sensor: sensor.washing_machine_power
energy_sensor: sensor.washing_machine_energy
price_sensor: sensor.energy_consumption_tarif_1
starting_hysteresis:
hours: 0
minutes: 1
seconds: 0
finishing_hysteresis:
hours: 0
minutes: 1
seconds: 0
starting_threshold: 4
finishing_threshold: 4
actions:
- service: notify.robert
data:
message: "De wasmachine is klaar. \U0001F45A\U0001F455\U0001F4A6\n"
- service: script.notify_living
data:
message: De wasmachine is klaar.
icon: /config/www/img/washing-machine.png
pre_actions: []
wait_timeout:
hours: 5
minutes: 0
seconds: 0
- id: '1662104026902'
alias: 'Zolder: Wasdroger is klaar'
description: Verstuur meldingen als de wasdroger klaar is.
use_blueprint:
path: metbril/appliance_has_finished.yaml
input:
power_sensor: sensor.tumble_dryer_power
starting_hysteresis:
hours: 0
minutes: 0
seconds: 55
finishing_hysteresis:
hours: 0
minutes: 0
seconds: 55
starting_threshold: 2
finishing_threshold: 3
energy_sensor: sensor.tumble_dryer_energy
wait_timeout:
hours: 5
minutes: 0
seconds: 0
price_sensor: sensor.energy_consumption_tarif_2
actions:
- service: notify.robert
data:
message: "\U0001F9FA\U0001F4A8 Wasdroger is klaar."
- service: script.notify_living
data:
message: De wasdroger is klaar.
icon: /config/www/img/dryer.png
pre_actions: []
- id: '1662116397887'
alias: 'Security: Warn when door is open after everyone has left'
description: ''
trigger:
- platform: state
entity_id:
- group.family
from: home
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: binary_sensor.schuifpui_sensor_state_door_window
state: 'on'
action:
- service: notify.parents
data:
message: '⚠️ Er is niemand meer thuis, maar er zijn nog vensters en deuren geopend. '
mode: single
- id: '1662547518457'
alias: Office > Printer powered notification
description: Stuur een notificatie wanneer de printer een tijdje is ingeschakeld
en laat deze met een actieknop ook direct uitschakelen.
trigger:
- platform: state
entity_id:
- switch.office_printer
to: 'on'
for:
hours: 0
minutes: 30
seconds: 0
condition: []
action:
- service: script.printer_off
data: {}
mode: single
- id: '1662548077258'
alias: Garden > Lighting > Switch lights based on sun elevation
description: 'Switch the outdoor lights on/off based on sun elevation. Elevation
is an attribute of the sun integration. Elevetion is more accurate for darkness
that a fixed time. Elevation varies over time. Note: I should create a blueprint
for this some day.'
trigger:
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
above: '1'
- platform: numeric_state
entity_id: sun.sun
attribute: elevation
below: '1'
condition: []
action:
- if:
- condition: state
entity_id: sun.sun
attribute: rising
state: true
then:
- service: light.turn_off
target:
entity_id: light.achtergevel
data:
transition: 5
else:
- service: light.turn_on
target:
entity_id: light.achtergevel
data:
transition: 5
brightness_pct: 70
mode: single
- id: '1662609361916'
alias: 'System: Low battery level detection & notification for all battery sensors'
description: ''
use_blueprint:
path: sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
input:
actions:
- service: notify.persistent_notification
data:
message: 'Batterijen bijna leeg: {{sensors}}'
- service: notify.admin
data:
message: "⚠️\U0001FAAB Deze sensoren hebben we lage batterij: {{sensors}}"
enabled: false
exclude:
entity_id:
- sensor.iphone_van_bjorn_battery_level
- sensor.patricius_battery_level
- sensor.iphone_battery_level
time: '20:00:00'
- id: '1649842819459'
alias: Office > Pause/Resume Music
description: Pause playing music in the office when Robert in call and resume afterwards.
trigger:
- platform: state
entity_id:
- binary_sensor.robert_in_call
to: 'on'
id: Robert in gesprek
- platform: state
entity_id:
- binary_sensor.robert_in_call
to: 'off'
id: Robert uit gesprek
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Robert in gesprek
- condition: state
entity_id: binary_sensor.working_from_home_robert
state: 'on'
- condition: state
entity_id: media_player.office_speaker
state: playing
sequence:
- service: media_player.media_pause
data: {}
target:
entity_id: media_player.office_speaker
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.resume_office_music
- service: notify.robert
data:
message: "\U0001F3B6 Muziek in kantoor gepauzeerd voor Teamsgesprek van
Robert."
title: Teams activity
- conditions:
- condition: trigger
id:
- Robert uit gesprek
- condition: state
entity_id: input_boolean.resume_office_music
state: 'on'
sequence:
- service: media_player.media_play
target:
entity_id:
- media_player.office_speaker
data: {}
- service: input_boolean.turn_off
target:
entity_id: input_boolean.resume_office_music
data: {}
- service: notify.robert
data:
message: "\U0001F3B6 Muziek in kantoor voortgezet."
title: Teams activity
mode: single
- id: b27b246b-60fd-42d2-8516-cf37f2cfbc0f
alias: 'Living > Media: Pause living speaker when TV is turned on'
description: Pause living speaker when living TV is turned on.
trigger:
- platform: state
entity_id: media_player.living_tv
to: 'on'
condition:
- condition: state
entity_id: media_player.living_speaker
state: playing
action:
- service: media_player.media_pause
data: {}
target:
entity_id: media_player.living_speaker
- service: notify.living_tv
data:
message: Muziekspeler automatisch gepauzeerd.
mode: single
- id: '1663046423659'
alias: Office > Printer > Remind still powered
description: ''
trigger:
- platform: time_pattern
minutes: '30'
alias: Iedere 30 minuten
condition:
- condition: state
entity_id: input_boolean.printer_reminder
state: 'on'
action:
- service: script.printer_off
data: {}
mode: single
- id: '1663046870503'
alias: Office > Printer > Handle notification actions
description: ''
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: PRINTER_OFF
alias: PRINTER_OFF action
- platform: event
event_type: mobile_app_notification_action
event_data:
action: PRINTER_REMIND
id: printer_remind
alias: PRINTER_REMIND action
- platform: event
event_type: mobile_app_notification_action
event_data:
action: PRINTER_IGNORE
alias: PRINTER_IGNORE action
condition: []
action:
- if:
- condition: trigger
id: printer_remind
alias: Triggered by printer remind
then:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.printer_reminder
else:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.printer_reminder
mode: single
- id: '1663925197803'
alias: Living > Cube Actions
description: ''
use_blueprint:
path: SirGoodenough/Zigbee2MQTT - Xiaomi Cube Controller.yaml
input:
remote: sensor.cube_action
shake:
- service: script.movie_pause
data: {}
fall:
- service: scene.turn_on
target:
entity_id: scene.living_lighting_min
metadata: {}
rotate_cw_any:
- if:
- condition: device
device_id: 0b66a0b9458a2619643802bab0864d75
domain: media_player
entity_id: media_player.living_speaker
type: is_playing
then:
- service: media_player.volume_up
data: {}
target:
entity_id: media_player.living_speaker
rotate_ccw_any:
- if:
- condition: device
device_id: 0b66a0b9458a2619643802bab0864d75
domain: media_player
entity_id: media_player.living_speaker
type: is_playing
then:
- service: media_player.volume_down
data: {}
target:
entity_id: media_player.living_speaker
- id: 4f63071f-16ae-419e-bf54-8064a147ad3e
alias: System > HACS Updates
description: Verstuur een notificatie als er updates zijn van onderdelen die met
HACS zijn geïnstalleerd.
trigger:
- platform: state
entity_id: sensor.hacs
- platform: homeassistant
event: start
condition:
- condition: template
value_template: '{{ states(''sensor.hacs'') | float(0) > 0 }}'
action:
- service: persistent_notification.create
data:
title: HACS Updates
message: "Te verwerken [HACS-updates](/hacs): {% for repo in state_attr('sensor.hacs',
'repositories') %}\n * {{repo.display_name}} {{\n repo.installed_version}}
-> {{\n repo.available_version}}\n{% endfor %}\n"
notification_id: update_hacs
mode: single
- id: '1665290435363'
alias: Living > Media > Apple TV Movie Time
description: Play a movie in the living.
trigger:
- platform: state
entity_id:
- media_player.apple_tv_woomkamer
to: playing
id: playing
- platform: state
entity_id:
- media_player.apple_tv_woomkamer
to: paused
id: paused
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: playing
sequence:
- service: script.movie_time_start
data: {}
- conditions:
- condition: trigger
id: paused
sequence:
- service: script.movie_time_stop
data: {}
mode: single
- id: '1665293798660'
alias: Netflix Movie Time
description: Set the living for movie time
trigger:
- platform: state
entity_id: media_player.living_tv
attribute: source
to: Netflix
id: started
- platform: state
entity_id: media_player.living_tv
attribute: is_volume_muted
from: 'true'
to: 'false'
id: playing
- platform: state
entity_id: media_player.living_tv
attribute: is_volume_muted
from: 'false'
to: 'true'
id: paused
condition:
- condition: state
entity_id: media_player.living_tv
attribute: source
state: Netflix
action:
- choose:
- conditions:
- condition: trigger
id: started
sequence:
- service: script.movie_time_start
data: {}
- conditions:
- condition: trigger
id: playing
sequence:
- service: script.movie_time_start
data: {}
- conditions:
- condition: trigger
id: paused
sequence:
- service: script.movie_time_stop
data: {}
mode: single
- id: '1666340185709'
alias: Office > Printer > Notify when connected.
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.samsung_ml_2850nd
to: 'on'
condition: []
action:
- service: notify.family
data:
message: "\U0001F5A8 Printer kan worden gebruikt.."
- service: notify.persistent_notification
data:
message: "\U0001F5A8 Printer kan worden gebruikt.."
mode: single
- id: 79b3abe8-e220-4563-a55b-74bd3b850a3b
alias: Living > Lighting > Automated
description: Schakel vlak voor zonsondergang de verlichting in de woonkamer in.
trigger:
- event: sunset
offset: -00:30:00
platform: sun
id: Sunset
alias: Sunset
- platform: time
at: '23:30'
id: Late
alias: Late
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: Sunset
sequence:
- service: scene.turn_on
data: {}
target:
entity_id:
- scene.living_lighting_cosy
- service: script.toot_engine
data:
message: Het wordt schemerig. De verlichting is ingeschakeld om het een
beetje gezellig te maken.
who: mastodon
- conditions:
- condition: trigger
id: Late
sequence:
- condition: state
entity_id: light.living
state: 'on'
alias: Test if Woonkamerverlichting is still on
- condition: not
conditions:
- condition: state
entity_id: input_boolean.occupancy_vacation
state: 'on'
- condition: state
entity_id: input_boolean.occupancy_party
state: 'on'
- service: scene.turn_on
target:
entity_id:
- scene.living_lighting_dimmed
data: {}
mode: single
- id: '1667809761090'
alias: Safety > Meteoalarm Notification (new)
description: '
Send notification on each entity update (not only at state change)
'
trigger:
- platform: state
entity_id: binary_sensor.meteoalarm_zuid_holland
condition:
- alias: There is an active alert
condition: state
entity_id: binary_sensor.meteoalarm_zuid_holland
state: 'on'
action:
- service: notify.family
data:
title: '⚠️ {{ state_attr(''binary_sensor.meteoalarm_zuid_holland'', ''headline'').split(''
- '')[0] }}
'
message: '{{ state_attr(''binary_sensor.meteoalarm_zuid_holland'', ''description'')
| replace(''\n'', '' '') }}
'
data:
url: '{{ state_attr(''binary_sensor.meteoalarm_zuid_holland'', ''web'') }}
'
- service: script.toot_engine
data:
who: mastodon
message: "⚠️ {{ state_attr('binary_sensor.meteoalarm_zuid_holland', 'headline').split('
- ')[0] }}: {{ state_attr( 'binary_sensor.meteoalarm_zuid_holland', 'description'
) |\n replace('\\n', ' ') }} {{ state_attr( 'binary_sensor.meteoalarm_zuid_holland',
'web' ) }} #MeteoAlarm #ZuidHolland"
mode: queued
- id: f19127bd-aa93-44fe-aac9-0b2c4a626dca
alias: System > Enable eco mode by default
description: ''
trigger:
- platform: homeassistant
event: start
- platform: time
at: 03:00:00
condition:
- condition: state
entity_id: input_boolean.eco_mode
state: 'off'
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.eco_mode
data: {}
- service: persistent_notification.create
data:
message: Eco mode automatically by default enabled.
title: Eco Mode
notification_id: eco_mode
initial_state: true
mode: single
- id: '1672391012431'
alias: Living > Lighting > Shortcut
description: Snelknop bij de deur. 1x = aan, lang=uit, 2x = max
use_blueprint:
path: EPMatt/ikea_e1812.yaml
input:
integration: Zigbee2MQTT
controller_entity: sensor.snelknop_woonkamer_action
helper_last_controller_event: input_text.snelknop_woonkamer_last_controller_event
action_button_short:
- service: scene.turn_on
target:
entity_id: scene.living_lighting_min
metadata: {}
action_button_long:
- service: scene.turn_on
target:
entity_id: scene.living_lighting_off
metadata: {}
action_button_double:
- service: scene.turn_on
data: {}
target:
entity_id:
- scene.living_lighting_max
button_double_press: true
helper_double_press_delay: 1000
- id: '1672486229153'
alias: System > Network > WAN IP changed
description: Notify when WAN IP changes
trigger:
- platform: state
entity_id:
- sensor.myip
condition:
- condition: template
value_template: '{{ trigger.to_state.state not in [''unknown'', ''unavailable'',
None] }}'
- condition: template
value_template: '{{ trigger.from_state.state not in [''unknown'', ''unavailable'',
None] }}'
action:
- service: notify.admin
data:
message: 'WAN-IP is gewijzigd: {{ states(''sensor.myip'') }}'
- service: persistent_notification.create
data:
message: 'WAN-IP is gewijzigd: {{ states(''sensor.myip'') }}'
- service: script.toot_engine
data:
message: 'Fijn! #VodafoneZiggo heeft mijn externe IP-adres gewijzigd. Gelukkig
heb ik geen externe toegang nodig tot interne systemen.'
mode: single
- id: '1679143739246'
alias: Niet storen instellen door stiltetijd schema
description: Let do not disturb follow quiet hours.
trigger:
- platform: state
entity_id:
- schedule.quiet_hours
to: 'on'
id: Stiltetijd Schema Aan
- platform: state
entity_id:
- schedule.quiet_hours
to: 'off'
id: Stiltetijd Schema Uit
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Stiltetijd Schema Aan
sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.do_not_disturb
- conditions:
- condition: trigger
id:
- Stiltetijd Schema Uit
sequence:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.do_not_disturb
mode: single
- id: '1679302451294'
alias: Keuken > Koelkast uitgeschakeld
description: ''
trigger:
- platform: device
type: turned_off
device_id: fc39d2c003d6982efb53a3ddefa678fb
entity_id: switch.refrigerator
domain: switch
condition: []
action:
- service: notify.robert
data:
message: Koelkast is uitgeschakeld.
mode: single
- id: b17bc209-ef49-4199-bb5c-fae6c3f428a4
alias: Living > Lighting > Lights off during vacations
description: Schakel de verlichting tijdens vakanties automatisch uit tussen 23:00
en 23:30.
trigger:
- platform: time
at: '23:00:00'
condition:
- condition: state
entity_id: input_boolean.occupancy_vacation
state: 'on'
action:
- delay: '{{ "0:" ~ ((range(0,29)|random)|int) ~ ":0" }}'
- service: light.turn_off
entity_id: light.living
- service: persistent_notification.create
data:
message: Verlichting automatisch uitgeschakeld om {{ states('sensor.time') }}.
mode: single
- id: '1658943860235'
alias: 'Living: Inschakelen TV'
description: Door deze automatisering te activeren, verschijnt de power on knop
in de mediaspeler in het dashboard.
use_blueprint:
path: cvroque/webostv_turn_on.yaml
input:
webostv: media_player.living_tv
webostv_mac: 04:4E:AF:13:F9:7C
- id: '1684594109974'
alias: Appliances > Bike Charger Management
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.bike_charger_plug
to: 'on'
from: 'off'
id: Charging Started
- platform: state
entity_id:
- binary_sensor.bike_charger_plug
to: 'off'
for:
hours: 0
minutes: 1
seconds: 0
id: Charging Finished
from: 'on'
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- Charging Started
sequence:
- service: input_number.set_value
target:
entity_id: input_number.bike_charger_plug_start_energy
data:
value: '{{ states(''sensor.bike_charger_plug_energy'') | float(0) }}'
- conditions:
- condition: trigger
id:
- Charging Finished
sequence:
- type: turn_off
device_id: fc8175d314fecd80e9526220b04ae4b7
entity_id: switch.bike_charger_plug
domain: switch
- variables:
message: '{{ [''Zo.'', ''Eindelijk.'', ''Gelukkig.'', ''Dat duurde lang.'',
''Dat heeft even geduurd.'', ''Dat duurde even.'', ''Nou zeg.'', ''Tjongejonge.'']
| random }} De fietslader is klaar.'
- service: script.notification_engine
metadata: {}
data:
emergency: false
mobile: true
persistent: false
message: '{{ [''OK.'', ''Zo.'', ''Eindelijk.'', ''Gelukkig.'', ''Dat duurde
lang.'', ''Dat heeft even geduurd.'', ''Dat duurde even.'', ''Nou zeg.'',
''Tjongejonge.''] | random }} De fietslader is klaar. '
media_players:
- media_player.office_speaker
- media_player.homepod_slaapkamer
enabled: false
- service: notify.parents
data:
message: "De fietslader is klaar. \U0001F6B2\U0001F50B⚡️\U0001F50C"
enabled: true
- service: script.notify_living
data:
icon: /config/www/img/bike-charger.png
message: De fietslader is klaar.
enabled: true
mode: single
- id: '1696254669833'
alias: Office > Force preset to none
description: ''
trigger:
- platform: state
entity_id:
- climate.office
attribute: preset_mode
for:
hours: 0
minutes: 0
seconds: 1
condition:
- condition: not
conditions:
- condition: state
entity_id: climate.office
attribute: preset_mode
state: none
alias: Voorinstelling kantoorverwarming is uitgeschakeld
for:
hours: 0
minutes: 0
seconds: 0
alias: Niet
action:
- service: climate.set_preset_mode
data:
preset_mode: none
target:
entity_id: climate.office
- service: notify.persistent_notification
data:
message: Voorinstelling kantoorverwarming geforceerd naar 'none'.
mode: single
- id: '1698345068706'
alias: Kitchen > Koelkast Always On
description: ''
use_blueprint:
path: metbril/always_on.yaml
input:
target_entity: switch.refrigerator
on_duration:
hours: 0
minutes: 0
seconds: 0
- id: '1698345137071'
alias: 'Lighting: Always On Kledingkast Bjorn'
description: ''
use_blueprint:
path: metbril/always_on.yaml
input:
target_entity: light.kledingkast_bjorn
on_duration:
hours: 0
minutes: 0
seconds: 0
- alias: 'Huis: Herinnering over afwezigheid'
description: Notify when vacation or guest occupancy, and daily when still in vacation
or guest mode. These modes let automations behave differently.
id: '1661885320722'
trigger:
- platform: state
entity_id: sensor.occupancy
to: vacation
- platform: state
entity_id: sensor.occupancy
to: guests
- platform: time
at: 09:00:00
condition:
- condition: or
conditions:
- condition: state
entity_id: sensor.occupancy
state: vacation
- condition: state
entity_id: sensor.occupancy
state: guests
variables: