-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
4107 lines (4106 loc) · 111 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: letsencrypt-renewal
alias: Let's Encrypt Renewal
trigger:
- platform: time
at: 00:00:00
action:
- service: hassio.addon_restart
data:
addon: core_letsencrypt
- id: Hass Startup Notification
alias: Home Assistant Startup
trigger:
- event: start
platform: homeassistant
action:
- data: {}
service: script.1585512199381
- data:
data:
method: speak
type: announce
message: Home Assistant Now <emphasis level="medium">Online!</emphasis>. {{
states('sensor.start_time')}} seconds this time!
service: notify.alexa_media_office
- data:
message: Home Assistant back online! It took {{ states('sensor.start_time')}}s
service: notify.thanasis_tel
mode: single
- alias: Mark person as just arrived
trigger:
- platform: state
entity_id: device_tracker.makis
from: not_home
to: home
- platform: state
entity_id: device_tracker.pavlina
from: not_home
to: home
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'device_tracker.makis' %}\n input_select.makis_status_dropdown\n\
{% else %}\n input_select.pavlina_status_dropdown\n{% endif %}\n"
option: "{% if trigger.entity_id == 'device_tracker.makis' %}\n {% if states.input_select.makis_status_dropdown.state\
\ == 'Just Left' %}\n Home\n {% else %}\n Just Arrived\n {% endif\
\ %}\n{% else %}\n {% if states.input_select.pavlina_status_dropdown.state\
\ == 'Just Left' %}\n Home\n {% else %}\n Just Arrived\n {% endif\
\ %}\n{% endif %}\n"
id: 5c84630f189c42a9aaa6508f19fc58ac
- alias: Mark person as home
trigger:
- platform: state
entity_id: input_select.makis_status_dropdown
to: Just Arrived
for:
minutes: 10
- platform: state
entity_id: input_select.pavlina_status_dropdown
to: Just Arrived
for:
minutes: 10
- platform: state
entity_id: input_select.makis_status_dropdown
from: Just Left
to: Just Arrived
- platform: state
entity_id: input_select.pavlina_status_dropdown
from: Just Left
to: Just Arrived
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.makis_status_dropdown'\
\ %}\n input_select.makis_status_dropdown\n{% else %}\n input_select.pavlina_status_dropdown\n\
{% endif %}\n"
option: Home
id: 3c8a45540f4744baa70b9830aff14248
- alias: Mark person as just left
trigger:
- platform: state
entity_id: device_tracker.makis
from: home
to: not_home
- platform: state
entity_id: device_tracker.pavlina
from: home
to: not_home
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'device_tracker.makis' %}\n input_select.makis_status_dropdown\n\
{% else %}\n input_select.pavlina_status_dropdown\n{% endif %}\n"
option: Just Left
id: 226ad26483884189a06fb4f45c5b8d64
- alias: Mark person as away
trigger:
- platform: state
entity_id: input_select.makis_status_dropdown
to: Just Left
for:
minutes: 10
- platform: state
entity_id: input_select.pavlina_status_dropdown
to: Just Left
for:
minutes: 10
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.makis_status_dropdown'\
\ %}\n input_select.makis_status_dropdown\n{% else %}\n input_select.pavlina_status_dropdown\n\
{% endif %}\n"
option: Away
id: 52253da03a2f4791a94d2006612bdd3c
- alias: Mark person as extended away
trigger:
- platform: state
entity_id: input_select.makis_status_dropdown
to: Away
for:
hours: 24
- platform: state
entity_id: input_select.pavlina_status_dropdown
to: Away
for:
hours: 24
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.makis_status_dropdown'\
\ %}\n input_select.makis_status_dropdown\n{% else %}\n input_select.pavlina_status_dropdown\n\
{% endif %}\n"
option: Extended Away
id: d39e855dc76b443f8db2f8a6d9404266
- alias: Mark person as just arrived
trigger:
- platform: state
entity_id: device_tracker.sofia
from: not_home
to: home
- platform: state
entity_id: device_tracker.thanasis
from: not_home
to: home
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'device_tracker.sofia' %}\n input_select.sofia_status_dropdown\n\
{% else %}\n input_select.thanasis_status_dropdown\n{% endif %}\n"
option: "{% if trigger.entity_id == 'device_tracker.sofia' %}\n {% if states.input_select.sofia_status_dropdown.state\
\ == 'Just Left' %}\n Home\n {% else %}\n Just Arrived\n {% endif\
\ %}\n{% else %}\n {% if states.input_select.thanasis_status_dropdown.state\
\ == 'Just Left' %}\n Home\n {% else %}\n Just Arrived\n {% endif\
\ %}\n{% endif %}\n"
id: fd45e728b15241bd807e8701ba9dcd83
- alias: Mark person as home
trigger:
- platform: state
entity_id: input_select.sofia_status_dropdown
to: Just Arrived
for:
minutes: 10
- platform: state
entity_id: input_select.thanasis_status_dropdown
to: Just Arrived
for:
minutes: 10
- platform: state
entity_id: input_select.sofia_status_dropdown
from: Just Left
to: Just Arrived
- platform: state
entity_id: input_select.thanasis_status_dropdown
from: Just Left
to: Just Arrived
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.sofia_status_dropdown'\
\ %}\n input_select.sofia_status_dropdown\n{% else %}\n input_select.thanasis_status_dropdown\n\
{% endif %}\n"
option: Home
id: f6191280b00549e6a785275c1779f99f
- alias: Mark person as just left
trigger:
- platform: state
entity_id: device_tracker.sofia
from: home
to: not_home
- platform: state
entity_id: device_tracker.thanasis
from: home
to: not_home
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'device_tracker.sofia' %}\n input_select.sofia_status_dropdown\n\
{% else %}\n input_select.thanasis_status_dropdown\n{% endif %}\n"
option: Just Left
id: 37630c73083b4e5995f79cb28312f254
- alias: Mark person as away
trigger:
- platform: state
entity_id: input_select.sofia_status_dropdown
to: Just Left
for:
minutes: 10
- platform: state
entity_id: input_select.thanasis_status_dropdown
to: Just Left
for:
minutes: 10
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.sofia_status_dropdown'\
\ %}\n input_select.sofia_status_dropdown\n{% else %}\n input_select.thanasis_status_dropdown\n\
{% endif %}\n"
option: Away
id: 907f91e782f041b8b6df2603e011ab8b
- alias: Mark person as extended away
trigger:
- platform: state
entity_id: input_select.sofia_status_dropdown
to: Away
for:
hours: 24
- platform: state
entity_id: input_select.thanasis_status_dropdown
to: Away
for:
hours: 24
action:
- service: input_select.select_option
data_template:
entity_id: "{% if trigger.entity_id == 'input_select.sofia_status_dropdown'\
\ %}\n input_select.sofia_status_dropdown\n{% else %}\n input_select.thanasis_status_dropdown\n\
{% endif %}\n"
option: Extended Away
id: 8d369f77a7d94e2e89f2fd25fb3d9a71
- id: '1568302203385'
alias: Kitchen Light after 12AM OFF
trigger:
- type: no_motion
platform: device
device_id: 88df64bca71d4222819a30601669916b
entity_id: binary_sensor.kouzina_pir
domain: binary_sensor
for:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
condition:
- after: 00:01:00
before: 06:30:00
condition: time
action:
- data:
entity_id: light.kouzina
transition: 20
service: light.turn_off
entity_id: light.kouzina
mode: single
- id: 5c5c3714c9cc4485817bb7430767c342
alias: Couch Lamp On DarkSky
trigger:
- event: sunset
offset: -00:50:00
platform: sun
- event: sunset
offset: -00:20:00
platform: sun
condition:
- condition: template
value_template: "{{ trigger.offset.total_seconds()/60 == -20 or\n state_attr('weather.dark_sky',\
\ 'forecast')[1].condition\n in ('cloudy', 'partlycloudy', 'rainy') }}\n"
- condition: state
entity_id: light.saloni
state: 'off'
action:
- data:
brightness_pct: 60
entity_id: light.saloni
hs_color:
- 180
- 61
transition: 600
service: light.turn_on
- id: 30a39663e360493689ba715c36e4a138
alias: Couch Lamp Off
trigger:
- type: motion
platform: device
device_id: 47fbca00f00c0224ab33c14d3aa9dbf0
entity_id: binary_sensor.presence_30
domain: binary_sensor
condition:
- condition: and
conditions:
- condition: time
after: 05:00:00
before: 09:00:00
- type: is_illuminance
condition: device
device_id: 91b241e6a78f4ff0a6d4ee61854f3bd4
entity_id: sensor.lightlevel
domain: sensor
above: 130
- condition: device
type: is_on
device_id: 333b79774fe544778453de2b7c3e8874
entity_id: light.saloni
domain: light
action:
- data:
transition: 60
service: light.turn_off
target:
entity_id: light.saloni
mode: single
- id: 995b4b2be95a4f3081b3db5c0cbe115e
alias: Couch Lamp Overnight
trigger:
- at: '23:00:00'
platform: time
condition:
- condition: state
entity_id: light.saloni
state: 'on'
action:
- data:
brightness_pct: 5
color_temp: 320
transition: 120
service: light.turn_on
entity_id: light.saloni
mode: single
- alias: TelegramTEST
trigger:
- platform: state
entity_id: light.aristera
to: 'on'
action:
- service: camera.snapshot
data:
entity_id: camera.eisodos
filename: /tmp/eisodos_snap.jpg
- delay: 5
- service: telegram_bot.send_photo
data_template:
file: /tmp/eisodos_snap.jpg
caption: Κουδούνι!
target:
- 627190871
message: Κάποιος είναι στην πόρτα
id: fb66664d79ad4a108c0638eec89632e0
- id: '1569095965846'
alias: Κουδούνι Ήχος Hassio Επαναφορά
description: Turns doorbell chime off otherwise rings forever
trigger:
- device_id: 01eefe5c733649abbac1a16d1fbfd7cc
domain: switch
entity_id: switch.koudouni_sound
platform: device
type: turned_on
condition: []
action:
- delay: '1'
- device_id: 01eefe5c733649abbac1a16d1fbfd7cc
domain: switch
entity_id: switch.koudouni_sound
type: turn_off
- id: '1569667797410'
alias: RFID Tag Light
trigger:
- entity_id: sensor.rfid_user
platform: state
to: ATH.ENA TICKET
condition: []
action:
- device_id: c1c3312965a6496591f337d8566b03db
domain: light
entity_id: light.ypnodomatio
type: toggle
- id: '1569705125294'
alias: 'RFID Tag '
trigger:
- entity_id: sensor.rfid_user
platform: state
to: Pavlina
condition: []
action:
- device_id: a6eda4e0bc814a6f83f3f057edf0a150
domain: switch
entity_id: switch.sprinkler_zone_5
type: toggle
- id: '1570127086658'
alias: Eksoporta switch to off
trigger:
- entity_id: switch.exoporta
from: 'off'
platform: state
to: 'on'
condition: []
action:
- delay: '1'
- alias: ''
data:
entity_id: switch.exoporta
service: switch.turn_off
- id: '1570816592068'
alias: Couch Lamp Brightness Before 11PM
trigger:
- type: motion
platform: device
device_id: 0a4ad8ee27b20ead13629217e717b1e9
entity_id: binary_sensor.saloni_pir
domain: binary_sensor
- type: motion
platform: device
device_id: 47fbca00f00c0224ab33c14d3aa9dbf0
entity_id: binary_sensor.presence_30
domain: binary_sensor
condition:
- condition: and
conditions:
- condition: time
before: '23:00:00'
after: '15:00:00'
- condition: device
type: is_on
device_id: 333b79774fe544778453de2b7c3e8874
entity_id: light.saloni
domain: light
action:
- data:
brightness_pct: 100
color_temp: 320
entity_id: light.saloni
transition: 5
service: light.turn_on
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- data:
brightness_pct: 50
color_temp: 320
transition: 60
service: light.turn_on
target:
entity_id: light.saloni
mode: restart
- id: '1570820685328'
alias: Couch Lamp Brightness After 11PM
trigger:
- type: motion
platform: device
device_id: 0a4ad8ee27b20ead13629217e717b1e9
entity_id: binary_sensor.saloni_pir
domain: binary_sensor
- type: motion
platform: device
device_id: 47fbca00f00c0224ab33c14d3aa9dbf0
entity_id: binary_sensor.presence_30
domain: binary_sensor
condition:
- condition: or
conditions:
- condition: time
after: '23:01:00'
- condition: time
before: 06:00:00
- condition: device
type: is_on
device_id: 333b79774fe544778453de2b7c3e8874
entity_id: light.saloni
domain: light
action:
- data:
brightness_pct: 30
color_temp: 320
transition: 15
service: light.turn_on
target:
entity_id: light.saloni
- delay:
hours: 0
minutes: 2
seconds: 0
milliseconds: 0
- data:
brightness_pct: 5
color_temp: 320
transition: 60
service: light.turn_on
target:
entity_id: light.saloni
mode: restart
- id: '1571083900537'
alias: Kitchen Light before 12AM ON
description: ''
trigger:
- entity_id: binary_sensor.kouzina_pir
from: 'off'
platform: state
to: 'on'
condition:
- after: '16:00:00'
before: '23:59:59'
condition: time
action:
- alias: ''
data:
brightness_pct: 100
color_temp: 285
entity_id: light.kouzina
transition: 5
service: light.turn_on
- id: '1571084690672'
alias: Kitchen Light after 12AM ON
description: ''
trigger:
- entity_id: binary_sensor.kouzina_pir
from: 'off'
platform: state
to: 'on'
condition:
- after: 00:01:00
condition: time
before: 06:00:00
action:
- data:
brightness_pct: 2
transition: 5
service: light.turn_on
target:
entity_id: light.kouzina
mode: restart
- id: '1571153150471'
alias: Kitchen Light before 12AM OFF
description: ''
trigger:
- entity_id: binary_sensor.kouzina_pir
for:
minutes: 480
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: light.kouzina
state: 'on'
- after: '16:00:00'
before: '23:59:59'
condition: time
action:
- data:
brightness_pct: 50
color_temp: 285
entity_id: light.kouzina
transition: 30
service: light.turn_on
- id: '1571175269778'
alias: Υπόγειο Κίνηση
description: ''
trigger:
- entity_id: binary_sensor.koudoni_ttgocam_pir
from: 'off'
platform: state
to: 'on'
condition: []
action:
- delay: 00:00:05
- data:
data:
actions:
- action: URI
title: Δες ζωντανα
uri: /lovelace/basement
color: red
image: /api/camera_proxy/camera.koudoni_ttgocam_camera
tag: basement
message: Κίνηση στο υπόγειο 🚶
title: Υπόγειο
service: notify.mobile_app_thanasis
- id: '1571595278101'
alias: Doorbell Light Flash
description: ''
trigger:
- entity_id: binary_sensor.inside_button
from: 'off'
platform: state
to: 'on'
- entity_id: binary_sensor.outside_button
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
brightness: 100
cycles: 1
entity_id:
- light.saloni
mode: breathe
service: lifx.effect_pulse
- data:
media_content_id: amzn_sfx_doorbell_chime_02
media_content_type: sound
entity_id: media_player.office
service: media_player.play_media
- data:
media_content_id: amzn_sfx_doorbell_chime_02
media_content_type: sound
entity_id: media_player.home_echo
service: media_player.play_media
- type: flash
device_id: 270563f49c8e4495ac344958479f3da6
entity_id: light.kouzina
domain: light
mode: single
- id: '1572015675277'
alias: Camera Eisodos Snap
description: ''
trigger:
- entity_id: binary_sensor.koudoni_ttgocam_button
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: camera.eisodos_hd_mjpeg
filename: /tmp/eisodos_outside_{{ now ().year }}_{{ now ().month }}_{{ now ().day
}}_{{ now ().hour }}_{{ now ().minute }}.jpg
service: camera.snapshot
- delay: 00:00:03
- data:
caption: Κουδούνι!
file: /tmp/eisodos_outside_{{ now ().year }}_{{ now ().month }}_{{ now ().day
}}_{{ now ().hour }}_{{ now ().minute }}.jpg
target:
- 627190871
service: telegram_bot.send_photo
mode: single
- id: '1572868845179'
alias: Κουδούνι Eisodos Cam
description: ''
trigger:
- entity_id: binary_sensor.outside_button
from: 'off'
platform: state
to: 'on'
condition: []
action:
- service: camera.snapshot
data:
filename: /media/eisodos.jpg
target:
entity_id: camera.eisodos_hd_mjpeg
- data:
data:
actions:
- action: URI
title: Δες ζωντανα
uri: /lovelace/eisodos-cam
color: red
image: /media/media/eisodos.jpg
tag: motion
message: 🔔 Κουδούνι 🔔
title: Κίνηση στην πόρτα 🚪🚶
service: notify.modile_app_family
- service: notify.android_tv
data:
data:
duration: 30
transparency: 25%
fontsize: large
file:
path: /media/eisodos.jpg
title: 🔔 Κουδούνι 🔔
message: Κίνηση στην πόρτα 🚪🚶
- service: camera.play_stream
target:
entity_id: camera.eisodos
data:
media_player: media_player.kouzina_display
- delay: 00:02:00
- service: media_player.turn_off
data: {}
entity_id: media_player.kouzina_display
mode: single
- id: '1577292394407'
alias: Lights ON No One Home
description: ''
trigger:
- entity_id: group.family_status
for: 00:45:00
from: home
platform: state
to: not_home
- below: '200'
entity_id: sensor.lightlevel
platform: numeric_state
condition:
- below: '200'
condition: numeric_state
entity_id: sensor.lightlevel
- before: '22:00:00'
condition: time
after: '15:00:00'
- condition: state
entity_id: group.family_status
state: not_home
action:
- type: turn_on
device_id: 333b79774fe544778453de2b7c3e8874
entity_id: light.saloni
domain: light
brightness_pct: 25
- type: turn_on
device_id: 270563f49c8e4495ac344958479f3da6
entity_id: light.kouzina
domain: light
brightness_pct: 50
- service: automation.turn_on
target:
entity_id: group.couch_blue
mode: single
- id: '1578773460358'
alias: Humidity below 62%
description: 'Turn dehumidifier off if humidity is below 62% for more than 10mins '
trigger:
- below: '62'
entity_id: sensor.humidity_bathroom
for: 00:10:00
platform: numeric_state
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: humidifier.eva_ii
state: Dry
attribute: mode
sequence:
- delay: 01:00:00
- service: humidifier.set_mode
target:
entity_id: humidifier.eva_ii
data:
mode: Smart
- service: humidifier.turn_off
data: {}
target:
entity_id: humidifier.eva_ii
default:
- service: humidifier.turn_off
data: {}
target:
entity_id: humidifier.eva_ii
mode: single
- id: '1578393488643'
alias: Humidity above 75%
description: Turn on dehumidifier if humidity is above 75% for more than 5 mins
trigger:
- entity_id: sensor.humidity_bathroom
for: 00:05:00
platform: numeric_state
above: '75'
- platform: numeric_state
entity_id: sensor.humidity_bathroom
above: '85'
condition: []
action:
- service: humidifier.turn_on
data: {}
target:
entity_id: humidifier.eva_ii
- service: humidifier.set_mode
target:
entity_id: humidifier.eva_ii
data:
mode: Smart
mode: single
- id: telegram-start
alias: Telegram Start Command
trigger:
platform: event
event_type: telegram_command
event_data:
command: /start
action:
- service: telegram_bot.send_message
data_template:
target: '{{ trigger.event.data.user_id }}'
message: "{{ [ \"Γεια σας\", \"Χαίρετε\", \"Μάλιστα!\", \"Α, πάλι εδώ; Ξανά!\"\
\ ] | random }} \n"
keyboard:
- /start, /epiloges
- id: telegram-control-pannel-start
alias: Telegram - Control Pannel
trigger:
platform: event
event_type: telegram_command
event_data:
command: /epiloges
action:
- service: telegram_bot.send_message
data_template:
target: '{{ trigger.event.data.user_id }}'
message: "{{ [ \"Επέλεξε ένα\", \"Πίνακας Ελέγχου\", \"Μάλιστα!\", \"Τι θες\
\ να κάνω;\", \"Ώρα να επιλέξεις\" ] | random }} \n"
inline_keyboard:
- Αφυγραντήρας ON:/dehumi_on, Αφυγραντήρας OFF:/dehumi_off
- Όλα τα φώτα OFF:/all_lights_off, Όλα τα φώτα ON:/all_lights_on
- Τοποθεσία Mom:/pavlina_status
- alias: Telegram - Device Tracker
trigger:
platform: event
event_type: telegram_callback
event_data:
data: /pavlina_status
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
show_alert: true
message: '{{states.device_tracker.pavlina.name}} βρίσκετε {% if is_state(''{{
states.device_tracker.pavlina.state }}'', ''home'') %} σπίτι! {% else %} εκτός
σπιτιού! {% endif %}
'
id: 5eff56e545a44e6e809f6d87111b7113
- alias: Telegram - Dehumidifier ON
trigger:
platform: event
event_type: telegram_callback
event_data:
data: /dehumi_on
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: Αφυγραντήρας ON
- service: climate.set_hvac_mode
data:
entity_id: climate.midea_dehumi_18691697727728
hvac_mode: fan_only
id: 6da49b7051c94123a50507cce11b2baf
- alias: Telegram - Dehumidifier OFF
trigger:
platform: event
event_type: telegram_callback
event_data:
data: /dehumi_off
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: Αφυγραντήρας OFF
- service: climate.set_hvac_mode
data:
entity_id: climate.midea_dehumi_18691697727728
hvac_mode: false
id: af026543ef57492791c03f0e1ba74f1a
- alias: Telegram - All Lights OFF
trigger:
platform: event
event_type: telegram_callback
event_data:
data: /all_lights_off
action:
- service: telegram_bot.answer_callback_query
data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: Έσβησα όλα τα φώτα στο σπίτι!
- service: homeassistant.turn_off
data:
entity_id: group.all_lights
id: 345ea3ae8de3460683de441ea13f5057
- id: 107881d50a7f42228a0f0d4263b42df1
alias: Telegram - All Lights ON
trigger:
- event_data:
data: /all_lights_on
event_type: telegram_callback
platform: event
action:
- data_template:
callback_query_id: '{{ trigger.event.data.id }}'
message: Άναψα όλα τα φώτα στο σπίτι!
service: telegram_bot.answer_callback_query
- data:
brightness: 60
entity_id:
- light.kouzina
- light.saloni
service: light.turn_on
- id: '1579290114579'
alias: Thanasis Bedroom Light ON
description: ''
trigger:
- entity_id: binary_sensor.dwmatio_thanasis_pir
from: 'off'
platform: state
to: 'on'
condition:
- after: sunset
after_offset: -01:00:00
condition: sun
action:
- data:
brightness_pct: 100
entity_id: light.ypnodomatio
transition: 10
service: light.turn_on
- id: '1579290239707'
alias: Thanasis Bedroom Light Dim
description: ''
trigger:
- entity_id: binary_sensor.dwmatio_thanasis_pir
for:
minutes: 300
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
brightness_pct: 30
transition: 120
entity_id: light.ypnodomatio
service: light.turn_on
mode: single
- id: '1581168939811'
alias: Koudouni Unavailable
description: ''
trigger:
- entity_id: binary_sensor.outside_button
platform: state
to: unavailable
condition: []
action:
- data:
message: Kουδούνια unavailable
service: notify.thanasis_tel
- id: '3541385218'
alias: Pir Θανάση Unavailable
description: ''
trigger:
- entity_id: binary_sensor.dwmatio_thanasis_pir
platform: state
to: unavailable
condition: []
action:
- data:
disable_notification: true
message: PIR Θανάσης unavailable
target: 280755619
service: telegram_bot.send_message
- id: '9841638219'
alias: Pir Κουζίνα Unavailable
description: ''
trigger:
- entity_id: binary_sensor.kouzina_pir
platform: state
to: unavailable
condition: []
action:
- data:
disable_notification: true
message: PIR Κουζίνας unavailable
target: 627190871
service: telegram_bot.send_message
- id: '7412589632585'
alias: Pir3 Unavailable
description: ''
trigger:
- entity_id: binary_sensor.saloni_pir
platform: state
to: unavailable
condition: []
action:
- data:
message: PIR Σαλονιού unavailable
service: notify.thanasis_tel
- id: '1581550004246'
alias: Κουρτινόξυλο ΟΝ
description: ''
trigger:
- entity_id: binary_sensor.koudoni_ttgocam_pir
from: 'off'
platform: state
to: 'on'
condition:
- condition: state