iobroker.assistant 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/admin/custom/.vite/manifest.json +18 -18
- package/admin/custom/assets/Components-DGifJGYx.js +2 -0
- package/admin/custom/assets/{_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-fxARoTRS.js → _virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-Ckpr0MHE.js} +1 -1
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-CRG5UC4m.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-BanHP4Nt.js} +64 -64
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare__shared-CpHul7u9.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__loadShare__shared-BnAYSFON.js} +1 -1
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-JBzVK-6R.js +122 -0
- package/admin/custom/assets/{hostInit-y7sTzQxx.js → hostInit-6JlKIkio.js} +1 -1
- package/admin/custom/assets/{lib-DSjTTMgF.js → lib-HGRsyW2B.js} +1 -1
- package/admin/custom/assets/{mf-entry-bootstrap-0-b04cc744.js → mf-entry-bootstrap-0-95048639.js} +2 -2
- package/admin/custom/assets/{pendingShares-DX6xYXgn.js → pendingShares-BGhHdsEv.js} +1 -1
- package/admin/custom/customComponents.js +2 -2
- package/admin/custom/i18n/de.json +57 -1
- package/admin/custom/i18n/en.json +57 -1
- package/admin/custom/i18n/es.json +57 -1
- package/admin/custom/i18n/fr.json +57 -1
- package/admin/custom/i18n/it.json +57 -1
- package/admin/custom/i18n/nl.json +57 -1
- package/admin/custom/i18n/pl.json +57 -1
- package/admin/custom/i18n/pt.json +57 -1
- package/admin/custom/i18n/ru.json +57 -1
- package/admin/custom/i18n/uk.json +57 -1
- package/admin/custom/i18n/zh-cn.json +57 -1
- package/admin/custom/index.html +2 -2
- package/admin/custom/mf-manifest.json +1 -1
- package/admin/custom/mf-stats.json +1 -1
- package/admin/i18n/de.json +23 -3
- package/admin/i18n/en.json +23 -3
- package/admin/i18n/es.json +23 -3
- package/admin/i18n/fr.json +23 -3
- package/admin/i18n/it.json +23 -3
- package/admin/i18n/nl.json +23 -3
- package/admin/i18n/pl.json +23 -3
- package/admin/i18n/pt.json +23 -3
- package/admin/i18n/ru.json +23 -3
- package/admin/i18n/uk.json +23 -3
- package/admin/i18n/zh-cn.json +23 -3
- package/admin/jsonConfig.json +796 -618
- package/build/lib/llm.js +267 -4
- package/build/lib/llm.js.map +1 -1
- package/build/lib/llmBenchmark.js +139 -0
- package/build/lib/llmBenchmark.js.map +1 -0
- package/build/lib/llmModels.js +678 -0
- package/build/lib/llmModels.js.map +1 -0
- package/build/lib/localLlm.js +56 -37
- package/build/lib/localLlm.js.map +1 -1
- package/build/lib/piAgent.js +33 -0
- package/build/lib/piAgent.js.map +1 -1
- package/build/lib/systemAi.js +17 -2
- package/build/lib/systemAi.js.map +1 -1
- package/build/lib/voice/aws.js +9 -2
- package/build/lib/voice/aws.js.map +1 -1
- package/build/lib/voice/azure.js +6 -2
- package/build/lib/voice/azure.js.map +1 -1
- package/build/lib/voice/engines.js +34 -2
- package/build/lib/voice/engines.js.map +1 -1
- package/build/lib/voice/openrouter.js +5 -3
- package/build/lib/voice/openrouter.js.map +1 -1
- package/build/lib/voice/piper.js +6 -1
- package/build/lib/voice/piper.js.map +1 -1
- package/build/lib/voice/speechLanguage.js +217 -0
- package/build/lib/voice/speechLanguage.js.map +1 -0
- package/build/main.js +283 -19
- package/build/main.js.map +1 -1
- package/io-package.json +30 -27
- package/package.json +1 -1
- package/admin/custom/assets/Components-BQL6oX_k.js +0 -2
- package/admin/custom/assets/_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__212234797318001__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-2mXnqS7c.js +0 -122
package/admin/jsonConfig.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"items": {
|
|
5
5
|
"_main": {
|
|
6
6
|
"type": "panel",
|
|
7
|
-
"label": "
|
|
7
|
+
"label": "AI",
|
|
8
8
|
"items": {
|
|
9
9
|
"_header": {
|
|
10
10
|
"type": "header",
|
|
@@ -201,20 +201,97 @@
|
|
|
201
201
|
"lg": 12,
|
|
202
202
|
"xl": 12
|
|
203
203
|
},
|
|
204
|
-
"
|
|
204
|
+
"_conversationHeader": {
|
|
205
205
|
"newLine": true,
|
|
206
|
+
"type": "header",
|
|
207
|
+
"size": 3,
|
|
208
|
+
"text": "Conversation",
|
|
209
|
+
"xs": 12,
|
|
210
|
+
"sm": 12,
|
|
211
|
+
"md": 12,
|
|
212
|
+
"lg": 12,
|
|
213
|
+
"xl": 12
|
|
214
|
+
},
|
|
215
|
+
"useConversationContext": {
|
|
216
|
+
"type": "checkbox",
|
|
217
|
+
"label": "Remember the conversation (follow-up questions)",
|
|
218
|
+
"help": "Keep the last few turns per source (chat, telegram, satellite) for a few minutes so follow-ups like 'and the kitchen too' work. In-memory only.",
|
|
219
|
+
"default": true,
|
|
220
|
+
"xs": 12,
|
|
221
|
+
"sm": 6,
|
|
222
|
+
"md": 4,
|
|
223
|
+
"lg": 4,
|
|
224
|
+
"xl": 4,
|
|
225
|
+
"newLine": true
|
|
226
|
+
},
|
|
227
|
+
"useLongTermMemory": {
|
|
228
|
+
"type": "checkbox",
|
|
229
|
+
"label": "Long-term memory (remember facts across sessions)",
|
|
230
|
+
"help": "Lets the assistant durably remember facts you tell it (names, preferences, where things are) and use them in later conversations. Stored in the memory.* states; the LLM gets remember/forget tools.",
|
|
231
|
+
"default": true,
|
|
232
|
+
"xs": 12,
|
|
233
|
+
"sm": 6,
|
|
234
|
+
"md": 4,
|
|
235
|
+
"lg": 4,
|
|
236
|
+
"xl": 4
|
|
237
|
+
},
|
|
238
|
+
"journalHours": {
|
|
206
239
|
"type": "number",
|
|
207
|
-
"label": "
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
240
|
+
"label": "Chat history (hours)",
|
|
241
|
+
"help": "How long the Chat tab shows past requests from all sources (satellites, Telegram, scripts) with wake word, answering tier, tools and state ids. 0 = record nothing.",
|
|
242
|
+
"min": 0,
|
|
243
|
+
"max": 168,
|
|
244
|
+
"default": 24,
|
|
212
245
|
"xs": 12,
|
|
213
246
|
"sm": 6,
|
|
214
|
-
"md":
|
|
215
|
-
"lg":
|
|
216
|
-
"xl":
|
|
247
|
+
"md": 4,
|
|
248
|
+
"lg": 4,
|
|
249
|
+
"xl": 4
|
|
217
250
|
},
|
|
251
|
+
"_aiAdvanced": {
|
|
252
|
+
"type": "panel",
|
|
253
|
+
"collapsable": true,
|
|
254
|
+
"label": "Advanced",
|
|
255
|
+
"newLine": true,
|
|
256
|
+
"xs": 12,
|
|
257
|
+
"sm": 12,
|
|
258
|
+
"md": 12,
|
|
259
|
+
"lg": 12,
|
|
260
|
+
"xl": 12,
|
|
261
|
+
"items": {
|
|
262
|
+
"maxTokens": {
|
|
263
|
+
"newLine": true,
|
|
264
|
+
"type": "number",
|
|
265
|
+
"label": "Max tokens",
|
|
266
|
+
"hidden": "data.provider === 'none' || data.provider === 'pi-agent'",
|
|
267
|
+
"default": 1024,
|
|
268
|
+
"min": 64,
|
|
269
|
+
"max": 8192,
|
|
270
|
+
"xs": 12,
|
|
271
|
+
"sm": 6,
|
|
272
|
+
"md": 2,
|
|
273
|
+
"lg": 2,
|
|
274
|
+
"xl": 2
|
|
275
|
+
},
|
|
276
|
+
"systemPrompt": {
|
|
277
|
+
"newLine": true,
|
|
278
|
+
"type": "text",
|
|
279
|
+
"label": "System prompt",
|
|
280
|
+
"minRows": 4,
|
|
281
|
+
"xs": 12,
|
|
282
|
+
"sm": 12,
|
|
283
|
+
"md": 12,
|
|
284
|
+
"lg": 12,
|
|
285
|
+
"xl": 12
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"_commands": {
|
|
292
|
+
"type": "panel",
|
|
293
|
+
"label": "Commands",
|
|
294
|
+
"items": {
|
|
218
295
|
"useLocalNlu": {
|
|
219
296
|
"type": "checkbox",
|
|
220
297
|
"label": "Answer simple commands locally (fast, offline)",
|
|
@@ -224,7 +301,8 @@
|
|
|
224
301
|
"sm": 6,
|
|
225
302
|
"md": 4,
|
|
226
303
|
"lg": 4,
|
|
227
|
-
"xl": 4
|
|
304
|
+
"xl": 4,
|
|
305
|
+
"newLine": true
|
|
228
306
|
},
|
|
229
307
|
"confirmWithTone": {
|
|
230
308
|
"type": "checkbox",
|
|
@@ -252,7 +330,8 @@
|
|
|
252
330
|
{ "type": "text", "attr": "from", "title": "Said or typed", "width": "40%" },
|
|
253
331
|
{ "type": "text", "attr": "to", "title": "Canonical term", "width": "40%" },
|
|
254
332
|
{ "type": "text", "attr": "language", "title": "Language (empty = all)", "width": "20%" }
|
|
255
|
-
]
|
|
333
|
+
],
|
|
334
|
+
"newLine": true
|
|
256
335
|
},
|
|
257
336
|
"routines": {
|
|
258
337
|
"newLine": true,
|
|
@@ -270,355 +349,179 @@
|
|
|
270
349
|
{ "type": "text", "attr": "actions", "title": "Actions (JSON)", "width": "35%" },
|
|
271
350
|
{ "type": "text", "attr": "reply", "title": "Reply", "width": "20%" }
|
|
272
351
|
]
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"_localModels": {
|
|
356
|
+
"type": "panel",
|
|
357
|
+
"label": "Local models",
|
|
358
|
+
"items": {
|
|
359
|
+
"_localModelsInfo": {
|
|
360
|
+
"type": "staticText",
|
|
361
|
+
"text": "Small models answer general questions without the cloud. Download several, compare them with the benchmark and switch between them here.",
|
|
362
|
+
"xs": 12,
|
|
363
|
+
"sm": 12,
|
|
364
|
+
"md": 12,
|
|
365
|
+
"lg": 12,
|
|
366
|
+
"xl": 12
|
|
273
367
|
},
|
|
274
|
-
"
|
|
368
|
+
"useLocalLlm": {
|
|
369
|
+
"newLine": true,
|
|
275
370
|
"type": "checkbox",
|
|
276
|
-
"label": "
|
|
277
|
-
"help": "
|
|
278
|
-
"default":
|
|
371
|
+
"label": "Use a local LLM (installed on demand)",
|
|
372
|
+
"help": "Runs a small local model (node-llama-cpp) for general questions. With a cloud provider it only answers when the cloud fails, unless \"Ask the local model first\" is on. Install it with the button below.",
|
|
373
|
+
"default": false,
|
|
279
374
|
"xs": 12,
|
|
280
|
-
"sm":
|
|
281
|
-
"md":
|
|
282
|
-
"lg":
|
|
283
|
-
"xl":
|
|
375
|
+
"sm": 12,
|
|
376
|
+
"md": 6,
|
|
377
|
+
"lg": 6,
|
|
378
|
+
"xl": 6
|
|
284
379
|
},
|
|
285
|
-
"
|
|
380
|
+
"localLlmModelUrl": {
|
|
381
|
+
"type": "text",
|
|
382
|
+
"label": "Local model URL (GGUF, old setting)",
|
|
383
|
+
"help": "Used only while no model is selected in the tab \"Local models\". Pick the model there instead.",
|
|
384
|
+
"hidden": "!data.useLocalLlm || !!data.localLlmModel || !data.localLlmModelUrl",
|
|
385
|
+
"xs": 12,
|
|
386
|
+
"sm": 12,
|
|
387
|
+
"md": 6,
|
|
388
|
+
"lg": 6,
|
|
389
|
+
"xl": 6
|
|
390
|
+
},
|
|
391
|
+
"localLlmFirst": {
|
|
392
|
+
"newLine": true,
|
|
286
393
|
"type": "checkbox",
|
|
287
|
-
"label": "
|
|
288
|
-
"help": "
|
|
289
|
-
"default":
|
|
394
|
+
"label": "Ask the local model first",
|
|
395
|
+
"help": "Every question the rules do not understand goes to the local model before the cloud. Saves cloud calls, but on a Raspberry Pi it adds 10–25 seconds to such questions.",
|
|
396
|
+
"default": false,
|
|
397
|
+
"hidden": "!data.useLocalLlm || data.provider === 'none'",
|
|
290
398
|
"xs": 12,
|
|
291
|
-
"sm":
|
|
292
|
-
"md":
|
|
293
|
-
"lg":
|
|
294
|
-
"xl":
|
|
399
|
+
"sm": 12,
|
|
400
|
+
"md": 6,
|
|
401
|
+
"lg": 6,
|
|
402
|
+
"xl": 6
|
|
295
403
|
},
|
|
296
|
-
"
|
|
404
|
+
"localLlmTimeoutSec": {
|
|
297
405
|
"type": "number",
|
|
298
|
-
"label": "
|
|
299
|
-
"help": "
|
|
300
|
-
"min":
|
|
301
|
-
"max":
|
|
302
|
-
"default":
|
|
406
|
+
"label": "Local model timeout (s)",
|
|
407
|
+
"help": "After this time the local model is stopped and the question goes on to the cloud.",
|
|
408
|
+
"min": 1,
|
|
409
|
+
"max": 300,
|
|
410
|
+
"default": 15,
|
|
411
|
+
"hidden": "!data.useLocalLlm",
|
|
303
412
|
"xs": 12,
|
|
304
413
|
"sm": 6,
|
|
414
|
+
"md": 3,
|
|
415
|
+
"lg": 3,
|
|
416
|
+
"xl": 3
|
|
417
|
+
},
|
|
418
|
+
"_installLocalLlm": {
|
|
419
|
+
"newLine": true,
|
|
420
|
+
"type": "sendTo",
|
|
421
|
+
"label": "Install local model",
|
|
422
|
+
"command": "installLocalLlm",
|
|
423
|
+
"variant": "outlined",
|
|
424
|
+
"hidden": "!data.useLocalLlm",
|
|
425
|
+
"showProcess": true,
|
|
426
|
+
"timeout": 600000,
|
|
427
|
+
"help": "Downloads the engine and model (several hundred MB). Progress is shown below.",
|
|
428
|
+
"xs": 12,
|
|
429
|
+
"sm": 12,
|
|
305
430
|
"md": 4,
|
|
306
431
|
"lg": 4,
|
|
307
432
|
"xl": 4
|
|
308
433
|
},
|
|
309
|
-
"
|
|
434
|
+
"_localLlmProgress": {
|
|
435
|
+
"newLine": true,
|
|
436
|
+
"type": "custom",
|
|
437
|
+
"i18n": true,
|
|
438
|
+
"url": "custom/customComponents.js",
|
|
439
|
+
"name": "ConfigCustomAssistant/Components/LocalLlmProgress",
|
|
440
|
+
"bundlerType": "module",
|
|
441
|
+
"guiApi": 2,
|
|
442
|
+
"hidden": "!data.useLocalLlm",
|
|
443
|
+
"xs": 12,
|
|
444
|
+
"sm": 12,
|
|
445
|
+
"md": 8,
|
|
446
|
+
"lg": 8,
|
|
447
|
+
"xl": 8
|
|
448
|
+
},
|
|
449
|
+
"localLlmModel": {
|
|
310
450
|
"newLine": true,
|
|
311
451
|
"type": "selectSendTo",
|
|
312
|
-
"command": "
|
|
313
|
-
"
|
|
314
|
-
"
|
|
452
|
+
"command": "getLocalModels",
|
|
453
|
+
"jsonData": "{\"dir\":\"${data.localLlmModelDir}\"}",
|
|
454
|
+
"alsoDependsOn": ["localLlmModelDir"],
|
|
455
|
+
"noTranslation": true,
|
|
456
|
+
"label": "Active model",
|
|
457
|
+
"help": "Saving restarts the instance and loads this model. Download models below.",
|
|
315
458
|
"xs": 12,
|
|
316
459
|
"sm": 12,
|
|
317
460
|
"md": 6,
|
|
318
461
|
"lg": 6,
|
|
319
|
-
"xl": 6
|
|
462
|
+
"xl": 6,
|
|
463
|
+
"hidden": "!data.useLocalLlm"
|
|
320
464
|
},
|
|
321
|
-
"
|
|
322
|
-
"
|
|
323
|
-
"
|
|
324
|
-
"
|
|
325
|
-
"
|
|
326
|
-
"label": "Calendar for commands for later",
|
|
327
|
-
"help": "A fullcalendar instance: \"turn off the light in 2 hours\" or \"blinds to 50 % at 10 pm\" becomes an event in this calendar, and the AI can plan, list and cancel events. Without it such commands go to the AI.",
|
|
465
|
+
"localLlmModelDir": {
|
|
466
|
+
"type": "diskSelector",
|
|
467
|
+
"mode": "folder",
|
|
468
|
+
"label": "Model folder",
|
|
469
|
+
"help": "Absolute path, e.g. /mnt/ssd/llm. Empty = data folder of the instance. Models already downloaded elsewhere are not moved.",
|
|
328
470
|
"xs": 12,
|
|
329
471
|
"sm": 12,
|
|
330
472
|
"md": 6,
|
|
331
473
|
"lg": 6,
|
|
332
|
-
"xl": 6
|
|
474
|
+
"xl": 6,
|
|
475
|
+
"hidden": "!data.useLocalLlm"
|
|
333
476
|
},
|
|
334
|
-
"
|
|
477
|
+
"_localModels": {
|
|
335
478
|
"newLine": true,
|
|
336
|
-
"type": "
|
|
337
|
-
"
|
|
338
|
-
"
|
|
479
|
+
"type": "custom",
|
|
480
|
+
"i18n": true,
|
|
481
|
+
"url": "custom/customComponents.js",
|
|
482
|
+
"name": "ConfigCustomAssistant/Components/LocalModelsComponent",
|
|
483
|
+
"bundlerType": "module",
|
|
484
|
+
"guiApi": 2,
|
|
339
485
|
"xs": 12,
|
|
340
486
|
"sm": 12,
|
|
341
487
|
"md": 12,
|
|
342
488
|
"lg": 12,
|
|
343
489
|
"xl": 12,
|
|
344
|
-
"
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
],
|
|
357
|
-
"default": "person"
|
|
358
|
-
},
|
|
359
|
-
{ "type": "text", "attr": "homeValue", "title": "Home value (empty = auto)", "width": "15%" }
|
|
360
|
-
]
|
|
361
|
-
},
|
|
362
|
-
"youtubePlayers": {
|
|
363
|
-
"newLine": true,
|
|
364
|
-
"type": "table",
|
|
365
|
-
"label": "YouTube players",
|
|
366
|
-
"help": "TVs and devices of the youtube-remote adapter the assistant may play on, e.g. \"play the channel Sailing OceanAir\". The first row is the default when no player is named; a request from a satellite in the room of a row goes to that row. Player: the youtube-remote instance - it finds its paired TV itself, also after the TV was paired again; with several TVs in one instance pick one of them. Power: optional state that switches the TV on (e.g. samsungtv.0.<tv>.control.power) - if it is off, the TV is switched on first and the video starts after the start delay. A power button (toggle) is never pressed, because it would switch a running TV off. Needs \"Allow writing states\".",
|
|
490
|
+
"hidden": "!data.useLocalLlm"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"_devices": {
|
|
495
|
+
"type": "panel",
|
|
496
|
+
"label": "Devices",
|
|
497
|
+
"items": {
|
|
498
|
+
"_accessHeader": {
|
|
499
|
+
"type": "header",
|
|
500
|
+
"size": 2,
|
|
501
|
+
"text": "Access / permissions",
|
|
367
502
|
"xs": 12,
|
|
368
503
|
"sm": 12,
|
|
369
504
|
"md": 12,
|
|
370
505
|
"lg": 12,
|
|
371
|
-
"xl": 12
|
|
372
|
-
"items": [
|
|
373
|
-
{ "type": "text", "attr": "name", "title": "Name", "width": "20%" },
|
|
374
|
-
{
|
|
375
|
-
"type": "selectSendTo",
|
|
376
|
-
"attr": "id",
|
|
377
|
-
"title": "Player",
|
|
378
|
-
"command": "getYouTubeInstances",
|
|
379
|
-
"width": "30%"
|
|
380
|
-
},
|
|
381
|
-
{ "type": "objectId", "attr": "power", "title": "TV power (optional)", "width": "30%" },
|
|
382
|
-
{ "type": "text", "attr": "room", "title": "Room", "width": "12%" },
|
|
383
|
-
{
|
|
384
|
-
"type": "number",
|
|
385
|
-
"attr": "delay",
|
|
386
|
-
"title": "Start delay (s)",
|
|
387
|
-
"width": "8%",
|
|
388
|
-
"min": 0,
|
|
389
|
-
"max": 120,
|
|
390
|
-
"default": 8
|
|
391
|
-
}
|
|
392
|
-
]
|
|
506
|
+
"xl": 12
|
|
393
507
|
},
|
|
394
|
-
"
|
|
508
|
+
"readObjects": {
|
|
395
509
|
"newLine": true,
|
|
396
|
-
"type": "
|
|
397
|
-
"label": "
|
|
398
|
-
"
|
|
399
|
-
|
|
510
|
+
"type": "select",
|
|
511
|
+
"label": "Object read access",
|
|
512
|
+
"options": [
|
|
513
|
+
{ "label": "Only devices, rooms, functions", "value": "devices" },
|
|
514
|
+
{ "label": "Any object (get_object/search_objects)", "value": "all" }
|
|
515
|
+
],
|
|
516
|
+
"default": "devices",
|
|
400
517
|
"xs": 12,
|
|
401
|
-
"sm":
|
|
518
|
+
"sm": 12,
|
|
402
519
|
"md": 4,
|
|
403
520
|
"lg": 4,
|
|
404
521
|
"xl": 4
|
|
405
522
|
},
|
|
406
|
-
"
|
|
407
|
-
"
|
|
408
|
-
"label": "Announce when an alarm goes off",
|
|
409
|
-
"help": "Speak an announcement when an alarm at a fixed clock time fires. Alarms are always mirrored into the alarms.* states for scripts and visualization.",
|
|
410
|
-
"default": true,
|
|
411
|
-
"xs": 12,
|
|
412
|
-
"sm": 6,
|
|
413
|
-
"md": 4,
|
|
414
|
-
"lg": 4,
|
|
415
|
-
"xl": 4
|
|
416
|
-
},
|
|
417
|
-
"notifyRephrase": {
|
|
418
|
-
"newLine": true,
|
|
419
|
-
"type": "checkbox",
|
|
420
|
-
"label": "Reword system notifications",
|
|
421
|
-
"help": "Spoken system notifications (notify.text / the ioBroker notification manager) are reworded by the LLM into one natural sentence first - their raw texts are written for a log viewer. Costs one small LLM call per notification; the original text is spoken if it fails. Urgent ones (notify.alert) are announced even when Do-Not-Disturb is on.",
|
|
422
|
-
"default": true,
|
|
423
|
-
"xs": 12,
|
|
424
|
-
"sm": 6,
|
|
425
|
-
"md": 4,
|
|
426
|
-
"lg": 4,
|
|
427
|
-
"xl": 4
|
|
428
|
-
},
|
|
429
|
-
"_soundsHint": {
|
|
430
|
-
"newLine": true,
|
|
431
|
-
"type": "staticText",
|
|
432
|
-
"text": "Two default sounds (timer.wav, alarm.wav) are preinstalled — pick one below or upload your own mp3/wav. The selected sound plays before the spoken announcement. Needs ffmpeg on the host and at least one satellite.",
|
|
433
|
-
"xs": 12,
|
|
434
|
-
"sm": 12,
|
|
435
|
-
"md": 12,
|
|
436
|
-
"lg": 12,
|
|
437
|
-
"xl": 12
|
|
438
|
-
},
|
|
439
|
-
"ringSeconds": {
|
|
440
|
-
"newLine": true,
|
|
441
|
-
"type": "number",
|
|
442
|
-
"label": "Ring duration (seconds)",
|
|
443
|
-
"help": "A fired timer/alarm keeps ringing (looping the sound) for up to this long, or until you say 'stop'/'halt'/'aufhören'/'cancel' (or write the stopRinging state). 0 = play the sound once.",
|
|
444
|
-
"default": 60,
|
|
445
|
-
"min": 0,
|
|
446
|
-
"max": 600,
|
|
447
|
-
"xs": 12,
|
|
448
|
-
"sm": 6,
|
|
449
|
-
"md": 3,
|
|
450
|
-
"lg": 3,
|
|
451
|
-
"xl": 3
|
|
452
|
-
},
|
|
453
|
-
"timerSound": {
|
|
454
|
-
"newLine": true,
|
|
455
|
-
"type": "fileSelector",
|
|
456
|
-
"objectID": "assistant.%INSTANCE%",
|
|
457
|
-
"upload": "sounds",
|
|
458
|
-
"pattern": "sounds/*",
|
|
459
|
-
"fileTypes": "audio",
|
|
460
|
-
"delete": true,
|
|
461
|
-
"refresh": true,
|
|
462
|
-
"maxSize": 5242880,
|
|
463
|
-
"label": "Timer sound (mp3/wav, optional)",
|
|
464
|
-
"xs": 12,
|
|
465
|
-
"sm": 12,
|
|
466
|
-
"md": 5,
|
|
467
|
-
"lg": 5,
|
|
468
|
-
"xl": 5
|
|
469
|
-
},
|
|
470
|
-
"_playTimerSound": {
|
|
471
|
-
"type": "sendTo",
|
|
472
|
-
"command": "playSound",
|
|
473
|
-
"label": "Play",
|
|
474
|
-
"variant": "outlined",
|
|
475
|
-
"jsonData": "{\"name\":\"${data.timerSound}\"}",
|
|
476
|
-
"disabled": "!data.timerSound",
|
|
477
|
-
"xs": 12,
|
|
478
|
-
"sm": 6,
|
|
479
|
-
"md": 2,
|
|
480
|
-
"lg": 2,
|
|
481
|
-
"xl": 2
|
|
482
|
-
},
|
|
483
|
-
"alarmSound": {
|
|
484
|
-
"newLine": true,
|
|
485
|
-
"type": "fileSelector",
|
|
486
|
-
"objectID": "assistant.%INSTANCE%",
|
|
487
|
-
"upload": "sounds",
|
|
488
|
-
"pattern": "sounds/*",
|
|
489
|
-
"fileTypes": "audio",
|
|
490
|
-
"delete": true,
|
|
491
|
-
"refresh": true,
|
|
492
|
-
"maxSize": 5242880,
|
|
493
|
-
"label": "Alarm sound (mp3/wav, optional)",
|
|
494
|
-
"xs": 12,
|
|
495
|
-
"sm": 12,
|
|
496
|
-
"md": 5,
|
|
497
|
-
"lg": 5,
|
|
498
|
-
"xl": 5
|
|
499
|
-
},
|
|
500
|
-
"_playAlarmSound": {
|
|
501
|
-
"type": "sendTo",
|
|
502
|
-
"command": "playSound",
|
|
503
|
-
"label": "Play",
|
|
504
|
-
"variant": "outlined",
|
|
505
|
-
"jsonData": "{\"name\":\"${data.alarmSound}\"}",
|
|
506
|
-
"disabled": "!data.alarmSound",
|
|
507
|
-
"xs": 12,
|
|
508
|
-
"sm": 6,
|
|
509
|
-
"md": 2,
|
|
510
|
-
"lg": 2,
|
|
511
|
-
"xl": 2
|
|
512
|
-
},
|
|
513
|
-
"useLocalLlm": {
|
|
514
|
-
"newLine": true,
|
|
515
|
-
"type": "checkbox",
|
|
516
|
-
"label": "Use a local LLM (installed on demand)",
|
|
517
|
-
"help": "Runs a small local model (node-llama-cpp) for general questions. With a cloud provider it only answers when the cloud fails, unless \"Ask the local model first\" is on. Install it with the button below.",
|
|
518
|
-
"default": false,
|
|
519
|
-
"xs": 12,
|
|
520
|
-
"sm": 12,
|
|
521
|
-
"md": 6,
|
|
522
|
-
"lg": 6,
|
|
523
|
-
"xl": 6
|
|
524
|
-
},
|
|
525
|
-
"localLlmModelUrl": {
|
|
526
|
-
"type": "text",
|
|
527
|
-
"label": "Local model URL (GGUF, optional)",
|
|
528
|
-
"help": "Direct URL of a GGUF model. Leave empty for the default (Qwen2.5-1.5B-Instruct). Small models recommended on Raspberry Pi / arm64.",
|
|
529
|
-
"hidden": "!data.useLocalLlm",
|
|
530
|
-
"xs": 12,
|
|
531
|
-
"sm": 12,
|
|
532
|
-
"md": 6,
|
|
533
|
-
"lg": 6,
|
|
534
|
-
"xl": 6
|
|
535
|
-
},
|
|
536
|
-
"localLlmFirst": {
|
|
537
|
-
"newLine": true,
|
|
538
|
-
"type": "checkbox",
|
|
539
|
-
"label": "Ask the local model first",
|
|
540
|
-
"help": "Every question the rules do not understand goes to the local model before the cloud. Saves cloud calls, but on a Raspberry Pi it adds 10–25 seconds to such questions.",
|
|
541
|
-
"default": false,
|
|
542
|
-
"hidden": "!data.useLocalLlm || data.provider === 'none'",
|
|
543
|
-
"xs": 12,
|
|
544
|
-
"sm": 12,
|
|
545
|
-
"md": 6,
|
|
546
|
-
"lg": 6,
|
|
547
|
-
"xl": 6
|
|
548
|
-
},
|
|
549
|
-
"localLlmTimeoutSec": {
|
|
550
|
-
"type": "number",
|
|
551
|
-
"label": "Local model timeout (s)",
|
|
552
|
-
"help": "After this time the local model is stopped and the question goes on to the cloud.",
|
|
553
|
-
"min": 1,
|
|
554
|
-
"max": 300,
|
|
555
|
-
"default": 15,
|
|
556
|
-
"hidden": "!data.useLocalLlm",
|
|
557
|
-
"xs": 12,
|
|
558
|
-
"sm": 6,
|
|
559
|
-
"md": 3,
|
|
560
|
-
"lg": 3,
|
|
561
|
-
"xl": 3
|
|
562
|
-
},
|
|
563
|
-
"_installLocalLlm": {
|
|
564
|
-
"newLine": true,
|
|
565
|
-
"type": "sendTo",
|
|
566
|
-
"label": "Install local model",
|
|
567
|
-
"command": "installLocalLlm",
|
|
568
|
-
"variant": "outlined",
|
|
569
|
-
"hidden": "!data.useLocalLlm",
|
|
570
|
-
"showProcess": true,
|
|
571
|
-
"timeout": 600000,
|
|
572
|
-
"help": "Downloads the engine and model (several hundred MB). Progress is shown below.",
|
|
573
|
-
"xs": 12,
|
|
574
|
-
"sm": 12,
|
|
575
|
-
"md": 4,
|
|
576
|
-
"lg": 4,
|
|
577
|
-
"xl": 4
|
|
578
|
-
},
|
|
579
|
-
"_localLlmProgress": {
|
|
580
|
-
"newLine": true,
|
|
581
|
-
"type": "custom",
|
|
582
|
-
"i18n": true,
|
|
583
|
-
"url": "custom/customComponents.js",
|
|
584
|
-
"name": "ConfigCustomAssistant/Components/LocalLlmProgress",
|
|
585
|
-
"bundlerType": "module",
|
|
586
|
-
"guiApi": 2,
|
|
587
|
-
"hidden": "!data.useLocalLlm",
|
|
588
|
-
"xs": 12,
|
|
589
|
-
"sm": 12,
|
|
590
|
-
"md": 8,
|
|
591
|
-
"lg": 8,
|
|
592
|
-
"xl": 8
|
|
593
|
-
},
|
|
594
|
-
"_accessHeader": {
|
|
595
|
-
"newLine": true,
|
|
596
|
-
"type": "header",
|
|
597
|
-
"size": 2,
|
|
598
|
-
"text": "Access / permissions",
|
|
599
|
-
"xs": 12,
|
|
600
|
-
"sm": 12,
|
|
601
|
-
"md": 12,
|
|
602
|
-
"lg": 12,
|
|
603
|
-
"xl": 12
|
|
604
|
-
},
|
|
605
|
-
"readObjects": {
|
|
606
|
-
"newLine": true,
|
|
607
|
-
"type": "select",
|
|
608
|
-
"label": "Object read access",
|
|
609
|
-
"options": [
|
|
610
|
-
{ "label": "Only devices, rooms, functions", "value": "devices" },
|
|
611
|
-
{ "label": "Any object (get_object/search_objects)", "value": "all" }
|
|
612
|
-
],
|
|
613
|
-
"default": "devices",
|
|
614
|
-
"xs": 12,
|
|
615
|
-
"sm": 12,
|
|
616
|
-
"md": 4,
|
|
617
|
-
"lg": 4,
|
|
618
|
-
"xl": 4
|
|
619
|
-
},
|
|
620
|
-
"allowWriteStates": {
|
|
621
|
-
"newLine": true,
|
|
523
|
+
"allowWriteStates": {
|
|
524
|
+
"newLine": true,
|
|
622
525
|
"type": "checkbox",
|
|
623
526
|
"label": "Allow writing states (control devices)",
|
|
624
527
|
"default": true,
|
|
@@ -703,23 +606,6 @@
|
|
|
703
606
|
"lg": 6,
|
|
704
607
|
"xl": 6
|
|
705
608
|
},
|
|
706
|
-
"systemPrompt": {
|
|
707
|
-
"newLine": true,
|
|
708
|
-
"type": "text",
|
|
709
|
-
"label": "System prompt",
|
|
710
|
-
"minRows": 4,
|
|
711
|
-
"xs": 12,
|
|
712
|
-
"sm": 12,
|
|
713
|
-
"md": 12,
|
|
714
|
-
"lg": 12,
|
|
715
|
-
"xl": 12
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
"_devices": {
|
|
720
|
-
"type": "panel",
|
|
721
|
-
"label": "Devices",
|
|
722
|
-
"items": {
|
|
723
609
|
"_deviceAcl": {
|
|
724
610
|
"type": "custom",
|
|
725
611
|
"i18n": true,
|
|
@@ -731,259 +617,314 @@
|
|
|
731
617
|
"sm": 12,
|
|
732
618
|
"md": 12,
|
|
733
619
|
"lg": 12,
|
|
734
|
-
"xl": 12
|
|
620
|
+
"xl": 12,
|
|
621
|
+
"newLine": true
|
|
735
622
|
}
|
|
736
623
|
}
|
|
737
624
|
},
|
|
738
|
-
"
|
|
625
|
+
"_services": {
|
|
739
626
|
"type": "panel",
|
|
740
|
-
"label": "
|
|
627
|
+
"label": "Services",
|
|
741
628
|
"items": {
|
|
742
|
-
"
|
|
743
|
-
"
|
|
744
|
-
"
|
|
745
|
-
"
|
|
629
|
+
"weatherInstance": {
|
|
630
|
+
"newLine": true,
|
|
631
|
+
"type": "selectSendTo",
|
|
632
|
+
"command": "getWeatherInstances",
|
|
633
|
+
"label": "Weather source",
|
|
634
|
+
"help": "Pick an installed weather adapter to answer weather questions from (Open-Meteo, Weather Underground, OpenWeatherMap are fully understood; others are read best-effort). Start that adapter once so its data/locations appear here.",
|
|
746
635
|
"xs": 12,
|
|
747
636
|
"sm": 12,
|
|
748
|
-
"md":
|
|
749
|
-
"lg":
|
|
750
|
-
"xl":
|
|
637
|
+
"md": 6,
|
|
638
|
+
"lg": 6,
|
|
639
|
+
"xl": 6
|
|
751
640
|
},
|
|
752
|
-
"
|
|
753
|
-
"type": "
|
|
754
|
-
"
|
|
641
|
+
"calendarInstance": {
|
|
642
|
+
"type": "instance",
|
|
643
|
+
"adapter": "fullcalendar",
|
|
644
|
+
"allowDeactivate": true,
|
|
645
|
+
"label": "Calendar for commands for later",
|
|
646
|
+
"help": "A fullcalendar instance: \"turn off the light in 2 hours\" or \"blinds to 50 % at 10 pm\" becomes an event in this calendar, and the AI can plan, list and cancel events. Without it such commands go to the AI.",
|
|
755
647
|
"xs": 12,
|
|
756
648
|
"sm": 12,
|
|
757
|
-
"md":
|
|
758
|
-
"lg":
|
|
759
|
-
"xl":
|
|
649
|
+
"md": 6,
|
|
650
|
+
"lg": 6,
|
|
651
|
+
"xl": 6
|
|
760
652
|
},
|
|
761
|
-
"
|
|
653
|
+
"presence": {
|
|
654
|
+
"newLine": true,
|
|
762
655
|
"type": "table",
|
|
763
|
-
"label": "
|
|
764
|
-
"help": "
|
|
656
|
+
"label": "Presence",
|
|
657
|
+
"help": "Which states tell the assistant who is at home - one row per person. Any state works: the residents adapter, a phone ping like ping.0.phone-denis.alive, a router client state or your own flag. Kind: empty or person, guest, pet (a pet never makes the house occupied). Home value: leave empty for the usual forms (true, 1, \"home\", \"anwesend\"), or enter the exact value that means at home. Used to tell the LLM who is around, to hold back announcements to an empty house (notify with onlyWhenHome) and as a trigger source via presence.anyoneHome.",
|
|
765
658
|
"xs": 12,
|
|
766
659
|
"sm": 12,
|
|
767
660
|
"md": 12,
|
|
768
661
|
"lg": 12,
|
|
769
662
|
"xl": 12,
|
|
770
663
|
"items": [
|
|
771
|
-
{ "type": "
|
|
772
|
-
{ "type": "text", "attr": "name", "title": "Name", "width": "
|
|
773
|
-
{
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
664
|
+
{ "type": "objectId", "attr": "id", "title": "State id", "width": "45%" },
|
|
665
|
+
{ "type": "text", "attr": "name", "title": "Name", "width": "25%" },
|
|
666
|
+
{
|
|
667
|
+
"type": "select",
|
|
668
|
+
"attr": "kind",
|
|
669
|
+
"title": "Kind (person/guest/pet)",
|
|
670
|
+
"width": "15%",
|
|
671
|
+
"options": [
|
|
672
|
+
{ "label": "Person", "value": "person" },
|
|
673
|
+
{ "label": "Guest", "value": "guest" },
|
|
674
|
+
{ "label": "Pet", "value": "pet" }
|
|
675
|
+
],
|
|
676
|
+
"default": "person"
|
|
677
|
+
},
|
|
678
|
+
{ "type": "text", "attr": "homeValue", "title": "Home value (empty = auto)", "width": "15%" }
|
|
781
679
|
]
|
|
782
680
|
},
|
|
783
|
-
"
|
|
784
|
-
"
|
|
785
|
-
"
|
|
786
|
-
"
|
|
787
|
-
"
|
|
681
|
+
"youtubePlayers": {
|
|
682
|
+
"newLine": true,
|
|
683
|
+
"type": "table",
|
|
684
|
+
"label": "YouTube players",
|
|
685
|
+
"help": "TVs and devices of the youtube-remote adapter the assistant may play on, e.g. \"play the channel Sailing OceanAir\". The first row is the default when no player is named; a request from a satellite in the room of a row goes to that row. Player: the youtube-remote instance - it finds its paired TV itself, also after the TV was paired again; with several TVs in one instance pick one of them. Power: optional state that switches the TV on (e.g. samsungtv.0.<tv>.control.power) - if it is off, the TV is switched on first and the video starts after the start delay. A power button (toggle) is never pressed, because it would switch a running TV off. Needs \"Allow writing states\".",
|
|
788
686
|
"xs": 12,
|
|
789
687
|
"sm": 12,
|
|
790
|
-
"md":
|
|
791
|
-
"lg":
|
|
792
|
-
"xl":
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
688
|
+
"md": 12,
|
|
689
|
+
"lg": 12,
|
|
690
|
+
"xl": 12,
|
|
691
|
+
"items": [
|
|
692
|
+
{ "type": "text", "attr": "name", "title": "Name", "width": "20%" },
|
|
693
|
+
{
|
|
694
|
+
"type": "selectSendTo",
|
|
695
|
+
"attr": "id",
|
|
696
|
+
"title": "Player",
|
|
697
|
+
"command": "getYouTubeInstances",
|
|
698
|
+
"width": "30%"
|
|
699
|
+
},
|
|
700
|
+
{ "type": "objectId", "attr": "power", "title": "TV power (optional)", "width": "30%" },
|
|
701
|
+
{ "type": "text", "attr": "room", "title": "Room", "width": "12%" },
|
|
702
|
+
{
|
|
703
|
+
"type": "number",
|
|
704
|
+
"attr": "delay",
|
|
705
|
+
"title": "Start delay (s)",
|
|
706
|
+
"width": "8%",
|
|
707
|
+
"min": 0,
|
|
708
|
+
"max": 120,
|
|
709
|
+
"default": 8
|
|
710
|
+
}
|
|
711
|
+
]
|
|
712
|
+
},
|
|
713
|
+
"_timersHeader": {
|
|
714
|
+
"newLine": true,
|
|
801
715
|
"type": "header",
|
|
802
|
-
"size":
|
|
803
|
-
"text": "
|
|
716
|
+
"size": 3,
|
|
717
|
+
"text": "Timers and alarms",
|
|
804
718
|
"xs": 12,
|
|
805
719
|
"sm": 12,
|
|
806
720
|
"md": 12,
|
|
807
721
|
"lg": 12,
|
|
808
722
|
"xl": 12
|
|
809
723
|
},
|
|
810
|
-
"
|
|
724
|
+
"timerAnnounce": {
|
|
811
725
|
"newLine": true,
|
|
812
726
|
"type": "checkbox",
|
|
813
|
-
"label": "
|
|
814
|
-
"help": "
|
|
815
|
-
"default":
|
|
727
|
+
"label": "Announce when a timer expires",
|
|
728
|
+
"help": "Speak an announcement on the satellite a countdown timer was set from (or on all satellites) when it runs out. Timers are always mirrored into the timers.* states for scripts and visualization.",
|
|
729
|
+
"default": true,
|
|
816
730
|
"xs": 12,
|
|
817
|
-
"sm":
|
|
818
|
-
"md":
|
|
819
|
-
"lg":
|
|
820
|
-
"xl":
|
|
731
|
+
"sm": 6,
|
|
732
|
+
"md": 4,
|
|
733
|
+
"lg": 4,
|
|
734
|
+
"xl": 4
|
|
821
735
|
},
|
|
822
|
-
"
|
|
823
|
-
"newLine": true,
|
|
736
|
+
"alarmAnnounce": {
|
|
824
737
|
"type": "checkbox",
|
|
825
|
-
"label": "
|
|
826
|
-
"help": "
|
|
827
|
-
"default":
|
|
828
|
-
"hidden": "!data.voiceEnabled",
|
|
738
|
+
"label": "Announce when an alarm goes off",
|
|
739
|
+
"help": "Speak an announcement when an alarm at a fixed clock time fires. Alarms are always mirrored into the alarms.* states for scripts and visualization.",
|
|
740
|
+
"default": true,
|
|
829
741
|
"xs": 12,
|
|
830
|
-
"sm":
|
|
831
|
-
"md":
|
|
832
|
-
"lg":
|
|
833
|
-
"xl":
|
|
742
|
+
"sm": 6,
|
|
743
|
+
"md": 4,
|
|
744
|
+
"lg": 4,
|
|
745
|
+
"xl": 4
|
|
834
746
|
},
|
|
835
|
-
"
|
|
747
|
+
"ringSeconds": {
|
|
836
748
|
"newLine": true,
|
|
837
|
-
"type": "
|
|
838
|
-
"label": "
|
|
839
|
-
"help": "
|
|
840
|
-
"default":
|
|
841
|
-
"
|
|
842
|
-
"
|
|
749
|
+
"type": "number",
|
|
750
|
+
"label": "Ring duration (seconds)",
|
|
751
|
+
"help": "A fired timer/alarm keeps ringing (looping the sound) for up to this long, or until you say 'stop'/'halt'/'aufhören'/'cancel' (or write the stopRinging state). 0 = play the sound once.",
|
|
752
|
+
"default": 60,
|
|
753
|
+
"min": 0,
|
|
754
|
+
"max": 600,
|
|
843
755
|
"xs": 12,
|
|
844
756
|
"sm": 6,
|
|
845
757
|
"md": 3,
|
|
846
758
|
"lg": 3,
|
|
847
759
|
"xl": 3
|
|
848
760
|
},
|
|
849
|
-
"
|
|
850
|
-
"
|
|
851
|
-
"
|
|
852
|
-
"
|
|
853
|
-
"min": 1,
|
|
854
|
-
"max": 65535,
|
|
855
|
-
"hidden": "!data.voiceEnabled || !data.udpServerEnabled",
|
|
761
|
+
"_soundsHint": {
|
|
762
|
+
"newLine": true,
|
|
763
|
+
"type": "staticText",
|
|
764
|
+
"text": "Two default sounds (timer.wav, alarm.wav) are preinstalled — pick one below or upload your own mp3/wav. The selected sound plays before the spoken announcement. Needs ffmpeg on the host and at least one satellite.",
|
|
856
765
|
"xs": 12,
|
|
857
|
-
"sm":
|
|
858
|
-
"md":
|
|
859
|
-
"lg":
|
|
860
|
-
"xl":
|
|
766
|
+
"sm": 12,
|
|
767
|
+
"md": 12,
|
|
768
|
+
"lg": 12,
|
|
769
|
+
"xl": 12
|
|
861
770
|
},
|
|
862
|
-
"
|
|
771
|
+
"timerSound": {
|
|
863
772
|
"newLine": true,
|
|
864
|
-
"type": "
|
|
865
|
-
"
|
|
866
|
-
"
|
|
867
|
-
"
|
|
868
|
-
"
|
|
773
|
+
"type": "fileSelector",
|
|
774
|
+
"objectID": "assistant.%INSTANCE%",
|
|
775
|
+
"upload": "sounds",
|
|
776
|
+
"pattern": "sounds/*",
|
|
777
|
+
"fileTypes": "audio",
|
|
778
|
+
"delete": true,
|
|
779
|
+
"refresh": true,
|
|
780
|
+
"maxSize": 5242880,
|
|
781
|
+
"label": "Timer sound (mp3/wav, optional)",
|
|
869
782
|
"xs": 12,
|
|
870
|
-
"sm":
|
|
783
|
+
"sm": 12,
|
|
871
784
|
"md": 5,
|
|
872
785
|
"lg": 5,
|
|
873
786
|
"xl": 5
|
|
874
787
|
},
|
|
875
|
-
"
|
|
876
|
-
"type": "
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
"
|
|
880
|
-
"
|
|
881
|
-
"
|
|
788
|
+
"_playTimerSound": {
|
|
789
|
+
"type": "sendTo",
|
|
790
|
+
"command": "playSound",
|
|
791
|
+
"label": "Play",
|
|
792
|
+
"variant": "outlined",
|
|
793
|
+
"jsonData": "{\"name\":\"${data.timerSound}\"}",
|
|
794
|
+
"disabled": "!data.timerSound",
|
|
882
795
|
"xs": 12,
|
|
883
|
-
"sm":
|
|
884
|
-
"md":
|
|
885
|
-
"lg":
|
|
886
|
-
"xl":
|
|
796
|
+
"sm": 6,
|
|
797
|
+
"md": 2,
|
|
798
|
+
"lg": 2,
|
|
799
|
+
"xl": 2
|
|
887
800
|
},
|
|
888
|
-
"
|
|
801
|
+
"alarmSound": {
|
|
889
802
|
"newLine": true,
|
|
890
|
-
"type": "
|
|
891
|
-
"
|
|
892
|
-
"
|
|
893
|
-
"
|
|
894
|
-
"
|
|
803
|
+
"type": "fileSelector",
|
|
804
|
+
"objectID": "assistant.%INSTANCE%",
|
|
805
|
+
"upload": "sounds",
|
|
806
|
+
"pattern": "sounds/*",
|
|
807
|
+
"fileTypes": "audio",
|
|
808
|
+
"delete": true,
|
|
809
|
+
"refresh": true,
|
|
810
|
+
"maxSize": 5242880,
|
|
811
|
+
"label": "Alarm sound (mp3/wav, optional)",
|
|
895
812
|
"xs": 12,
|
|
896
813
|
"sm": 12,
|
|
897
|
-
"md":
|
|
898
|
-
"lg":
|
|
899
|
-
"xl":
|
|
814
|
+
"md": 5,
|
|
815
|
+
"lg": 5,
|
|
816
|
+
"xl": 5
|
|
900
817
|
},
|
|
901
|
-
"
|
|
818
|
+
"_playAlarmSound": {
|
|
819
|
+
"type": "sendTo",
|
|
820
|
+
"command": "playSound",
|
|
821
|
+
"label": "Play",
|
|
822
|
+
"variant": "outlined",
|
|
823
|
+
"jsonData": "{\"name\":\"${data.alarmSound}\"}",
|
|
824
|
+
"disabled": "!data.alarmSound",
|
|
825
|
+
"xs": 12,
|
|
826
|
+
"sm": 6,
|
|
827
|
+
"md": 2,
|
|
828
|
+
"lg": 2,
|
|
829
|
+
"xl": 2
|
|
830
|
+
},
|
|
831
|
+
"_notificationsHeader": {
|
|
902
832
|
"newLine": true,
|
|
903
|
-
"type": "
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
833
|
+
"type": "header",
|
|
834
|
+
"size": 3,
|
|
835
|
+
"text": "System notifications",
|
|
907
836
|
"xs": 12,
|
|
908
837
|
"sm": 12,
|
|
909
838
|
"md": 12,
|
|
910
839
|
"lg": 12,
|
|
911
|
-
"xl": 12
|
|
912
|
-
"items": [
|
|
913
|
-
{ "type": "text", "attr": "ip", "title": "Address (IP or host name)", "width": "25%" },
|
|
914
|
-
{
|
|
915
|
-
"type": "number",
|
|
916
|
-
"attr": "port",
|
|
917
|
-
"title": "Port",
|
|
918
|
-
"width": "12%",
|
|
919
|
-
"min": 1,
|
|
920
|
-
"max": 65535,
|
|
921
|
-
"default": 6053
|
|
922
|
-
},
|
|
923
|
-
{ "type": "text", "attr": "room", "title": "Room", "width": "23%" },
|
|
924
|
-
{
|
|
925
|
-
"type": "number",
|
|
926
|
-
"attr": "speechLevel",
|
|
927
|
-
"title": "Speech threshold",
|
|
928
|
-
"width": "15%",
|
|
929
|
-
"min": 10,
|
|
930
|
-
"max": 5000
|
|
931
|
-
},
|
|
932
|
-
{ "type": "text", "attr": "password", "title": "API password (usually empty)", "width": "25%" }
|
|
933
|
-
]
|
|
840
|
+
"xl": 12
|
|
934
841
|
},
|
|
935
|
-
"
|
|
842
|
+
"notifyRephrase": {
|
|
936
843
|
"newLine": true,
|
|
937
|
-
"type": "
|
|
938
|
-
"label": "
|
|
939
|
-
"help": "
|
|
940
|
-
"default":
|
|
941
|
-
"min": 1,
|
|
942
|
-
"max": 65535,
|
|
943
|
-
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
944
|
-
"xs": 12,
|
|
945
|
-
"sm": 6,
|
|
946
|
-
"md": 3,
|
|
947
|
-
"lg": 3,
|
|
948
|
-
"xl": 3
|
|
949
|
-
},
|
|
950
|
-
"esphomeMediaHost": {
|
|
951
|
-
"type": "text",
|
|
952
|
-
"label": "Media server address for the devices",
|
|
953
|
-
"help": "Host the satellites should fetch the audio from. Empty = use the address of each device connection automatically; set it only if the devices reach this machine under a different address (NAT, Docker, VLAN).",
|
|
954
|
-
"default": "",
|
|
955
|
-
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
844
|
+
"type": "checkbox",
|
|
845
|
+
"label": "Reword system notifications",
|
|
846
|
+
"help": "Spoken system notifications (notify.text / the ioBroker notification manager) are reworded by the LLM into one natural sentence first - their raw texts are written for a log viewer. Costs one small LLM call per notification; the original text is spoken if it fails. Urgent ones (notify.alert) are announced even when Do-Not-Disturb is on.",
|
|
847
|
+
"default": true,
|
|
956
848
|
"xs": 12,
|
|
957
849
|
"sm": 6,
|
|
958
850
|
"md": 4,
|
|
959
851
|
"lg": 4,
|
|
960
852
|
"xl": 4
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
"_triggers": {
|
|
857
|
+
"type": "panel",
|
|
858
|
+
"label": "Triggers",
|
|
859
|
+
"items": {
|
|
860
|
+
"_triggersHeader": {
|
|
861
|
+
"type": "header",
|
|
862
|
+
"text": "Proactive triggers",
|
|
863
|
+
"size": 2,
|
|
864
|
+
"xs": 12,
|
|
865
|
+
"sm": 12,
|
|
866
|
+
"md": 12,
|
|
867
|
+
"lg": 12,
|
|
868
|
+
"xl": 12
|
|
961
869
|
},
|
|
962
|
-
"
|
|
963
|
-
"type": "
|
|
964
|
-
"
|
|
965
|
-
"help": "These devices stream until the server stops them, so the adapter decides when you stopped talking. Raise it if replies cut you off, lower it if the assistant waits too long. After 2.5 seconds of speech half as much again is allowed, so a pause for thought does not end a longer request.",
|
|
966
|
-
"default": 900,
|
|
967
|
-
"min": 200,
|
|
968
|
-
"max": 5000,
|
|
969
|
-
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
870
|
+
"_triggersHint": {
|
|
871
|
+
"type": "staticText",
|
|
872
|
+
"text": "A trigger watches states or the clock and then speaks, writes a state, or asks you a question and acts on your answer. Switch single triggers off at runtime with triggers.items.<id>.enabled, test one with its fire button, and all of them with triggers.enabled.",
|
|
970
873
|
"xs": 12,
|
|
971
|
-
"sm":
|
|
972
|
-
"md":
|
|
973
|
-
"lg":
|
|
974
|
-
"xl":
|
|
874
|
+
"sm": 12,
|
|
875
|
+
"md": 12,
|
|
876
|
+
"lg": 12,
|
|
877
|
+
"xl": 12
|
|
878
|
+
},
|
|
879
|
+
"triggers": {
|
|
880
|
+
"type": "table",
|
|
881
|
+
"label": "Triggers",
|
|
882
|
+
"help": "Condition as JSON: {\"state\":\"javascript.0.window\",\"value\":true} or {\"time\":\"23:00\",\"days\":[1,2,3,4,5]}; add \"also\"/\"unless\" for extra or blocking conditions, or use a list for alternatives. Say = announcement, Ask = question (needs response rules, JSON: [{\"match\":\"agreement\",\"say\":\"Okay\",\"setState\":{\"id\":\"...\",\"value\":false}}]). Extra actions as JSON: [{\"setState\":{\"id\":\"...\",\"value\":false}}]. Delay waits before acting (90s/30m/5h), cooldown is the minimum gap between two firings in seconds (default 3600).",
|
|
883
|
+
"xs": 12,
|
|
884
|
+
"sm": 12,
|
|
885
|
+
"md": 12,
|
|
886
|
+
"lg": 12,
|
|
887
|
+
"xl": 12,
|
|
888
|
+
"items": [
|
|
889
|
+
{ "type": "text", "attr": "id", "title": "Id", "width": "8%" },
|
|
890
|
+
{ "type": "text", "attr": "name", "title": "Name", "width": "12%" },
|
|
891
|
+
{ "type": "text", "attr": "when", "title": "When (JSON)", "width": "20%" },
|
|
892
|
+
{ "type": "text", "attr": "room", "title": "Room", "width": "8%" },
|
|
893
|
+
{ "type": "text", "attr": "say", "title": "Say", "width": "14%" },
|
|
894
|
+
{ "type": "text", "attr": "ask", "title": "Ask", "width": "14%" },
|
|
895
|
+
{ "type": "text", "attr": "onResponse", "title": "Response rules (JSON)", "width": "10%" },
|
|
896
|
+
{ "type": "text", "attr": "actions", "title": "Extra actions (JSON)", "width": "8%" },
|
|
897
|
+
{ "type": "text", "attr": "delay", "title": "Delay", "width": "3%" },
|
|
898
|
+
{ "type": "number", "attr": "cooldownSec", "title": "Cooldown (s)", "width": "3%", "min": 0 }
|
|
899
|
+
]
|
|
975
900
|
},
|
|
976
|
-
"
|
|
901
|
+
"triggerRephrase": {
|
|
977
902
|
"type": "checkbox",
|
|
978
|
-
"label": "
|
|
979
|
-
"help": "
|
|
903
|
+
"label": "Let the LLM reword trigger texts",
|
|
904
|
+
"help": "Before a trigger speaks, the model rewords its text so repeated announcements do not sound canned. Costs one small LLM call per announcement; the original text is used if it fails.",
|
|
980
905
|
"default": false,
|
|
981
|
-
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
982
906
|
"xs": 12,
|
|
983
|
-
"sm":
|
|
984
|
-
"md":
|
|
985
|
-
"lg":
|
|
986
|
-
"xl":
|
|
907
|
+
"sm": 12,
|
|
908
|
+
"md": 6,
|
|
909
|
+
"lg": 6,
|
|
910
|
+
"xl": 6
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"_voice": {
|
|
915
|
+
"type": "panel",
|
|
916
|
+
"label": "Voice",
|
|
917
|
+
"items": {
|
|
918
|
+
"voiceEnabled": {
|
|
919
|
+
"type": "checkbox",
|
|
920
|
+
"label": "Enable voice (STT/TTS for satellites)",
|
|
921
|
+
"help": "Enables speech recognition/synthesis. ioBroker-native satellites reach it over the message bus — no port needed. Turn on the UDP server below only for ESP / Hannah satellites.",
|
|
922
|
+
"default": false,
|
|
923
|
+
"xs": 12,
|
|
924
|
+
"sm": 12,
|
|
925
|
+
"md": 6,
|
|
926
|
+
"lg": 6,
|
|
927
|
+
"xl": 6
|
|
987
928
|
},
|
|
988
929
|
"voiceLanguage": {
|
|
989
930
|
"newLine": true,
|
|
@@ -1012,38 +953,6 @@
|
|
|
1012
953
|
"lg": 3,
|
|
1013
954
|
"xl": 3
|
|
1014
955
|
},
|
|
1015
|
-
"announceTargets": {
|
|
1016
|
-
"newLine": true,
|
|
1017
|
-
"type": "table",
|
|
1018
|
-
"label": "Announcement targets (groups and people)",
|
|
1019
|
-
"help": "Give a set of satellites a name, so an announcement, a question or a trigger can address it: a group of rooms (\"Upstairs\") or the speakers that belong to one person (\"Denis\", so \"tell Denis dinner is ready\" reaches them). Members: satellite ids, room names or device names, separated by commas. Kind: empty or group, or person. A real satellite or room of the same name always wins, so a group can never make a speaker unreachable.",
|
|
1020
|
-
"hidden": "!data.voiceEnabled",
|
|
1021
|
-
"xs": 12,
|
|
1022
|
-
"sm": 12,
|
|
1023
|
-
"md": 12,
|
|
1024
|
-
"lg": 12,
|
|
1025
|
-
"xl": 12,
|
|
1026
|
-
"items": [
|
|
1027
|
-
{ "type": "text", "attr": "name", "title": "Name", "width": "25%" },
|
|
1028
|
-
{
|
|
1029
|
-
"type": "text",
|
|
1030
|
-
"attr": "members",
|
|
1031
|
-
"title": "Satellites, rooms or devices (comma separated)",
|
|
1032
|
-
"width": "60%"
|
|
1033
|
-
},
|
|
1034
|
-
{
|
|
1035
|
-
"type": "select",
|
|
1036
|
-
"attr": "kind",
|
|
1037
|
-
"title": "Kind (group/person)",
|
|
1038
|
-
"width": "15%",
|
|
1039
|
-
"options": [
|
|
1040
|
-
{ "label": "Group", "value": "group" },
|
|
1041
|
-
{ "label": "Person", "value": "person" }
|
|
1042
|
-
],
|
|
1043
|
-
"default": "group"
|
|
1044
|
-
}
|
|
1045
|
-
]
|
|
1046
|
-
},
|
|
1047
956
|
"sttProvider": {
|
|
1048
957
|
"newLine": true,
|
|
1049
958
|
"type": "select",
|
|
@@ -1530,67 +1439,216 @@
|
|
|
1530
1439
|
"lg": 5,
|
|
1531
1440
|
"xl": 5
|
|
1532
1441
|
},
|
|
1533
|
-
"_localSpeechHeader": {
|
|
1442
|
+
"_localSpeechHeader": {
|
|
1443
|
+
"newLine": true,
|
|
1444
|
+
"type": "header",
|
|
1445
|
+
"size": 3,
|
|
1446
|
+
"text": "Local speech (no cloud)",
|
|
1447
|
+
"hidden": "!data.voiceEnabled || (data.sttProvider !== 'vosk' && data.ttsProvider !== 'piper')",
|
|
1448
|
+
"xs": 12,
|
|
1449
|
+
"sm": 12,
|
|
1450
|
+
"md": 12,
|
|
1451
|
+
"lg": 12,
|
|
1452
|
+
"xl": 12
|
|
1453
|
+
},
|
|
1454
|
+
"_localSpeechHint": {
|
|
1455
|
+
"newLine": true,
|
|
1456
|
+
"type": "staticText",
|
|
1457
|
+
"text": "Vosk (STT) and Piper (TTS) run on this host. Models and the Piper binary are downloaded automatically on first use (needs internet, plus 'unzip'/'tar'). No API key required.",
|
|
1458
|
+
"hidden": "!data.voiceEnabled || (data.sttProvider !== 'vosk' && data.ttsProvider !== 'piper')",
|
|
1459
|
+
"xs": 12,
|
|
1460
|
+
"sm": 12,
|
|
1461
|
+
"md": 12,
|
|
1462
|
+
"lg": 12,
|
|
1463
|
+
"xl": 12
|
|
1464
|
+
},
|
|
1465
|
+
"voskModel": {
|
|
1466
|
+
"newLine": true,
|
|
1467
|
+
"type": "autocompleteSendTo",
|
|
1468
|
+
"command": "getSttModels",
|
|
1469
|
+
"jsonData": "{\"sttProvider\":\"${data.sttProvider}\",\"language\":\"${data.voiceLanguage}\"}",
|
|
1470
|
+
"alsoDependsOn": ["sttProvider", "voiceLanguage"],
|
|
1471
|
+
"freeSolo": true,
|
|
1472
|
+
"label": "Vosk model (optional)",
|
|
1473
|
+
"help": "Model name from alphacephei.com/vosk/models, e.g. vosk-model-small-de-0.15. Empty = small default per language.",
|
|
1474
|
+
"hidden": "!data.voiceEnabled || data.sttProvider !== 'vosk'",
|
|
1475
|
+
"xs": 12,
|
|
1476
|
+
"sm": 12,
|
|
1477
|
+
"md": 6,
|
|
1478
|
+
"lg": 6,
|
|
1479
|
+
"xl": 6
|
|
1480
|
+
},
|
|
1481
|
+
"piperVoice": {
|
|
1482
|
+
"newLine": true,
|
|
1483
|
+
"type": "autocompleteSendTo",
|
|
1484
|
+
"command": "getVoices",
|
|
1485
|
+
"jsonData": "{\"ttsProvider\":\"${data.ttsProvider}\",\"language\":\"${data.voiceLanguage}\"}",
|
|
1486
|
+
"alsoDependsOn": ["ttsProvider", "voiceLanguage"],
|
|
1487
|
+
"freeSolo": true,
|
|
1488
|
+
"label": "Piper voice (optional)",
|
|
1489
|
+
"help": "e.g. de_DE-thorsten-medium, ru_RU-irina-medium. Empty = default per language.",
|
|
1490
|
+
"hidden": "!data.voiceEnabled || data.ttsProvider !== 'piper'",
|
|
1491
|
+
"xs": 12,
|
|
1492
|
+
"sm": 6,
|
|
1493
|
+
"md": 5,
|
|
1494
|
+
"lg": 5,
|
|
1495
|
+
"xl": 5
|
|
1496
|
+
},
|
|
1497
|
+
"ttsVoices": {
|
|
1498
|
+
"newLine": true,
|
|
1499
|
+
"type": "table",
|
|
1500
|
+
"label": "Voice per answer language",
|
|
1501
|
+
"help": "An answer in another language than the satellites listen in (e.g. pi-agent answers a Russian question in Russian) is spoken with the voice of its language, not spelled letter by letter by the voice above. Without a row the provider's default voice for that language is used. Voice names of the speech output provider, e.g. ru → ru_RU-dmitri-medium (Piper), ru-RU-SvetlanaNeural (Azure), Tatyana (AWS).",
|
|
1502
|
+
"hidden": "!data.voiceEnabled",
|
|
1503
|
+
"xs": 12,
|
|
1504
|
+
"sm": 12,
|
|
1505
|
+
"md": 12,
|
|
1506
|
+
"lg": 12,
|
|
1507
|
+
"xl": 12,
|
|
1508
|
+
"items": [
|
|
1509
|
+
{ "type": "text", "attr": "language", "title": "Language (e.g. ru)", "width": "30%" },
|
|
1510
|
+
{ "type": "text", "attr": "voice", "title": "Voice", "width": "70%" }
|
|
1511
|
+
]
|
|
1512
|
+
},
|
|
1513
|
+
"_ffmpegPanel": {
|
|
1514
|
+
"type": "panel",
|
|
1515
|
+
"collapsable": true,
|
|
1516
|
+
"label": "ffmpeg",
|
|
1517
|
+
"newLine": true,
|
|
1518
|
+
"xs": 12,
|
|
1519
|
+
"sm": 12,
|
|
1520
|
+
"md": 12,
|
|
1521
|
+
"lg": 12,
|
|
1522
|
+
"xl": 12,
|
|
1523
|
+
"hidden": "!data.voiceEnabled",
|
|
1524
|
+
"items": {
|
|
1525
|
+
"ffmpegPath": {
|
|
1526
|
+
"type": "text",
|
|
1527
|
+
"label": "Path to ffmpeg",
|
|
1528
|
+
"help": "Empty = the downloaded ffmpeg, otherwise ffmpeg from the search path. Needed for timer/alarm sounds, Telegram voice messages and MP3/Opus replies. Example: /usr/bin/ffmpeg or C:\\ffmpeg\\bin\\ffmpeg.exe",
|
|
1529
|
+
"default": "",
|
|
1530
|
+
"xs": 12,
|
|
1531
|
+
"sm": 8,
|
|
1532
|
+
"md": 5,
|
|
1533
|
+
"lg": 5,
|
|
1534
|
+
"xl": 5
|
|
1535
|
+
},
|
|
1536
|
+
"_testFfmpeg": {
|
|
1537
|
+
"type": "sendTo",
|
|
1538
|
+
"command": "testFfmpeg",
|
|
1539
|
+
"label": "Check ffmpeg",
|
|
1540
|
+
"variant": "outlined",
|
|
1541
|
+
"jsonData": "{\"path\":\"${data.ffmpegPath}\"}",
|
|
1542
|
+
"xs": 12,
|
|
1543
|
+
"sm": 4,
|
|
1544
|
+
"md": 3,
|
|
1545
|
+
"lg": 3,
|
|
1546
|
+
"xl": 3
|
|
1547
|
+
},
|
|
1548
|
+
"_downloadFfmpeg": {
|
|
1549
|
+
"type": "sendTo",
|
|
1550
|
+
"command": "downloadFfmpeg",
|
|
1551
|
+
"label": "Download ffmpeg",
|
|
1552
|
+
"title": "Downloads a static ffmpeg (ffmpeg-static, 20-30 MB) into the data directory of the instance. It is used when no path is entered.",
|
|
1553
|
+
"variant": "outlined",
|
|
1554
|
+
"showProcess": true,
|
|
1555
|
+
"jsonData": "{\"path\":\"${data.ffmpegPath}\"}",
|
|
1556
|
+
"xs": 12,
|
|
1557
|
+
"sm": 4,
|
|
1558
|
+
"md": 3,
|
|
1559
|
+
"lg": 3,
|
|
1560
|
+
"xl": 3
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
"_voiceTest": {
|
|
1534
1565
|
"newLine": true,
|
|
1566
|
+
"type": "custom",
|
|
1567
|
+
"i18n": true,
|
|
1568
|
+
"url": "custom/customComponents.js",
|
|
1569
|
+
"name": "ConfigCustomAssistant/Components/VoiceTestComponent",
|
|
1570
|
+
"bundlerType": "module",
|
|
1571
|
+
"guiApi": 2,
|
|
1572
|
+
"hidden": "!data.voiceEnabled",
|
|
1573
|
+
"xs": 12,
|
|
1574
|
+
"sm": 12,
|
|
1575
|
+
"md": 8,
|
|
1576
|
+
"lg": 8,
|
|
1577
|
+
"xl": 8
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
},
|
|
1581
|
+
"_satellites": {
|
|
1582
|
+
"type": "panel",
|
|
1583
|
+
"label": "Satellites",
|
|
1584
|
+
"items": {
|
|
1585
|
+
"_voiceHeader": {
|
|
1535
1586
|
"type": "header",
|
|
1536
|
-
"size":
|
|
1537
|
-
"text": "
|
|
1538
|
-
"hidden": "!data.voiceEnabled || (data.sttProvider !== 'vosk' && data.ttsProvider !== 'piper')",
|
|
1587
|
+
"size": 2,
|
|
1588
|
+
"text": "Voice satellites",
|
|
1539
1589
|
"xs": 12,
|
|
1540
1590
|
"sm": 12,
|
|
1541
1591
|
"md": 12,
|
|
1542
1592
|
"lg": 12,
|
|
1543
1593
|
"xl": 12
|
|
1544
1594
|
},
|
|
1545
|
-
"
|
|
1595
|
+
"_voiceOffInfo": {
|
|
1546
1596
|
"newLine": true,
|
|
1547
1597
|
"type": "staticText",
|
|
1548
|
-
"text": "
|
|
1549
|
-
"hidden": "
|
|
1598
|
+
"text": "Voice is off. Turn it on in the tab \"Voice\" to connect satellites.",
|
|
1599
|
+
"hidden": "!!data.voiceEnabled",
|
|
1550
1600
|
"xs": 12,
|
|
1551
1601
|
"sm": 12,
|
|
1552
1602
|
"md": 12,
|
|
1553
1603
|
"lg": 12,
|
|
1554
1604
|
"xl": 12
|
|
1555
1605
|
},
|
|
1556
|
-
"
|
|
1606
|
+
"udpServerEnabled": {
|
|
1557
1607
|
"newLine": true,
|
|
1558
|
-
"type": "
|
|
1559
|
-
"
|
|
1560
|
-
"
|
|
1561
|
-
"
|
|
1562
|
-
"
|
|
1563
|
-
"label": "Vosk model (optional)",
|
|
1564
|
-
"help": "Model name from alphacephei.com/vosk/models, e.g. vosk-model-small-de-0.15. Empty = small default per language.",
|
|
1565
|
-
"hidden": "!data.voiceEnabled || data.sttProvider !== 'vosk'",
|
|
1608
|
+
"type": "checkbox",
|
|
1609
|
+
"label": "Run the UDP voice server (ESP / Hannah satellites)",
|
|
1610
|
+
"help": "Opens a UDP port for streaming microphone satellites (Hannah-compatible / ESP). Not needed for ioBroker-native satellites.",
|
|
1611
|
+
"default": false,
|
|
1612
|
+
"hidden": "!data.voiceEnabled",
|
|
1566
1613
|
"xs": 12,
|
|
1567
1614
|
"sm": 12,
|
|
1568
1615
|
"md": 6,
|
|
1569
1616
|
"lg": 6,
|
|
1570
1617
|
"xl": 6
|
|
1571
1618
|
},
|
|
1572
|
-
"
|
|
1619
|
+
"bind": {
|
|
1573
1620
|
"newLine": true,
|
|
1574
|
-
"type": "
|
|
1575
|
-
"
|
|
1576
|
-
"
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
"
|
|
1580
|
-
"help": "e.g. de_DE-thorsten-medium, ru_RU-irina-medium. Empty = default per language.",
|
|
1581
|
-
"hidden": "!data.voiceEnabled || data.ttsProvider !== 'piper'",
|
|
1621
|
+
"type": "ip",
|
|
1622
|
+
"label": "Bind address",
|
|
1623
|
+
"help": "Interface the UDP voice server listens on. 0.0.0.0 = all interfaces; pick a specific host IP so satellites on the LAN can reach it.",
|
|
1624
|
+
"default": "0.0.0.0",
|
|
1625
|
+
"listenOnAllPorts": true,
|
|
1626
|
+
"hidden": "!data.voiceEnabled || !data.udpServerEnabled",
|
|
1582
1627
|
"xs": 12,
|
|
1583
1628
|
"sm": 6,
|
|
1584
|
-
"md":
|
|
1585
|
-
"lg":
|
|
1586
|
-
"xl":
|
|
1629
|
+
"md": 3,
|
|
1630
|
+
"lg": 3,
|
|
1631
|
+
"xl": 3
|
|
1632
|
+
},
|
|
1633
|
+
"port": {
|
|
1634
|
+
"type": "number",
|
|
1635
|
+
"label": "UDP port",
|
|
1636
|
+
"default": 7775,
|
|
1637
|
+
"min": 1,
|
|
1638
|
+
"max": 65535,
|
|
1639
|
+
"hidden": "!data.voiceEnabled || !data.udpServerEnabled",
|
|
1640
|
+
"xs": 12,
|
|
1641
|
+
"sm": 6,
|
|
1642
|
+
"md": 3,
|
|
1643
|
+
"lg": 3,
|
|
1644
|
+
"xl": 3
|
|
1587
1645
|
},
|
|
1588
|
-
"
|
|
1646
|
+
"wyomingEnabled": {
|
|
1589
1647
|
"newLine": true,
|
|
1590
|
-
"type": "
|
|
1591
|
-
"label": "
|
|
1592
|
-
"help": "
|
|
1593
|
-
"default":
|
|
1648
|
+
"type": "checkbox",
|
|
1649
|
+
"label": "Also accept Wyoming clients (TCP)",
|
|
1650
|
+
"help": "Home Assistant Voice PE / wyoming-satellite / ESPHome voice devices can stream to this adapter over the Wyoming protocol.",
|
|
1651
|
+
"default": false,
|
|
1594
1652
|
"hidden": "!data.voiceEnabled",
|
|
1595
1653
|
"xs": 12,
|
|
1596
1654
|
"sm": 8,
|
|
@@ -1598,79 +1656,199 @@
|
|
|
1598
1656
|
"lg": 5,
|
|
1599
1657
|
"xl": 5
|
|
1600
1658
|
},
|
|
1601
|
-
"
|
|
1602
|
-
"type": "
|
|
1603
|
-
"
|
|
1604
|
-
"
|
|
1605
|
-
"
|
|
1606
|
-
"
|
|
1607
|
-
"hidden": "!data.voiceEnabled",
|
|
1659
|
+
"wyomingPort": {
|
|
1660
|
+
"type": "number",
|
|
1661
|
+
"label": "Wyoming TCP port",
|
|
1662
|
+
"default": 10700,
|
|
1663
|
+
"min": 1,
|
|
1664
|
+
"max": 65535,
|
|
1665
|
+
"hidden": "!data.voiceEnabled || !data.wyomingEnabled",
|
|
1608
1666
|
"xs": 12,
|
|
1609
1667
|
"sm": 4,
|
|
1610
1668
|
"md": 3,
|
|
1611
1669
|
"lg": 3,
|
|
1612
1670
|
"xl": 3
|
|
1613
1671
|
},
|
|
1614
|
-
"
|
|
1615
|
-
"
|
|
1616
|
-
"
|
|
1617
|
-
"label": "
|
|
1618
|
-
"
|
|
1619
|
-
"
|
|
1620
|
-
"showProcess": true,
|
|
1621
|
-
"jsonData": "{\"path\":\"${data.ffmpegPath}\"}",
|
|
1672
|
+
"esphomeEnabled": {
|
|
1673
|
+
"newLine": true,
|
|
1674
|
+
"type": "checkbox",
|
|
1675
|
+
"label": "Also drive ESPHome voice satellites",
|
|
1676
|
+
"help": "ThirdReality Voice & Music Assistant, Home Assistant Voice PE, linux-voice-assistant. These devices listen on TCP 6053 and the adapter dials them, so no port is opened for the audio itself — only the media server below, which they fetch the spoken reply from.",
|
|
1677
|
+
"default": false,
|
|
1622
1678
|
"hidden": "!data.voiceEnabled",
|
|
1623
1679
|
"xs": 12,
|
|
1624
|
-
"sm":
|
|
1680
|
+
"sm": 12,
|
|
1681
|
+
"md": 6,
|
|
1682
|
+
"lg": 6,
|
|
1683
|
+
"xl": 6
|
|
1684
|
+
},
|
|
1685
|
+
"esphomeDevices": {
|
|
1686
|
+
"newLine": true,
|
|
1687
|
+
"type": "table",
|
|
1688
|
+
"label": "ESPHome satellites",
|
|
1689
|
+
"help": "One row per device. Port empty = 6053. The room is what the assistant treats the satellite as being in. Speech threshold: the lowest microphone level (RMS) that counts as speech, empty = 250 — lower it (e.g. to 100) if the device reacts to the wake word but does not hear the command; the debug log shows the levels (\"peak RMS\", \"speech/silence gate\"). Leave the password empty unless the device really has an API password set — table values are stored unencrypted.",
|
|
1690
|
+
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
1691
|
+
"xs": 12,
|
|
1692
|
+
"sm": 12,
|
|
1693
|
+
"md": 12,
|
|
1694
|
+
"lg": 12,
|
|
1695
|
+
"xl": 12,
|
|
1696
|
+
"items": [
|
|
1697
|
+
{ "type": "text", "attr": "ip", "title": "Address (IP or host name)", "width": "25%" },
|
|
1698
|
+
{
|
|
1699
|
+
"type": "number",
|
|
1700
|
+
"attr": "port",
|
|
1701
|
+
"title": "Port",
|
|
1702
|
+
"width": "12%",
|
|
1703
|
+
"min": 1,
|
|
1704
|
+
"max": 65535,
|
|
1705
|
+
"default": 6053
|
|
1706
|
+
},
|
|
1707
|
+
{ "type": "text", "attr": "room", "title": "Room", "width": "23%" },
|
|
1708
|
+
{
|
|
1709
|
+
"type": "number",
|
|
1710
|
+
"attr": "speechLevel",
|
|
1711
|
+
"title": "Speech threshold",
|
|
1712
|
+
"width": "15%",
|
|
1713
|
+
"min": 10,
|
|
1714
|
+
"max": 5000
|
|
1715
|
+
},
|
|
1716
|
+
{ "type": "text", "attr": "password", "title": "API password (usually empty)", "width": "25%" }
|
|
1717
|
+
]
|
|
1718
|
+
},
|
|
1719
|
+
"esphomeMediaPort": {
|
|
1720
|
+
"newLine": true,
|
|
1721
|
+
"type": "number",
|
|
1722
|
+
"label": "Media server port",
|
|
1723
|
+
"help": "ESPHome satellites do not get the reply over their API socket — they fetch it as a URL. This is the port that small HTTP server listens on.",
|
|
1724
|
+
"default": 8099,
|
|
1725
|
+
"min": 1,
|
|
1726
|
+
"max": 65535,
|
|
1727
|
+
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
1728
|
+
"xs": 12,
|
|
1729
|
+
"sm": 6,
|
|
1625
1730
|
"md": 3,
|
|
1626
1731
|
"lg": 3,
|
|
1627
1732
|
"xl": 3
|
|
1628
1733
|
},
|
|
1629
|
-
"
|
|
1734
|
+
"esphomeMediaHost": {
|
|
1735
|
+
"type": "text",
|
|
1736
|
+
"label": "Media server address for the devices",
|
|
1737
|
+
"help": "Host the satellites should fetch the audio from. Empty = use the address of each device connection automatically; set it only if the devices reach this machine under a different address (NAT, Docker, VLAN).",
|
|
1738
|
+
"default": "",
|
|
1739
|
+
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
1740
|
+
"xs": 12,
|
|
1741
|
+
"sm": 6,
|
|
1742
|
+
"md": 4,
|
|
1743
|
+
"lg": 4,
|
|
1744
|
+
"xl": 4
|
|
1745
|
+
},
|
|
1746
|
+
"_esphomeDiagnosis": {
|
|
1747
|
+
"type": "panel",
|
|
1748
|
+
"collapsable": true,
|
|
1749
|
+
"label": "End of speech and diagnosis",
|
|
1630
1750
|
"newLine": true,
|
|
1631
|
-
"
|
|
1632
|
-
"
|
|
1633
|
-
"
|
|
1634
|
-
"
|
|
1635
|
-
"
|
|
1636
|
-
"
|
|
1751
|
+
"xs": 12,
|
|
1752
|
+
"sm": 12,
|
|
1753
|
+
"md": 12,
|
|
1754
|
+
"lg": 12,
|
|
1755
|
+
"xl": 12,
|
|
1756
|
+
"hidden": "!data.voiceEnabled || !data.esphomeEnabled",
|
|
1757
|
+
"items": {
|
|
1758
|
+
"esphomeSilenceMs": {
|
|
1759
|
+
"type": "number",
|
|
1760
|
+
"label": "End of speech after (ms of silence)",
|
|
1761
|
+
"help": "These devices stream until the server stops them, so the adapter decides when you stopped talking. Raise it if replies cut you off, lower it if the assistant waits too long. After 2.5 seconds of speech half as much again is allowed, so a pause for thought does not end a longer request.",
|
|
1762
|
+
"default": 900,
|
|
1763
|
+
"min": 200,
|
|
1764
|
+
"max": 5000,
|
|
1765
|
+
"xs": 12,
|
|
1766
|
+
"sm": 6,
|
|
1767
|
+
"md": 4,
|
|
1768
|
+
"lg": 4,
|
|
1769
|
+
"xl": 4
|
|
1770
|
+
},
|
|
1771
|
+
"esphomeSaveCaptures": {
|
|
1772
|
+
"type": "checkbox",
|
|
1773
|
+
"label": "Keep dropped recordings for diagnosis",
|
|
1774
|
+
"help": "Recordings that were dropped as silence or that speech recognition returned empty are stored as WAV plus a JSON with the levels, under Files → assistant.N/captures (the newest 50). They contain audio from the room: only enable this for troubleshooting.",
|
|
1775
|
+
"default": false,
|
|
1776
|
+
"xs": 12,
|
|
1777
|
+
"sm": 6,
|
|
1778
|
+
"md": 6,
|
|
1779
|
+
"lg": 6,
|
|
1780
|
+
"xl": 6
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
},
|
|
1784
|
+
"announceTargets": {
|
|
1785
|
+
"newLine": true,
|
|
1786
|
+
"type": "table",
|
|
1787
|
+
"label": "Announcement targets (groups and people)",
|
|
1788
|
+
"help": "Give a set of satellites a name, so an announcement, a question or a trigger can address it: a group of rooms (\"Upstairs\") or the speakers that belong to one person (\"Denis\", so \"tell Denis dinner is ready\" reaches them). Members: satellite ids, room names or device names, separated by commas. Kind: empty or group, or person. A real satellite or room of the same name always wins, so a group can never make a speaker unreachable.",
|
|
1637
1789
|
"hidden": "!data.voiceEnabled",
|
|
1638
1790
|
"xs": 12,
|
|
1639
1791
|
"sm": 12,
|
|
1640
|
-
"md":
|
|
1641
|
-
"lg":
|
|
1642
|
-
"xl":
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1792
|
+
"md": 12,
|
|
1793
|
+
"lg": 12,
|
|
1794
|
+
"xl": 12,
|
|
1795
|
+
"items": [
|
|
1796
|
+
{ "type": "text", "attr": "name", "title": "Name", "width": "25%" },
|
|
1797
|
+
{
|
|
1798
|
+
"type": "text",
|
|
1799
|
+
"attr": "members",
|
|
1800
|
+
"title": "Satellites, rooms or devices (comma separated)",
|
|
1801
|
+
"width": "60%"
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"type": "select",
|
|
1805
|
+
"attr": "kind",
|
|
1806
|
+
"title": "Kind (group/person)",
|
|
1807
|
+
"width": "15%",
|
|
1808
|
+
"options": [
|
|
1809
|
+
{ "label": "Group", "value": "group" },
|
|
1810
|
+
{ "label": "Person", "value": "person" }
|
|
1811
|
+
],
|
|
1812
|
+
"default": "group"
|
|
1813
|
+
}
|
|
1814
|
+
]
|
|
1815
|
+
},
|
|
1816
|
+
"_satellitesStatusHeader": {
|
|
1817
|
+
"newLine": true,
|
|
1818
|
+
"type": "header",
|
|
1819
|
+
"size": 3,
|
|
1820
|
+
"text": "Status",
|
|
1821
|
+
"xs": 12,
|
|
1822
|
+
"sm": 12,
|
|
1823
|
+
"md": 12,
|
|
1824
|
+
"lg": 12,
|
|
1825
|
+
"xl": 12
|
|
1826
|
+
},
|
|
1827
|
+
"_satellitesComponent": {
|
|
1651
1828
|
"type": "custom",
|
|
1652
1829
|
"i18n": true,
|
|
1653
1830
|
"url": "custom/customComponents.js",
|
|
1654
|
-
"name": "ConfigCustomAssistant/Components/
|
|
1831
|
+
"name": "ConfigCustomAssistant/Components/SatellitesComponent",
|
|
1655
1832
|
"guiApi": 2,
|
|
1656
1833
|
"bundlerType": "module",
|
|
1657
1834
|
"xs": 12,
|
|
1658
1835
|
"sm": 12,
|
|
1659
1836
|
"md": 12,
|
|
1660
1837
|
"lg": 12,
|
|
1661
|
-
"xl": 12
|
|
1838
|
+
"xl": 12,
|
|
1839
|
+
"newLine": true
|
|
1662
1840
|
}
|
|
1663
1841
|
}
|
|
1664
1842
|
},
|
|
1665
|
-
"
|
|
1843
|
+
"_chat": {
|
|
1666
1844
|
"type": "panel",
|
|
1667
|
-
"label": "
|
|
1845
|
+
"label": "Chat",
|
|
1668
1846
|
"items": {
|
|
1669
|
-
"
|
|
1847
|
+
"_chatComponent": {
|
|
1670
1848
|
"type": "custom",
|
|
1671
1849
|
"i18n": true,
|
|
1672
1850
|
"url": "custom/customComponents.js",
|
|
1673
|
-
"name": "ConfigCustomAssistant/Components/
|
|
1851
|
+
"name": "ConfigCustomAssistant/Components/ChatComponent",
|
|
1674
1852
|
"guiApi": 2,
|
|
1675
1853
|
"bundlerType": "module",
|
|
1676
1854
|
"xs": 12,
|