forked from matt8707/hass-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
automations.yaml
314 lines (314 loc) · 7.72 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
- id: "1662537236129"
alias: Front door unlocked notification
description: Sends phone notification if the front door is unlocked for too long
trigger:
- platform: state
entity_id:
- lock.front_door
to: unlocked
for:
hours: 0
minutes: 2
seconds: 0
condition: []
action:
- device_id: 6a6717a9c36c07395217a7cb0d10c5b2
domain: mobile_app
type: notify
message: Front door is unlocked!
- device_id: da2a54d25f82a71b18bd36465060d5f3
domain: mobile_app
type: notify
message: Front door is unlocked!
mode: single
- id: "1662546484568"
alias: Start vacuum when no one is home
description:
Starts vacuum if both Edward and Linda are not home and only if vacuum
has not been run today already
trigger:
- platform: state
entity_id:
- person.edward
to: not_home
- platform: state
entity_id:
- person.linda
to: not_home
condition:
- condition: and
conditions:
- condition: state
entity_id: person.edward
state: not_home
- condition: state
entity_id: person.linda
state: not_home
- condition: state
entity_id: input_boolean.no_vacuum
state: "off"
action:
- data: {}
target:
entity_id: vacuum.vacuum
action: vacuum.start
- device_id: 6a6717a9c36c07395217a7cb0d10c5b2
domain: mobile_app
type: notify
message: Vacuum started
title: Vacuum started
- data: {}
target:
entity_id: counter.vacuum_counter
action: counter.increment
- data: {}
target:
entity_id: input_boolean.no_vacuum
action: input_boolean.turn_on
mode: single
- id: "1663596447311"
alias: Clean robot dock reminder daily
description:
If either Edward or Linda is home and the dock has not been cleaned
for more than 3 days then send a reminder to clean dock
trigger:
- platform: time
at: "20:30:00"
condition:
- condition: and
conditions:
- condition: numeric_state
entity_id: counter.vacuum_counter
above: 1
action:
- device_id: 6a6717a9c36c07395217a7cb0d10c5b2
domain: mobile_app
type: notify
message: Time to clean the vacuum dock
title: Scan the NFC tag after it is cleaned
- device_id: da2a54d25f82a71b18bd36465060d5f3
domain: mobile_app
type: notify
message: Time to clean the vacuum dock
title: Scan the NFC tag after it is cleaned
- data:
message: Clean the vacuum!
action: script.tts_google_speakers
mode: single
- id: "1664443046441"
alias: Vacuum dock tag scanned
description: Resets vacuum counter when tag is scanned
trigger:
- platform: tag
tag_id: 3016833c-7067-47f5-8551-c1498159b3fe
condition: []
action:
- service: counter.reset
data: {}
target:
entity_id: counter.vacuum_counter
mode: single
- id: "1664443190969"
alias: Water heater reminder daily
description: ""
trigger:
- platform: time
at: "21:30:00"
condition: []
action:
- service: script.tts_google_speakers
data:
message: Turn on the water heater
- device_id: 49610d025fb7bbde0d30096f85a95d2f
domain: mobile_app
type: notify
message: Turn on the water heater
title: Turn on the water heater
mode: single
- id: "1664443565606"
alias: Vitamin Tracker
description: ""
trigger:
- platform: tag
tag_id: af9c3c26-3f73-45cc-b08d-22862960c7ba
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.vitamin_tracker
state: "off"
sequence:
- service: tts.cloud_say
data:
entity_id: media_player.office_speaker
message: Yes, take your vitamin
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.vitamin_tracker
default:
- service: tts.cloud_say
data:
entity_id: media_player.office_speaker
message: STOP! You have already had your vitamins for the day.
mode: single
- id: "1664443685941"
alias: Vitamin reminder daily
description: ""
trigger:
- platform: time
at: "15:00:00"
condition:
- condition: state
entity_id: input_boolean.vitamin_tracker
state: "off"
- condition: state
entity_id: device_tracker.edwards_pixel
state: home
action:
- device_id: 49610d025fb7bbde0d30096f85a95d2f
domain: mobile_app
type: notify
message: Take your vitamins
mode: single
- id: "1664443767385"
alias: Daily stuff
description: ""
trigger:
- platform: time
at: 04:00:00
condition: []
action:
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.vitamin_tracker
- service: input_boolean.turn_off
data: {}
target:
entity_id: input_boolean.no_vacuum
- service: script.turn_off_electronics
data: {}
mode: single
- id: "1664444686046"
alias: Tag Night stand Edward is scanned
description: ""
trigger:
- platform: tag
tag_id: 0b7294af-9601-4747-823b-a2f7cbcb1772
condition: []
action:
- service: script.turn_off_electronics
data: {}
mode: single
- id: "1664444826301"
alias: Tag Night stand Linda is scanned
description: ""
trigger:
- platform: tag
tag_id: 40149d82-b7bb-4e47-9e5e-938e8cbc873f
condition: []
action:
- service: script.turn_off_electronics
data: {}
mode: single
- id: "1666616143798"
alias: Leave home automation
description:
Turns off everything when both Linda and Edward's phones are disconnected
from wifi
trigger:
- platform: state
entity_id:
- person.edward
to: not_home
- platform: state
entity_id:
- person.linda
to: not_home
condition:
- condition: and
conditions:
- condition: state
entity_id: person.edward
state: not_home
- condition: state
entity_id: person.linda
state: not_home
action:
- service: script.turn_off_electronics
data: {}
mode: single
- id: "1667021463544"
alias: Tag No Vacuum is scanned
description: ""
trigger:
- platform: tag
tag_id: a26b9e68-1306-447d-af88-cb2b1a9b6669
condition: []
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.no_vacuum
mode: single
- id: "1703051972841"
alias: Notify Edward when 3D Print is done
description: ""
trigger:
- platform: state
entity_id:
- sensor.prusalink
from: printing
to: finished
for:
hours: 0
minutes: 10
seconds: 0
condition:
- condition: state
entity_id: person.edward
state: home
action:
- device_id: 6a6717a9c36c07395217a7cb0d10c5b2
domain: mobile_app
type: notify
message: Print finished
mode: single
- id: "1724676638127"
alias: "Curtain: Open to 75% in the morning"
description: ""
trigger:
- platform: time
at: 07:30:00
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- action: cover.set_cover_position
target:
entity_id:
- cover.bedroom_curtain
data:
position: 75
mode: single
- id: "1724676697629"
alias: "Curtain: Close at night"
description: ""
trigger:
- platform: time
at: "22:00:00"
condition: []
action:
- action: cover.close_cover
metadata: {}
data: {}
target:
entity_id: cover.bedroom_curtain
mode: single