-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
443 lines (443 loc) · 12.2 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
- id: '1683608811710'
alias: Andy - Open Garage when Arriving Home
description: Open Garage when Arriving Home
trigger:
- platform: template
value_template: '{{states("sensor.andys_iphone_icloud3_v3_zone_distance") | float
<= 0.20}}'
- platform: state
entity_id:
- sensor.andys_iphone_icloud3_v3_zone_name
to: Home
condition:
- condition: state
entity_id: input_boolean.andy_driving_flag
state: 'on'
- condition: not
conditions:
- condition: time
after: '23:00:00'
before: 06:00:00
weekday:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
alias: Make sure it is not between 11pm - 6am
action:
- service: cover.open_cover
data: {}
target:
entity_id: cover.garage_door
- service: notify.mobile_app_andysiphone15_app
data:
title: Love you boo.
message: Come in my Homie. Hope today was well. Let's chill.
mode: single
- id: '1689609244173'
alias: Washer Machine - Wash cycle finish
description: Washer Machine - Wash cycle finish
use_blueprint:
path: sbyx/notify-or-do-something-when-an-appliance-like-a-dishwasher-or-washing-machine-finishes.yaml
input:
power_sensor: sensor.eve_energy_7a9c_power
starting_hysteresis: 1
starting_threshold: 5
finishing_threshold: 15
actions:
- service: notify.mobile_app_andys_iphone_15
data:
message: Washer has finished. Get it before it stinks, ew!
title: Washer Machine Cycle Finished
alias: 'Notify Andy: Wash COMPLETED'
- service: notify.mobile_app_shannonsiphone14_iosapp
data:
message: The washing cycle has just finished. Those clothes are sparkling
clean but still a bit shy and wet. It’s the perfect time to give them
a warm hug in the dryer or let them dance in the fresh air on a clothesline.
Whatever you choose, I'm here to remind you and make life a little easier.
Let’s turn this chore into a cheer!
title: Wash Cycle has COMPLETED!
alias: 'Notify Shannon: Wash COMPLETED'
pre_actions:
- service: notify.mobile_app_andys_iphone_15
data:
title: Washer machine cycle just started
message: I'll let you know when it's done, sir.
alias: 'Notify Andy: Wash STARTED'
- service: notify.mobile_app_shannonsiphone14_iosapp
data:
message: Just wanted to let you know that the washing machine has begun
its magical journey of cleaning. While I take care of the spin cycles,
why not steal some moments together? A good time for a cozy chat or a
sweet cup of coffee, perhaps.
title: Wash Cycle has STARTED!
alias: 'Notify Shannon: Wash STARTED'
- id: '1689645638650'
alias: Andy iPhone Alert - Home Assistant Successful Restart Notification
description: ''
use_blueprint:
path: gregoryduckworth/restart_notification.yaml
input:
notify_device: d756f8bb367b2b5692b4b3c309ef1e59
- id: '1689731361292'
alias: Andy iPad Alert - Home Assistant Restart Notification
description: ''
use_blueprint:
path: gregoryduckworth/restart_notification.yaml
input:
notify_device: c13042b5a1081cf01c5158e2590a125e
- id: '1692495737792'
alias: Andy - Far Away Flag, Turn OFF
description: ''
trigger:
- platform: template
value_template: '{{states("sensor.andys_iphone_icloud3_v3_zone_distance") | float
<= 5}}'
condition:
- condition: state
entity_id: sensor.andys_iphone_icloud3_v3_zone_distance
attribute: from_zone
state: home
alias: Confirm Andy ZoneDistance:FromZone is home
enabled: false
- condition: state
entity_id: input_boolean.andy_far_away_flag
state: 'on'
action:
- alias: 'Andy Far Away Flag: Turn off'
service: input_boolean.turn_off
data: {}
target:
entity_id:
- input_boolean.andy_far_away_flag
mode: single
- id: '1692507094295'
alias: Andy - Far Away Flag, Turn ON
description: ''
trigger:
- platform: template
value_template: '{{states("sensor.andys_iphone_icloud3_v3_zone_distance") | float
> 5}}'
condition:
- condition: state
entity_id: input_boolean.andy_far_away_flag
state: 'off'
action:
- alias: 'Andy Far Away Flag: Turn on'
service: input_boolean.turn_on
data: {}
target:
entity_id:
- input_boolean.andy_far_away_flag
mode: single
- id: '1692508484995'
alias: HA - Started Flag, Set
description: ''
trigger:
- platform: homeassistant
event: start
action:
- delay: 00:00:20
- service: input_boolean.turn_on
entity_id: input_boolean.ha_started_flag
mode: single
- id: '1692654415536'
alias: Shannon - Far Away Flag, Turn OFF
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.shannons_iphone14_icloud3_v3_zone_distance
below: 5
condition:
- alias: Confirm Shannon ZoneDistance:FromZone is not home
condition: state
entity_id: sensor.shannons_iphone14_icloud3_v3_zone_distance
attribute: from_zone
state: home
action:
- service: input_boolean.turn_off
alias: 'Shannon Far Away Flag: Turn off'
data: {}
target:
entity_id: input_boolean.shannon_far_away_flag
mode: single
- id: '1692654492984'
alias: Shannon - Far Away Flag, Turn ON
description: ''
trigger:
- alias: When Shannon Zone Distance is above 5 mi
platform: numeric_state
entity_id:
- sensor.shannons_iphone14_icloud3_v3_zone_distance
above: 5
condition:
- alias: Confirm Shannon ZoneDistance:FromZone is not home
condition: state
entity_id: sensor.shannons_iphone14_icloud3_v3_zone_distance
attribute: from_zone
state: home
action:
- service: input_boolean.turn_on
alias: 'Shannon Far Away Flag: Turn on'
data: {}
target:
entity_id: input_boolean.shannon_far_away_flag
mode: single
- id: '1692661845283'
alias: Update notifications
description: ''
use_blueprint:
path: mdegat01/update_notifications.yaml
input:
update_entities:
- update.home_assistant_core_update
- update.home_assistant_operating_system_update
- update.home_assistant_supervisor_update
mobile_app_device: 1bad7ecca6027f6be716bd33bbcd5d3d
only_after: 06:00:00
only_before: '20:00:00'
mobile_app_device_2: 1bad7ecca6027f6be716bd33bbcd5d3d
send_to_ha: false
reminder_hours: '12'
- id: '1696208711501'
alias: Time to Feed The Dogs
description: ''
trigger:
- platform: time
at: '19:00:00'
condition: []
action:
- service: media_player.volume_set
data:
volume_level: 0.78
target:
entity_id: media_player.kitchen_homepod_mini
- service: tts.cloud_say
data:
cache: true
message: 'Alert! Bueller and Hotchee are hungry. Please, feed them or else they
will wreck your place. Well, they might do that anyway. You have been warned. '
entity_id: media_player.kitchen_homepod_mini
mode: single
- id: '1699678247718'
alias: Hue play bars off when ATV turn off
description: ''
trigger:
- platform: state
entity_id:
- media_player.theater_appletv_4k
to: standby
for:
hours: 0
minutes: 0
seconds: 5
- platform: state
entity_id:
- media_player.theater_appletv_4k
to: 'off'
for:
hours: 0
minutes: 0
seconds: 5
condition: []
action:
- service: light.turn_off
data: {}
target:
entity_id: light.hue_play_bars
mode: single
- id: '1699757335263'
alias: Bathroom Lights Unavailable (Status Off)
description: ''
trigger:
- platform: state
entity_id:
- light.bathroom_lights
to: unavailable
condition: []
action: []
mode: single
- id: '1700030435113'
alias: WakeOnLAN
description: Turns on Andy's Office computer at home via Wake-On-Lan magic packets
trigger:
- platform: state
entity_id:
- input_button.wake_on_lan
action:
- service: wake_on_lan.send_magic_packet
data:
broadcast_port: 9
mac: b4-2e-99-4b-72-3b
mode: single
- id: '1701389767678'
alias: Shannon - Open Garage when Arriving Home
description: ''
trigger:
- platform: template
value_template: '{{states("sensor.shannons_iphone14_icloud3_v3_zone_distance") |
float <= 0.20}}'
- platform: state
entity_id:
- sensor.shannons_iphone14_icloud3_v3_zone_name
to: Home
condition:
- condition: state
entity_id: input_boolean.shannon_driving_flag
state: 'on'
- condition: not
conditions:
- condition: time
after: '23:00:00'
before: 06:00:00
weekday:
- sun
- mon
- tue
- wed
- thu
- fri
- sat
alias: Make sure it is not between 11pm - 6am
action:
- service: cover.open_cover
target:
entity_id: cover.garage_door
data: {}
- service: notify.mobile_app_shannonsiphone14_iosapp
data:
message: You are the Apple to my Pie. Did I say that right? Mucho missed you.
Might need to walk the doggos but i want to hear all about your day! And
thank you for the clock. I can’t stop looking at it. I need lighting for it!
title: Welcome home, Sweetie!
mode: single
- id: '1701403399257'
alias: Hue, Friends Of Hue switch, 4 button, all functions
description: ''
use_blueprint:
path: MrBunbao/hue_dimmer_switch.yaml
input:
hue-switch-button1:
- event.hue_dimmer_switch_2_button_1
hue-switch-button2:
- event.hue_dimmer_switch_2_button_2
hue-switch-button3:
- event.hue_dimmer_switch_2_button_3
hue-switch-button4:
- event.hue_dimmer_switch_2_button_4
button_1_short_release: []
button_2_short_release: []
button_4_short_release: []
button_1_press:
- service: light.toggle
target:
entity_id: light.bedroom_ceiling_fan_lights
data:
brightness_pct: 100
button_4_press:
- service: switch.toggle
data: {}
target:
entity_id: switch.bedroom_fairy_lights
button_2_press:
- service: light.toggle
target:
entity_id: light.bedroom_ceiling_fan_lights
data: {}
- service: switch.toggle
target:
entity_id: switch.bedroom_fairy_lights
data: {}
button_3_press:
- service: light.turn_on
target:
entity_id: light.bedroom_ceiling_fan_lights
data:
brightness_step_pct: -25
- id: '1701968903041'
alias: Andy - Driving Flag Turn ON
trigger:
- platform: template
value_template: '{{states("sensor.andys_iphone_icloud3_v3_zone_distance") | float
> 2}}'
condition:
- condition: state
entity_id: input_boolean.andy_far_away_flag
state: 'off'
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.andy_driving_flag
mode: single
- id: '1701969511597'
alias: Andy - Driving Flag Turn OFF
description: ''
trigger:
- platform: state
entity_id:
- device_tracker.andys_iphone_icloud3_v3
to: home
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: input_boolean.andy_driving_flag
state: 'on'
action:
- service: input_boolean.turn_off
target:
entity_id:
- input_boolean.andy_driving_flag
device_id: []
area_id: []
data: {}
mode: single
- id: '1701993016491'
alias: Shannon - Driving Flag Turn OFF
description: ''
trigger:
- platform: state
entity_id:
- device_tracker.shannons_iphone14_icloud3_v3
to: home
for:
hours: 0
minutes: 5
seconds: 0
condition:
- condition: state
entity_id: input_boolean.shannon_driving_flag
state: 'on'
action:
- service: input_boolean.turn_off
target:
device_id: []
area_id: []
entity_id: input_boolean.shannon_driving_flag
data: {}
mode: single
- id: '1701993119197'
alias: Shannon - Driving Flag Turn ON
description: ''
trigger:
- platform: template
value_template: '{{states("sensor.shannons_iphone14_icloud3_v3_zone_distance")
| float > 2}}'
condition:
- condition: state
entity_id: input_boolean.shannon_far_away_flag
state: 'off'
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.shannon_driving_flag
mode: single