-
Notifications
You must be signed in to change notification settings - Fork 46
/
automations.xml
599 lines (599 loc) · 14.4 KB
/
automations.xml
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
<automations>
<automation domain="" url="" name="Outdoor Turn Lights ON 15 minutes before sunset">
<description>this is test.
</description>
<trigger platform="sun">
sun is below horizon or event is sunset
offset -15 minutes
</trigger>
<conditions>
</conditions>
<action>
Turn Light(s) ON
Send an alert
</action>
</automation>
<automation domain="" url="" name="Outdoor Turn Lights OFF 15 minutes after sunrise">
<description>
</description>
<trigger platform="sun">
sun is 'above horizon' or event is sunrise
offset +15 minutes
</trigger>
<conditions>
Every day
</conditions>
<action>
Turn Light(s) OFF
</action>
</automation>
<automation domain="" url="" name="Turn Home Security System ON at Sunset">
<description>
</description>
<trigger platform="Sun">
event is sunset
</trigger>
<conditions>
Do it only when people are at home
Weekdays ONLY
Home Security System is Disarmed
</conditions>
<action>
Turn ON Home Security System in 'Home' mode
Send an alert
Drop a message in the announcement queue
</action>
</automation>
<automation domain="" url="" name="Kitchen Lights on early morning during school days">
<description>
</description>
<trigger platform="time">
exactly at 5:30 AM
</trigger>
<conditions>
Weekdays (mon, tue, wed, thu, fri)
Only during school days check (if school days input_boolean is ON)
</conditions>
<action>
turn kitchen lights ON
</action>
</automation>
<automation domain="" url="" name="Master Bedroom lights ON (wife's side)at 5:20">
<description>
</description>
<trigger platform="time">
Exactly at 5:20 AM
</trigger>
<conditions>
Only during Weekdays (mon, tue, wed, thu, fri)
Only during school days check (if school days input_boolean is ON)
</conditions>
<action>
Turn ON wife's side of the bed lamp at 10% brightness with transition of 1 minute from 0 to 10% brightness
</action>
</automation>
<automation domain="" url="" name="Master Bedroom lights OFF (wife's side)at 5:45">
<description>
</description>
<trigger platform="time">
Exactly at 5:45 AM
</trigger>
<conditions>
Only during Weekdays (mon, tue, wed, thu, fri)
Only during school days check (if school days input_boolean is ON)
</conditions>
<action>
Turn OFF wife's side of the bed lamp with no transition
</action>
</automation>
<automation domain="" url="" name="Master Bedroom lights ON at 6:59 AM">
<description>
</description>
<trigger platform="time">
Exactly at 6:59 AM
</trigger>
<conditions>
Only during Weekdays (mon, tue, wed, thu, fri)
</conditions>
<action>
Turn ON Master Bedroom lights with transition of 2 minutes at 25% brightness
Announce daily weather updates, commute to work...etc on home audio system
</action>
</automation>
<automation domain="" url="" name="Master Bedroom Lights OFF at 9:00 AM">
<description>
</description>
<trigger platform="time">
Only during Weekdays (mon, tue, wed, thu, fri)
</trigger>
<conditions>
Week days
</conditions>
<action>
Turn off master bedroom lights
TODO: Check device_tracker and the location, When Suresh leaves home, turn off master bedroom lights immediately
</action>
</automation>
<automation domain="" url="" name="Turn Kitchen Lights OFF at 8:15 AM">
<description>
</description>
<trigger platform="time">
Exactly at 8:15 AM
</trigger>
<conditions>
Everyday - it is usually bright enough in Kitchen at 8:15 AM
</conditions>
<action>
Turn OFF kitchen lights
</action>
</automation>
<automation domain="" url="" name="Dim Kitchen lights 15 minutes before bed time">
<description>
</description>
<trigger platform="time">
Exactly at 9:45 PM. (Our bed time is at 10:00 PM)
</trigger>
<conditions>
Make sure the light is ON before dimming
</conditions>
<action>
Turn ON the light and set the brightness of the light to 15%
</action>
</automation>
<automation domain="" url="" name="Turn ON Home Security System at Bedtime">
<description>
</description>
<trigger platform="time">
Exactly at 10:00 PM
</trigger>
<conditions>
People MUST be home
Home Security System cannot be in AWAY mode
Home Security System MUST BE Disarmed
</conditions>
<action>
Turn ON Home Security System in HOME mode
Send an alert
Make an annnouncement inside the house
</action>
</automation>
<automation domain="" url="" name="Good Night">
<description>
</description>
<trigger platform="time">
Exactly at 10:00 PM
</trigger>
<conditions>
TODO: Check for summer hours Vs Winter hours
</conditions>
<action>
Turn OFF Family Room Lights
Turn OFF Kitchen Lights
Turn OFF Guest Bedroom Lights
Turn OFF Master Bedroom Lights
Turn OFF Office Room Lights
Turn OFF Basement Lights (TBD)
KEEP Front yard and Backyard lights for security reasons
Play 'Soft Kitty Warm Kitty Little Ball of Fur' Song :)
</action>
</automation>
<automation domain="" url="" name="Motion Detected - 1">
<description>
</description>
<trigger platform="state">
motion sensor state changed
</trigger>
<conditions>
It is Dark outside
TV is ON
TV Room Lights are ON
</conditions>
<action>
Dim TV Lights
</action>
</automation>
<automation domain="" url="" name="Motion Detected - 1">
<description>
</description>
<trigger platform="state">
motion sensor state changed
</trigger>
<conditions>
It is Dark outside
TV is ON
TV Room Lights are ON
</conditions>
<action>
Dim TV Lights
</action>
</automation>
<automation domain="" url="" name="Motion Detected - 1">
<description>
</description>
<trigger platform="state">
motion detected
</trigger>
<conditions>
It is Dark outside
TV is ON
TV Room Lights are ON
</conditions>
<action>
Dim TV Lights
</action>
</automation>
<automation domain="" url="" name="Motion Detected - 2">
<description>
</description>
<trigger platform="state">
motion detected
</trigger>
<conditions>
It is Dark outside
TV is ON
TV Room Lights are OFF
</conditions>
<action>
Dim TV Lights
</action>
</automation>
<automation domain="" url="" name="Motion Detected - 3">
<description>
</description>
<trigger platform="state">
motion detected
</trigger>
<conditions>
It is Dark outside
TV is OFF
TV Room Lights are ON
</conditions>
<action>
Set the light brightness to 100%.
</action>
</automation>
<automation domain="" url="" name="Motion Detected - 4">
<description>
</description>
<trigger platform="state">
motion detected
</trigger>
<conditions>
It is Dark outside
TV is OFF
TV Room Lights are OFF
</conditions>
<action>
Set the light brightness to 100%.
</action>
</automation>
<automation domain="" url="" name="NO motion sensed - 1">
<description>
</description>
<trigger platform="state">
</trigger>
<conditions>
It is Dark outside
TV is ON
TV Room Lights are ON
</conditions>
<action>
Turn Lights OFF
</action>
</automation>
<automation domain="" url="" name="NO motion sensed - 2">
<description>
</description>
<trigger platform="state">
</trigger>
<conditions>
It is Dark outside
TV is OFF
TV Room Lights are ON
</conditions>
<action>
Turn Lights OFF
</action>
</automation>
<automation domain="" url="" name="MQTT Announcements">
<description>
</description>
<trigger platform="MQTT">
When a message arrives in a specific topic
</trigger>
<conditions></conditions>
<action>
Read the text, call amazon polly to convert to audio/mp3 and Play the mp3 using media player
</action>
</automation>
<automation domain="" url="" name="Check Battery Level of Phone">
<description>
</description>
<trigger platform="numeric_state">
Battery level is below 30%
device_tracker.suresh_suresh
device_tracker.mallika_mallika
device_tracker.hasika_hasika
device_tracker.srinika_srinika
</trigger>
<conditions>
</conditions>
<action>
Send a notification
</action>
</automation>
<automation domain="" url="" name="Check Battery Levels of Motion Sensors">
<description>
</description>
<trigger platform="numeric_state">
Battery level is below 30%
upstairs_motion_sensor
downstairs_motion_sensor
</trigger>
<conditions>
</conditions>
<action>
Send a notification
</action>
</automation>
<automation domain="" url="" name="Notify Home Security Status">
<description>
</description>
<trigger platform="state">
Home Alarm system status changed
</trigger>
<conditions>
</conditions>
<action>
Send a notification
</action>
</automation>
<automation domain="" url="" name="Home Security">
<description>
</description>
<trigger platform="state">
Turn ON Home Alarm System when no one home
</trigger>
<conditions>
when all the members of family are "not home"
</conditions>
<action>
Turn ON home Security System
</action>
</automation>
<automation domain="" url="" name="Flash Lights When Someone at the door ">
<description>
</description>
<trigger platform="state">
motion detected at the front door
</trigger>
<conditions>
when people are home
</conditions>
<action>
flash lights
</action>
</automation>
<automation domain="" url="" name="Play Dog Sounds">
<description>
</description>
<trigger platform="state">
motion detected at the front door or back door
</trigger>
<conditions>
when no one at home
</conditions>
<action>
play dog barking sounds
</action>
</automation>
<automation domain="" url="" name="Turn Humidifier ON automatically">
<description>
</description>
<trigger platform="state">
Indoor humidity level is below threshold (30)
</trigger>
<conditions>
When people are home
</conditions>
<action>
Turn Humidifier On
Notify that the humidifier is turned ON, and remind to check water level
</action>
</automation>
<automation domain="" url="" name="Turn Humidifier OFF automatically">
<description>
</description>
<trigger platform="state">
Indoor humidity level is above threshold (30)
</trigger>
<conditions>
</conditions>
<action>
Turn Dehumidifier ON
</action>
</automation>
<automation domain="" url="" name="Notify when someone arrives home">
<description>
</description>
<trigger platform="zone">
device_tracker.mallika_mallika
device_tracker.suresh_suresh
device_tracker.srinika_srinika
device_tracker.hasika_hasika
</trigger>
<conditions>
entered zone
</conditions>
<action>
Send an alert
</action>
</automation>
<automation domain="" url="" name="Notify when someone arrives home">
<description>
</description>
<trigger platform="zone">
device_tracker.mallika_mallika
device_tracker.suresh_suresh
device_tracker.srinika_srinika
device_tracker.hasika_hasika
</trigger>
<conditions>
leave zone
</conditions>
<action>
Send an alert
</action>
</automation>
<automation domain="" url="" name="Notify when Kids reach school">
<description>
</description>
<trigger platform="zone">
device_tracker.srinika_srinika
device_tracker.hasika_hasika
</trigger>
<conditions>
enter school zone
</conditions>
<action>
send an alert
</action>
</automation>
<automation domain="" url="" name="Notify when Kids reach school">
<description>
</description>
<trigger platform="zone">
device_tracker.srinika_srinika
device_tracker.hasika_hasika
</trigger>
<conditions>
leaves schol zone
</conditions>
<action>
Send an alert
</action>
</automation>
<automation domain="" url="" name="Alert when everyone is away">
<description>
</description>
<trigger platform="state">
group.all_devices
</trigger>
<conditions>
state changed to "not home"
</conditions>
<action>
Send an alert
Turn ON Home Security System
Turn down temperature?
</action>
</automation>
<automation domain="" url="" name="Home Assistant Startup">
<description>
</description>
<trigger platform="event">
event_type is homeassistant_start
</trigger>
<conditions>
</conditions>
<action>
Send an alert
</action>
</automation>
<automation domain="" url="" name="New Home Assistant Update">
<description>
</description>
<trigger platform="state">
updater.updater
</trigger>
<conditions>
</conditions>
<action>
Send an alert with link to HA
</action>
</automation>
<automation domain="" url="" name="Timer enabled smart Switch">
<description>
</description>
<trigger platform="state">
light status is On
</trigger>
<conditions>
for a certain time
during day time
</conditions>
<action>
Turn off light
</action>
</automation>
<automation domain="" url="" name="Weather - Heavy Wind Alerts">
<description>
</description>
<trigger platform="state">
Entity - sensor.dark_sky_wind_speed
</trigger>
<conditions>
Wind speed is aboive 20 and below 40
</conditions>
<action>
Send an alert
flash lights
</action>
</automation>
<automation domain="" url="" name="Weather - Super Heavy Winds">
<description>
</description>
<trigger platform="state">
sensor.dark_sky_wind_speed
</trigger>
<conditions>
Wind speed is aboive 40
</conditions>
<action>
Send an alert to stay indoors
Announce in the house
Flash lights
</action>
</automation>
<automation domain="" url="" name="Provide Daily Weather Update">
<description>
</description>
<trigger platform="time">
at 7:00 AM
</trigger>
<conditions>
</conditions>
<action>
Send an Alert
Announce in the house
</action>
</automation>
<automation domain="" url="" name="Greet Family Members">
<description>
</description>
<trigger platform="state">
device_tracker.mallika_mallika
device_tracker.suresh_suresh
device_tracker.srinika_srinika
device_tracker.hasika_hasika
</trigger>
<conditions>
for 2 minutes
</conditions>
<action>
Announce, Welcome, family member!
</action>
</automation>
<automation domain="" url="" name="Z-wave">
<description>
</description>
<trigger platform="time">
at 4:30 in the morning
</trigger>
<conditions>
</conditions>
<action>
Heal Z-Wave network
</action>
</automation>
</automations>