-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathautomations.yaml
executable file
·831 lines (821 loc) · 21.6 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
- id: letsencrypt-renewal
alias: "Let's Encrypt Renewal"
initial_state: 'on'
hide_entity: true
trigger:
- platform: time
at: '00:00:00'
action:
- service: hassio.addon_restart
data:
addon: core_letsencrypt
- id: '6875643534975'
alias: Start HomeKit
initial_state: 'on'
hide_entity: true
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:01
- service: homekit.start
- id: fix-sonoff
alias: Power state on HA start-up
initial_state: 'on'
hide_entity: true
trigger:
platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: cmnd/garage/power1
payload: ''
- service: mqtt.publish
data:
topic: cmnd/garage/power2
payload: ''
- service: mqtt.publish
data:
topic: cmnd/garage/power3
payload: ''
- service: mqtt.publish
data:
topic: cmnd/garage/power4
payload: ''
- id: notify_ingresso_apertura
alias: '[Notifica] Notifica Apertura Ingresso'
trigger:
- entity_id: binary_sensor.door_window_sensor_158d000112031b
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: device_tracker.ilendrius
state: not_home
action:
- data:
message: Porta aperta
title: Ingresso
service: notify.ios_ilendrius
initial_state: 'on'
hide_entity: true
- id: notify_ingresso_chiusura
alias: '[Notifica] Notifica Chiusura Ingresso'
trigger:
- entity_id: binary_sensor.door_window_sensor_158d000112031b
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: device_tracker.ilendrius
state: not_home
action:
- data:
message: Porta chiusa
title: Ingresso
service: notify.ios_ilendrius
initial_state: 'on'
hide_entity: true
- id: comodino_andrea_on_off
alias: '[Stanza da letto] Comodino Andrea On/Off'
initial_state: 'on'
trigger:
- event_data:
click_type: single
entity_id: binary_sensor.switch_158d00012641b4
event_type: click
platform: event
action:
- data:
entity_id: light.comodino_andrea
entity_id: light.comodino_andrea
service: light.toggle
- id: comodino_andrea_bright
alias: '[Stanza da letto] Comodino Andrea Bright'
initial_state: 'on'
trigger:
- event_data:
click_type: long_click_press
entity_id: binary_sensor.switch_158d00012641b4
event_type: click
platform: event
action:
- data: {}
data_template:
brightness: '{% set suggested = states.light.comodino_andrea.attributes.brightness|int
+ 31 %} {% if suggested < 200 %} {{ suggested }} {% else %} 200 {% endif %}
'
entity_id: light.comodino_andrea
service: light.turn_on
- id: comodino_andrea_dim
alias: '[Stanza da letto] Comodino Andrea Dim'
initial_state: 'on'
trigger:
platform: event
event_type: click
event_data:
click_type: double
entity_id: binary_sensor.switch_158d00012641b4
action:
service: light.turn_on
entity_id: light.comodino_andrea
data_template:
brightness: '{% set suggested = states.light.comodino_andrea.attributes.brightness|int
- 50 %} {% if suggested > 25 %} {{ suggested }} {% else %} 25 {% endif %}
'
- id: comodino_eleonora_on_off
alias: '[Stanza da letto] Comodino Eleonora On/Off'
initial_state: 'on'
trigger:
platform: event
event_type: click
event_data:
entity_id: binary_sensor.switch_158d00013ecb24
click_type: single
action:
service: light.toggle
entity_id: light.comodino_ele
- id: comodino_eleonora_bright
alias: '[Stanza da letto] Comodino Eleonora Bright'
initial_state: 'on'
trigger:
platform: event
event_type: click
event_data:
click_type: long_click_press
entity_id: binary_sensor.switch_158d00013ecb24
action:
service: light.turn_on
entity_id: light.comodino_ele
data_template:
brightness: '{% set suggested = states.light.comodino_ele.attributes.brightness|int
+ 31 %} {% if suggested < 200 %} {{ suggested }} {% else %} 200 {% endif %}
'
- id: comodino_eleonora_dim
alias: '[Stanza da letto] Comodino Eleonora Dim'
initial_state: 'on'
trigger:
platform: event
event_type: click
event_data:
click_type: double
entity_id: binary_sensor.switch_158d00013ecb24
action:
service: light.turn_on
entity_id: light.comodino_ele
data_template:
brightness: '{% set suggested = states.light.comodino_ele.attributes.brightness|int
- 50 %} {% if suggested > 25 %} {{ suggested }} {% else %} 25 {% endif %}
'
- id: accendi_neon_vespa_garage_auto
alias: '[Garage] Neon Vespa On Saracinesca aperta'
trigger:
- entity_id: cover.saracinesca
from: closed
platform: state
to: open
condition:
- after: '18:00'
before: '12:00'
condition: time
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'on'
action:
- data:
entity_id: switch.sonoff_garage_3
service: switch.turn_on
initial_state: 'on'
- id: accendi_neon_interni_garage_auto
alias: '[Garage] Neon Interni On Saracinesca aperta'
trigger:
- entity_id: cover.saracinesca
from: closed
platform: state
to: open
condition:
- after: '18:00'
before: '12:00'
condition: time
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'off'
action:
- data:
entity_id: switch.sonoff_garage_1
service: switch.turn_on
initial_state: 'on'
- id: spegni_garage_auto
alias: '[Garage] Timer Off (1 minuto)'
trigger:
- entity_id: binary_sensor.motion_sensor_158d00010f7fda
for:
seconds: 60
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: binary_sensor.door_window_sensor_158d0001fd6296
state: 'off'
action:
- data:
entity_id: switch.sonoff_garage_1
service: switch.turn_off
- data:
entity_id: switch.sonoff_garage_2
service: switch.turn_off
- data:
entity_id: switch.sonoff_garage_3
service: switch.turn_off
initial_state: 'on'
- id: notifica_garage
alias: '[Notifica] Notifica Movimento Garage'
initial_state: 'on'
hide_entity: true
trigger:
- entity_id: binary_sensor.motion_sensor_158d00010f7fda
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: device_tracker.ilendrius
state: not_home
action:
- data:
title: Garage
message: Movimento rilevato in garage
service: notify.ios_ilendrius
- id: notify_garage_chiusura
alias: '[Notifica] Notifica Chiusura Garage'
initial_state: 'on'
hide_entity: true
trigger:
- entity_id: binary_sensor.door_window_sensor_158d0001fd6296
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: device_tracker.ilendrius
state: not_home
action:
- data:
title: Garage
message: Saracinesca chiusa
service: notify.ios_ilendrius
- id: dispensa_on
alias: '[Dispenza] Lampadario On'
initial_state: 'on'
trigger:
- entity_id: binary_sensor.door_window_sensor_158d00013fede0
from: 'off'
platform: state
to: 'on'
action:
- data:
entity_id: light.lampadario_dispensa
service: light.turn_on
- id: dispensa_off
alias: '[Dispenza] Lampadario Off'
initial_state: 'on'
trigger:
- entity_id: binary_sensor.door_window_sensor_158d00013fede0
from: 'on'
platform: state
to: 'off'
action:
- entity_id: light.lampadario_dispensa
service: light.turn_off
- id: dispensa_on_off
alias: '[Dispenza] On/Off con Sensore Porta'
initial_state: 'on'
trigger:
- event_data:
click_type: single
entity_id: binary_sensor.switch_158d00013f84db
event_type: click
platform: event
action:
- data:
entity_id: light.lampadario_dispensa
entity_id: light.lampadario_dispensa
service: light.toggle
- id: accendi_balcone
alias: '[Balcone Interno] Accendi Lampione'
initial_state: 'on'
hide_entity: true
trigger:
- entity_id: binary_sensor.door_window_sensor_158d000201980a
from: 'off'
platform: state
to: 'on'
action:
- data:
brightness: 150
entity_id: light.balcone_interno
service: light.turn_on
condition:
condition: or
conditions:
- condition: sun
after: sunset
- condition: sun
before: sunrise
- id: spegni_balcone
alias: '[Balcone Interno] Spegni Lampione dopo 10 secondi'
initial_state: 'on'
hide_entity: true
trigger:
- entity_id: binary_sensor.door_window_sensor_158d000201980a
for:
seconds: 10
from: 'on'
platform: state
to: 'off'
action:
- data:
entity_id: light.balcone_interno
service: light.turn_off
- id: trigger-away
alias: '[Allarme] Scatta allarme quando attivo A Casa'
trigger:
- platform: state
entity_id:
# Movimento Ingresso
- binary_sensor.motion_sensor_158d0001e5764c
# Movimento Sala da Pranzo
- binary_sensor.motion_sensor_158d0001e5413e
# Movimento Corridoio
- binary_sensor.motion_sensor_158d0001e514df
# Movimento Camera Armadi
- binary_sensor.motion_sensor_158d0001e51489
# Movimento Soggiorno
- binary_sensor.motion_sensor_158d0001e513a8
# Movimento Cucina
- binary_sensor.motion_sensor_158d0001e515b8
# Movimento Camera da Letto
- binary_sensor.motion_sensor_158d0001e5156a
# Movimento Garage
- binary_sensor.motion_sensor_158d00010f7fda
# Sensore Porta Ingresso
- binary_sensor.door_window_sensor_158d000112031b
# Sensore Finestra 1 Sala da Pranzo
- binary_sensor.door_window_sensor_158d0001b97da6
# Sensore Finestra 2 Sala da Pranzo
- binary_sensor.door_window_sensor_158d0001b7bce7
# Sensore Finestra Stanza Armadio
- binary_sensor.door_window_sensor_158d0001b95954
# Finestra Cucina
- binary_sensor.door_window_sensor_158d000201980a
# Sensore Finestra Camera da Letto
- binary_sensor.door_window_sensor_158d0001de6e16
# Sensore Finestra a Ribalta Bagno
- binary_sensor.door_window_sensor_158d0001e44493
# Sensore Finestra a ribalta Bagnetto
- binary_sensor.door_window_sensor_158d0001b95bf4
# Sensore Porta Dispensa
- binary_sensor.door_window_sensor_158d00013fede0
# Finestra Soggiorno
- binary_sensor.door_window_sensor_158d0001e44446
to: 'on'
condition:
- condition: state
entity_id: alarm_control_panel.allarme
state: armed_away
action:
service: notify.ios_ilendrius
data_template:
title: Allarme
message: Scattato!
- id: trigger-home
alias: '[Allarme] Scatta allarme quando attivo A Casa'
trigger:
- platform: state
entity_id:
# Sensore Porta Ingresso
- binary_sensor.door_window_sensor_158d000112031b
# Sensore Finestra Stanza Armadio
- binary_sensor.door_window_sensor_158d0001b95954
# Finestra Cucina
- binary_sensor.door_window_sensor_158d000201980a
# Sensore Finestra a ribalta Bagnetto
- binary_sensor.door_window_sensor_158d0001b95bf4
to: 'on'
condition:
- condition: state
entity_id: alarm_control_panel.allarme
state: armed_home
action:
- service: xiaomi_aqara.play_ringtone
data:
gw_mac: F0B429CBEF3F
ringtone_id: 2
ringtone_vol: 100
- service: notify.ios_ilendrius
data_template:
title: Allarme
message: Scattato!
- id: alarm_armed_away
alias: '[Notifica] Modalità Assente attivata'
initial_state: 'on'
hide_entity: true
trigger:
- platform: state
entity_id: alarm_control_panel.allarme
to: armed_away
action:
data_template:
message: Allarme di casa è stato attivato in modalità Assente. Arrivederci
title: Allarme
service: notify.ios_ilendrius
- id: alarm_armed_home
alias: '[Allarme] Modalità A Casa attivata'
initial_state: 'on'
hide_entity: true
trigger:
- platform: state
entity_id: alarm_control_panel.allarme
to: armed_home
action:
data_template:
title: Allarme
message: Allarme di casa è stato attivato in modalità A Casa. Buonanotte
service: notify.ios_ilendrius
- id: alarm_arming_away
alias: '[Notifica] Attivando Modalità Assente'
initial_state: 'on'
hide_entity: true
trigger:
- platform: state
entity_id: alarm_control_panel.allarme
to: pending
action:
- service: notify.ios_ilendrius
data_template:
title: Allarme
message: Sto attivando allarme di casa, assicurati che le porte e le finestre
siano chiuse
- id: alarm_disarmed
alias: '[Notifica] Disarmato'
initial_state: 'on'
hide_entity: true
trigger:
- platform: state
entity_id: alarm_control_panel.allarme
to: disarmed
action:
- data_template:
title: Allarme
message: Allarme di casa disattivato.
service: notify.ios_ilendrius
- id: alarm_triggered
alias: '[Allarme] Scattato'
initial_state: 'on'
hide_entity: true
trigger:
- platform: state
entity_id: alarm_control_panel.allarme
to: triggered
action:
# - service: switch.turn_on
# entity_id: switch.siren_switch
- service: notify.ios_ilendrius
data_template:
title: Allarme
message: Scattato! # {{ states[states.alarm_control_panel.allarme.attributes.changed_by.split(".")[0]][
# states.alarm_control_panel.allarme.attributes.changed_by.split(".")[1]].name
# }}
- id: alarm_warning
alias: '[Notifica] Attenzione'
initial_state: 'on'
hide_entity: true
trigger:
- platform: state
entity_id: alarm_control_panel.allarme
to: warning
action:
- service: notify.ios_ilendrius
data:
title: Allarme
message: Attenzione # {{ states[states.alarm_control_panel.allarme.attributes.changed_by.split(".")[0]][
# states.alarm_control_panel.allarme.attributes.changed_by.split(".")[1]].name
# }}
- id: Soggiorno-brightness-slider
alias: Soggiorno Light - Adjust Brightness
trigger:
platform: state
entity_id: input_number.soggiorno_brightness
action:
- service: light.turn_on
data_template:
entity_id: light.soggiorno
brightness: '{{ trigger.to_state.state | int }}'
- id: Sala-da-pranzo-brightness-slider
alias: Sala da pranzo Light - Adjust Brightness
trigger:
platform: state
entity_id: input_number.sala_da_pranzo_brightness
action:
- service: light.turn_on
data_template:
entity_id: light.sala_da_pranzo
brightness: '{{ trigger.to_state.state | int }}'
- id: imposta_sala_da_pranzo
alias: Scene sala da pranzo
initial_state: 'on'
hide_entity: true
trigger:
platform: state
entity_id: input_select.sala_da_pranzo_preset
action:
service: hue.hue_activate_scene
data_template:
group_name: Sala da pranzo
scene_name: '{{ trigger.to_state.state }}'
- id: imposta_soggiorno
alias: Scene soggiorno
initial_state: 'on'
hide_entity: true
trigger:
platform: state
entity_id: input_select.soggiorno_preset
action:
service: hue.hue_activate_scene
data_template:
group_name: Soggiorno
scene_name: '{{ trigger.to_state.state }}'
- alias: Update Last Motion
trigger:
- platform: state
entity_id: binary_sensor.motion_sensor_158d0001e5764c, binary_sensor.motion_sensor_158d0001e5413e,
binary_sensor.motion_sensor_158d0001e514df, binary_sensor.motion_sensor_158d0001e51489,
binary_sensor.motion_sensor_158d0001e513a8, binary_sensor.motion_sensor_158d0001e515b8,
binary_sensor.motion_sensor_158d0001e5156a
to: 'on'
action:
- service: variable.set_variable
data:
variable: last_motion
attributes_template: "{\n \"history_1\": \"{{ variable.state }}\",\n \"history_2\"\
: \"{{ variable.attributes.history_1 }}\",\n \"history_3\": \"{{ variable.attributes.history_2\
\ }}\"\n}\n"
data_template:
value: '{{ trigger.to_state.attributes.friendly_name }}'
- id: '1522931404545'
alias: '[Notifica] Aggiornamento Hass.io'
trigger:
- entity_id: updater.updater
platform: state
condition: []
action:
- data:
message: 'Una nuova versione di Home Assistant è disponibile.'
service: notify.ios_ilendrius
- id: 'home_assistant.startup'
alias: 'HA: startup notification'
hide_entity: true
trigger:
platform: homeassistant
event: start
action:
service: notify.ios_ilendrius
data:
message: 'Home Assistant è stato riavviato, ora è di nuovo funzionante!'
- id: '1523184478168'
trigger:
- entity_id: binary_sensor.motion_sensor_158d0001e515b8
from: 'off'
platform: state
to: 'on'
condition:
- after: '18:00'
before: 01:00
condition: time
action:
- data:
entity_id: light.lampadario
service: light.turn_on
alias: '[Cucina] Movimento On'
- id: '1523184658496'
alias: '[Cucina] Movimento Off'
trigger:
- entity_id: binary_sensor.motion_sensor_158d0001e515b8
for:
minutes: 10
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: light.lampadario
state: 'on'
action:
- delay: 00:01:00
- data:
entity_id: light.lampadario
service: light.turn_off
- id: '1523185380524'
alias: '[Soggiorno] Movimento On Abatjour'
trigger:
- entity_id: binary_sensor.motion_sensor_158d0001e513a8
from: 'off'
platform: state
to: 'on'
condition:
- after: '18:00'
before: 01:00
condition: time
action:
- data:
brightness: '175'
entity_id: light.abatjour_bianca
kelvin: '2600'
service: light.turn_on
- id: '1523185553261'
alias: '[Soggiorno] Movimento Off'
trigger:
- entity_id: binary_sensor.motion_sensor_158d0001e513a8
for:
minutes: 30
from: 'on'
platform: state
to: 'off'
condition: []
action:
- data:
entity_id: light.piantana,light.abatjour_verde
service: light.turn_off
- id: '1523185681021'
alias: '[Soggiorno] Movimento Off Dim Abatjour'
trigger:
- entity_id: binary_sensor.motion_sensor_158d0001e513a8
for:
minutes: 15
from: 'on'
platform: state
to: 'off'
condition:
- condition: state
entity_id: light.abatjour_bianca
state: 'on'
action:
- data:
brightness: '100'
entity_id: light.abatjour_bianca
kelvin: '2600'
service: light.turn_on
- id: '1523472678789'
alias: Media player paused/stopped
trigger:
- platform: state
entity_id: media_player.lg_webos_smart_tv
from: playing
to: paused
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
action:
service: scene.turn_on
entity_id: scene.sala_da_pranzo_normale
- id: '1523472678599'
alias: Media player playing
trigger:
- platform: state
entity_id: media_player.lg_webos_smart_tv
to: playing
from: paused
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
action:
service: scene.turn_on
entity_id: scene.sala_da_pranzo_dim
- id: notify_lg_garage_chiusura
alias: '[Notifica LG] Notifica Garage Aperto'
initial_state: 'on'
hide_entity: true
trigger:
- entity_id: binary_sensor.door_window_sensor_158d0001fd6296
from: 'on'
platform: state
to: 'off'
action:
- service: notify.lg_webos_smart_tv
data:
message: La saracinesca è aperta
- id: notify_lg_garage_apertura
alias: '[Notifica LG] Notifica Garage Chiuso'
initial_state: 'on'
hide_entity: true
trigger:
- entity_id: binary_sensor.door_window_sensor_158d0001fd6296
from: 'off'
platform: state
to: 'on'
action:
- service: notify.lg_webos_smart_tv
data:
message: La saracinesca è chiusa
- alias: '[Notifica] Spazzatura Organico'
trigger:
platform: time
at: '21:30:00'
condition:
- condition: time
weekday:
- tue
- thu
- sun
- condition: state
entity_id: device_tracker.ilendrius
state: home
action:
- data:
title: Spazzatura
message: Oggi deve essere buttato l'organico.
data:
attachment:
url: "http://via.placeholder.com/350x150/A65D4B?text=Organico"
content-type: png
hide-thumbnail: false
service: notify.ios_ilendrius
- alias: '[Notifica] Spazzatura Plastica, Vetro e Alluminio'
trigger:
platform: time
at: '21:30:00'
condition:
- condition: time
weekday:
- mon
- condition: state
entity_id: device_tracker.ilendrius
state: home
action:
- data:
title: Spazzatura
message: Oggi devono essere buttati plastica, vetro e alluminio.
data:
attachment:
url: "http://via.placeholder.com/350x150/00814A?text=Plastica, vetro e alluminio"
content-type: png
hide-thumbnail: false
service: notify.ios_ilendrius
- alias: '[Notifica] Spazzatura Carta'
trigger:
platform: time
at: '21:30:00'
condition:
- condition: time
weekday:
- wed
- condition: state
entity_id: device_tracker.ilendrius
state: home
action:
- data:
title: Spazzatura
message: Oggi devo essere buttata la carta.
data:
attachment:
url: "http://via.placeholder.com/350x150/FED230?text=Carta"
content-type: png
hide-thumbnail: false
service: notify.ios_ilendrius
- alias: '[Notifica] Spazzatura Indifferenziato'
trigger:
platform: time
at: '21:30:00'
condition:
- condition: time
weekday:
- fri
- condition: state
entity_id: device_tracker.ilendrius
state: home
action:
- data:
title: Spazzatura
message: Oggi devo essere buttato l'indifferenziato.
data:
attachment:
url: "http://via.placeholder.com/350x150/000000?text=Indifferenziato"
content-type: png
hide-thumbnail: false
service: notify.ios_ilendrius
- alias: 'Spegni balcone interno'
trigger:
platform: state
entity_id: light.lampione
to: 'on'
for:
minutes: 10
action:
- service: light.turn_off
entity_id: light.lampione