-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
525 lines (513 loc) · 11.8 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
- id: '1'
alias: Licht in der Dämmerung
trigger:
platform: sun
event: sunset
offset: -01:00:00
condition:
condition: state
entity_id: group.bewohner
state: home
action:
service: light.turn_on
entity_id: group.Wohnzimmer
- id: '2'
alias: Billy auf dem Heimweg
trigger:
platform: state
entity_id: device_tracker.jiphone_ios
from: Unterschleissheim
to: not_home
for:
minutes: 10
condition:
condition: time
after: '15:00:00'
weekday:
- mon
- tue
- wed
- thu
- fri
action:
service: notify.elisabeth
data_template:
title: Billy auf dem Heimweg
message: 'Billy ist nun auf dem Heimweg. ETA: {{ states.sensor.julian_home_travel.attributes.duration_in_traffic
}}
'
- id: '3'
alias: Billy zu Hause
trigger:
- entity_id: device_tracker.jiphone_ios
from: not_home
platform: state
to: home
action:
- data:
message: ist jetzt zu Hause
title: Billy
service: notify.julian
- entity_id: switch.callforwarding_2
service: switch.turn_off
- id: '4'
alias: Billy unterwegs
trigger:
platform: state
entity_id: device_tracker.jiphone, device_tracker.windowsphone
from: home
to: not_home
action:
- service: notify.julian
data:
title: Billy
message: ist unterwegs
- service: switch.turn_on
entity_id: switch.callforwarding_2
- id: '5'
alias: Rufumleitung Billy aktiviert
trigger:
- entity_id: switch.callforwarding_2
from: 'off'
platform: state
to: 'on'
action:
- data:
message: Rufumleitung aktiviert
title: Billy
service: notify.julian
- id: '6'
alias: Rufumleitung Billy deaktiviert
trigger:
platform: state
entity_id: switch.callforwarding_2
from: 'on'
to: 'off'
action:
- service: notify.julian
data:
title: Billy
message: Rufumleitung deaktiviert
- id: '7'
alias: Rufumleitung Hausverwaltung aktiviert
trigger:
platform: state
entity_id: switch.callforwarding_0
from: 'off'
to: 'on'
action:
- service: notify.elisabeth
data:
title: Lilly
message: Rufumleitung Hausverwaltung aktiviert
- id: '8'
alias: Rufumleitung Hausverwaltung deaktiviert
trigger:
platform: state
entity_id: switch.callforwarding_0
from: 'on'
to: 'off'
action:
- service: notify.elisabeth
data:
title: Lilly
message: Rufumleitung Hausverwaltung deaktiviert
- id: '20'
alias: Rufumleitung Kanzlei aktiviert
trigger:
platform: state
entity_id: switch.callforwarding_1
from: 'off'
to: 'on'
action:
- service: notify.elisabeth
data:
title: Lilly
message: Rufumleitung Kanzlei aktiviert
- id: '21'
alias: Rufumleitung Kanzlei deaktiviert
trigger:
platform: state
entity_id: switch.callforwarding_1
from: 'on'
to: 'off'
action:
- service: notify.elisabeth
data:
title: Lilly
message: Rufumleitung Kanzlei deaktiviert
- id: '9'
alias: Lilly zu Hause
trigger:
platform: state
entity_id: device_tracker.eiphone
from: not_home
to: home
action:
- service: notify.julian
data:
title: Lilly
message: ist jetzt zu Hause
- service: switch.turn_off
entity_id:
- switch.callforwarding_0
- switch.callforwarding_1
- id: '10'
alias: Lilly unterwegs
trigger:
platform: state
entity_id: device_tracker.eiphone
from: home
to: not_home
action:
- service: notify.julian
data:
title: Lilly
message: ist jetzt unterwegs
- service: switch.turn_on
entity_id:
- switch.callforwarding_0
- switch.callforwarding_1
- id: '11'
alias: Jemand zu Hause
trigger:
- platform: state
entity_id: group.family
from: not_home
to: home
action:
- service: climate.set_away_mode
data:
away_mode: false
- service: notify.julian
data:
title: Niemand
message: ist mehr zu Hause
- id: '12'
alias: Niemand zu Hause
trigger:
- platform: state
entity_id: group.family
from: home
to: not_home
for:
minutes: 10
action:
service: notify.julian
data:
title: Niemand
message: ist mehr zu Hause
- id: '13'
alias: Sonos Durchsage
trigger:
platform: state
entity_id: input_boolean.mytest
action:
service: script.sonos_say
data:
sonos_entity: media_player.schlafzimmer
volume: 0.5
message: Billy testet nur die Sprachwiedergabe!
delay: 00:00:05
- id: '14'
alias: Ab ins Bett
trigger:
platform: time
at: '22:00:00'
condition:
condition: state
entity_id: group.bewohner
state: home
action:
service: scene.turn_on
entity_id: scene.good_night
- id: '15'
alias: Gute Nacht
trigger:
platform: time
at: '22:30:00'
action:
service: light.turn_off
data:
transition: 1
- id: '16'
alias: Camera Motion
trigger:
- platform: state
entity_id: sensor.camera
to: motion
action:
service: notify.julian
data:
title: Camera
message: Motion captured at neighbourhoodwatch
data:
url: http://neighbourhoodwatch:8081
tag: neighbourhoodwatch_motion
- id: '17'
alias: Home Assistant Update
trigger:
- platform: state
entity_id: updater.updater
action:
service: notify.julian
data:
message: Version {{ states.updater.updater.state }} von Home Assistant ist nun
verfügbar.
- id: '19'
alias: Curcuma braucht Wasser
trigger:
- platform: numeric_state
entity_id: sensor.sensor_1_moisture
below: 15
action:
- service: notify.julian
data:
message: Die Curcuma braucht Wasser.
- id: '22'
alias: Detected a face
trigger:
- event_data:
entity_id: face_detection_wohnzimmer
event_type: image_processing.detect_face
platform: event
action:
- data:
message: Detected a face.
service: notify.julian
- id: '23'
alias: Wetterwarnung München
initial_state: true
trigger:
platform: numeric_state
entity_id: sensor.warnings_muenchen_current_warning_level
above: 2
action:
- service: notify.julian
data:
message: '{{ states.sensor.warnings_muenchen_current_warning_level.attributes.region_name
}}
{% if states.sensor.warnings_muenchen_current_warning_level.attributes.warning_1_headline
is defined %}
{{ states.sensor.warnings_muenchen_current_warning_level.attributes.warning_1_headline
}}
Warnstufe: {{ states.sensor.warnings_muenchen_current_warning_level.attributes.warning_1_level
}}
Von: {{ as_timestamp(states.sensor.warnings_muenchen_current_warning_level.attributes.warning_1_start)
| timestamp_custom("%a %d.%m.%Y %H:%M",true) }}
Bis: {{ as_timestamp(states.sensor.warnings_muenchen_current_warning_level.attributes.warning_1_end)
| timestamp_custom("%a %d.%m.%Y %H:%M",true) }}
{{ states.sensor.warnings_muenchen_current_warning_level.attributes.warning_1_description
}}
{% endif %}
'
- id: '1506654915171'
alias: Fernsehlicht an
trigger:
- entity_id: device_tracker.tv
from: not_home
platform: state
to: home
condition:
- after: sunset
before: sunrise
condition: sun
action:
- data:
entity_id: scene.Fernsehen
service: scene.turn_on
- id: '1506655401045'
alias: Fernsehlicht aus
trigger:
- entity_id: device_tracker.tv
from: home
platform: state
to: not_home
action:
- delay: 00:03:00
- data:
entity_id:
- light.eckstrahler
- light.lightstrip
service: light.turn_off
- action:
- data:
message: detektiert
title: Bewegung in der Schokoladenfabrik
service: notify.julian
alias: Bewegungsmelder Schokoladenfabrik
condition: []
id: '9522507257599'
trigger:
- payload: 'on'
platform: mqtt
topic: augustenstrasse/dafang1/motion
- action:
- data:
message: detektiert
title: Bewegung im Drachenhorst
service: notify.julian
alias: Bewegungsmelder Drachenhorst
condition: []
id: '1522507257594'
trigger:
- payload: 'on'
platform: mqtt
topic: drachenhorst/dafang2/motion
- action:
- data:
message: detektiert
title: Bewegung in der Augustenstrasse
service: notify.julian
alias: Bewegungsmelder Augustenstrasse
condition: []
id: '9522507257594'
trigger:
- payload: 'ON'
platform: mqtt
topic: augustenstrasse/dafang3/motion
- action:
- delay: 00:00:02
- service: python_script.update_zone_occupancies
alias: Update Occupants
condition: []
id: '1522510838998'
initial_state: 'on'
trigger:
- entity_id: device_tracker.jiphone_ios
platform: state
- entity_id: device_tracker.eiphone_ios
platform: state
- action:
- data:
entity_id: switch.dafang1_motion_detection
service: switch.turn_on
- data:
message: verlassen
title: Schokoladenfabrik
service: notify.julian
alias: Schokoladenfabrik verlassen
condition: []
id: '1522573800854'
trigger:
- below: '1'
entity_id: sensor.occupants_geretsried
platform: numeric_state
- action:
- data:
entity_id: switch.dafang1_motion_detection
service: switch.turn_off
- data:
message: bewohnt
title: Schokoladenfabrik
service: notify.julian
alias: Schokoladenfabrik bewohnt
condition: []
id: '6612526605275'
trigger:
- above: '0'
entity_id: sensor.occupants_geretsried
platform: numeric_state
- action:
- data:
entity_id: switch.dafang2_motion_detection
service: switch.turn_on
- data:
message: verlassen
title: Drachenhorst
service: notify.julian
alias: Drachenhorst verlassen
condition: []
id: '1522526500754'
trigger:
- below: '1'
entity_id: sensor.occupants_irma_wenke_str
platform: numeric_state
- action:
- data:
entity_id: switch.dafang2_motion_detection
service: switch.turn_off
- data:
message: bewohnt
title: Drachenhorst
service: notify.julian
alias: Drachenhorst bewohnt
condition: []
id: '1522526605275'
trigger:
- above: '0'
entity_id: sensor.occupants_irma_wenke_str
platform: numeric_state
- action:
- data:
entity_id: switch.dafang3_motion_detection
service: switch.turn_on
- data:
message: verlassen
title: Augustenstrasse
service: notify.julian
alias: Augustenstrasse verlassen
condition: []
id: '1522573800754'
trigger:
- below: '1'
entity_id: sensor.occupants_home
platform: numeric_state
- action:
- data:
entity_id: switch.dafang3_motion_detection
service: switch.turn_off
- data:
message: bewohnt
title: Augustenstrasse
service: notify.julian
alias: Augustenstrasse bewohnt
condition: []
id: '6622526605275'
trigger:
- above: '0'
entity_id: sensor.occupants_home
platform: numeric_state
- action:
- data:
message: That's an example that
title: Send a message
service: notify.julian
alias: Neuer snap Augustenstr
condition: []
id: '1523685773653'
trigger:
- platform: mqtt
topic: augustenstrasse/dafang3/motion/snapshot
- id: '1532501801403'
alias: Detect Billys Face
trigger:
- event_data:
entity_id: image_processing.face_id_wohnzimmer
event_type: image_processing.detect_face
platform: event
condition: []
action:
- service: notify.julian
data_template:
title: Face recognized
message: 'Recognized {{ trigger.event.data.name }} with probability {{ trigger.event.data.confidence }}'
- id: '1536030351586'
alias: Kaffeemaschine an
trigger:
- at: '7:30'
platform: time
action:
- data:
entity_id: light.onoff_plug_2
service: light.turn_on
- id: '1536030408272'
alias: Kaffeemaschine aus
trigger:
- at: '8:30'
platform: time
condition: []
action:
- data:
entity_id: light.onoff_plug_2
service: light.turn_off