/
automations.yaml
1834 lines (1821 loc) · 48 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
- alias: Write Stepper Value to ESP
trigger:
platform: state
entity_id: input_number.stepper_control
action:
- service: esphome.curtain_bedroom
data_template:
target: '{{ trigger.to_state.state | int }}'
id: 20429983fd4f462f90561dd4cddf43c3
- alias: Falcon Animation Speed
initial_state: true
trigger:
- platform: state
entity_id: input_slider.falcon_animation_speed
action:
- service: mqtt.publish
data_template:
topic: light/falcon/set
payload: '{"transition":{{ trigger.to_state.state | int }}}'
id: ea5948cf7c4e44c0a5399d18f84421cf
- id: '1519760782392'
alias: Motion hallway-downstairs (on)
trigger:
- entity_id: binary_sensor.hallway_downstairs_door_motion_occupancy
from: 'off'
platform: state
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.downstairs_hallway_ceiling_lux_illuminance_lux
attribute: illuminance_lux
below: '4'
- condition: state
entity_id: input_boolean.bedtime
state: 'off'
action:
- data:
entity_id: group.hallway
service: light.turn_on
- type: turn_on
device_id: e729bea001b411eb933ded68b48ae16d
entity_id: switch.staircase_window_light_relay
domain: switch
mode: single
- id: '1519760817306'
alias: Motion hallway-downstairs (off)
trigger:
- entity_id: binary_sensor.hallway_downstairs_door_motion_occupancy
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: group.hallway
service: light.turn_off
- type: turn_off
device_id: e729bea001b411eb933ded68b48ae16d
entity_id: switch.staircase_window_light_relay
domain: switch
mode: single
- id: '1520200724100'
alias: Motion hallway-downstairs morning (on)
trigger:
- entity_id: binary_sensor.hallway_downstairs_door_motion_occupancy
from: 'off'
platform: state
to: 'on'
condition:
- after: '6:00'
before: '8:30'
condition: time
- type: is_illuminance
condition: device
device_id: a4d91cd90d4711eba5a6b50a9ba37a26
entity_id: sensor.downstairs_hallway_ceiling_lux_illuminance_lux
domain: sensor
below: 4
action:
- data:
entity_id: group.livingroom_group
service: homeassistant.turn_on
mode: single
- id: '1520251495193'
alias: Basement light on
trigger:
- entity_id: binary_sensor.basement_door_sensor_contact
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: light.sonoff_basement
service: light.turn_on
mode: single
- id: '1520251539017'
alias: Basement light off
trigger:
- entity_id: binary_sensor.basement_door_sensor_contact
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: light.sonoff_basement
service: light.turn_off
mode: single
- id: '1528109786675'
alias: Motion kitchen (on)
trigger:
- entity_id: binary_sensor.0x00158d0001e55662_occupancy
from: 'off'
platform: state
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.downstairs_hallway_ceiling_lux_illuminance_lux
below: '4'
attribute: illuminance_lux
- condition: state
entity_id: input_boolean.bedtime
state: 'off'
action:
- data:
entity_id: group.kitchenspots
service: light.turn_on
mode: single
- id: '1528109853713'
alias: Motion kitchen (off)
trigger:
- entity_id: binary_sensor.0x00158d0001e55662_occupancy
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: group.kitchenspots
service: light.turn_off
mode: single
- id: '1528823416468'
alias: Motion upstairs (on)
trigger:
- entity_id: binary_sensor.hallway_upstairs_bedroom_motion_occupancy
from: 'off'
platform: state
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.downstairs_hallway_ceiling_lux_illuminance_lux
below: '4'
attribute: illuminance_lux
- condition: state
entity_id: input_boolean.bedtime
state: 'off'
action:
- data:
entity_id: group.upstairs_spots
service: light.turn_on
mode: single
- id: '1528823457733'
alias: Motion upstairs (off)
trigger:
- entity_id: binary_sensor.hallway_upstairs_bedroom_motion_occupancy
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: group.upstairs_spots
service: light.turn_off
mode: single
- id: '1544305094328'
alias: Shutters_time_open
trigger:
- at: 07:00
platform: time
condition: []
action:
- entity_id: cover.livingroom_roller
service: cover.open_cover
- service: cover.open_cover
data: {}
entity_id: cover.office_roller
mode: single
- id: '1546196514195'
alias: Octoprint-led
trigger:
- entity_id: binary_sensor.octoprint_printing
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: light.kossel_light
service: light.turn_on
- id: '1546196538451'
alias: octo-print-off
trigger:
- entity_id: binary_sensor.octoprint_printing
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: light.kossel_light
service: light.turn_off
- id: '1548364073868'
alias: office_shutter_left-button
trigger:
- platform: device
domain: mqtt
device_id: c68ac6c3ffe511ea90e64de2f15089ab
type: click
subtype: left
discovery_id: 0x00158d000312d335 click_left
condition:
- condition: state
entity_id: binary_sensor.office_window_sensor_contact
state: 'off'
action:
- data:
entity_id: cover.office_roller
service: cover.close_cover
mode: single
- id: '1548364189711'
alias: office_shutter_right-button
trigger:
- platform: device
domain: mqtt
device_id: c68ac6c3ffe511ea90e64de2f15089ab
type: action
subtype: single_right
discovery_id: 0x00158d000312d335 action_single_right
condition: []
action:
- data:
entity_id: cover.office_roller
service: cover.open_cover
mode: single
- id: '1548364252800'
alias: office_shutter_both-buttons
trigger:
- platform: device
domain: mqtt
device_id: c68ac6c3ffe511ea90e64de2f15089ab
type: click
subtype: both
discovery_id: 0x00158d000312d335 click_both
condition: []
action:
- data:
entity_id: cover.office_roller
service: cover.stop_cover
mode: single
- id: '1550564308364'
alias: Telegram bot that reply pong to ping
trigger:
- event_data:
command: /ping
event_type: telegram_command
platform: event
- event_data:
text: Ping
event_type: telegram_text
platform: event
condition: []
action:
- data_template:
message: pong
target: '{{ trigger.event.data.chat_id }}'
service: telegram_bot.send_message
- id: '1550565595309'
alias: Telegram bot status
trigger:
- event_data:
text: status
event_type: telegram_text
platform: event
- event_data:
text: Status
event_type: telegram_text
platform: event
- event_data:
telegram_command: /status
event_type: telegram_command
platform: event
condition: []
action:
- data:
message: ' {% if now().strftime("%H")|int < 12 %} Good morning, {% elif now().strftime("%H")|int
< 18 %} Good afternoon, {% else %} Good evening, {% endif %}
The current weather is {{ states ("weather.dark_sky") }}, with a temperature
of {{ state_attr ("weather.dark_sky", "temperature" )| int }} degrees.
The current livingroom temperature is {{ state_attr ("climate.woonkamer",
"current_temperature" )|int }} degrees.
The solar panels produced {{ states ("sensor.energy_today").split(".").0 }}
Kilowatthours today.
{% if is_state ("binary_sensor.door_window_sensor_158d0002133b59", "on") %}
Reminder, The bedroom window is open. {% endif %}
{% if state_attr ("vacuum.miep", "clean_stop").strftime("%d") == now().strftime("%d")
%} Vacuum finished today at {{ state_attr ("vacuum.miep", "clean_stop").strftime("%H:%M")}}.
{% else %} Vacuum did not clean, last run was {{state_attr ("vacuum.miep",
"clean_stop").strftime("%A, %d %B")}}. {% endif %}
{% if state_attr ("vacuum.miep", "sensor_dirty_left") < 2 %} The vacuum sensors
need to be cleaned in {{state_attr ("vacuum.miep", "sensor_dirty_left")}}
hours. {% endif %} {% if state_attr ("vacuum.miep", "filter_left") < 2 %}
The vacuum sensors need to be cleaned in {{state_attr ("vacuum.miep", "filter_left")}}
hours. {% endif %} {% if state_attr ("vacuum.miep", "side_brush_left") < 2
%} The vacuum sensors need to be cleaned in {{state_attr ("vacuum.miep", "side_brush_left")}}
hours. {% endif %} {% if state_attr ("vacuum.miep", "main_brush_left") < 2
%} The vacuum sensors need to be cleaned in {{state_attr ("vacuum.miep", "main_brush_left")}}
hours. {% endif %} '
target: '{{ trigger.event.data.chat_id }}'
service: telegram_bot.send_message
- id: '1550695640677'
alias: Telegram cleaning
trigger:
- entity_id: vacuum.miep
from: docked
platform: state
to: cleaning
condition: []
action:
- data:
message: Cleaning, beep boop
service: telegram_bot.send_message
- id: '1550697141393'
alias: Motion stairs(on)
trigger:
- entity_id: binary_sensor.stairs_window_motion_occupancy
from: 'off'
platform: state
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.downstairs_hallway_ceiling_lux_illuminance_lux
attribute: illuminance_lux
below: '4'
- condition: state
entity_id: input_boolean.bedtime
state: 'off'
action:
- service: switch.turn_on
data: {}
entity_id: switch.staircase_window_light_relay
mode: single
- id: '1550697179004'
alias: Motion stairs (off)
trigger:
- entity_id: binary_sensor.stairs_window_motion_occupancy
from: 'on'
platform: state
to: 'off'
condition: []
action:
- service: switch.turn_off
data: {}
entity_id: switch.staircase_window_light_relay
mode: single
- id: '1550872980640'
alias: Reset bedtime
trigger:
- at: 06:00
platform: time
condition: []
action:
- data:
entity_id: input_boolean.bedtime
service: input_boolean.turn_off
- data:
code: !secret alarm_pin
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_disarm
- id: '1553538719582'
alias: Switch to dark theme
trigger:
- entity_id: sun.sun
from: above_horizon
platform: state
to: below_horizon
condition: []
action:
- data:
name: dark
service: frontend.set_theme
- id: '1553538754094'
alias: Set dark theme
trigger:
- entity_id: sun.sun
from: below_horizon
platform: state
to: above_horizon
condition: []
action:
- data:
name: clear2
service: frontend.set_theme
- id: '1553543612290'
alias: Tesla home lights
trigger:
- entity_id: device_tracker.eve_location_tracker
from: not_home
platform: state
to: home
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: person.joyce
state: Away
action:
- data:
entity_id: group.livingroom_group
service: light.turn_on
- data:
entity_id: group.livingroom_group
service: switch.turn_on
mode: single
- id: '1554283978472'
alias: Printing done
trigger:
- entity_id: binary_sensor.octoprint_printing
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: camera.octoprint
filename: /config/www/tmpimage/printer.jpg
service: camera.snapshot
- data:
message: Printing done
service: telegram_bot.send_message
- data:
file: /config/www/tmpimage/printer.jpg
service: telegram_bot.send_photo
- id: '1554284164549'
alias: Telegram print status
trigger:
- event_data:
text: Print status
event_type: telegram_text
platform: event
- event_data:
text: Printer status
event_type: telegram_text
platform: event
- event_data:
command: /print_status
event_type: telegram_command
platform: event
condition: []
action:
- data:
entity_id: camera.octoprint
filename: /config/www/tmpimage/printer_status.jpg
service: camera.snapshot
- data_template:
message: Job is at {{ states('sensor.octoprint_job_percentage') }}%
target: '{{ trigger.event.data.chat_id }}'
service: telegram_bot.send_message
- data_template:
message: 'expected time remaining is: {{states(''sensor.octoprint_time_remaining_format'')
}}'
target: '{{ trigger.event.data.chat_id }}'
service: telegram_bot.send_message
- data_template:
message: 'And here''s a picture of the printbed:'
target: '{{ trigger.event.data.chat_id }}'
service: telegram_bot.send_message
- data_template:
file: /config/www/tmpimage/printer_status.jpg
target: '{{ trigger.event.data.chat_id }}'
service: telegram_bot.send_photo
- id: '1554312554261'
alias: Telegram Alarm
trigger:
- event_data:
text: alarm on
event_type: telegram_text
platform: event
- event_data:
text: Alarm on
event_type: telegram_text
platform: event
condition: []
action:
- data:
entity_id: input_boolean.alarm
service: input_boolean.turn_on
- data:
message: Alarm is set
service: telegram_bot.send_message
- id: '1554544852706'
alias: Tensorflow voordeur
trigger:
- event_data: {}
event_type: voordeur_motion
platform: event
condition: []
action:
- data:
entity_id: image_processing.tensorflow_voordeur
service: image_processing.scan
- id: '1554564859672'
alias: TensorFlow zijdeur
trigger:
- event_data: {}
event_type: zijdeur_motion
platform: event
condition: []
action:
- entity_id: image_processing.tensorflow_zijdeur
service: image_processing.scan
- id: '1554790197597'
alias: Tensorflow notification voordeur
trigger:
- entity_id: image_processing.tensorflow_voordeur
platform: state
condition:
- condition: template
value_template: '{{ trigger.to_state.state |int > 0 }}'
- condition: template
value_template: "{% set scan = state_attr(\"image_processing.tensorflow_voordeur\"\
,\"summary\").keys() %}\n{% for item in scan %}\n {% if item == 'person' %}\n\
\ {{ True }}\n {% endif %}\n{% endfor %}"
action:
- data:
message: '{{ state_attr(''image_processing.tensorflow_voordeur'',''matches'').keys()|list|unique|list|join('',
'')|title }} detected on voordeur camera'
service: telegram_bot.send_message
- data:
file: /config/video/voordeur_latest.jpg
service: telegram_bot.send_photo
- id: '1554790271700'
alias: Tensorflow notification zijdeur
trigger:
- entity_id: image_processing.tensorflow_zijdeur
platform: state
condition:
- condition: template
value_template: '{{ trigger.to_state.state |int > 0 }}'
- condition: template
value_template: "{% set scan = state_attr(\"image_processing.tensorflow_zijdeur\"\
,\"summary\").keys() %}\n{% for item in scan %}\n {% if item == 'person' %}\n\
\ {{ True }}\n {% endif %}\n{% endfor %}"
action:
- data:
message: '{{ state_attr(''image_processing.tensorflow_zijdeur'',''matches'').keys()|list|unique|list|join('',
'')|title }} detected on zijdeur camera'
service: telegram_bot.send_message
- data:
file: /config/video/zijdeur_latest.jpg
service: telegram_bot.send_photo
- id: '1557406766787'
alias: Alarm on_away
trigger:
- entity_id: device_tracker.mi9_miphone_2
from: Home
platform: state
to: Away
condition: []
action:
- data:
message: Alarm is set - Phone away
service: telegram_bot.send_message
- id: '1558271669699'
alias: Livingroom_anouncement_morning
trigger:
- type: motion
platform: device
device_id: 42e0ba26ffe711ea9d13cd2f01ae623c
entity_id: binary_sensor.hallway_downstairs_door_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
condition:
- type: is_motion
condition: device
device_id: 1421a140ffe711eaa1f1219d64a00720
entity_id: binary_sensor.stairs_window_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
- condition: time
after: '6:00'
before: '10:00'
action:
- delay: '10'
- data:
volume_level: 0.4
entity_id: media_player.nestaudio2567
service: media_player.volume_set
- data_template:
entity_id: media_player.nestaudio2567
message: '{% if now().strftime("%H")|int < 12 %} Goedemorgen, {% elif now().strftime("%H")|int
< 18 %} Goedemiddag, {% else %} Goedeavond, {% endif %} Het is nu buiten {{
states ("sensor.weerhuisje_temperature") | int }} graden.
De woonkamer temperatuur is {{ state_attr ("climate.woonkamer", "current_temperature"
)|int }} graden.
{% if is_state ("sensor.circulus_berkel_vandaag", "None") %} {% else %} Vandaag
moet {{ states ("sensor.circulus_berkel_vandaag")}} aan de weg. {% endif %}
{% if is_state ("sensor.circulus_berkel_morgen", "None") %} {% else %} Morgen
wordt {{ states ("sensor.circulus_berkel_morgen")}} opgehaald. {% endif %}
De zonnepanelen hebben {{ states ("sensor.saj_today_yield_2") }} Kilowat opgebracht
vandaag.
{% if is_state ("binary_sensor.bedroom_window_door_sensor_contact", "on")
and state_attr ("weather.openweathermap", "temperature") < 10 %} Het raam
op de slaapkamer staat open, en buiten is het koud {% endif %}
{% if is_state ("group.outside_doors", "on") %} Waarschuwing! Er staat een
buitendeur open {% endif %}
{% if state_attr ("vacuum.miep", "clean_stop").strftime("%d") == now().strftime("%d")
%} Miep heeft vandaag gereden om {{ state_attr ("vacuum.miep", "clean_stop").strftime("%H:%M")}}.
{% else %} Miep heeft nog niet gereden, de laatste keer was {{state_attr ("vacuum.miep",
"clean_stop").strftime("%A, %d %B")}}. {% endif %}
{% if state_attr ("vacuum.miep", "sensor_dirty_left") < 2 %} De sensors van
Miep moeten schoongemaakt worden in {{state_attr ("vacuum.miep", "sensor_dirty_left")}}
uur. {% endif %} {% if state_attr ("vacuum.miep", "filter_left") < 2 %} Het
filter van Miep moet schoongemaakt worden binnen {{state_attr ("vacuum.miep",
"filter_left")}} uur. {% endif %} {% if state_attr ("vacuum.miep", "side_brush_left")
< 2 %} De zijborstel van Miep moet vervangen worden in {{state_attr ("vacuum.miep",
"side_brush_left")}} uur. {% endif %} {% if state_attr ("vacuum.miep", "main_brush_left")
< 2 %} De hoofdborstel van Miep moet vervangen worden in {{state_attr ("vacuum.miep",
"main_brush_left")}} uur. {% endif %} Dat waren alle meldingen, fijne dag
verder! '
service: tts.microsoft_say
mode: single
- id: '1558274783849'
alias: IFTT
trigger:
- event_data:
action: call_service
event_type: ifttt_webhook_received
platform: event
condition: []
action:
- data_template:
entity_id: '{{ trigger.event.data.entity_id }}'
service_template: '{{ trigger.event.data.service }}'
- id: '1560369534592'
alias: Tensorflow schuur
trigger:
- event_data: {}
event_type: schuur_motion
platform: event
condition: []
action:
- data:
entity_id: image_processing.tensorflow_schuur
service: image_processing.scan
- id: '1560369782192'
alias: Tensorflow notification schuur
trigger:
- entity_id: image_processing.tensorflow_schuur
platform: state
condition:
- condition: template
value_template: '{{ trigger.to_state.state |int > 0 }}'
- condition: template
value_template: "{% set scan = state_attr(\"image_processing.tensorflow_schuur\"\
,\"summary\").keys() %}\n{% for item in scan %}\n {% if item == 'person' %}\n\
\ {{ True }}\n {% endif %}\n{% endfor %}"
action:
- data:
message: '{{ state_attr(''image_processing.tensorflow_schuur'',''matches'').keys()|list|unique|list|join('',
'')|title }} detected on schuur camera'
service: telegram_bot.send_message
- data:
file: /config/video/schuur_latest.jpg
service: telegram_bot.send_photo
- id: '1560587782912'
alias: Telegram Wolfje
trigger:
- event_data:
text: Wolfje status
event_type: telegram_text
platform: event
- event_data:
text: wolfje status
event_type: telegram_text
platform: event
- event_data:
text: Waar is wolfje
event_type: telegram_text
platform: event
- event_data:
text: Wolfje
event_type: telegram_text
platform: event
- event_data:
text: wolfje
event_type: telegram_text
platform: event
condition: []
action:
- data:
message: '{% if is_state ("binary_sensor.pet_wolfje", "on") %} Wolfje is binnen
chillen. {% elif is_state ("binary_sensor.pet_wolfje", "off") %} Wolfje is
buiten chillen. {% endif %}'
service: telegram_bot.send_message
- id: '1563110835430'
alias: Pim location Office
trigger:
- above: '-60'
entity_id: device_tracker.192_168_1_17_a4_50_46_72_c6_82
platform: numeric_state
condition: []
action:
- service: input_select.set_options
- id: '1563738157502'
alias: Bedtime toggle
trigger:
- entity_id: input_boolean.bedtime
from: 'off'
platform: state
to: 'on'
condition:
- after: '21:00'
condition: time
action:
- data:
entity_id: all
service: light.turn_off
- service: switch.turn_off
data:
entity_id:
- switch.fireplace_basic_relay
- switch.frontdoor_switch_relay
- switch.livingroom_window_switch_switch
- switch.porch_basic_relay
- switch.sonoff_basic_relay
- switch.staircase_window_light_relay
mode: single
- id: '1568203353202'
alias: Vacuum start
trigger:
- at: 05:00
platform: time
condition: []
action:
- data:
entity_id: vacuum.miep
service: vacuum.start
mode: single
- id: '1570045586111'
alias: Alarm_off_xiaomi_single_button
trigger:
- platform: device
domain: mqtt
device_id: e65fd062009211ebbb18594153c78b9e
type: action
subtype: single
discovery_id: 0x00158d000210ec53 action_single
- platform: device
domain: mqtt
device_id: e65fd062009211ebbb18594153c78b9e
type: action
subtype: double
discovery_id: 0x00158d000210ec53 action_double
condition: []
action:
- data:
message: Alarm off - Via Xiaomi button
service: notify.mobile_app_pixel_5
- data:
code: !secret alarm_pin
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_disarm
mode: single
- id: '1570048484459'
alias: Livingroom_shutter_close-time
trigger:
- at: '22:00'
platform: time
condition: []
action:
- data:
entity_id: cover.livingroom_roller
service: cover.close_cover
mode: single
- id: '1570048669274'
alias: Office_shutter_close-time
trigger:
- at: '22:00'
platform: time
condition:
- condition: state
entity_id: binary_sensor.office_window_sensor_contact
state: 'Off'
action:
- data:
entity_id: cover.office_roller
service: cover.close_cover
mode: single
- id: '1570544659081'
alias: Motion-stairs
trigger:
- entity_id: binary_sensor.stairs_window_motion_occupancy
from: 'off'
platform: state
to: 'on'
condition:
- condition: numeric_state
entity_id: sensor.downstairs_hallway_ceiling_lux_illuminance_lux
attribute: illuminance_lux
below: '4'
- condition: state
entity_id: input_boolean.bedtime
state: 'off'
action:
- data:
entity_id: group.livingroom_group
service: light.turn_on
mode: single
- id: '1570546499913'
alias: Alarm_away_trigger-wolfje-away
trigger:
- entity_id: group.outside_doors
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.motion_sensor_158d0001a92381
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.motion_sensor_158d0001e55662
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
- condition: state
entity_id: binary_sensor.pet_wolfje
state: 'off'
action:
- data:
entity_id: alarm_control_panel.home_alarm
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_trigger
- id: '1570600594310'
alias: Alarm_away_trigger-wolfje-home
trigger:
- entity_id: group.outside_doors
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
- condition: state
entity_id: binary_sensor.pet_wolfje
state: 'on'
action:
- data:
entity_id: alarm_control_panel.home_alarm
entity_id: alarm_control_panel.home_alarm
service: alarm_control_panel.alarm_trigger
- id: '1572170315856'
alias: Alarm_armed_notification
description: ''
trigger:
- entity_id: alarm_control_panel.home_alarm
platform: state
to: armed_away
condition: []
action:
- data:
data:
actions:
- action: URI
title: Disable alarm
uri: /lovelace/14
- action: URI
title: Show camera
uri: /lovelace/7
clickAction: /lovelace/14
importance: high
message: ALARM SET
service: notify.notify
mode: single
- id: '1572304385431'
alias: Lights off sunrise
description: ''
trigger:
- entity_id: sun.sun
for: 00:50:00
from: below_horizon
platform: state
to: above_horizon
condition: []
action:
- data:
entity_id: all
service: light.turn_off
- data:
entity_id: switch.sonoff_basic_relay, switch.tradfri_outlet
service: switch.turn_off
- id: '1573077284376'
alias: Telegram - Warmtedeken status
description: ''
trigger:
- event_data:
text: warmtedeken status
event_type: telegram_text
platform: event
- event_data:
text: Warmte deken status
event_type: telegram_text
platform: event
- event_data:
text: Warmtedeken status
event_type: telegram_text
platform: event
condition: []
action:
- data:
message: Warmtedeken is {{ states('switch.plug_158d00039c1489') }}
service: telegram_bot.send_message
- id: '1573077586824'
alias: Warmtedeken - autoshutoff
description: ''
trigger:
- entity_id: switch.plug_158d00039c1489
for: '1:30:00'
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: switch.plug_158d00039c1489
service: switch.turn_off
- id: '1573465670179'
alias: Telegram - Tesla charging stopped
description: ''
trigger:
- entity_id: switch.eve_charger_switch
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
message: Tesla stopped charging
service: telegram_bot.send_message
- id: '1575391309146'
alias: alarm - door or window unlocked
description: ''
trigger:
- entity_id: group.outside_doors
from: 'off'
platform: state
to: 'on'
- entity_id: group.outside_windows
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.door_window_sensor_158d0003d4bad5
from: 'off'
platform: state
to: 'on'
condition:
- condition: or
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_night
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_away
action:
- data: