-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathautomations.yaml
385 lines (385 loc) · 11.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
- id: '1718219154509'
alias: Luchtreiniger Slaapkamer
description: ''
trigger:
- platform: time
at: '21:30:00'
id: time
- platform: state
entity_id:
- sensor.house_mode
to: Slapen
id: sleep_time
- platform: state
entity_id:
- sensor.house_mode
from: Slapen
id: no_more_sleep_time
- platform: state
entity_id:
- sensor.luchtreiniger_slaapkamer_air_quality
not_to:
- excellent
- unknown
id: air_quality
- platform: state
entity_id:
- sensor.luchtreiniger_slaapkamer_air_quality
to: excellent
id: air_quality
for:
minutes: 5
- platform: time_pattern
hours: /1
id: quality_check
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- air_quality
- sleep_time
- quality_check
- condition: state
entity_id: sensor.house_mode
state: Slapen
- condition: not
conditions:
- condition: state
entity_id: sensor.luchtreiniger_slaapkamer_air_quality
state: excellent
sequence:
- service: fan.turn_on
metadata: {}
data:
percentage: 11
target:
entity_id: fan.luchtreiniger_slaapkamer
- service: switch.turn_off
target:
entity_id: switch.luchtreiniger_slaapkamer_led_enable
data: {}
- conditions:
- condition: trigger
id:
- time
- air_quality
- condition: time
after: '21:30'
- condition: not
conditions:
- condition: state
entity_id: sensor.luchtreiniger_slaapkamer_air_quality
state: excellent
- condition: numeric_state
entity_id: zone.home
above: 0
sequence:
- service: fan.turn_on
metadata: {}
data:
preset_mode: auto
target:
entity_id: fan.luchtreiniger_slaapkamer
- conditions:
- condition: trigger
id:
- air_quality
- sleep_time
- no_more_sleep_time
- condition: or
conditions:
- condition: trigger
id:
- no_more_sleep_time
- condition: and
conditions:
- condition: state
entity_id: sensor.house_mode
state: Slapen
- condition: state
entity_id: sensor.luchtreiniger_slaapkamer_air_quality
state: excellent
for:
minutes: 5
sequence:
- service: fan.turn_off
metadata: {}
data: {}
target:
entity_id: fan.luchtreiniger_slaapkamer
- service: switch.turn_on
target:
entity_id: switch.luchtreiniger_slaapkamer_led_enable
data: {}
mode: single
- id: '1737282165653'
alias: Run actions on Awtrix button press
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.awtrix_martijn_button_left
- binary_sensor.awtrix_martijn_button_select
- binary_sensor.awtrix_martijn_button_right
- binary_sensor.awtrix_floris_button_left
- binary_sensor.awtrix_floris_button_select
- binary_sensor.awtrix_floris_button_right
- binary_sensor.awtrix_pepijn_button_left
- binary_sensor.awtrix_pepijn_button_select
- binary_sensor.awtrix_pepijn_button_right
from: 'off'
to: 'on'
conditions: []
actions:
- wait_for_trigger:
- trigger: template
value_template: '{{ is_state(trigger.entity_id, ''off'') }}'
timeout:
hours: 0
minutes: 0
seconds: 2
- variables:
time: '{{ 2 if wait.trigger is none else (wait.trigger.to_state.last_changed
- trigger.to_state.last_changed).total_seconds() }}'
click: '{{ ''single'' if time < 2 else ''hold'' }}'
- event: awtrix_button_event
event_data:
area: '{{ area_id(trigger.entity_id) }}'
button: '{{ trigger.entity_id.split(''_'')[-1] }}'
click: '{{ click }}'
mode: single
- id: '1737361652862'
alias: EN - Music Assistant - Local LLM Enhanced Voice Support Blueprint
description: ''
use_blueprint:
path: music-assistant/mass_llm_enhanced_assist_blueprint_en.yaml
input:
expose_players: false
expose_areas: false
llm_agent: conversation.openai_no_control
- id: '1737388853880'
alias: Turn off Studio Code Server add-on
description: ''
triggers:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: action_vscode_off
conditions: []
actions:
- action: hassio.addon_stop
metadata: {}
data:
addon: a0d7b954_vscode
mode: single
- id: '1737403451714'
alias: Music Assistant - Local(only) Voice Support Blueprint
description: ''
use_blueprint:
path: music-assistant/mass_assist_blueprint_en.yaml
input:
default_player_entity_id_input: media_player.test_player
album_trigger:
- (play|listen to|bla bla) [the ](album|ep|record|compilation|single) {media_name}
[by [the ](artist|band|group) {artist}] [(in|on|using) [the ]{area_or_player_name}][
(with|using) {radio_mode}]
track_trigger:
- (play|listen to|bla bla) [the ](track|song) {media_name} [by [the ](artist|band|group)
{artist}] [(in|on|using) [the ]{area_or_player_name}][ (with|using) {radio_mode}]
artist_trigger:
- (play|listen to|bla bla) [the ](artist|band|group) {media_name} [(in|on|using)
[the ]{area_or_player_name}][ (with|using) {radio_mode}]
radio_trigger:
- (play|listen to|bla bla) [the ]((radio station)|(radio)|(station)) {media_name}
[(in|on|using) [the ]{area_or_player_name}]
playlist_trigger:
- (play|listen to|bla bla) [the ]playlist {media_name} [(in|on|using) [the ]{area_or_player_name}][
(with|using) {radio_mode}]
response_input: 'TEST: {{ trigger.slots.media_name }} playing on {{ mass_player_name
}}'
- id: '1737968496160'
alias: Voice - Weather Forecast - Local Assist Blueprint
description: ''
use_blueprint:
path: TheFes/1_voice_weather_forecast_local.yaml
input:
weather_entity: weather.combined
- id: '1737968516911'
alias: Voice - Weather Forecast - Local Assist Blueprint
description: ''
use_blueprint:
path: TheFes/1_voice_weather_forecast_local.yaml
input:
weather_entity: weather.combined
today:
- vandaag
tomorrow:
- morgen
day_after_tomorrow:
- overmorgen
monday:
- maandag
tuesday:
- dinsdag
wednesday:
- woensdag
thursday:
- donderdag
friday:
- vrijdag
saturday:
- zaterdag
sunday:
- zondag
night:
- vannacht
- morgennacht
- morgen nacht
morning:
- ochtend
- morgenvroeg
- morgen vroeg
afternoon:
- middag
- vanmiddag
- morgenmiddag
evening:
- morgenavond
- vanavond
- morgen avond
clear: en helder
clear-night: en helder
cloudy: en bewolkt
fog: en misting
hail: met hagel
lightning: met onweer
lightning-rainy: met onweer en regen
partlycloudy: en gedeeltelijk bewolkt
pouring: met stortregen
rainy: met regen
snowy: met sneeuw
snowy-rainy: met sneeuw en regen
sunny: en zonnig
windy: en winderig
windy-variant: met wind en woken
exceptional: met zeer uitzonderlijk weer
response_invalid_phrase: Ik kan geen weersvoorspelling ophalen voor {{ phrase
}}
response_no_data: Geen weersvoorspelling beschikbaar voor {{ phrase }}
response_forecast: Het wordt {{ temperature }} graden {{ condition_translated
}}. {% if temperature != apparent_temperature %}Het voelt als {{ apparent_temperature
}} graden.{% endif %} {% if precipitation_probability > rain_warning_threshold
%}Er is {{ precipitation_probability }}% kans op {{ precipitation }} milimeter
regen, dus neem een paraplu mee als je naar buiten gaat.{% endif %} {% if
uv_index > 3 and condition in ['clear', 'partlycloudy'] %}De zon schijnt fel
vandaag, dus doe zonnebrand op als je naar buiten gaat.{% endif %} {% if wind_speed
>= wind_threshold %} De wind wordt {{ wind_phrase }}.{% endif %} {% if wind_speed
>= wind_warning_threshold %}Dus als je niet per se naar buiten hoeft, blijf
dan vooral lekker binnen.{% elif wind_speed >= wind_joke_threshold %}Dus zorg
dat je {% if precipitation_probability > 10 %}paraplu {% else %}'t{% endif
%}niet weg waait!{% endif %}
wind_phrases:
windstil: 0
zwak: 1
matig: 12
vrij krachtig: 29
krachtig: 39
hard: 50
stormachtig: 62
een storm: 75
een zware storm: 89
een zeer zware storm: 103
een orkaan: 118
trigger:
- Wat voor weer wordt het [[deze|komende] {phrase}]
- Wat is de [weers]voorspelling [[voor] [deze|komende] {phrase}]
- id: '1738179908517'
alias: Voice - Calendar Entries - Local Assist Blueprint
description: ''
use_blueprint:
path: TheFes/1_voice_calendar_entries_local.yaml
input:
calendar_entity:
- calendar.kids
- calendar.thefes
- calendar.m_m
today:
- vandaag
tomorrow:
- morgen
day_after_tomorrow:
- overmorgen
monday:
- maandag
tuesday:
- dinsdag
wednesday:
- woensdag
thursday:
- donderdag
friday:
- vrijdag
saturday:
- zaterdag
sunday:
- zondag
night:
- vannacht
- morgennacht
- morgen nacht
morning:
- ochtend
- morgenvroeg
- morgen vroeg
afternoon:
- middag
- vanmiddag
- morgenmiddag
evening:
- morgenavond
- vanavond
- morgen avond
response_translations:
Monday: maandag
Tuesday: dinsdag
Wednesday: woensdag
Thursday: donderdag
Friday: vrijdag
Saturday: zaterdag
Sunday: zondag
January: januari
February: februari
March: maart
April: april
May: mei
June: juni
July: juli
August: augustus
September: september
October: oktober
November: november
December: december
event_singular: afspraak
event_plural: afspraken
no_events: Er zijn geen afspraken voor deze periode
event_count: Op {date} heb je {event_count} {events}.
day_event: Voor de hele dag staat er {event_list}.
part_day_event: Van {start} tot {end} heb je {event_summary}.
trigger:
- wat staat er [voor|op] {phrase} op de (agenda|kalender|planning)
- staat er [voor|op] {phrase} iets op de (agenda|kalender|planning)
- id: '1738230371255'
alias: Voice - Get ToDo Entries - Local Assist Blueprint
description: ''
use_blueprint:
path: TheFes/1_voice_get_todo_entries_local.yaml
input:
default_entity: todo.boodschappenlijst
trigger:
- "wat staat er op [de] (boodschappen[ ]lijst|lijst (met de naam|genaamd)
{list_name}|{list_name}[ ]lijst)"
no_items_response: '{list_name} is leeg.'
list_items_response: 'Er staan {item_count} dingen op: {list_items}'
invalid_list_response: Ik kan geen lijst met de naam {list_name} vinden.