-
Notifications
You must be signed in to change notification settings - Fork 63
/
automations.yaml
547 lines (547 loc) · 13.1 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
- id: '1590614990299'
alias: IKEA Remote Left Click Office Lamp
description: ''
trigger:
- device_id: e2f9bfa49eaa4963987bbe96f4aa1953
discovery_id: 0x000d6ffffe4b5727 action_arrow_left_click
domain: mqtt
platform: device
subtype: arrow_left_click
type: action
condition: []
action:
- device_id: 1cdb60766cbb4ffc8b12ac9713fb1b55
domain: switch
entity_id: switch.office_lamp
type: toggle
- id: '1590615088628'
alias: IKEA Remote Right Click Office Light
description: ''
trigger:
- device_id: e2f9bfa49eaa4963987bbe96f4aa1953
discovery_id: 0x000d6ffffe4b5727 action_arrow_right_click
domain: mqtt
platform: device
subtype: arrow_right_click
type: action
condition: []
action:
- device_id: 35b84bccb40a42efbd094c4c7c3e7b2b
domain: light
entity_id: light.office_light_light
type: toggle
- id: '1590615168236'
alias: IKEA Remote Brightness Up Office Light
description: ''
trigger:
- device_id: e2f9bfa49eaa4963987bbe96f4aa1953
discovery_id: 0x000d6ffffe4b5727 action_brightness_up_click
domain: mqtt
platform: device
subtype: brightness_up_click
type: action
condition:
- condition: device
device_id: 35b84bccb40a42efbd094c4c7c3e7b2b
domain: light
entity_id: light.office_light_light
type: is_on
action:
- device_id: 35b84bccb40a42efbd094c4c7c3e7b2b
domain: light
entity_id: light.office_light_light
type: brightness_increase
- id: '1590615242144'
alias: IKEA Remote Brightness Down Office Light
description: ''
trigger: []
condition:
- condition: device
device_id: 35b84bccb40a42efbd094c4c7c3e7b2b
domain: light
entity_id: light.office_light_light
type: is_on
action:
- device_id: 35b84bccb40a42efbd094c4c7c3e7b2b
domain: light
entity_id: light.office_light_light
type: brightness_decrease
- id: '1234'
alias: Reset Ground Hallway PIR
trigger:
- entity_id: binary_sensor.ground_hallway_motion
for: 0:00:05
from: 'off'
platform: state
to: 'on'
action:
- data:
payload: 0B104Aoff
topic: tele/RF_Bridge/RESULT
service: mqtt.publish
initial_state: 'on'
- id: '5678'
alias: Reset First Hallway PIR
trigger:
- entity_id: binary_sensor.first_hallway_motion
for: 0:00:05
from: 'off'
platform: state
to: 'on'
action:
- data:
payload: 63044Aoff
topic: tele/RF_Bridge/RESULT
service: mqtt.publish
initial_state: 'on'
- id: '567322328'
alias: Reset Front Doorbell
trigger:
- entity_id: binary_sensor.front_doorbell
for: 0:00:03
from: 'off'
platform: state
to: 'on'
action:
- data:
payload: 9D8008off
topic: tele/RF_Bridge/RESULT
service: mqtt.publish
initial_state: 'on'
- id: '91011'
alias: Reset Fire Alarm
initial_state: 'on'
trigger:
- platform: state
entity_id: binary_sensor.fire_alarm
to: 'on'
for:
seconds: 300
action:
- service: mqtt.publish
data:
topic: tele/RF_Bridge/RESULT
payload: 6D5E28off
- id: '910112211'
alias: Ground PIR Pushover
trigger:
- platform: state
entity_id: binary_sensor.ground_hallway_motion
to: 'on'
action:
service: notify.pushover
data:
message: Ground Hallway PIR
title: Motion Detected
- id: '910166211'
alias: First PIR Pushover
trigger:
- entity_id: binary_sensor.first_hallway_motion
from: 'off'
platform: state
to: 'on'
action:
- data:
message: First Hallway PIR
title: Motion Detected
service: notify.pushover
- id: '91016627711'
alias: Office PIR Pushover
trigger:
- device_id: 97a8f57a55ac4a98848ba6062436cfc1
domain: binary_sensor
entity_id: binary_sensor.tradfri_motion_sensor
platform: device
type: motion
action:
- brightness_pct: 100
device_id: edc1241d41894acdb543685166d12c80
domain: light
entity_id: light.optihub_rgb
type: turn_on
- delay: '15'
- device_id: edc1241d41894acdb543685166d12c80
domain: light
entity_id: light.optihub_rgb
type: turn_off
- id: '1591392891617'
alias: IKEA Remote Left Button
description: ''
trigger:
- event_data:
event: 4002
id: tradfri_remote_control
event_type: deconz_event
platform: event
condition: []
action:
- condition: state
entity_id: light.optihub_rgb
state: toggle
- id: '1591549778285'
alias: Master Bedside Sam Motion
description: ''
trigger:
- device_id: 7f4bb8e00a9843aa9e61b2d4038218e6
domain: binary_sensor
entity_id: binary_sensor.master_bedside_sam_pir_sensor
platform: device
type: motion
condition: []
action:
- brightness_pct: 100
device_id: 7f4bb8e00a9843aa9e61b2d4038218e6
domain: light
entity_id: light.master_bedside_sam_rgb_light
type: turn_on
- delay: '10'
- device_id: 7f4bb8e00a9843aa9e61b2d4038218e6
domain: light
entity_id: light.master_bedside_sam_rgb_light
type: turn_off
- id: '1591915449028'
alias: Kitchen Corner PIR
description: ''
trigger:
- device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: binary_sensor
entity_id: binary_sensor.kitchen_corner_pir
platform: device
type: motion
condition:
- condition: not
conditions:
- condition: state
entity_id: light.kitchen_corner_rgb
state: 'on'
action:
- brightness_pct: 100
device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_corner_rgb
type: turn_on
- delay: '180'
- device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_corner_rgb
type: turn_off
- id: '1591915519944'
alias: Kitchen Sink PIR
description: ''
trigger:
- device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: binary_sensor
entity_id: binary_sensor.kitchen_sink_pir
platform: device
type: motion
condition:
- condition: not
conditions:
- condition: state
entity_id: light.kitchen_sink_rgb
state: 'on'
action:
- brightness_pct: 100
device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_sink_rgb
type: turn_on
- delay: '180'
- device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_sink_rgb
type: turn_off
- id: '1592089195656'
alias: Back Door Lights On Inside
description: ''
trigger:
- entity_id: binary_sensor.openclose_19
from: 'off'
platform: state
to: 'on'
condition:
- condition: device
device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: binary_sensor
entity_id: binary_sensor.kitchen_corner_pir
type: is_no_motion
- condition: device
device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: binary_sensor
entity_id: binary_sensor.kitchen_sink_pir
type: is_no_motion
action:
- brightness_pct: 100
device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_sink_rgb
type: turn_on
- delay: '2'
- brightness_pct: 100
device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_corner_rgb
type: turn_on
- delay: '30'
- device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_sink_rgb
type: turn_off
- device_id: 2c2892dc4f8049c8a0e3ce419e816442
domain: light
entity_id: light.kitchen_corner_rgb
type: turn_off
- id: change_switch_01_state
alias: Change switch 01 state
trigger:
platform: state
entity_id: binary_sensor.office_button_a
to: 'on'
action:
- service: switch.toggle
data:
entity_id: switch.button_office_lamp_1
- id: '1593119650807'
alias: Button Office Lamp
description: ''
trigger:
- entity_id: binary_sensor.office_button_a
from: 'off'
platform: state
to: 'on'
condition: []
action:
- device_id: 1cdb60766cbb4ffc8b12ac9713fb1b55
domain: switch
entity_id: switch.office_lamp
type: toggle
- id: '1593120217386'
alias: Button Office LightLow
description: ''
trigger:
- entity_id: binary_sensor.office_button_b
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
brightness: 127
entity_id: light.office
service: light.turn_on
- id: '1593120274755'
alias: Button Office Light High
description: ''
trigger:
- entity_id: binary_sensor.office_button_c
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
brightness: 255
entity_id: light.office
service: light.turn_on
- id: '1593120664574'
alias: Button Office Light Low Toggle
description: ''
trigger:
- entity_id: binary_sensor.office_button_b
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: light.office
state: 'on'
action:
- device_id: b602d38aa5044d288637244b90c477a4
domain: light
entity_id: light.office_light
type: turn_off
- id: '1593120770317'
alias: Button Office Light High
description: ''
trigger:
- entity_id: binary_sensor.office_button_c
from: 'off'
platform: state
to: 'on'
condition:
- condition: state
entity_id: light.office
state: 'on'
action:
- device_id: b602d38aa5044d288637244b90c477a4
domain: light
entity_id: light.office_light
type: turn_off
- id: '354614736547367'
alias: Reset Letter Box
trigger:
- entity_id: binary_sensor.letter_box
for: 0:00:05
from: 'off'
platform: state
to: 'on'
action:
- data:
payload: 5B30E9off
topic: tele/RF_Bridge/RESULT
service: mqtt.publish
initial_state: 'on'
- id: '1593202103535'
alias: Pushover Letter Box
description: ''
trigger:
- entity_id: binary_sensor.letter_box
from: 'off'
platform: state
to: 'on'
condition: []
action:
- service: camera.snapshot
data:
entity_id: camera.swk_cr_uniuvc1
filename: /config/www/tmp/snapshot_camera.swk_cr_uniuvc1.jpg
- service: light.turn_on
data:
brightness: 255
rgb_color:
- 65
- 105
- 225
effect: strobe
entity_id: light.master_bedside_sam_rgb_light
- service: notify.pushover
data_template:
data:
attachment: /config/www/tmp/snapshot_camera.swk_cr_uniuvc1.jpg
priority: 0
sound: spacealarm
message: You got mail at {{ now().strftime('%-I:%M:%S %p %-m/%-d/%y') }}
title: Home Assistant - Letter Box
- id: '159321314503535'
alias: Pushover Door Bell Alert
description: ''
trigger:
- entity_id: binary_sensor.front_doorbell
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
entity_id: camera.swk_cr_uniuvc1
filename: /config/www/tmp/snapshot_camera.swk_cr_uniuvc1.jpg
service: camera.snapshot
- data_template:
data:
attachment: /config/www/tmp/snapshot_camera.swk_cr_uniuvc1.jpg
message: Who goes there {{ now().strftime('%-I:%M:%S %p') }}
title: Home Assistant - Door Bell Alert
service: notify.pushover
- id: '1593714498412'
alias: pushover front door
description: ''
trigger:
- entity_id: binary_sensor.openclose_26
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
message: Front door opened
title: Home Assistant
service: notify.pushover
- id: '1594190390871'
alias: Pushover Living Room Motion
description: ''
trigger:
- device_id: b349487613fe44f68f08d041924e64f1
domain: binary_sensor
entity_id: binary_sensor.living_room_tv_cabinet_pir_sensor
platform: device
type: motion
condition: []
action:
- data:
message: Living Room Motion
title: Home Assistant
service: notify.pushover
- id: '91011231211'
alias: Second Floor Lights
trigger:
- entity_id: binary_sensor.tradfri_motion_sensor
platform: state
to: 'on'
condition:
- after: '21:00'
before: 04:00
condition: time
action:
- data:
brightness_pct: 10
color_temp: 300
entity_id: light.second_ceiling_lights
service: light.turn_on
- delay: '15'
- data:
entity_id: light.second_ceiling_lights
service: light.turn_off
- id: '1594758544308'
alias: Master Bedroom Door Night Light
description: ''
trigger:
- entity_id: binary_sensor.window_door_sensor_4
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
brightness_pct: 20
color_temp: 43
entity_id: light.second_ceiling_master
service: light.turn_on
- delay: '10'
- data: {}
entity_id: light.second_ceiling_master
service: light.turn_off
- id: 1594sdsdsds308
alias: Office Door Night Light
description: ''
trigger:
- entity_id: binary_sensor.openclose_21
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
brightness_pct: 10
color_temp: 43
entity_id: light.second_ceiling_office
service: light.turn_on
- delay: '10'
- data: {}
entity_id: light.second_ceiling_office
service: light.turn_off
- id: '1594870532770'
alias: '111222333'
description: ''
trigger:
- entity_id: binary_sensor.tradfri_motion_sensor
from: 'off'
platform: state
to: 'on'
condition: []
action:
- data:
data:
priority: 2
message: Office Door PIR
title: Motion Detected
service: notify.pushover