-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathautomations.yaml
404 lines (401 loc) · 11.4 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
- id: '1576259013772'
alias: tado living room too long heating
description: ''
trigger:
- entity_id: binary_sensor.living_room_heating
for: 01:30:00
platform: state
to: 'on'
condition: []
action:
- data:
message: WARNING! Heating on for 90 minutes in Living room
service: notify.beardedbot
- id: '1576403224771'
alias: Look above
description: ISS should be visible
trigger:
- entity_id: binary_sensor.iss
platform: state
to: 'on'
condition: []
action:
- data:
message: Look above! ISS is somewhere above your head!!!
service: notify.beardedbot
- id: '1576916739763'
alias: Camera motion webhook
description: ''
trigger:
- platform: webhook
webhook_id: cam1motion
condition: []
action:
- data:
message: Cam 1 motion trigger
service: notify.beardedbot
- entity_id: image_processing.facebox_cam_1_image
service: image_processing.scan
- id: '1576923587830'
alias: Audrey Hepburn recognized
description: ''
trigger:
- entity_id: sensor.facebox_detection
platform: state
to: Audrey Hepburn
condition: []
action:
- data:
message: OMG Audrey Hepburn at the door
service: notify.beardedbot
- id: '01211221231'
alias: Aircraft in protected airspace
trigger:
platform: event
event_type: opensky_entry
action:
service: notify.beardedbot
data_template:
message: 'Aircraft in protected airspace: {{ trigger.event.data.callsign }} '
- id: '1578305760672'
alias: Luka room mold warning
description: ''
trigger:
- entity_id: sensor.luka_room_mold_indicator
for: 00:05:00
platform: state
to: '70'
condition: []
action:
- data:
message: Luka room needs venting
service: notify.beardedbot
- id: '1579536149087'
alias: AQI Warning
description: ''
trigger:
- below: '50'
entity_id: sensor.chinese_air_pollution_level
platform: numeric_state
condition: []
action:
- data:
message: Airvisual AQI is getting worse! It's above 50!
service: notify.beardedbot
- id: '1579540203378'
alias: Update OpenUV
description: ''
trigger:
- minutes: '59'
platform: time_pattern
condition:
- after: sunrise
before: sunset
condition: sun
action:
- service: openuv.update_data
- id: '1580754845889'
alias: Drzzs is streaming
description: ''
trigger:
- entity_id: sensor.drzzs
platform: state
to: streaming
condition: []
action:
- data:
message: DrZzs is streaming!
service: notify.beardedbot
- id: '1583057126091'
alias: People playing Minecraft
description: ''
trigger:
- above: '0'
entity_id: sensor.minecraft_server_players_online
platform: numeric_state
condition: []
action:
- data:
message: Someone is Playing on Minecraft Server
service: notify.beardedbot
- id: '1583057215106'
alias: Server respoding slowly
description: ''
trigger:
- above: '250'
entity_id: sensor.minecraft_server_latency_time
platform: numeric_state
condition: []
action:
- data:
message: WARNING! Latency too high! Check server!
service: notify.beardedbot
- id: '1583341044646'
alias: New Infection in Croatia
description: ''
trigger:
- entity_id: sensor.croatia_coronavirus_confirmed
platform: state
condition: []
action:
- data:
message: COVID-19 - Ukupno zaraženih {{ states("sensor.croatia_coronavirus_confirmed")
}} u HR
service: notify.beardedbot
- id: '1583341122214'
alias: Another person recovered
description: ''
trigger:
- entity_id: sensor.worldwide_coronavirus_recovered
platform: state
condition: []
action:
- data:
message: Someone recovered from COVID-19!
service: notify.beardedbot
- id: '1592841199906'
alias: ccs811
description: ''
trigger:
- above: '800'
entity_id: sensor.ccs811_eco2_value
for: 00:05
platform: numeric_state
condition: []
action:
- data:
message: Warning CO2 levels too high
service: notify.beardedbot
- id: '1596115083257'
alias: Each hour
description: ''
trigger:
- at: '9:30'
platform: time
condition: []
action:
- data: {}
entity_id: switch.luka_floor_lights_nightlight
service: switch.turn_on
- timeout: '0'
wait_template: '60:00'
- data: {}
entity_id: switch.luka_floor_lights_nightlight
service: switch.turn_off
- id: '1596115300081'
alias: Start at 9:30
description: ''
trigger:
- at: '9:30'
platform: time
condition: []
action:
- data: {}
entity_id: switch.luka_floor_lights_nightlight
service: switch.turn_on
- id: '1596115361083'
alias: Turn off at 21:30
description: ''
trigger:
- at: '21:30'
platform: time
condition: []
action:
- data: {}
entity_id: switch.luka_floor_lights_nightlight
service: switch.turn_off
- id: '1596115465639'
alias: Turn off for 2 minutes every 60 minutes
description: ''
trigger:
- minutes: '32'
platform: time_pattern
condition:
- after: '10:00'
before: '21:29'
condition: time
action:
- data: {}
entity_id: switch.luka_floor_lights_nightlight
service: switch.turn_off
- timeout: 02:00
wait_template: ''
- data: {}
entity_id: switch.luka_floor_lights_nightlight
service: switch.turn_on
- id: '1597248309214'
alias: Welcome home BT
description: ''
trigger:
- entity_id: device_tracker.hostone
platform: state
to: home
condition: []
action:
- data:
message: Welcome home BT!
service: notify.beardedbot
- id: '1601373446954'
alias: TEST Home Assistant Update available
description: ''
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sensor.latest_version
condition:
- condition: template
value_template: '{{ states("sensor.latest_version") != states("sensor.current_version")
and states("sensor.latest_version") != "unknown" and states("sensor.latest_version")
!= states("input_text.version_latest_notified") }}
'
action:
- service: input_text.set_value
data:
value: '{{ states("sensor.latest_version") }}'
entity_id: input_text.version_latest_notified
- service: persistent_notification.create
data:
title: Update Home Assistant
message: "There is an update to Home Assistant Supervised\n * {{ states(\"\
sensor.current_version\") }} -> {{ states(\"sensor.latest_version\") }}\n\
\ Triggering Travis build...\n"
notification_id: update_ha
- service: rest_command.travis_build
data: {}
- wait_template: '{{ is_state(''sensor.beardedtinker_home_assistant_config_rec_state'',
''started'') }}'
- service: persistent_notification.create
data:
title: Update Home Assistant
message: "There is an update to Home Assistant Supervised\n * {{ states(\"\
sensor.current_version\") }} -> {{ states(\"sensor.latest_version\") }}\n\
\ Travis Build has started\n"
notification_id: update_ha
- wait_template: '{{ not is_state(''sensor.beardedtinker_home_assistant_config_rec_state'',
''created'') and not is_state(''sensor.beardedtinker_home_assistant_config_rec_state'',
''started'') }}'
- service: persistent_notification.create
data:
title: Update Home Assistant
message: "There is an update to Home Assistant Supervised\n * {{ states(\"\
sensor.current_version\") }} -> {{ states(\"sensor.latest_version\") }}\n\
\ Travis Build has {{states('sensor.beardedtinker_home_assistant_config_rec_state')}}\n"
notification_id: update_ha
mode: single
- id: '1601375003220'
alias: Home Assistant Update automation
description: ''
trigger:
- platform: homeassistant
event: start
- platform: state
entity_id: sensor.latest_version
condition:
- condition: template
value_template: '{{ states("sensor.latest_version") != states("sensor.current_version")
and states("sensor.latest_version") != "unknown" and states("sensor.latest_version")
!= states("input_text.version_latest_notified") }}'
action:
- service: input_text.set_value
data:
value: '{{ states("sensor.latest_version") }}'
entity_id: input_text.version_latest_notified
- service: persistent_notification.create
data:
title: Update Home Assistant
message: "There is an update to Home Assistant Supervised\n * {{ states(\"\
sensor.current_version\") }} -> {{ states(\"sensor.latest_version\") }}\n\
\ Triggering Travis build...\n"
notification_id: update_ha
- service: rest_command.travis_build
data: {}
- wait_template: '{{ is_state(''sensor.beardedtinker_home_assistant_config_rec_state'',
''started'') }}'
- service: persistent_notification.create
data:
title: Update Home Assistant
message: "There is an update to Home Assistant Supervised\n * {{ states(\"\
sensor.current_version\") }} -> {{ states(\"sensor.latest_version\") }}\n\
\ Travis Build has started\n"
notification_id: update_ha
- wait_template: '{{ not is_state(''sensor.beardedtinker_home_assistant_config_rec_state'',
''created'') and not is_state(''sensor.beardedtinker_home_assistant_config_rec_state'',
''started'') }}'
- service: persistent_notification.create
data:
title: Update Home Assistant
message: "There is an update to Home Assistant Supervised\n * {{ states(\"\
sensor.current_version\") }} -> {{ states(\"sensor.latest_version\") }}\n\
\ Travis Build has {{states('sensor.beardedtinker_home_assistant_config_rec_state')}}\n"
notification_id: update_ha
mode: single
- id: '1601830956731'
alias: New version notification
description: ''
trigger:
- platform: state
entity_id: sensor.latest_version
condition:
- condition: template
value_template: '{{ states("sensor.latest_version") != states("sensor.current_version")
and states("sensor.latest_version") != "unknown" }}'
action:
- service: persistent_notification.create
data:
title: New version available
message: 'There is an updated to Home Assistant available. {{ states("sensor.current_version")
}} -> {{ states("sensor.latest_version") }}
'
mode: single
- id: '1601831231025'
alias: New BETA version available
description: ''
trigger:
- platform: state
entity_id: sensor.beta_version
condition:
- condition: template
value_template: '{{ states("sensor.beta_version") != states("sensor.current_version")
and states("sensor.beta_version") != "unknown" }}'
action:
- service: persistent_notification.create
data:
title: New BETA version available
message: 'There is a BETA version available. {{ states("sensor.beta_version")
}}
'
mode: single
- id: '1606842864634'
alias: Tag Blue FOB @reader is scanned
description: ''
trigger:
- platform: tag
tag_id: 3C-E5-EE-21
condition: []
action:
- type: toggle
device_id: 10af3f8fcfae83c4e44bd5310536fec5
entity_id: light.elgato_key_light_air_a54c
domain: light
mode: single
- id: '1610458337102'
alias: Ink low
description: ''
trigger:
- platform: numeric_state
entity_id:
- sensor.hp_deskjet_3520_series_black_ink
- sensor.hp_deskjet_3520_series_cyan_ink
- sensor.hp_deskjet_3520_series_yellow_ink
- sensor.hp_deskjet_3520_series_magenta_ink
for: 00:00:05
below: '25'
condition: []
action:
- service: persistent_notification.create
data:
title: Ink low
message: '{{ trigger.to_state.attributes.friendly_name }} is at {{ trigger.to_state.state
}}%'
mode: single