-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.yaml
859 lines (857 loc) · 23.1 KB
/
scripts.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
leaving:
alias: Leaving the house
sequence:
- service: script.turn_off_indoor_lights
- service: script.turn_off_switches_and_store_states
- service: script.turn_on_motion_detection_camera
mode: single
icon: mdi:home-export-outline
turn_on_motion_detection_camera:
alias: Turn On Motion Detection Camera
sequence:
- service: switch.turn_on
entity_id: switch.oprit_motion_detection
mode: single
icon: mdi:camera-switch
turn_off_indoor_lights:
alias: Turn Off Indoor Lights
sequence:
- service: light.turn_off
data: {}
entity_id:
- light.zolder
- light.gelijkvloers
- light.eerste_verdiep
- light.garage
- service: scene.turn_on
data: {}
target:
entity_id: scene.woonkamer_off
icon: mdi:lightbulb
mode: single
turn_off_switches_and_store_states:
alias: Turn off switches and store devices state
sequence:
- service: scene.create
data:
scene_id: stored_states
snapshot_entities:
- switch.boiler_keuken
- media_player.keuken
- media_player.woonkamer
- media_player.bureau
- service: media_player.turn_off
entity_id:
- media_player.tv
- media_player.keuken
- media_player.woonkamer
- media_player.bureau
- service: script.eco_manage_boiler_keuken
data: {}
icon: mdi:light-switch
mode: single
arriving:
alias: Arriving at our house
sequence:
- service: script.turn_on_switches_and_stored_states
data: {}
- service: script.set_thermostat_home
data: {}
- service: script.turn_off_motion_detection_camera
data: {}
mode: single
icon: mdi:home-import-outline
turn_off_motion_detection_camera:
alias: Turn Off Motion Detection Camera
sequence:
- delay: 00:01:00
- condition: sun
after: sunrise
- condition: state
entity_id: binary_sensor.night_mode
for:
minutes: 1
state: 'off'
- condition: state
entity_id: binary_sensor.no_one_home
for:
minutes: 1
state: 'off'
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.night_mode
state: 'on'
sequence:
- wait_for_trigger:
platform: state
entity_id: binary_sensor.oprit_camera
for:
minutes: 5
to: 'off'
timeout: 01:00:00
- service: switch.turn_off
entity_id: switch.oprit_motion_detection
mode: single
icon: mdi:camera-switch
turn_on_switches_and_stored_states:
alias: Turn On Switches and Restore Devices State
sequence:
- scene: scene.stored_states
- service: script.eco_manage_boiler_keuken
data: {}
icon: mdi:light-switch
mode: single
set_thermostat_away:
alias: Set Thermostat to Away
sequence:
- data:
preset_mode: away
entity_id: climate.controller
service: climate.set_preset_mode
- wait_template: '{{ is_state_attr(''climate.controller'', ''preset_mode'', ''away'')
}}'
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- service: climate.set_temperature
data:
entity_id:
- climate.margot
- climate.slaapkamer
- climate.febe
- climate.dressing
- climate.badkamer
- climate.bureau
- climate.speelkamer
- climate.inkom
- climate.keuken
temperature: 10
mode: single
icon: mdi:thermostat
set_thermostat_home:
alias: Set Thermostat to home
sequence:
- data:
preset_mode: Auto
service: climate.set_preset_mode
entity_id: climate.controller
- wait_template: '{{ is_state(''climate.controller'', ''heat'') }}'
- data:
entity_id:
- climate.bureau
- climate.speelkamer
- climate.badkamer
- climate.dressing
- climate.slaapkamer
- climate.febe
- climate.margot
- climate.inkom
- climate.keuken
- climate.woonkamer
preset_mode: none
service: climate.set_preset_mode
mode: single
icon: mdi:thermostat
start_up_home_assistant:
alias: Start Up Home Assistant
sequence: []
activate_guest_mode:
alias: Activate Guest Mode
sequence:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.guest_mode
- service: notify.hazilverberkenstraatbot
data_template:
message: Guest mode activated
mode: single
deactivate_guest_mode:
alias: Deactivate Guest Mode
sequence:
- condition: state
entity_id:
- binary_sensor.guest_mode
state: 'on'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.guest_mode
- service: notify.hazilverberkenstraatbot
data_template:
message: Guest mode deactivated
deactivate_kids_home_alone:
alias: Deactivate Kids Home Alone
sequence:
- condition: state
entity_id:
- binary_sensor.kids_home_alone
state: 'on'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.kids_home_alone
- service: notify.hazilverberkenstraatbot
data_template:
message: Kids Home Alone deactivated
activate_vacation_mode:
alias: Activate Vacation Mode
sequence:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.vacation_mode
- service: notify.hazilverberkenstraatbot
data_template:
message: Vacation mode activated
mode: single
deactivate_vacation_mode:
alias: Deactivate Vacation Mode
sequence:
- condition: state
entity_id:
- binary_sensor.vacation_mode
state: 'on'
- service: input_boolean.turn_off
data:
entity_id: input_boolean.vacation_mode
- service: notify.hazilverberkenstraatbot
data_template:
message: Vacation mode deactivated
notify_afval:
alias: Notify Afval
sequence:
- service: notify.hazilverberkenstraatbot
data_template:
message: '{{ states(''sensor.recycleapp_tomorrow'') }} morgen buiten zetten!'
mode: single
notify_temperatuur_verschil_hoger:
alias: Notify Temperatuur Verschil Warmer
sequence:
- service: notify.hazilverberkenstraatbot
data_template:
message: SLUITEN! Momenteel is de temperatuur buiten gemiddeld {{ states('sensor.buiten_gemiddelde_temperatuur')
}} en de gang eerste verdiep {{ states("sensor.gang_eerste_temperature") }}
mode: single
notify_temperatuur_verschil_lager:
alias: Notify Temperatuur Verschil Kouder
sequence:
- service: notify.hazilverberkenstraatbot
data_template:
message: OPEN! Momenteel is de temperatuur buiten gemiddeld {{ states('sensor.buiten_gemiddelde_temperatuur')
}} en de gang eerste verdiep {{ states("sensor.gang_eerste_temperature") }}
mode: single
motion_detected:
alias: Motion Detected
mode: parallel
fields:
sensor:
description: How detected the motion
example: camera garage
sequence:
- service: camera.snapshot
data_template:
entity_id: camera.oprit
filename: /config/www/snapshots/camera.oprit.jpg
enabled: false
- variables:
friendly_name: '{{ state_attr(sensor, ''friendly_name'') }}'
- service: notify.hazilverberkenstraatbot
data:
message: Buiten beweging gedetecteerd, {{ friendly_name }}
data:
photo:
- file: /config/www/snapshots/camera.oprit.jpg
caption: Beweging gedecteerd door {{ friendly_name }}
enabled: false
- service: notify.hazilverberkenstraatbot
data:
message: Beweging gedetecteerd, {{ friendly_name }}
- service: script.telegram_what_mode_needs_to_be_activated
data: {}
max: 10
vacuum_notify:
alias: Vacuum Notify
mode: single
fields:
zone:
description: zone
example: keuken
sequence:
- condition: state
entity_id:
- input_boolean.disable_dustbin_notification
state: 'off'
- variables:
start_time: '{{ as_timestamp(now()) }}'
- wait_for_trigger:
- platform: template
value_template: '{{ is_state(''vacuum.dalek'', ''docked'') }}'
enabled: true
timeout: 02:00:00
continue_on_timeout: false
- variables:
end_time: '{{ as_timestamp(now()) }}'
- variables:
total_time: '{{ (end_time|float(0)- start_time|float) }}'
- choose:
- conditions:
- condition: not
conditions:
- condition: state
entity_id:
- input_select.vacuum_room
state: Selecteer Kamer
sequence:
- service: input_select.select_option
entity_id: input_select.vacuum_room
data:
option: Selecteer Kamer
- variables:
minutes: '{{ (total_time|float(0)/ 60) | round(0) }}'
- choose:
- conditions:
- condition: state
entity_id: binary_sensor.vacuum_empty_bin
state: 'on'
sequence:
- service: telegram_bot.send_message
data_template:
target:
- 689595780
- 696299625
title: Stofzuiger
message: Stofzuiger is klaar na {{ minutes }} minuten. Het is tijd dat de
vuilbak van stofzuiger wordt geleegd!
inline_keyboard:
- Gedaan.:/vacuumemptybindone
- Uitstel.:/vacuumemptybinextend
default:
- service: notify.hazilverberkenstraatbot
data_template:
message: '{% if zone == '''' %} Stofzuiger is klaar na {{ minutes }} minuten
{% else %} Stofzuiger is klaar {{zone}} in {{ minutes }} minuten. {% endif
%}
'
icon: mdi:robot-vacuum
vacuum_record_run:
alias: Vacuum Record Run
mode: single
sequence:
- service: input_number.increment
entity_id: input_number.vacuum_number_of_runs
- service: input_boolean.turn_on
entity_id: input_boolean.daily_vacuum_first_run
- service: timer.start
entity_id: timer.vacuum_run_duration
icon: mdi:robot-vacuum
vacuum_automated:
alias: Vacuum Automated
mode: single
sequence:
- condition: and
conditions:
- condition: state
entity_id:
- input_boolean.daily_vacuum_first_run
- input_boolean.disable_daily_vacuum
state: 'off'
- condition: time
after: 06:00:00
before: '19:00:00'
- service: vacuum.start
data:
entity_id: vacuum.dalek
icon: mdi:robot-vacuum
vacuum_zone:
alias: Vacuum a Specific Zone
mode: single
fields:
zone:
description: zone
example: keuken
sequence:
- choose:
- conditions:
- condition: template
value_template: '{{ zone == ''Keuken'' }}'
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.dalek
command: app_zoned_clean
params:
- - 23386
- 23366
- 25286
- 28216
- 1
- conditions:
- condition: template
value_template: '{{ zone == ''Eet Kamer'' }}'
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.dalek
command: app_zoned_clean
params:
- - 25244
- 21493
- 30594
- 26593
- 1
- conditions:
- condition: template
value_template: '{{ zone == ''Livng'' }}'
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.dalek
command: app_zoned_clean
params:
- - 24260
- 16982
- 30710
- 21882
- 1
- conditions:
- condition: template
value_template: '{{ zone == ''Inkom'' }}'
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.dalek
command: app_zoned_clean
params:
- - 23110
- 14614
- 25410
- 18664
- 1
- conditions:
- condition: template
value_template: '{{ zone == ''Berging'' }}'
sequence:
- service: vacuum.send_command
data:
entity_id: vacuum.dalek
command: app_zoned_clean
params:
- - 23508
- 21814
- 25408
- 23314
- 1
- service: script.vacuum_notify
data_template:
zone: '{{ zone }}'
icon: mdi:robot-vacuum
vacuum_bin_feedback:
icon: mdi:robot-vacuum
alias: Vacuum bin feedback
fields:
command:
description: the response command from telegram
example: vacuumemptybindone
callback_id:
description: the callback_id to give a reponse
example: ''
sequence:
- choose:
- conditions:
- condition: template
value_template: '{{ command == ''vacuumemptybindone'' }}'
sequence:
- service: script.vacuum_empty_bin
data: {}
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ callback_id }}'
message: '{% if (command == ''vacuumemptybindone'') %} Genoteerd dat de vuilbak
is geleegd! {% elif (command == ''vacuumemptybinextend'') %} Uitgesteld tot
de volgende run! {% endif %}
'
show_alert: true
mode: single
guest_mode_feedback:
alias: mode feedback
fields:
command:
description: the response command from telegram
example: yesguest
callback_id:
description: the callback_id to give a reponse
example: ''
sequence:
- choose:
- conditions:
- condition: template
value_template: '{{ command == ''yesguest'' }}'
sequence:
- service: script.activate_guest_mode
data: {}
- conditions:
- condition: template
value_template: '{{ command == ''noguest'' }}'
sequence:
- service: script.set_thermostat_away
data: {}
- conditions:
- condition: template
value_template: '{{ command == ''yeskidshomealone'' }}'
sequence:
- service: script.activate_kids_home_alone_mode
data: {}
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ callback_id }}'
message: '{% if (command == ''yesguest'') %} Guest Mode is active {% elif (command
== ''noguest'') %} Guest Mode is not active {% endif %}'
show_alert: true
- service: telegram_bot.send_message
data_template:
target:
- 689595780
- 696299625
message: '{% if (command == ''yesguest'') %} Guest Mode is active {% elif (command
== ''yeskidshomealone'') %} Kids Home Alone is active {% elif (command ==
''noguest'') %} Guest Mode is not active {% endif %}'
mode: single
wakeup_light_sunrise:
alias: Wakeup Light Sunrise
sequence:
- data_template:
brightness: 1
white_value: 0
entity_id: '{{entity_id}}'
xy_color:
- 0.67
- 0.39
service: light.turn_on
- delay:
seconds: 1
- data_template:
brightness: 85
transition: 12
white_value: 0
entity_id: '{{entity_id}}'
xy_color:
- 0.65
- 0.41
service: light.turn_on
- delay:
seconds: 15
- data_template:
brightness: 170
transition: 12
white_value: 0
entity_id: '{{entity_id}}'
xy_color:
- 0.6
- 0.4
service: light.turn_on
- delay:
seconds: 15
- data_template:
brightness: 255
transition: 12
white_value: 0
entity_id: '{{entity_id}}'
xy_color:
- 0.48
- 0.4
service: light.turn_on
- delay:
seconds: 15
- data_template:
brightness: 255
color_name: white
transition: 12
white_value: 255
entity_id: '{{entity_id}}'
service: light.turn_on
- delay:
seconds: 15
sunrise_wled:
alias: Sunrise wled
sequence:
- service: number.set_value
target:
entity_id: number.{{ wled_id }}_intensity
data:
value: '120'
- service: number.set_value
data:
value: '{{ time |int (0) }}'
target:
entity_id: number.{{ wled_id }}_speed
- service: light.turn_on
data:
effect: sunrise
brightness_pct: 75
entity_id: light.{{ wled_id }}
- delay: '{{ time | multiply(60) |int (0) }}'
mode: parallel
icon: mdi:weather-sunset-up
max: 20
activate_night_mode:
alias: Activate Night Mode
sequence:
- service: input_boolean.turn_on
data:
entity_id: input_boolean.night_mode
mode: single
deactivate_night_mode:
alias: Deactivate Night Mode
sequence:
- service: input_boolean.turn_off
data:
entity_id: input_boolean.night_mode
night_mode_turn_on:
alias: Night Mode Turn On
sequence:
- service: script.turn_on_motion_detection_camera
night_mode_turn_off:
alias: Night Mode Turn Off
sequence:
- service: script.turn_off_motion_detection_camera
play_chromecast_radio:
alias: Cast Selected Radio on Chromecast Speakers
icon: mdi:cast
sequence:
- service: media_player.play_media
data_template:
entity_id: '{% if is_state("input_select.cast_radio", "Woonkamer") %} media_player.woonkamer
{% elif is_state("input_select.cast_radio", "Keuken") %} media_player.keuken
{% elif is_state("input_select.cast_radio", "Beneden") %} media_player.beneden
{% endif %}'
media_content_id: '{% if states(''input_select.stu_bru_streams'') == ''Bruut''
%} http://icecast.vrtcdn.be/stubru_bruut.aac {% elif states(''input_select.stu_bru_streams'')
== ''Hooray'' %} http://icecast.vrtcdn.be/stubru_hiphophooray.aac {% elif
states(''input_select.stu_bru_streams'') == ''De Tijdloze'' %} http://icecast.vrtcdn.be/stubru_tijdloze.aac
{% elif states(''input_select.stu_bru_streams'') == ''#ikluisterbelgisch''
%} http://icecast.vrtcdn.be/stubru_tgs.aac {% elif states(''input_select.stu_bru_streams'')
== ''Live Radio'' %} http://icecast.vrtcdn.be/stubru.aac {% endif %}'
media_content_type: music
mode: single
radio_beneden:
alias: Speel Radio Beneden
sequence:
- service: input_select.select_option
data:
option: Live Radio
entity_id: input_select.stu_bru_streams
- service: input_select.select_option
data:
option: Beneden
entity_id: input_select.cast_radio
- service: script.play_chromecast_radio
mode: single
motioneye_object_detected:
alias: MotionEye Object Detected
sequence:
- service: input_number.set_value
entity_id: input_number.oprit_last_motion_event
data_template:
value: '{{ states.input_number.oprit_last_cctv_motion_event.state }}'
- service: input_datetime.set_datetime
entity_id: input_datetime.oprit_last_motion
data_template:
datetime: '{{ states.input_datetime.oprit_last_cctv_motion.state }}'
- service: input_boolean.turn_on
data: {}
entity_id: input_boolean.oprit_motion
motioneye_test_person_object:
alias: MotionEye Test Person Object
sequence:
- condition: template
value_template: '{{ ''person'' in state_attr(''image_processing.doods_oprit'',
''summary'') }}'
- service: script.motioneye_object_detected
motioneye_test_car_object:
alias: MotionEye Test Car Object
sequence:
- condition: template
value_template: '{{ ''car'' in state_attr(''image_processing.doods_oprit'', ''summary'')
}}'
- service: image_processing.scan
target:
entity_id: image_processing.platerecognizer_doods_oprit
- wait_for_trigger:
- platform: state
entity_id: image_processing.platerecognizer_doods_oprit
attribute: timestamp
timeout: 00:00:05
- condition: template
value_template: '{{ is_state(''binary_sensor.oprit_known_plate'',''off'') }}'
- service: script.motioneye_object_detected
set_temperature_zone:
alias: Set Temperature Zone
sequence:
- service: ramses_cc.set_zone_mode
data:
entity_id: climate.{{ states('input_select.verwarmingszone') }}
setpoint: '{{ states(''input_number.verwarmingszone_temperature'') | float (0)
}}'
duration:
minutes: '{{ states(''input_number.verwarmingszone_looptijd'') | int (0) }}'
mode: single
vacuum_empty_bin:
alias: Vacuum Empty Bin
sequence:
- service: input_number.set_value
data:
value: 0
target:
entity_id: input_number.vacuum_number_of_runs
mode: single
icon: mdi:robot-vacuum
eco_manage_boiler_keuken:
alias: 'Eco: Manage Boiler Keuken'
sequence:
- choose:
- conditions:
- condition: or
conditions:
- condition: time
after: input_datetime.eco_mode_start
alias: After Eco Mode Start
- condition: state
entity_id: binary_sensor.no_one_home
state: 'on'
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.boiler_keuken
- conditions:
- condition: time
after: input_datetime.eco_mode_end
alias: After Eco Mode End
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.boiler_keuken
mode: single
'1667226203927':
alias: Reset Ikea Light Bulbs using Shelly
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- service: switch.turn_off
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.turn_on
data: {}
target:
entity_id: switch.verlichting_slaapkamer_margot
mode: single
telegram_what_mode_needs_to_be_activated:
alias: 'Telegram: What mode needs to be activated'
sequence:
- service: telegram_bot.send_message
data_template:
target:
- 689595780
- 696299625
title: Mode Activation
message: Welke Mode activeren?
inline_keyboard:
- Guest:/yesguest
- Kids Home Alone:/yeskidshomealone
- Nee dank u.:/nomode
mode: single
activate_kids_home_alone_mode:
alias: Activate Kids Home Alone Mode
sequence:
- service: input_boolean.turn_on
data: {}
target:
entity_id:
- input_boolean.kids_home_alone
- service: notify.hazilverberkenstraatbot
data_template:
message: Kids Home Alone mode activated
mode: single