-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
328 lines (328 loc) · 7.14 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
- id: '1569111211572'
alias: Bajar persiana despacho al amanecer
trigger:
- event: sunrise
offset: -01:00:00
platform: sun
condition: []
action:
- data:
entity_id: cover.victor_cover
service: cover.close_cover
- delay: 00:00:10
- data: {}
service: esphome.victor_cover_force_closed
mode: single
- id: '1586728981472'
alias: '[System] Cambiar a tema oscuro'
description: ''
trigger:
- event: start
platform: homeassistant
- event: sunset
platform: sun
condition:
- condition: state
entity_id: sun.sun
state: below_horizon
action:
- data:
name: slate
service: frontend.set_theme
- id: '1586729054792'
alias: '[System] Cambiar a tema claro'
description: ''
trigger:
- event: start
platform: homeassistant
- event: sunrise
platform: sun
condition:
- condition: state
entity_id: sun.sun
state: above_horizon
action:
- data:
name: default
service: frontend.set_theme
- id: '1610522882548'
alias: '[Dormitorio] Encender radiador a las 22:00'
description: ''
trigger:
- platform: time
at: '22:00:00'
condition:
- condition: state
entity_id: person.victor
state: home
- condition: or
conditions:
- condition: state
entity_id: person.aurora
state: home
action:
- type: turn_on
device_id: bfc947d72ae5772ed22161fb8329739e
entity_id: switch.radiador
domain: switch
mode: single
- id: '1614460315204'
alias: '[IKEA Remote] Toggle floor lamp'
description: ''
trigger:
- device_id: a8c93275694085b0d6ffde36761ae5e3
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
condition: []
action:
- type: toggle
device_id: 83b95781752dab8753b5f69e0f7dc28b
entity_id: light.lampara_pie
domain: light
mode: single
- id: '1614460400963'
alias: '[IKEA Remote] Bright up press'
description: ''
trigger:
- device_id: a8c93275694085b0d6ffde36761ae5e3
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_up
condition: []
action:
- type: brightness_increase
device_id: 83b95781752dab8753b5f69e0f7dc28b
entity_id: light.lampara_pie
domain: light
mode: single
- id: '1614460424275'
alias: '[IKEA Remote] Bright down'
description: ''
trigger:
- device_id: a8c93275694085b0d6ffde36761ae5e3
domain: zha
platform: device
type: remote_button_short_press
subtype: dim_down
condition: []
action:
- type: brightness_decrease
device_id: 83b95781752dab8753b5f69e0f7dc28b
entity_id: light.lampara_pie
domain: light
mode: single
- id: '1623705870278'
alias: '[Cocina] Apagar lavavajillas'
description: ''
trigger:
- platform: time
at: 08:00:00
condition: []
action:
- type: turn_off
device_id: c072a84472a413219449ffdd154dad08
entity_id: switch.dishwasher
domain: switch
mode: single
- id: '1628836131159'
alias: '[Utility Meter] Change to Punta'
description: ''
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sensor.ree_pvpc_gen
attribute: period
condition:
- condition: state
entity_id: sensor.ree_pvpc_gen
state: P1
attribute: period
action:
- service: utility_meter.select_tariff
data:
tariff: Punta
target:
entity_id: utility_meter.energy
mode: single
- id: '1628836263382'
alias: '[Utility Meter] Change to Valle'
description: ''
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sensor.ree_pvpc_gen
attribute: period
condition:
- condition: state
entity_id: sensor.ree_pvpc_gen
state: P3
attribute: period
action:
- service: utility_meter.select_tariff
data:
tariff: Valle
target:
entity_id: utility_meter.energy
mode: single
- id: '1628836404704'
alias: '[Utility Meter] Change to Llano'
description: ''
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sensor.ree_pvpc_gen
attribute: period
condition:
- condition: state
entity_id: sensor.ree_pvpc_gen
state: P2
attribute: period
action:
- service: utility_meter.select_tariff
data:
tariff: Llano
target:
entity_id: utility_meter.energy
mode: single
- id: '1629148961811'
alias: AC safe turn off on power limit
description: ''
trigger:
- type: power
platform: device
device_id: 4caa7e931054e7e06adbfbc76e1cd1d8
entity_id: sensor.main_power
domain: sensor
above: 2500
for:
hours: 0
minutes: 6
seconds: 0
milliseconds: 0
condition: []
action:
- service: climate.turn_off
target:
entity_id: climate.livingroom_climate
- type: turn_off
device_id: 3d798ebf66eacf9fa80794a5ee4902bc
entity_id: switch.insecticida
domain: switch
mode: single
- id: '1635721176468'
alias: '[Cocina] Encender lavavajillas'
description: ''
trigger:
- platform: time
at: 03:00:00
condition: []
action:
- type: turn_on
device_id: c072a84472a413219449ffdd154dad08
entity_id: switch.dishwasher
domain: switch
mode: single
- id: '1636123954308'
alias: '[Cocina] Apertura automatica'
description: ''
trigger:
- type: sound
platform: device
device_id: 3925dc5ab8b5c2a3acd50e483ed95771
entity_id: binary_sensor.kitchen_entryphone
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
condition:
- condition: state
entity_id: input_boolean.apertura_automatica
state: 'on'
action:
- service: script.1586532036236
mode: single
- id: '1638704316070'
alias: Turn Christmas mode
description: ''
trigger:
- platform: state
entity_id: media_player.nest_salon
to: playing
condition: []
action:
- service: switch.turn_on
target:
entity_id: switch.arbol_navidad
mode: single
- id: '1642198875360'
alias: '[Dormitorio] Encender insecticida a las 22:00'
description: ''
trigger:
- platform: time
at: '22:00:00'
condition:
- condition: state
entity_id: person.victor
state: home
- condition: or
conditions:
- condition: state
entity_id: person.aurora
state: home
action:
- service: switch.turn_on
target:
entity_id: switch.insecticida
mode: single
- id: '1651890796216'
alias: Washing Machine ended notification
description: ''
trigger:
- platform: state
entity_id:
- binary_sensor.lavadora_on
from: 'On'
to: 'Off'
condition: []
action:
- service: tts.cloud_say
data:
entity_id: media_player.altavoces_de_casa
message: 'Lavadora: Programa finalizado'
cache: true
mode: single
- id: '1653118976171'
alias: Auto-apagado del ventilador del salon
description: ''
trigger:
- platform: state
entity_id:
- media_player.victor_tv
- light.lampara_pie
- light.livingroom_table_light
to: 'Off'
for:
hours: 0
minutes: 1
seconds: 0
from: 'On'
- platform: time
at: '22:00:00'
condition:
- condition: time
before: 07:00:00
after: '22:00:00'
action:
- service: fan.turn_off
data: {}
target:
entity_id: fan.livingroom_fan
mode: single