-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
414 lines (414 loc) · 9.15 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
- alias: Continuous Integration
trigger:
- platform: state
entity_id: sensor.travis_build_status
from: started
to: pass
action:
- service: hassio.addon_start
data:
addon: core_git_pull
id: e3103b87549f417595e1e1a63a337829
- alias: isadora on the move
initial_state: 'on'
trigger:
- platform: state
entity_id: device_tracker.iphonedaisa_2
condition:
- condition: template
value_template: '{{ not is_state(''device_tracker.iphonedaisa'',''home'') }}'
action:
- service: homeassistant.update_entity
entity_id: sensor.isadora_to_home
id: b1a677c80c594a3f976871479fed1868
- initial_state: 'on'
alias: lorenzo on the move
trigger:
- platform: state
entity_id: person.lorenzo_campioni
condition:
- condition: template
value_template: '{{ not is_state(''device_tracker.iphone_di_lorenzo'',''home'')
}}'
action:
- service: homeassistant.update_entity
entity_id: sensor.lorenzo_to_home
id: 2c3e6b71d8ca44948c2308a5d466d75c
- alias: NodeRed sunset begin
trigger:
- platform: sun
event: sunset
offset: -00:30:00
action:
- service: homeassistant.toggle
entity_id: input_boolean.sunset_approaching
id: 77be35dfea7c422a8a46bf0209ef470a
- alias: NodeRed sunset end
trigger:
- platform: sun
event: sunset
offset: -00:20:00
action:
- service: homeassistant.toggle
entity_id: input_boolean.sunset_approaching
id: 650af3edcf2f4e9f98f63501112be0c0
- id: calendar_notification
alias: Calendar Notification
trigger:
platform: state
entity_id: calendar.nido
to: 'on'
action:
- service: notify.mobile_app_iphone_di_lorenzo
data:
title: Nido Calendar Event
message: '{{ state_attr(''calendar.nido'',''message'') }}'
- id: '1642777137505'
alias: Beamer auto off
description: ''
trigger:
- platform: state
entity_id: media_player.shield
to: 'off'
for:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
condition:
- condition: state
entity_id: media_player.shield
state: 'off'
- condition: state
entity_id: script.beamer_focus
state: 'off'
- condition: state
entity_id: input_boolean.beamer_focus_ongoing
state: 'off'
for:
hours: 0
minutes: 0
seconds: 2
milliseconds: 0
action:
- service: switch.turn_off
target:
entity_id: switch.beamer
mode: single
- id: '1643131279108'
alias: Router nightly reboot
description: ''
trigger:
- platform: time
at: 02:42
condition: []
action:
- device_id: 8d0530cc0ae5f47dce3826df780ece47
domain: button
entity_id: button.fritz_box_4020_reboot
type: press
mode: single
- id: '1649931941416'
alias: Irrigazione piante
description: ''
trigger:
- platform: sun
event: sunset
offset: '0'
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.plants_water_switch
- delay:
hours: 0
minutes: 10
seconds: 0
milliseconds: 0
- service: switch.turn_off
target:
entity_id: switch.plants_water_switch
mode: single
- id: '1656871506552'
alias: Luce scale automatica
description: ''
use_blueprint:
path: homeassistant/motion_light.yaml
input:
motion_entity: binary_sensor.motion_sensor_158d0002f968f8
light_target:
device_id:
- e188122f54a66ed312008833ca6cab47
entity_id: light.ingresso
no_motion_wait: 120
- id: '1656871780207'
alias: Piantana auto
description: ''
use_blueprint:
path: homeassistant/motion_light.yaml
input:
motion_entity: binary_sensor.motion_sensor_158d00015b833f
light_target:
entity_id: light.piantana
no_motion_wait: 60
- id: '1660550092812'
alias: Fornellino zanzare
description: ''
trigger:
- platform: event
event_type: xiaomi_aqara.click
event_data:
entity_id: binary_sensor.switch_158d000183e7d1
click_type: single
condition: []
action:
- type: turn_on
device_id: 033bf105ddd0bc5343caabc1ed70aaee
entity_id: switch.switchfornellino_outlet
domain: switch
mode: single
- id: '1660550190984'
alias: Fornellino zanzare - spegni
description: ''
trigger:
- platform: time
at: 09:00:00
condition: []
action:
- type: turn_off
device_id: 033bf105ddd0bc5343caabc1ed70aaee
entity_id: switch.switchfornellino_outlet
domain: switch
mode: single
- id: '1661698284100'
alias: Beamer always HDMI
description: ''
trigger:
- platform: state
entity_id:
- media_player.beamer
attribute: source
to: com.mitv.tvhome
for:
hours: 0
minutes: 0
seconds: 3
condition:
- condition: state
entity_id: input_boolean.beamer_hdmi_auto
state: 'on'
action:
- service: shell_command.beamer_switch_hdmi
data: {}
mode: single
- id: '1666069596238'
alias: Auto info 6th
description: ''
use_blueprint:
path: homeassistant/motion_light.yaml
input:
motion_entity: binary_sensor.motion_sensor_158d00015b833f
light_target:
entity_id:
- light.info_screen_6th
- id: '1669742541054'
alias: Accendi luci Natale
description: ''
trigger:
- platform: sun
event: sunset
offset: 0
- platform: state
entity_id:
- binary_sensor.presenza_salotto
to: 'on'
condition:
- condition: and
conditions:
- condition: sun
after: sunset
before: sunrise
- condition: state
state: 'on'
entity_id: binary_sensor.presenza_salotto
action:
- service: light.turn_on
data: {}
target:
entity_id: light.natale
mode: single
- id: '1670752396801'
alias: Spegni Luci Natale
description: ''
trigger:
- platform: time
at: '22:00:00'
- platform: state
entity_id:
- group.family
from: home
to: not_home
for:
hours: 0
minutes: 0
seconds: 30
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id: light.natale
mode: single
- id: '1671121285936'
alias: Info screen 5th
description: ''
trigger:
- type: motion
platform: device
device_id: 4770d793e1c8d0a57648e7c195454245
entity_id: binary_sensor.motion_sensor_158d0002f968f8
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 1
condition: []
action:
- service: mqtt.publish
data:
payload: '{"wake": true}'
topic: wallpanel/mywallpanel/command
mode: single
- id: '1698750170189'
alias: Piantana brightness down
description: ''
trigger:
- platform: time
at: '21:00:00'
condition: []
action:
- service: yeelight.set_color_scene
data:
brightness: 10
rgb_color:
- 52
- 122
- 235
target:
device_id: 8584db56fd67211fbbe05d071f85b39f
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- type: turn_off
device_id: 8584db56fd67211fbbe05d071f85b39f
entity_id: light.piantana
domain: light
mode: single
- id: '1698753479381'
alias: Piantana brightness up
description: ''
trigger:
- platform: time
at: 08:00:00
condition: []
action:
- service: yeelight.set_color_scene
data:
brightness: 100
rgb_color:
- 168
- 141
- 50
target:
device_id: 8584db56fd67211fbbe05d071f85b39f
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- type: turn_off
device_id: 8584db56fd67211fbbe05d071f85b39f
entity_id: light.piantana
domain: light
mode: single
- id: '1700317481745'
alias: Accendi Cuociuova
description: ''
trigger:
- platform: time
at: input_datetime.orario_cuociuova
condition:
- condition: state
entity_id: input_boolean.attiva_cuociuova
state: 'on'
for:
hours: 0
minutes: 0
seconds: 1
action:
- type: turn_on
device_id: 1f4ca170a047c741db8ee5c593c6da5d
entity_id: switch.switchcuociuova_outlet
domain: switch
mode: single
- id: '1700317601134'
alias: Spegni Cuociuova
description: ''
trigger:
- type: power
platform: device
device_id: 1f4ca170a047c741db8ee5c593c6da5d
entity_id: sensor.switchcuociuova_power
domain: sensor
below: 100
for:
hours: 0
minutes: 0
seconds: 1
condition: []
action:
- type: turn_off
device_id: 1f4ca170a047c741db8ee5c593c6da5d
entity_id: switch.switchcuociuova_outlet
domain: switch
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.attiva_cuociuova
mode: single
- id: '1702055884992'
alias: Spegni cuociuova 2W
description: ''
trigger:
- type: power
platform: device
device_id: 1f4ca170a047c741db8ee5c593c6da5d
entity_id: sensor.switchcuociuova_power
domain: sensor
below: 2
for:
hours: 0
minutes: 0
seconds: 5
condition: []
action:
- type: turn_off
device_id: 1f4ca170a047c741db8ee5c593c6da5d
entity_id: switch.switchcuociuova_outlet
domain: switch
mode: single
- id: '1702057179274'
alias: Spegni cuociuova 6am
description: ''
trigger:
- platform: time
at: 06:00:00
condition: []
action:
- type: turn_off
device_id: 1f4ca170a047c741db8ee5c593c6da5d
entity_id: switch.switchcuociuova_outlet
domain: switch
mode: single