iobroker.assistant 1.0.1 → 1.0.2
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 +4 -0
- package/admin/custom/.vite/manifest.json +18 -18
- package/admin/custom/assets/Components-7BDDNrGP.js +1 -0
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-DcAGnE2z.js +1 -0
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-rncPQw0c.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-CMv8bcyA.js} +1 -1
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare__shared-CY-9JaDr.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__loadShare__shared-3mzaJWDF.js} +1 -1
- package/admin/custom/assets/{_virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-O-DuGvHy.js → _virtual_mf___mfe_internal__ConfigCustomAssistant__mf_owner__198531368674860__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-DS8oaQQt.js} +3 -3
- package/admin/custom/assets/{hostInit-YwaHm9Ht.js → hostInit-MshDicd1.js} +1 -1
- package/admin/custom/assets/{lib-mwVfdt2u.js → lib-DjwHKtRi.js} +1 -1
- package/admin/custom/assets/{mf-entry-bootstrap-0-0e37a5a4.js → mf-entry-bootstrap-0-7c1ddf47.js} +2 -2
- package/admin/custom/assets/{pendingShares-Bs_RxVcM.js → pendingShares-CaJDCKLB.js} +1 -1
- package/admin/custom/customComponents.js +2 -2
- package/admin/custom/i18n/es.json +1 -1
- package/admin/custom/i18n/fr.json +1 -1
- package/admin/custom/i18n/it.json +1 -1
- package/admin/custom/i18n/nl.json +1 -1
- package/admin/custom/i18n/pl.json +1 -1
- package/admin/custom/i18n/pt.json +1 -1
- package/admin/custom/i18n/ru.json +1 -1
- package/admin/custom/i18n/uk.json +1 -1
- package/admin/custom/i18n/zh-cn.json +1 -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 +3 -2
- package/admin/i18n/en.json +3 -2
- package/admin/i18n/es.json +42 -2
- package/admin/i18n/fr.json +42 -2
- package/admin/i18n/it.json +42 -2
- package/admin/i18n/nl.json +42 -2
- package/admin/i18n/pl.json +42 -2
- package/admin/i18n/pt.json +42 -2
- package/admin/i18n/ru.json +42 -2
- package/admin/i18n/uk.json +42 -2
- package/admin/i18n/zh-cn.json +42 -2
- package/admin/jsonConfig.json +371 -83
- package/build/main.js +25 -0
- package/build/main.js.map +1 -1
- package/io-package.json +26 -26
- package/package.json +5 -5
- package/admin/custom/assets/Components-B9RaGibX.js +0 -1
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__ConfigCustomAssistant__mf_owner__1-CyY-cfOD.js +0 -1
package/build/main.js
CHANGED
|
@@ -408,6 +408,7 @@ class Assistant extends adapter_core_1.Adapter {
|
|
|
408
408
|
log: this.log,
|
|
409
409
|
});
|
|
410
410
|
await this.wyoming.start();
|
|
411
|
+
this.declarePort('tcpPort', cfg.wyomingPort || 10700, cfg.bind);
|
|
411
412
|
if (!this.voice) {
|
|
412
413
|
this.warmupEngines(stt, tts, language); // only if the UDP server didn't already warm up
|
|
413
414
|
}
|
|
@@ -450,6 +451,7 @@ class Assistant extends adapter_core_1.Adapter {
|
|
|
450
451
|
});
|
|
451
452
|
await media.start();
|
|
452
453
|
this.media = media;
|
|
454
|
+
this.declarePort('tcpPort', media.port, cfg.bind);
|
|
453
455
|
}
|
|
454
456
|
catch (e) {
|
|
455
457
|
this.log.error(`ESPHome satellites not started — media server failed: ${e.message}`);
|
|
@@ -542,6 +544,7 @@ class Assistant extends adapter_core_1.Adapter {
|
|
|
542
544
|
},
|
|
543
545
|
});
|
|
544
546
|
await this.voice.start();
|
|
547
|
+
this.declarePort('udpPort', cfg.port || 7775, cfg.bind, 4); // dgram 'udp4' socket
|
|
545
548
|
this.log.info(`Voice server: STT=${cfg.sttProvider || 'openai'}, TTS=${cfg.ttsProvider || 'openai'}.`);
|
|
546
549
|
// Warm up local engines now (install/download) instead of on the first spoken command.
|
|
547
550
|
this.warmupEngines(stt, tts, language);
|
|
@@ -2406,6 +2409,28 @@ class Assistant extends adapter_core_1.Adapter {
|
|
|
2406
2409
|
: 'Known devices — "name (room, type): stateId". Use these stateIds directly with set_state/get_states; only call list_devices if a needed device is missing here.';
|
|
2407
2410
|
return `${header}\n${lines.join('\n')}`;
|
|
2408
2411
|
}
|
|
2412
|
+
/**
|
|
2413
|
+
* List a port we listen on in the host's used-resources registry (js-controller ≥ 8), so the admin shows it
|
|
2414
|
+
* as occupied when someone configures another instance. `common.declareUsedResources` is set because the
|
|
2415
|
+
* controller would otherwise derive a TCP port from `native.port` — ours is the UDP satellite port and is
|
|
2416
|
+
* usually not open at all. Nothing to free on shutdown: the host unblocks our entries when the process exits
|
|
2417
|
+
* and drops them on the next start. Best effort — the registry is a hint, it must never keep a server down.
|
|
2418
|
+
*/
|
|
2419
|
+
declarePort(type, port, bind, family) {
|
|
2420
|
+
const api = this;
|
|
2421
|
+
if (!api.registerUsedResource || !api.supportsFeature('CONTROLLER_USED_RESOURCES')) {
|
|
2422
|
+
return;
|
|
2423
|
+
}
|
|
2424
|
+
// A wildcard bind is left out: "not named" means every address, which is what 0.0.0.0/:: occupies.
|
|
2425
|
+
const data = { port };
|
|
2426
|
+
if (bind && bind !== '0.0.0.0' && bind !== '::') {
|
|
2427
|
+
data.bind = bind;
|
|
2428
|
+
}
|
|
2429
|
+
if (family) {
|
|
2430
|
+
data.family = family;
|
|
2431
|
+
}
|
|
2432
|
+
api.registerUsedResource(type, data).catch(e => this.log.debug(`could not register ${type} ${port}: ${e.message}`));
|
|
2433
|
+
}
|
|
2409
2434
|
/** Writable per-instance data dir via the adapter-core function (with a fallback for old runtimes). */
|
|
2410
2435
|
instanceDataDir() {
|
|
2411
2436
|
try {
|