This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
executable file
·413 lines (413 loc) · 9.24 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
- id: '1583779015997'
alias: Entryway On
description: ''
trigger:
- type: motion
platform: device
device_id: 7938fe1dd207ee3736faa8823ccfb65e
entity_id: binary_sensor.entryway_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_on
device_id: 1b4211ece672924db465a177f41b47c0
entity_id: light.entryway_ceiling_light
domain: light
mode: single
- id: '1583779064247'
alias: Entryway Off
description: ''
trigger:
- type: no_motion
platform: device
device_id: 7938fe1dd207ee3736faa8823ccfb65e
entity_id: binary_sensor.entryway_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 1b4211ece672924db465a177f41b47c0
entity_id: light.entryway_ceiling_light
domain: light
mode: single
- id: '1583779363886'
alias: Kitchen On
description: ''
trigger:
- type: motion
platform: device
device_id: 436e337219a560c2adab03e2b5f3adfe
entity_id: binary_sensor.kitchen_motion_occupancy
domain: binary_sensor
condition: []
action:
- data: {}
entity_id: light.kitchen_ceiling_light
service: light.turn_on
mode: single
- id: '1583779463844'
alias: Kitchen Off
description: ''
trigger:
- type: no_motion
platform: device
device_id: 436e337219a560c2adab03e2b5f3adfe
entity_id: binary_sensor.kitchen_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 5
seconds: 0
condition: []
action:
- data: {}
entity_id: light.kitchen_ceiling_light
service: light.turn_off
mode: single
- id: '1583779540423'
alias: Bathroom On
description: ''
trigger:
- type: motion
platform: device
device_id: a4f2383bcfbe8c591541c16c4a2c4dc8
entity_id: binary_sensor.bathroom_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.bathroom_mirror_light
mode: single
- id: '1583779578603'
alias: Bathroom Off
description: ''
trigger:
- type: no_motion
platform: device
device_id: a4f2383bcfbe8c591541c16c4a2c4dc8
entity_id: binary_sensor.bathroom_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 3
seconds: 0
condition: []
action:
- service: switch.turn_off
data: {}
target:
device_id: fe5f7df412ba5386cba5d75d536a5ea7
mode: single
- id: '1588458523846'
alias: Toilet On
description: ''
trigger:
- type: motion
platform: device
device_id: c436daa55f713ed43bdd0560caddbade
entity_id: binary_sensor.toilet_motion_occupancy
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: 1d8a6ec1c7a5d426c3bc0ae1d87f1a99
entity_id: light.toilet_ceiling_light
domain: light
mode: single
- id: '1588458560538'
alias: Toilet Off
description: ''
trigger:
- type: no_motion
platform: device
device_id: c436daa55f713ed43bdd0560caddbade
entity_id: binary_sensor.toilet_motion_occupancy
domain: binary_sensor
for:
hours: 0
minutes: 1
seconds: 30
milliseconds: 0
condition: []
action:
- type: turn_off
device_id: 1d8a6ec1c7a5d426c3bc0ae1d87f1a99
entity_id: light.toilet_ceiling_light
domain: light
mode: single
- id: '1627583365847'
alias: Switch Living Room Right
description: ''
trigger:
- platform: device
domain: mqtt
device_id: b3088b50b410173785d231f94848e736
type: click
subtype: left
discovery_id: 0x00158d0002ea052f click_left
condition: []
action:
- type: toggle
device_id: 29479a81ec41d0ce25c1ba0f97b30e20
entity_id: light.living_room_ceiling_light
domain: light
mode: single
- id: '1627583474484'
alias: Switch Living Room Left
description: ''
trigger:
- platform: device
domain: mqtt
device_id: b3088b50b410173785d231f94848e736
type: click
subtype: right
discovery_id: 0x00158d0002ea052f click_right
condition: []
action:
- type: toggle
device_id: 13b409959d2a200c69b392152fc6cd83
entity_id: light.desk_light
domain: light
- type: toggle
device_id: fe096adc4cbfb2c8d456b3ffc77f9cdf
entity_id: light.picture_light
domain: light
- service: light.toggle
data: {}
target:
entity_id: light.screen_light
mode: single
- id: '1627585994728'
alias: Switch Bedroom Right
description: ''
trigger:
- platform: device
domain: mqtt
device_id: a36e4c6eb68cf39cd66c5519c0496714
type: click
subtype: left
discovery_id: 0x00158d0001e11856 click_left
condition: []
action:
- type: toggle
device_id: d0af96ad0a6e1204b4832c301cdbda50
entity_id: light.bedroom_ceiling_light
domain: light
mode: single
- id: '1627586101347'
alias: Switch Gym Left
description: ''
trigger:
- platform: device
domain: mqtt
device_id: a2f7bce66e32953bfbe456309b5f911c
type: click
subtype: right
discovery_id: 0x00158d0001f3f4cc click_right
condition: []
action:
- type: toggle
device_id: 28661410a9549f4bb9a39af48b9ffac9
entity_id: light.gym_ceiling_light
domain: light
mode: single
- id: '1637740184044'
alias: Switch Bedroom Left
description: ''
trigger:
- platform: device
domain: mqtt
device_id: a36e4c6eb68cf39cd66c5519c0496714
type: click
subtype: right
discovery_id: 0x00158d0001e11856 click_right
condition: []
action:
- type: toggle
device_id: d0af96ad0a6e1204b4832c301cdbda50
entity_id: light.bedroom_ceiling_light
domain: light
mode: single
- id: '1637740397600'
alias: Switch Gym Right
description: ''
trigger:
- platform: device
domain: mqtt
device_id: a2f7bce66e32953bfbe456309b5f911c
type: click
subtype: left
discovery_id: 0x00158d0001f3f4cc click_left
condition: []
action:
- type: toggle
device_id: 28661410a9549f4bb9a39af48b9ffac9
entity_id: light.gym_ceiling_light
domain: light
mode: single
- id: '1638301817248'
alias: Vacuum Daily
description: ''
trigger:
- platform: time
at: '10:00:00'
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
before: 00:00:00
action:
- device_id: 8c940ec4e1d315d6b30ae6c2ddcb8ab4
domain: vacuum
entity_id: vacuum.z10_pro
type: clean
mode: single
- id: '1645170931825'
alias: Wash Notification
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.wash_power_energy_power
above: '10'
for:
hours: 0
minutes: 15
seconds: 0
condition: []
action:
- wait_for_trigger:
- platform: numeric_state
entity_id: sensor.wash_power_energy_power
below: '10'
for:
hours: 0
minutes: 3
seconds: 0
- service: notify.notify
data:
message: Washing machine done
mode: single
- id: '1659884344918'
alias: iOS Lights Off
description: ''
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Lights Off
condition: []
action:
- service: light.turn_off
entity_id: light.all_lights
mode: single
- id: '1659885384087'
alias: iOS Start Vacuum
description: ''
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Start Vacuum
condition: []
action:
- device_id: 8c940ec4e1d315d6b30ae6c2ddcb8ab4
domain: vacuum
entity_id: vacuum.z10_pro
type: clean
mode: single
- id: '1659885423014'
alias: iOS Stop Vacuum
description: ''
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Stop Vacuum
condition: []
action:
- device_id: 8c940ec4e1d315d6b30ae6c2ddcb8ab4
domain: vacuum
entity_id: vacuum.z10_pro
type: dock
mode: single
- id: '1659885712349'
alias: iOS Lights On
description: ''
trigger:
- platform: event
event_type: ios.action_fired
event_data:
actionName: Lights On
condition: []
action:
- service: light.turn_on
entity_id: light.all_lights
mode: single
- id: '1659982431198'
alias: Turn Off Alarm Light
description: ''
trigger:
- platform: time
at: 06:30:00
condition: []
action:
- type: turn_off
device_id: d0af96ad0a6e1204b4832c301cdbda50
entity_id: light.bedroom_ceiling_light
domain: light
mode: single
- id: '1671466229446'
alias: Switch Storage Left
description: ''
trigger:
- platform: device
domain: mqtt
device_id: b243065e805c40c0983fa92cf70e362b
type: click
subtype: right
discovery_id: 0x00158d0002f08889 click_right
condition: []
action:
- type: toggle
device_id: 0996ec5c22094a3c1debbe14ec5fadb1
entity_id: light.storage_ceiling_light
domain: light
mode: single
- id: '1671466594754'
alias: Switch Storage Right
description: ''
trigger:
- platform: device
domain: mqtt
device_id: b243065e805c40c0983fa92cf70e362b
type: click
subtype: left
discovery_id: 0x00158d0002f08889 click_left
condition: []
action:
- type: toggle
device_id: 0996ec5c22094a3c1debbe14ec5fadb1
entity_id: light.storage_ceiling_light
domain: light
mode: single