forked from White-SinSay/HA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
2208 lines (2160 loc) · 51.8 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: '1581266855781'
alias: auto / Сушилка - включение таймера при включении
description: ''
trigger:
- entity_id: switch.sonoff_1000a22106
platform: state
to: 'on'
from: 'off'
condition: []
action:
- entity_id: timer.3h_stove
service: timer.cancel
- service: timer.start
data:
duration: '3:00:00'
target:
entity_id: timer.3h_stove
initial_state: true
mode: single
- id: '1581917708104'
alias: auto / Сушилка-сброс таймера при выключении
description: ''
trigger:
- entity_id: switch.sonoff_1000a22106
from: 'on'
platform: state
to: 'off'
condition: []
action:
- entity_id: timer.3h_stove
service: timer.finish
initial_state: true
mode: single
- id: '1582864912196'
alias: auto / Свет вкл. в коридоре 17:00-21:00
description: ''
trigger:
- type: opened
platform: device
device_id: d4e211b4854a53542dc2828c9edceaae
entity_id: binary_sensor.koridor_door
domain: binary_sensor
condition:
- type: is_no_motion
condition: device
device_id: d4e211b4854a53542dc2828c9edceaae
entity_id: binary_sensor.koridor_pir1
domain: binary_sensor
- after: '16:30'
before: '21:00'
condition: time
- condition: state
entity_id: switch.sonoff_1000a6865a
state: 'off'
action:
- data: {}
entity_id: switch.sonoff_1000a6865a
service: switch.turn_on
initial_state: true
mode: single
- id: letsencrypt-renewal
alias: service / Lets Encrypt Renewal
trigger:
- at: 00:00:00
platform: time
action:
- data:
addon: core_letsencrypt
service: hassio.addon_restart
initial_state: true
mode: single
- id: '1583817064687'
alias: auto / Сушилка - запуск таймера при перезагрузке HA
description: ''
trigger:
- event: start
platform: homeassistant
condition:
- condition: state
entity_id: switch.sonoff_1000a22106
state: 'on'
action:
- data:
duration: '0'
service: timer.start
target:
entity_id: timer.3h_stove
initial_state: false
mode: single
- id: '1583818532230'
alias: auto / Сушилка - выключение при окончании таймера
description: ''
trigger:
- entity_id: timer.3h_stove
platform: state
to: idle
condition: []
action:
- data: {}
service: switch.turn_off
target:
entity_id:
- switch.sonoff_1000a22106
initial_state: true
mode: single
- id: '1584005800801'
alias: auto / LED лента, вкл при движении 21:00-06:00
description: ''
trigger:
- entity_id: binary_sensor.corridor_motion
from: 'off'
platform: state
to: 'on'
condition:
- condition: and
conditions:
- condition: state
entity_id: light.koridor_light
state: 'off'
- condition: state
entity_id: switch.sonoff_1000a6865a
state: 'off'
- after: '21:00'
before: 06:00
condition: time
action:
- type: turn_on
device_id: d4e211b4854a53542dc2828c9edceaae
entity_id: light.koridor_light
domain: light
brightness_pct: 50
- data: {}
entity_id: input_boolean.led_autostatus
service: input_boolean.turn_on
initial_state: true
mode: single
- id: '1585196712689'
alias: auto / LED лента, выкл при отс. движении 21:00-06:00
description: ''
trigger:
- entity_id: binary_sensor.corridor_motion
for: 00:00:20
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: input_boolean.led_autostatus
state: 'on'
action:
- type: turn_off
device_id: d4e211b4854a53542dc2828c9edceaae
entity_id: light.koridor_light
domain: light
- entity_id: input_boolean.led_autostatus
service: input_boolean.turn_off
initial_state: true
mode: single
- id: '1592585522295'
alias: Telegram / Дом.Открыта дверь
description: ''
trigger:
- entity_id: binary_sensor.koridor_door
for: 00:00:01
from: 'off'
platform: state
to: 'on'
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.note9
state: 'off'
- condition: state
entity_id: binary_sensor.honor9x
state: 'off'
action:
- data:
message: '{{"\U0001F3E0"}}{{"\U0001F6AA"}} Открыта дверь
'
service: notify.telegram_white
- data:
entity_id: camera.e1_pro_home_profile000_mainstream
filename: /media/door.jpg
entity_id: camera.e1_pro_home_profile000_mainstream
service: camera.snapshot
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- data:
data:
photo:
- caption: Дом
file: /media/door.jpg
message: ''
service: notify.telegram_white
initial_state: true
mode: single
- id: '1592738042069'
alias: Telegram / Дом. Открыт щиток
description: ''
trigger:
- entity_id: binary_sensor.pzem_home_ds
for: 00:00:01
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
message: '{{"\U000026A1"}} Открыт электрощит
'
service: notify.telegram_white
initial_state: true
mode: single
- id: '1594742445326'
alias: Telegram / raspberry cpu повышенная температура
description: ''
trigger:
- above: '55'
entity_id: sensor.cpu_temperature
for: 00:05:00
platform: numeric_state
condition: []
action:
- data:
message: '{{"\U0001F321"}} raspberry cpu: {{ states(''sensor.cpu_temperature'')
}} °C
'
service: notify.telegram_white
mode: single
- id: '1597823280511'
alias: service / dfplayer_volume
description: ''
trigger:
- entity_id: input_number.gromkost
platform: state
condition: []
action:
- data_template:
volume: '{{ states(''input_number.gromkost'') | int }}'
service: esphome.koridor_dfplayer_set_volume
mode: single
- id: '1599845943129'
alias: Telegram / Дом. Показания
description: ''
trigger:
- at: 00:01
platform: time
condition:
- condition: state
entity_id: sensor.day
state: '1'
action:
- data:
message: '{{"\U0001F5D3"}}{{"\U0000FE0F"}} {{ states(''sensor.date'') }}
{{"\U000026A1"}} PZ1: {{ states(''sensor.pz1_energy'') }} kWh
{{"\U000026A1"}} PZ2: {{ states(''sensor.pz2_energy'') }} kWh
{{"\U000026A1"}} PZ3: {{ states(''sensor.pz3_energy'') }} kWh
{{"\U000026A1"}} PZ4: {{ states(''sensor.pz4_energy'') }} kWh
{{"\U000026A1"}}{{"\U00002A0A"}}: {{ states(''sensor.pz0_energy'') }} kWh
{{"\U0001F6B0"}}: {{ states(''sensor.total_drink_water_last_monthly_round'')
}} Л
'
service: notify.telegram
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.toggle
target:
entity_id:
- switch.pz_1_reset_energy
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.toggle
target:
entity_id:
- switch.pz_2_reset_energy
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.toggle
target:
entity_id:
- switch.pz_3_reset_energy
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: switch.toggle
target:
entity_id:
- switch.pz_4_reset_energy
mode: single
- id: '1600412592402'
alias: Telegram / Дом.Открыта дверь (Видео)
description: ''
trigger:
- entity_id: binary_sensor.koridor_door
for: 00:00:00
from: 'off'
platform: state
to: 'on'
condition:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.note9
state: 'off'
- condition: state
entity_id: binary_sensor.honor9x
state: 'off'
action:
- data:
filename: /media/camera.mp4
lookback: 15
service: camera.record
target:
entity_id: camera.e1_pro_home_profile001_substream
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: notify.telegram_white
data:
data:
video:
- caption: Дом
file: /media/camera.mp4
message: ''
initial_state: true
mode: single
- id: '1603338972439'
alias: Telegram / Денис. Использование техники
description: ''
trigger:
- platform: time
at: '23:58'
condition: []
action:
- service: notify.telegram_white
data:
message: "{{\"\\U0001F5D3\"}}{{\"\\U0000FE0F\"}} {{ states('sensor.date') }}\
\ {{ states('sensor.time') }} \n{{\"\\U0001F4BB\"}} ПК: {{ states.sensor.denis_pc_on_today_template.state\
\ }}\n{{\"\\U0001F4FA\"}} TV_S: {{ states.sensor.tv_samsung_on_today_template.state\
\ }}\n{{\"\\U0001F4FA\"}} TV_X: {{ states.sensor.tv_xiaomi_on_today_template.state\
\ }}\n"
mode: single
- id: '1604557107666'
alias: Telegram / Обновления
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.hacs
above: '0'
- platform: state
entity_id: update.home_assistant_core_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.esphome_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.file_editor_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.home_assistant_google_drive_backup_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.home_assistant_supervisor_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.let_s_encrypt_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.mosquitto_broker_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.samba_share_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.zigbee2mqtt_update
from: 'off'
to: 'on'
- platform: state
entity_id: update.zigbee2mqtt_edge_update
from: 'off'
to: 'on'
condition: []
action:
- service: notify.telegram_white
data:
message: '{{"\U000026A0"}} Есть обновление: {{state_attr(trigger.entity_id,
''friendly_name'') }}
'
mode: single
- id: '1605143599979'
alias: Telegram / Присутсвие ON
description: ''
trigger:
- entity_id: binary_sensor.white_presence
platform: state
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 10
- entity_id: binary_sensor.taneza_presence
platform: state
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 10
- entity_id: binary_sensor.denis_presence
platform: state
from: 'off'
to: 'on'
for:
hours: 0
minutes: 0
seconds: 10
condition:
- condition: time
before: '23:00'
after: 06:00
action:
- data:
message: '{{"\U0001F4AC"}} {{state_attr(trigger.entity_id, ''telegram'') }}
дома
'
service: notify.telegram_white
initial_state: false
mode: single
- id: '1605443370106'
alias: Telegram / Маша.Ошибка
description: ''
trigger:
- entity_id: vacuum.masha
for: 00:00:05
platform: state
to: error
condition: []
action:
- data:
message: '{{"\U0001F9F9"}} Маша.Ошибка
'
service: notify.telegram_white
- data:
message: '{{"\U0001F9F9"}} .Ошибка
'
service: notify.telegram_taneza
initial_state: true
mode: single
- id: '1605443481602'
alias: Telegram / Маша.Уборка начата
description: ''
trigger:
- entity_id: vacuum.masha
from: Charging
platform: state
to: Cleaning
for: 00:00:05
attribute: status
- platform: state
entity_id: vacuum.masha
attribute: status
from: Charging
to: Zoned cleaning
for: 00:00:05
condition: []
action:
- data:
message: '{{"\U0001F9F9"}} Маша.Уборка начата:{{ states(''input_select.uborka'')
}}
'
service: notify.telegram_white
- data:
message: '{{"\U0001F9F9"}} Маша.Уборка начата: {{ states(''input_select.uborka'')
}}
'
service: notify.telegram_taneza
initial_state: true
mode: single
- id: '1605443556904'
alias: Telegram / Маша.Уборка окончена
description: ''
trigger:
- entity_id: vacuum.masha
from: Returning home
platform: state
to: Charging
attribute: status
condition: []
action:
- data:
message: '{{"\U0001F9F9"}} Маша.Уборка окончена
'
service: notify.telegram_white
- data:
message: '{{"\U0001F9F9"}} Маша.Уборка окончена
'
service: notify.telegram_taneza
- service: input_number.set_value
target:
entity_id: input_number.zone_clean
data:
value: 0
- service: input_select.select_option
target:
entity_id: input_select.uborka
data:
option: Док. станция
initial_state: true
mode: single
- id: '1606438720489'
alias: Telegram / Дом. Закончилась вода в увлажнителе
description: ''
trigger:
- for: 00:00:03
from: 'on'
platform: state
to: 'off'
entity_id: binary_sensor.sonoff_mini_1_water
condition:
- condition: state
entity_id: switch.sonoff_mini_1_relay
state: 'on'
action:
- data:
message: '{{"\U0001F4A7"}} Закончилась вода в увлажнителе
'
service: notify.telegram_white
initial_state: true
mode: single
- id: '1606918759820'
alias: auto / Кухня - led на кухне on
description: ''
trigger:
- platform: state
entity_id: switch.sonoff_10009402e8
from: 'off'
to: 'on'
- platform: numeric_state
entity_id: sensor.pz1_a
above: '1'
for: 00:00:10
condition:
- condition: time
after: '17:00'
before: 06:00
action:
- service: light.turn_on
data:
brightness: 255
entity_id: light.kitchen_led
mode: single
- id: '1606919273792'
alias: auto / Кухня - led на кухне off
description: ''
trigger:
- platform: state
entity_id: switch.sonoff_10009402e8
from: 'on'
to: 'off'
condition: []
action:
- service: light.turn_off
data: {}
entity_id: light.kitchen_led
mode: single
- id: '1607083686881'
alias: auto / Кухня - led на кухне on (mpir)
description: ''
trigger:
- platform: state
entity_id: binary_sensor.kitchen_mpir
from: 'off'
to: 'on'
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
- condition: state
entity_id: switch.sonoff_10009402e8
state: 'off'
- condition: state
entity_id: light.kitchen_led
state: 'off'
action:
- service: light.turn_on
data:
brightness: 255
target:
entity_id: light.kitchen_led
- service: input_boolean.turn_on
data: {}
entity_id: input_boolean.led_kitchen
mode: single
- id: '1607083738367'
alias: auto / Кухня - led на кухне off (mpir)
description: ''
trigger:
- platform: state
entity_id: binary_sensor.kitchen_mpir
from: 'on'
to: 'off'
for:
hours: 0
minutes: 0
seconds: 30
milliseconds: 0
condition:
- condition: state
entity_id: input_boolean.led_kitchen
state: 'on'
action:
- service: light.turn_off
data: {}
entity_id: light.kitchen_led
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.led_kitchen
mode: single
- id: '1607311289245'
alias: auto / Кухня - Вытяжка.Скорость1
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.pz1_a
above: '1'
for: 00:00:05
condition: []
action:
- service: switch.turn_on
data: {}
entity_id: switch.kitchen_fan1
- service: switch.turn_on
data: {}
entity_id: switch.kitchen_light
- service: light.turn_on
data:
data:
brightness: 255
entity_id: light.kitchen_led
mode: single
- id: '1607311336975'
alias: auto / Кухня - Вытяжка.Скорость3
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.pz1_a
above: '20'
for: 00:00:05
condition: []
action:
- service: switch.turn_on
data: {}
entity_id: switch.kitchen_fan3
- service: switch.turn_on
data: {}
entity_id: switch.kitchen_light
- service: light.turn_on
entity_id: light.kitchen_led
data:
data:
brightness: 255
mode: single
- id: '1607311389705'
alias: auto / Кухня - Вытяжка.Скорость0
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.pz1_a
for: 00:00:05
below: '0.5'
condition: []
action:
- service: switch.turn_off
data: {}
entity_id: switch.kitchen_fan1
- service: switch.turn_off
data: {}
entity_id: switch.kitchen_fan2
- service: switch.turn_off
data: {}
entity_id: switch.kitchen_fan3
- service: switch.turn_off
data: {}
entity_id: switch.kitchen_light
mode: single
- id: '1607562473103'
alias: Telegram / Дома нет никто
description: ''
trigger:
- platform: state
to: 'off'
entity_id: binary_sensor.ble
from: 'on'
condition: []
action:
- data:
message: 'Дома нет никто
'
service: notify.telegram_white
mode: single
- id: '1609165612821'
alias: auto / Кухня - Вытяжка.Скорость2
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.pz1_a
above: '15'
for: 00:00:05
condition: []
action:
- service: switch.turn_on
data: {}
entity_id: switch.kitchen_fan2
- service: switch.turn_on
entity_id: switch.kitchen_light
- service: light.turn_on
data:
data:
brightness: 255
entity_id: light.kitchen_led
mode: single
- id: '1610471801837'
alias: auto / Подсветка телевизора ON
description: ''
trigger:
- platform: state
entity_id: binary_sensor.tv_xiaomi
from: 'off'
to: 'on'
- platform: state
entity_id: switch.sonoff_1000cbebc6_1
from: 'on'
to: 'off'
- platform: state
entity_id: switch.sonoff_1000cbebc6_2
from: 'on'
to: 'off'
- platform: state
entity_id: light.bedroom_cupboard
from: 'on'
to: 'off'
condition:
- condition: and
conditions:
- condition: state
entity_id: switch.sonoff_1000cbebc6_1
state: 'off'
- condition: state
entity_id: switch.sonoff_1000cbebc6_2
state: 'off'
- condition: state
entity_id: binary_sensor.tv_xiaomi
state: 'on'
- condition: time
after: '20:30'
before: 07:00
- condition: state
entity_id: light.bedroom_cupboard
state: 'off'
action:
- service: light.turn_on
target:
entity_id:
- light.bedroom_tv
data:
brightness_pct: 40
mode: single
- id: '1610935595454'
alias: auto / Обнаружена протечка воды
description: ''
trigger:
- platform: state
entity_id: binary_sensor.bathroom_water_leak1
from: 'off'
to: 'on'
for: 00:00:03
- platform: state
entity_id: binary_sensor.bathroom_water_leak2
from: 'off'
to: 'on'
for: 00:00:03
- platform: state
entity_id: binary_sensor.bathroom_water_leak3
from: 'off'
to: 'on'
for: 00:00:03
- platform: state
entity_id: binary_sensor.bathroom_water_leak4
from: 'off'
to: 'on'
for: 00:00:03
- platform: state
entity_id: binary_sensor.wardrobe_water_leak1
from: 'off'
to: 'on'
for: 00:00:03
- platform: state
entity_id: binary_sensor.wardrobe_water_leak2
from: 'off'
to: 'on'
for: 00:00:03
- platform: state
entity_id: binary_sensor.wardrobe_water_leak3
from: 'off'
to: 'on'
for: 00:00:03
condition: []
action:
- service: notify.telegram_white
data:
message: '{{"\U0001F4A6"}} Обнаружена протечка воды: {{state_attr(trigger.entity_id,
''telegram'') }}
'
- service: cover.close_cover
data: {}
entity_id: cover.water_boiler
- service: cover.close_cover
data: {}
entity_id: cover.water_cold
- service: cover.close_cover
data: {}
entity_id: cover.water_hot
mode: single
- id: '1610939731118'
alias: auto / Профилактика кранов
description: ''
trigger:
- at: 05:30
platform: time
condition:
- condition: or
conditions:
- condition: state
entity_id: sensor.day
state: '1'
- condition: state
entity_id: sensor.day
state: '14'
action:
- service: cover.close_cover
target:
entity_id:
- cover.bathroom_water_cold
- cover.bathroom_water_hot
- cover.kitchen_water_cold
- cover.kitchen_water_hot
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: cover.open_cover
target:
entity_id:
- cover.bathroom_water_boiler
- cover.kitchen_water_boiler
- delay:
hours: 0
minutes: 0
seconds: 40
milliseconds: 0
- data: {}
service: cover.close_cover
target:
entity_id:
- cover.bathroom_water_boiler
- cover.kitchen_water_boiler
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- service: cover.open_cover
target:
entity_id:
- cover.bathroom_water_cold
- cover.bathroom_water_hot
- cover.kitchen_water_cold
- cover.kitchen_water_hot
- service: notify.telegram_white
data:
message: '{{"\U000026A0"}} Профилактика кранов произведена
'
mode: single
- id: '1613554196213'
alias: Telegram / Декор FS. Доступен
description: ''
trigger:
- entity_id: binary_sensor.dekorfs
for: 00:01:30
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
message: '{{"\U0001F3E2"}}{{"\U00002714"}} Декор FS доступен
'
service: notify.telegram_white
mode: single
- id: '1613554228500'
alias: Telegram / Декор FS. Недоступен
description: ''
trigger:
- entity_id: binary_sensor.dekorfs
for: 00:01:30
platform: state
to: 'off'
from: 'on'
condition: []
action:
- data:
message: '{{"\U0001F3E2"}}{{"\U0000274C"}} Декор FS недоступен
'
service: notify.telegram_white
mode: single
- id: '1616378973963'
alias: auto / Алиса sound 2
description: ''
trigger:
- platform: state
entity_id: binary_sensor.super_light
from: 'on'
to: 'off'
for: 00:01:00
condition:
- condition: time
after: '22:00'
action:
- service: script.yandex_volume_set_2
mode: single
- id: '1616379047324'
alias: auto / Алиса sound 6
description: ''
trigger:
- platform: time
at: 09:30
condition: []
action:
- service: script.yandex_volume_set_6
mode: single
- id: '1616688666749'
alias: Telegram / Test
description: ''
trigger:
- platform: state
entity_id: binary_sensor.kitchen_button_fan1
from: 'off'
to: 'on'
- platform: state