iobroker.eos-admin 9.0.31 → 9.0.34
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/NEXOWATT_EOS_BUILD_INFO.json +10 -11
- package/README.md +7 -7
- package/adminWww/.vite/manifest.json +233 -224
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13897 -13887
- package/adminWww/assets/AccessTime-CuR73YC3.js +1 -0
- package/adminWww/assets/{AdapterUpdateDialog-UhaQHyF1.js → AdapterUpdateDialog-5L75o18m.js} +5 -5
- package/adminWww/assets/{Adapters-Di3sM_ky.js → Adapters-FcghjF7E.js} +5 -5
- package/adminWww/assets/ConfigManager-BnHarBfH.js +1 -0
- package/adminWww/assets/Enums-BjLbLLQL.js +92 -0
- package/adminWww/assets/Fields-DDE1hVOa.js +1 -0
- package/adminWww/assets/Files-CDjnR4q6.js +1 -0
- package/adminWww/assets/{Hosts-DXjTE0pX.js → Hosts-CJKQaNrD.js} +6 -6
- package/adminWww/assets/Instances-DZNl369k.js +4 -0
- package/adminWww/assets/Intro-CjAmMGDB.js +2 -0
- package/adminWww/assets/KeyboardArrowRight-ifvmV1ZL.js +1 -0
- package/adminWww/assets/{Logs-DTo6XJF_.js → Logs-rUAV7SwM.js} +2 -2
- package/adminWww/assets/MoreHoriz-CS7nODK8.js +1 -0
- package/adminWww/assets/{Objects-DyEBMDK6.js → Objects-CqOH6rT_.js} +4 -4
- package/adminWww/assets/Overview-BOtXqsMy.js +3 -0
- package/adminWww/assets/Pageview-wzrLQZ-j.js +1 -0
- package/adminWww/assets/PersonOff-YtHcY0sV.js +1 -0
- package/adminWww/assets/Star-D8VNXawT.js +1 -0
- package/adminWww/assets/State-C8ncThop.js +1 -0
- package/adminWww/assets/UsedResources-lUYJqy4F.js +2 -0
- package/adminWww/assets/Users-CK1Cax82.js +1 -0
- package/adminWww/assets/ViewCompact-D7bHgn99.js +1 -0
- package/adminWww/assets/ViewSidebar-CjClbCI5.js +1 -0
- package/adminWww/assets/WifiTethering-DJ9VO12W.js +1 -0
- package/adminWww/assets/{bootstrap-BQ4OzwbT.js → bootstrap-CC0Qr-kr.js} +25 -25
- package/adminWww/assets/date-fns-BtR4dG_j.js +1 -0
- package/adminWww/assets/en-US-BjjaEI6N.js +1 -0
- package/adminWww/assets/{hostInit-CGSSNegd.js → hostInit-DqGL6nY8.js} +1 -1
- package/adminWww/assets/icons-material-07rWS63O.js +1 -0
- package/adminWww/assets/{index-C4CShixx.js → index-BhhkToP2.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-DeaOAT3W.js → installSVGRenderer-B4-7lSQZ.js} +1 -1
- package/adminWww/assets/isSameWeek-WMSJR5Qs.js +1 -0
- package/adminWww/assets/locale-DN6Bdkdt.js +1 -0
- package/adminWww/assets/{mf-entry-bootstrap-0-c5733c2d.js → mf-entry-bootstrap-0-1afd2287.js} +2 -2
- package/adminWww/assets/sentry-CPzCHrwe.js +1 -0
- package/adminWww/assets/setYear-DDSuW45e.js +1 -0
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/{remoteEntry-eos-9.0.31.js → remoteEntry-eos-9.0.34.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosDeviceEmsPlan.js +285 -9
- package/build/lib/eosDeviceEmsPlan.js.map +1 -1
- package/build/lib/eosDeviceEmsService.js +29 -2
- package/build/lib/eosDeviceEmsService.js.map +1 -1
- package/build/lib/eosUiProcess.js +31 -14
- package/build/lib/eosUiProcess.js.map +1 -1
- package/build/lib/eosUiProcessRpc.js +3 -1
- package/build/lib/eosUiProcessRpc.js.map +1 -1
- package/build/lib/eosUiProcessWorker.js +6 -4
- package/build/lib/eosUiProcessWorker.js.map +1 -1
- package/docs/README.md +3 -2
- package/docs/reports/unified-9.0.32/PRUEFBERICHT.md +34 -0
- package/docs/reports/unified-9.0.32/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.32/raw/INDEX.json +102 -0
- package/docs/reports/unified-9.0.32/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.32/raw/browser-cadence-headless.json +63 -0
- package/docs/reports/unified-9.0.32/raw/browser-flow-headless.json +328 -0
- package/docs/reports/unified-9.0.32/raw/focused.log +67 -0
- package/docs/reports/unified-9.0.32/raw/frontend.log +151 -0
- package/docs/reports/unified-9.0.32/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.32/raw/lint.log +5 -0
- package/docs/reports/unified-9.0.32/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.32/raw/node22-tests-final.log +17212 -0
- package/docs/reports/unified-9.0.32/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.32/raw/node24-tests-final.log +2869 -0
- package/docs/reports/unified-9.0.32/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.32/raw/sbom.log +2 -0
- package/docs/reports/unified-9.0.32/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.32/raw/ui-runtime.log +8 -0
- package/docs/reports/unified-9.0.32/raw/version-parity-928-929.log +6 -0
- package/docs/reports/unified-9.0.33/PRUEFBERICHT.md +60 -0
- package/docs/reports/unified-9.0.33/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.33/raw/INDEX.json +272 -0
- package/docs/reports/unified-9.0.33/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.33/raw/browser/UI_REVIEW.json +147 -0
- package/docs/reports/unified-9.0.33/raw/browser/admin-bundle.log +136 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-backup-settings-browser.log +67 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-customer-tariff-startup-browser.log +43 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-energyflow-browser-smoke.log +438 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-energyflow-cadence-browser-10s.log +108 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-evcs-delete-browser.log +1 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-history-setup-browser-smoke.log +49 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-kiosk-browser.log +59 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-ocpp-admin-browser.log +71 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-ocpp-installer-discovery-browser.log +11 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-pwa-trust-browser.log +35 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-controls-browser.log +78 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-health-browser.log +49 -0
- package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-login-browser.log +34 -0
- package/docs/reports/unified-9.0.33/raw/browser/smarthome.log +46 -0
- package/docs/reports/unified-9.0.33/raw/browser-ten-seconds.json +108 -0
- package/docs/reports/unified-9.0.33/raw/changed-test-coverage.json +116 -0
- package/docs/reports/unified-9.0.33/raw/connected-control-node22.jsonl +42 -0
- package/docs/reports/unified-9.0.33/raw/connected-control-summary-node22.json +103 -0
- package/docs/reports/unified-9.0.33/raw/connected-control-summary.json +103 -0
- package/docs/reports/unified-9.0.33/raw/connected-control.jsonl +42 -0
- package/docs/reports/unified-9.0.33/raw/display-ui-node22.log +162 -0
- package/docs/reports/unified-9.0.33/raw/display-ui.log +35 -0
- package/docs/reports/unified-9.0.33/raw/frontend.log +151 -0
- package/docs/reports/unified-9.0.33/raw/git-delivery-fix.log +10 -0
- package/docs/reports/unified-9.0.33/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.33/raw/license-central-node24.log +173 -0
- package/docs/reports/unified-9.0.33/raw/lint-final.log +45 -0
- package/docs/reports/unified-9.0.33/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.33/raw/node22-npm-version.log +1 -0
- package/docs/reports/unified-9.0.33/raw/node22-tests-final.log +17646 -0
- package/docs/reports/unified-9.0.33/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.33/raw/node24-npm-version.log +1 -0
- package/docs/reports/unified-9.0.33/raw/node24-tests-final.log +2941 -0
- package/docs/reports/unified-9.0.33/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.33/raw/process-final-node22.log +220 -0
- package/docs/reports/unified-9.0.33/raw/process-final-node24.log +110 -0
- package/docs/reports/unified-9.0.33/raw/ram-picker.jsonl +12 -0
- package/docs/reports/unified-9.0.33/raw/reg-combined-node22.log +622 -0
- package/docs/reports/unified-9.0.33/raw/reg-combined.log +108 -0
- package/docs/reports/unified-9.0.33/raw/sbom-final.log +8 -0
- package/docs/reports/unified-9.0.33/raw/tariff-update-all-final-node22.log +1185 -0
- package/docs/reports/unified-9.0.33/raw/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.33/raw/ui-functional-node24.log +430 -0
- package/docs/reports/unified-9.0.33/raw/ui-runtime-final-verification.log +1 -0
- package/docs/reports/unified-9.0.33/raw/update-controller-standard-7-2-5.log +4 -0
- package/docs/reports/unified-9.0.33/raw/worker-memory-eos933.log +12 -0
- package/docs/reports/unified-9.0.33/raw/worker-memory-flow932.log +12 -0
- package/docs/reports/unified-9.0.34/PRUEFBERICHT.md +40 -0
- package/docs/reports/unified-9.0.34/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.34/raw/INDEX.json +137 -0
- package/docs/reports/unified-9.0.34/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.34/raw/dashboard-interval.json +108 -0
- package/docs/reports/unified-9.0.34/raw/fixtures-verification.log +44 -0
- package/docs/reports/unified-9.0.34/raw/frontend.log +152 -0
- package/docs/reports/unified-9.0.34/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.34/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.34/raw/mira-dashboard-browser.json +1 -0
- package/docs/reports/unified-9.0.34/raw/mira-devices-browser.log +9 -0
- package/docs/reports/unified-9.0.34/raw/mira-memory-process.json +379 -0
- package/docs/reports/unified-9.0.34/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.34/raw/node22-mira.log +216 -0
- package/docs/reports/unified-9.0.34/raw/node22-protocol-to-ems.log +8 -0
- package/docs/reports/unified-9.0.34/raw/node22-tests-final.log +17850 -0
- package/docs/reports/unified-9.0.34/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.34/raw/node24-mira.log +40 -0
- package/docs/reports/unified-9.0.34/raw/node24-protocol-to-ems.log +6 -0
- package/docs/reports/unified-9.0.34/raw/node24-tests-final.log +2973 -0
- package/docs/reports/unified-9.0.34/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.34/raw/protocol-to-ems.cjs +364 -0
- package/docs/reports/unified-9.0.34/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.34/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.34/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.34/raw/ui-runtime.log +8 -0
- package/docs/start/START_HIER_9.0.32.md +16 -0
- package/docs/start/START_HIER_9.0.33.md +32 -0
- package/docs/start/START_HIER_9.0.34.md +25 -0
- package/io-package.json +16 -16
- package/modules/devices/admin/alias-contract-v1.json +22 -0
- package/modules/devices/admin/ems-assignment.js +6 -1
- package/modules/devices/admin/host-bridge.js +2 -0
- package/modules/devices/admin/index.html +16 -0
- package/modules/devices/admin/index_m.js +168 -9
- package/modules/devices/admin/templates.json +976 -0
- package/modules/devices/checks/emsAssignment.check.js +52 -2
- package/modules/devices/index.js +5 -1
- package/modules/devices/lib/alias-contract-v1.json +22 -0
- package/modules/devices/lib/deviceRuntime.js +17 -7
- package/modules/devices/lib/drivers/modbus.js +1 -1
- package/modules/devices/lib/drivers/modbusRtuBus.js +7 -1
- package/modules/devices/lib/drivers/ovumMira.js +148 -0
- package/modules/devices/lib/ovumMiraAliases.js +61 -0
- package/modules/devices/lib/ovumMiraConnection.js +32 -0
- package/modules/devices/lib/templates.json +976 -0
- package/modules/devices/test/aliasContractV1.test.js +4 -4
- package/modules/devices/test/deviceAliasSemantics.test.js +2 -2
- package/modules/devices/test/fixtures/approved-additive-templates.json +3 -1
- package/modules/devices/test/ovumMiraPairing.test.js +76 -0
- package/modules/devices/test/ovumMiraTemplates.test.js +110 -0
- package/modules/devices/test/ovumMiraTransport.test.js +162 -0
- package/package.json +10 -5
- package/release-manifests/unified/build-environment.cdx.json +7 -7
- package/release-manifests/unified/files.json +302 -180
- package/release-manifests/unified/frontend.cdx.json +7 -7
- package/release-manifests/unified/installer.cdx.json +7 -7
- package/release-manifests/unified/obsolete-admin-assets.json +281 -28
- package/release-manifests/unified/runtime.cdx.json +28 -28
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-manifest.cjs +2 -2
- package/ui/ems/consumers/ovum-mira.js +164 -0
- package/ui/ems/consumers/sg-ready.js +26 -6
- package/ui/ems/datapoints.js +12 -4
- package/ui/ems/modules/charging-management.js +58 -67
- package/ui/ems/modules/core-limits.js +59 -36
- package/ui/ems/modules/para14a.js +3 -2
- package/ui/ems/modules/prime-mover-control.js +141 -29
- package/ui/ems/modules/stage-a-diagnostics.js +4 -2
- package/ui/ems/modules/storage-control.js +31 -38
- package/ui/ems/modules/storage-mapping.js +14 -13
- package/ui/ems/modules/tarif-vis.js +38 -56
- package/ui/ems/modules/thermal-control.js +91 -10
- package/ui/ems/services/measurement-freshness.js +58 -21
- package/ui/ems/services/safety-envelope.js +13 -6
- package/ui/io-package.json +13 -1
- package/ui/lib/datapoint-picker.js +27 -20
- package/ui/lib/installer-lifecycle.js +11 -2
- package/ui/lib/tariff-price.js +7 -1
- package/ui/lib/ts-mirrors/ems/core-limits/core-runtime.js +5 -1
- package/ui/main.js +313 -188
- package/ui/package.json +4 -3
- package/ui/www/app.js +238 -100
- package/ui/www/ems-apps.js +30 -10
- package/ui/www/index.html +1 -0
- package/ui/www/licenses/smarthome-markdown-components.json +156 -156
- package/ui/www/live-display.js +38 -4
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/power-measurements.js +28 -3
- package/adminWww/assets/AddLink-0L0E-LsA.js +0 -1
- package/adminWww/assets/ColorLens-DA51K29x.js +0 -1
- package/adminWww/assets/ConfigManager-C2naRwDl.js +0 -1
- package/adminWww/assets/Enums-B9ucB-qg.js +0 -92
- package/adminWww/assets/Fields-DN41WFbp.js +0 -1
- package/adminWww/assets/FileCopy-B16lEuur.js +0 -1
- package/adminWww/assets/Files-C3PbbeNR.js +0 -1
- package/adminWww/assets/Instances-PKvEjDNQ.js +0 -4
- package/adminWww/assets/Intro-BnYMjDZr.js +0 -2
- package/adminWww/assets/Lens-9lkeoWGk.js +0 -1
- package/adminWww/assets/LinearScale-Be5h2beh.js +0 -1
- package/adminWww/assets/North-C2whbHM-.js +0 -1
- package/adminWww/assets/Overview-CWLYuqZx.js +0 -3
- package/adminWww/assets/PersonOff-DqBq0Fho.js +0 -1
- package/adminWww/assets/PlaylistAdd-O8k92YBd.js +0 -1
- package/adminWww/assets/State-Ca9_Ke_c.js +0 -1
- package/adminWww/assets/UsedResources-20bsoxmj.js +0 -2
- package/adminWww/assets/Users-yZyZX-18.js +0 -1
- package/adminWww/assets/date-fns-C1dqkno9.js +0 -1
- package/adminWww/assets/icons-material-C3PNaipj.js +0 -1
- package/adminWww/assets/isSameWeek-Crh37s7U.js +0 -1
- package/adminWww/assets/isWithinInterval-Bo1WiDfq.js +0 -1
- package/adminWww/assets/locale-hLcz_Xh2.js +0 -1
- package/adminWww/assets/sentry-DwQQLI7N.js +0 -1
- package/adminWww/assets/startOfWeek-DJph8SIW.js +0 -1
|
@@ -242,6 +242,18 @@
|
|
|
242
242
|
</div>
|
|
243
243
|
</div>
|
|
244
244
|
|
|
245
|
+
<section id="mira_pair_settings" class="nexo-ems-config" aria-labelledby="mira_pair_title" hidden>
|
|
246
|
+
<h6 id="mira_pair_title">MIRA-Wärmepumpenmodul</h6>
|
|
247
|
+
<p class="nexo-muted">Das HSM nimmt die PV-Vorgabe an. Das zugehörige WPM misst die elektrische Leistung der Wärmepumpe.</p>
|
|
248
|
+
<label for="mira_wpm_choice">Leistungsmessung zuordnen</label>
|
|
249
|
+
<select id="mira_wpm_choice" class="browser-default"></select>
|
|
250
|
+
<div id="mira_wpm_unit_field" hidden>
|
|
251
|
+
<label for="mira_wpm_unit">Wärmepumpenmodul am gleichen Anschluss</label>
|
|
252
|
+
<select id="mira_wpm_unit" class="browser-default"></select>
|
|
253
|
+
</div>
|
|
254
|
+
<p class="nexo-muted" id="mira_pair_hint" aria-live="polite"></p>
|
|
255
|
+
</section>
|
|
256
|
+
|
|
245
257
|
<section class="nexo-ems-config" aria-labelledby="dev_ems_title">
|
|
246
258
|
<h6 id="dev_ems_title">EMS-Zuordnung</h6>
|
|
247
259
|
<div id="dev_profile_capabilities" class="nexo-profile-capabilities" aria-live="polite"></div>
|
|
@@ -257,6 +269,8 @@
|
|
|
257
269
|
<p class="nexo-muted">Mit „Speichern und übernehmen“ werden Gerät, Zuordnung und die benötigten EMS-Apps gemeinsam eingerichtet. Messwertprüfung und Anlagenschutz bleiben wirksam.</p>
|
|
258
270
|
<p class="nexo-ems-step" id="dev_ems_limits_title">Betriebsgrenzen</p>
|
|
259
271
|
<div id="dev_ems_limits" class="nexo-ems-fields">
|
|
272
|
+
<div data-ems-limit="mira"><label for="dev_ems_miraMaxW">Maximale elektrische PV-Anforderung (W)</label><input id="dev_ems_miraMaxW" type="number" min="1" max="10000000" step="1" inputmode="numeric"></div>
|
|
273
|
+
<div data-ems-limit="mira"><label class="nexo-ems-check"><input type="checkbox" id="dev_ems_miraSources"><span>Einzel-Wärmepumpe ohne Kaskade. Am HSM sind die Statusquelle EMS und die Datenquelle SOC/NETZ/WR/SOLL eingestellt.</span></label></div>
|
|
260
274
|
<div data-ems-limit="storage"><label for="dev_ems_coupling">Speicher-Anbindung</label><select id="dev_ems_coupling" class="browser-default"><option value="">Vorhandene Anbindung / Geräteprofil</option><option value="ac">AC-gekoppelt</option><option value="dc">DC-gekoppelt</option></select></div>
|
|
261
275
|
<div data-ems-limit="storage"><label for="dev_ems_maxChargeW">Maximale Ladeleistung (W)</label><input id="dev_ems_maxChargeW" type="number" min="1" step="1" inputmode="decimal" placeholder="z. B. 10000"></div>
|
|
262
276
|
<div data-ems-limit="storage"><label for="dev_ems_maxDischargeW">Maximale Entladeleistung (W)</label><input id="dev_ems_maxDischargeW" type="number" min="1" step="1" inputmode="decimal" placeholder="z. B. 10000"></div>
|
|
@@ -427,6 +441,7 @@
|
|
|
427
441
|
<div class="input-field col s12 m4">
|
|
428
442
|
<input id="mb_writePass" type="password" />
|
|
429
443
|
<label for="mb_writePass" class="translate">Schreibpasswort (optional)</label>
|
|
444
|
+
<span class="helper-text mira-login-hint" style="display:none">MIRA-Modbus-Login-Code vom Gerät. EOS prüft die Freigabe für diese Unit. Ohne Code muss sie am Gerät bereits freigegeben sein.</span>
|
|
430
445
|
</div>
|
|
431
446
|
</div>
|
|
432
447
|
</div>
|
|
@@ -531,6 +546,7 @@
|
|
|
531
546
|
<div class="input-field col s12 m4">
|
|
532
547
|
<input id="mb_writePass_rtu" type="password" />
|
|
533
548
|
<label for="mb_writePass_rtu" class="translate">Schreibpasswort (optional)</label>
|
|
549
|
+
<span class="helper-text mira-login-hint" style="display:none">MIRA-Modbus-Login-Code dieser Unit. Den Wert am Gerät ablesen.</span>
|
|
534
550
|
</div>
|
|
535
551
|
</div>
|
|
536
552
|
</div>
|
|
@@ -654,8 +654,17 @@ function downloadTextFile(filename, text, mime) {
|
|
|
654
654
|
}, 0);
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
+
function printableDeviceConfiguration() {
|
|
658
|
+
const rows = (devices || []).map(device => {
|
|
659
|
+
if (!['heat.ovum.mira.hsm', 'heat.ovum.mira.wpm'].includes(device.templateId) || !device.connection?.writePassword) return device;
|
|
660
|
+
// Host-side secret placeholders survive importing into the same device.
|
|
661
|
+
return { ...device, connection: { ...device.connection, writePassword: '__EOS_SECRET_UNCHANGED__' } };
|
|
662
|
+
});
|
|
663
|
+
return JSON.stringify(rows, null, 2);
|
|
664
|
+
}
|
|
665
|
+
|
|
657
666
|
function exportDevicesJsonToFile() {
|
|
658
|
-
const text =
|
|
667
|
+
const text = printableDeviceConfiguration();
|
|
659
668
|
downloadTextFile('nexowatt-devices.devices.json', text, 'application/json');
|
|
660
669
|
}
|
|
661
670
|
|
|
@@ -829,6 +838,117 @@ function emsPresentation(device) {
|
|
|
829
838
|
return window.EosDeviceEms.describe(device.id, device.ems, device.enabled);
|
|
830
839
|
}
|
|
831
840
|
|
|
841
|
+
const MIRA_HSM = 'heat.ovum.mira.hsm';
|
|
842
|
+
const MIRA_WPM = 'heat.ovum.mira.wpm';
|
|
843
|
+
|
|
844
|
+
function sameMiraEndpoint(a, b) {
|
|
845
|
+
if (a.protocol !== b.protocol) return false;
|
|
846
|
+
const x = a.connection || {}, y = b.connection || {};
|
|
847
|
+
if (a.protocol === 'modbusTcp') {
|
|
848
|
+
const host = String(x.host || '').trim().toLowerCase();
|
|
849
|
+
return !!host && host === String(y.host || '').trim().toLowerCase() && Number(x.port || 502) === Number(y.port || 502);
|
|
850
|
+
}
|
|
851
|
+
return a.protocol === 'modbusRtu' && !!normalizeSerialPath(x.path) && normalizeSerialPath(x.path) === normalizeSerialPath(y.path);
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
function miraCanLink(hsm, wpm) {
|
|
855
|
+
const unit = Number(wpm.connection?.unitId);
|
|
856
|
+
if (wpm.templateId !== MIRA_WPM || !Number.isInteger(unit) || unit < 111 || unit > 118) return false;
|
|
857
|
+
if (hsm.protocol === 'modbusTcp') return sameMiraEndpoint(hsm, wpm);
|
|
858
|
+
// Two separately wired RTU ports can belong to one plant. Linking across
|
|
859
|
+
// ports requires an explicit choice of an existing WPM.
|
|
860
|
+
return hsm.protocol === 'modbusRtu' && wpm.protocol === 'modbusRtu';
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
function miraPairingForm(reset) {
|
|
864
|
+
const area = document.getElementById('mira_pair_settings');
|
|
865
|
+
area.hidden = $('#dev_template').val() !== MIRA_HSM;
|
|
866
|
+
if (area.hidden) return;
|
|
867
|
+
const select = document.getElementById('mira_wpm_choice');
|
|
868
|
+
const unitSelect = document.getElementById('mira_wpm_unit');
|
|
869
|
+
const previous = editIndex < 0 ? null : devices[editIndex];
|
|
870
|
+
const stored = previous?.templateId === MIRA_HSM ? previous.connection?.miraWpmDeviceId : undefined;
|
|
871
|
+
const protocol = $('#dev_protocol').val();
|
|
872
|
+
const expected = { protocol, connection: protocol === 'modbusTcp'
|
|
873
|
+
? { host: $('#mb_host').val(), port: $('#mb_port').val() } : { path: $('#mb_path').val() } };
|
|
874
|
+
let choice = reset ? '' : select.value;
|
|
875
|
+
if (!choice) choice = stored ? 'id:' + stored : stored === '' ? 'none' : editIndex < 0 ? 'same' : 'legacy';
|
|
876
|
+
const option = (value, title) => {
|
|
877
|
+
const el = document.createElement('option'); el.value = value; el.textContent = title; return el;
|
|
878
|
+
};
|
|
879
|
+
select.replaceChildren();
|
|
880
|
+
if (editIndex < 0) select.appendChild(option('same', 'Wärmepumpenmodul mit anlegen oder vorhandenes verwenden'));
|
|
881
|
+
if (editIndex >= 0 && stored === undefined) select.appendChild(option('legacy', 'Eindeutiges Modul am gleichen Anschluss erkennen'));
|
|
882
|
+
select.appendChild(option('none', 'Kein Modul zuordnen'));
|
|
883
|
+
for (const item of devices) {
|
|
884
|
+
if (miraCanLink(expected, item)) select.appendChild(option('id:' + item.id, item.id + ' · ' + summarizeConnection(item) + (item.enabled === false ? ' · deaktiviert' : '')));
|
|
885
|
+
}
|
|
886
|
+
if (choice.startsWith('id:') && !Array.from(select.options).some(x => x.value === choice)) {
|
|
887
|
+
select.appendChild(option(choice, choice.slice(3) + ' · Zuordnung prüfen'));
|
|
888
|
+
}
|
|
889
|
+
select.value = choice;
|
|
890
|
+
if (!unitSelect.options.length) {
|
|
891
|
+
for (let n = 1; n <= 8; n++) unitSelect.appendChild(option(String(110 + n), 'WPM ' + n + ' · Unit ' + (110 + n)));
|
|
892
|
+
}
|
|
893
|
+
if (reset) unitSelect.value = '111';
|
|
894
|
+
document.getElementById('mira_wpm_unit_field').hidden = choice !== 'same';
|
|
895
|
+
let hint = '';
|
|
896
|
+
if (choice === 'same') hint = 'EOS verwendet den Anschluss des HSM und übernimmt vorhandene Module mit passender Unit-ID.';
|
|
897
|
+
if (protocol === 'modbusRtu') hint += ' Bei getrennten RS485-Leitungen das WPM an seinem Port anlegen und hier auswählen.';
|
|
898
|
+
if (choice === 'none') hint = 'Das HSM kann separat eingerichtet werden. Für die automatische Leistungsregelung später das Messmodul zuordnen.';
|
|
899
|
+
document.getElementById('mira_pair_hint').textContent = hint.trim();
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
// Resolve the complete change before the device list is modified. An existing
|
|
903
|
+
// WPM remains the same object, with its original login, settings and EMS mode.
|
|
904
|
+
function planMiraPair(device, inventory, index, choice, unit) {
|
|
905
|
+
if (![MIRA_HSM, MIRA_WPM].includes(device.templateId)) return null;
|
|
906
|
+
const others = inventory.filter((_item, i) => i !== index);
|
|
907
|
+
const atUnit = (address) => others.filter(item => sameMiraEndpoint(device, item) && Number(item.connection?.unitId) === address);
|
|
908
|
+
if (atUnit(Number(device.connection.unitId)).length) throw new Error('Diese Modbus-Unit ist an diesem Anschluss bereits als Gerät angelegt.');
|
|
909
|
+
if (device.templateId !== MIRA_HSM || choice === 'legacy') return null;
|
|
910
|
+
if (choice === 'none') return { id: '' };
|
|
911
|
+
let match;
|
|
912
|
+
if (choice === 'same' && index < 0) {
|
|
913
|
+
if (!Number.isInteger(unit) || unit < 111 || unit > 118) throw new Error('Ein Wärmepumpenmodul von WPM 1 bis 8 auswählen.');
|
|
914
|
+
const found = atUnit(unit);
|
|
915
|
+
if (found.length > 1 || (found.length && !miraCanLink(device, found[0]))) {
|
|
916
|
+
throw new Error('Die ausgewählte WPM-Unit ist am Anschluss bereits einem anderen Gerät zugeordnet.');
|
|
917
|
+
}
|
|
918
|
+
match = found[0];
|
|
919
|
+
if (!match) {
|
|
920
|
+
// Keep the generated ID within the device host's 80-character limit.
|
|
921
|
+
const prefix = device.id.slice(0, 70) + '_wpm' + (unit - 110);
|
|
922
|
+
const ids = new Set(inventory.map(item => item.id));
|
|
923
|
+
ids.add(device.id);
|
|
924
|
+
let id = prefix;
|
|
925
|
+
for (let n = 2; ids.has(id); n++) id = prefix + '_' + n;
|
|
926
|
+
if (inventory.length + 2 > 128) throw new Error('Für HSM und WPM werden zwei freie Geräteplätze benötigt.');
|
|
927
|
+
const connection = { unitId: unit };
|
|
928
|
+
for (const key of ['host','port','path','baudRate','parity','dataBits','stopBits','addressOffset','wordOrder','byteOrder','timeoutMs','writePassword']) {
|
|
929
|
+
if (device.connection[key] !== undefined) connection[key] = device.connection[key];
|
|
930
|
+
}
|
|
931
|
+
if (connection.writePassword === '__EOS_SECRET_UNCHANGED__') throw new Error('Den lokalen MIRA-Login-Code für das neue WPM eingeben.');
|
|
932
|
+
return { id, companion: { id, name: (device.name || device.id) + ' · WPM ' + (unit - 110),
|
|
933
|
+
templateId: MIRA_WPM, manufacturer: device.manufacturer, category: device.category, protocol: device.protocol,
|
|
934
|
+
enabled: device.enabled !== false, pollIntervalMs: device.pollIntervalMs, heartbeatTimeoutMs: device.heartbeatTimeoutMs,
|
|
935
|
+
ems: { mode: 'auto' }, connection } };
|
|
936
|
+
}
|
|
937
|
+
} else if (choice && choice.startsWith('id:')) {
|
|
938
|
+
const found = others.filter(item => item.id === choice.slice(3));
|
|
939
|
+
if (found.length === 1 && miraCanLink(device, found[0])) match = found[0];
|
|
940
|
+
}
|
|
941
|
+
if (!match) throw new Error('Ein passendes MIRA-WPM auswählen oder das HSM separat einrichten.');
|
|
942
|
+
if (others.some(item => item !== match && sameMiraEndpoint(match, item) && Number(item.connection?.unitId) === Number(match.connection.unitId))) {
|
|
943
|
+
throw new Error('Die ausgewählte WPM-Unit ist am Anschluss mehrfach angelegt.');
|
|
944
|
+
}
|
|
945
|
+
if (others.some(item => item.templateId === MIRA_HSM && (item.connection?.miraWpmDeviceId === match.id ||
|
|
946
|
+
(!Object.hasOwn(item.connection || {}, 'miraWpmDeviceId') && sameMiraEndpoint(item, match))))) {
|
|
947
|
+
throw new Error('Dieses WPM ist bereits einem anderen HSM zugeordnet.');
|
|
948
|
+
}
|
|
949
|
+
return { id: match.id };
|
|
950
|
+
}
|
|
951
|
+
|
|
832
952
|
function updateEmsControls(settings) {
|
|
833
953
|
const api = window.EosDeviceEms;
|
|
834
954
|
const current = settings || {
|
|
@@ -848,8 +968,11 @@ function updateEmsControls(settings) {
|
|
|
848
968
|
select.value = choices.some(choice => choice.value === desired.mode) ? desired.mode : 'auto';
|
|
849
969
|
document.getElementById('dev_ems_scope').value = desired.scope || '';
|
|
850
970
|
if (settings) {
|
|
851
|
-
|
|
971
|
+
const mira = $('#dev_template').val() === 'heat.ovum.mira.hsm';
|
|
972
|
+
document.getElementById('dev_ems_requested').checked = mira ? desired.activation?.requested === true : desired.activation?.requested !== false;
|
|
852
973
|
const limits = desired.activation?.limits || {};
|
|
974
|
+
document.getElementById('dev_ems_miraSources').checked = mira && limits.miraSources === 'confirmed';
|
|
975
|
+
document.getElementById('dev_ems_miraMaxW').value = mira ? limits.maxPowerW ?? '' : '';
|
|
853
976
|
for (const key of ['coupling', 'maxChargeW', 'maxDischargeW', 'capacityKWh', 'chargerType', 'phases', 'minCurrentA', 'maxCurrentA', 'minPowerW', 'maxPowerW']) {
|
|
854
977
|
const control = document.getElementById('dev_ems_' + key);
|
|
855
978
|
control.value = Object.hasOwn(limits, key) ? String(Reflect.get(limits, key)) : '';
|
|
@@ -883,16 +1006,18 @@ function updateEmsActivation() {
|
|
|
883
1006
|
const category = String($('#dev_category').val() || '').toUpperCase();
|
|
884
1007
|
const storage = ['singleStorage', 'storageFarm'].includes(mode);
|
|
885
1008
|
const charger = mode === 'auto' && ['EVCS', 'EVSE'].includes(category);
|
|
886
|
-
const
|
|
1009
|
+
const mira = mode === 'auto' && $('#dev_template').val() === 'heat.ovum.mira.hsm';
|
|
1010
|
+
if (mira) document.getElementById('dev_ems_help').textContent = 'Die elektrische Aufnahmeleistung des Wärmepumpenmoduls erscheint im Energiefluss. Für PV-Regelung Quellenwahl bestätigen und die elektrische Leistungsgrenze der Anlage eintragen.';
|
|
1011
|
+
const applicable = storage || charger || mira || ['gridMeter', 'generationMeter', 'consumptionMeter', 'pvInverter'].includes(mode);
|
|
887
1012
|
document.getElementById('dev_ems_activation_field').hidden = !applicable;
|
|
888
1013
|
const requested = document.getElementById('dev_ems_requested').checked;
|
|
889
1014
|
const type = document.getElementById('dev_ems_chargerType').value;
|
|
890
1015
|
for (const field of document.querySelectorAll('[data-ems-limit]')) {
|
|
891
1016
|
const group = field.dataset.emsLimit;
|
|
892
|
-
field.hidden = !requested || !(group === 'storage' && storage || group === 'charger' && charger || group === type && charger);
|
|
1017
|
+
field.hidden = !requested || !(group === 'storage' && storage || group === 'charger' && charger || group === type && charger || group === 'mira' && mira);
|
|
893
1018
|
}
|
|
894
|
-
document.getElementById('dev_ems_limits_help').hidden = !requested || !(storage || charger);
|
|
895
|
-
document.getElementById('dev_ems_limits_title').hidden = !requested || !(storage || charger);
|
|
1019
|
+
document.getElementById('dev_ems_limits_help').hidden = !requested || !(storage || charger || mira);
|
|
1020
|
+
document.getElementById('dev_ems_limits_title').hidden = !requested || !(storage || charger || mira);
|
|
896
1021
|
}
|
|
897
1022
|
|
|
898
1023
|
function collectEmsActivation(value, previous) {
|
|
@@ -900,7 +1025,21 @@ function collectEmsActivation(value, previous) {
|
|
|
900
1025
|
const requested = document.getElementById('dev_ems_requested').checked;
|
|
901
1026
|
const limits = { ...(previous?.activation?.limits || {}) };
|
|
902
1027
|
const storage = ['singleStorage', 'storageFarm'].includes(value.mode);
|
|
903
|
-
const charger = value.mode === 'auto';
|
|
1028
|
+
const charger = value.mode === 'auto' && ['EVCS','EVSE'].includes(String($('#dev_category').val()).toUpperCase());
|
|
1029
|
+
const mira = value.mode === 'auto' && $('#dev_template').val() === 'heat.ovum.mira.hsm';
|
|
1030
|
+
if (mira) {
|
|
1031
|
+
const maxPowerW = Number(document.getElementById('dev_ems_miraMaxW').value);
|
|
1032
|
+
const confirmed = document.getElementById('dev_ems_miraSources').checked;
|
|
1033
|
+
if (requested && (!confirmed || !Number.isSafeInteger(maxPowerW) || maxPowerW < 1 || maxPowerW > 10000000)) {
|
|
1034
|
+
throw new Error('Für die MIRA-Regelung die Quellenwahl am HSM bestätigen und eine gültige elektrische Leistungsgrenze in Watt eingeben.');
|
|
1035
|
+
}
|
|
1036
|
+
value.activation = { requested, limits: {
|
|
1037
|
+
...(confirmed ? { miraSources: 'confirmed' } : {}),
|
|
1038
|
+
...(Number.isSafeInteger(maxPowerW) && maxPowerW > 0 && maxPowerW <= 10000000 ? { maxPowerW } : {}),
|
|
1039
|
+
} };
|
|
1040
|
+
if (previous?.activation?.requestId) value.activation.requestId = previous.activation.requestId;
|
|
1041
|
+
return;
|
|
1042
|
+
}
|
|
904
1043
|
const kind = document.getElementById('dev_ems_chargerType').value;
|
|
905
1044
|
const fields = storage ? ['coupling', 'maxChargeW', 'maxDischargeW', 'capacityKWh']
|
|
906
1045
|
: charger ? ['chargerType', ...(kind === 'dc' ? ['minPowerW', 'maxPowerW'] : ['phases', 'minCurrentA', 'maxCurrentA'])] : [];
|
|
@@ -1197,7 +1336,18 @@ function renderProfileCapabilities(template) {
|
|
|
1197
1336
|
}
|
|
1198
1337
|
|
|
1199
1338
|
function renderDatapoints(templateId) {
|
|
1339
|
+
const check = document.getElementById('dev_ems_requested');
|
|
1340
|
+
if (check.dataset.emsTemplate !== templateId) {
|
|
1341
|
+
if (templateId === 'heat.ovum.mira.hsm' && !(editIndex >= 0 && devices[editIndex]?.templateId === templateId)) {
|
|
1342
|
+
check.checked = false;
|
|
1343
|
+
document.getElementById('dev_ems_miraSources').checked = false;
|
|
1344
|
+
document.getElementById('dev_ems_miraMaxW').value = '';
|
|
1345
|
+
}
|
|
1346
|
+
check.dataset.emsTemplate = templateId;
|
|
1347
|
+
}
|
|
1348
|
+
updateEmsActivation();
|
|
1200
1349
|
const tpl = templatesById[templateId];
|
|
1350
|
+
$('.mira-login-hint').toggle(!!tpl?.driverHints?.ovumMira);
|
|
1201
1351
|
renderProfileCapabilities(tpl);
|
|
1202
1352
|
renderVartaOptions(tpl);
|
|
1203
1353
|
renderDeyeOptions(tpl);
|
|
@@ -1241,7 +1391,6 @@ function openDeviceModal(device, idx) {
|
|
|
1241
1391
|
const cat = device.category || categories[0] || 'GENERIC';
|
|
1242
1392
|
$('#dev_category').val(cat);
|
|
1243
1393
|
refreshSelect($('#dev_category'));
|
|
1244
|
-
updateEmsControls(device.ems || {});
|
|
1245
1394
|
|
|
1246
1395
|
fillManufacturerSelect(cat);
|
|
1247
1396
|
const manuList = manufacturersByCategory[cat] || [];
|
|
@@ -1254,6 +1403,7 @@ function openDeviceModal(device, idx) {
|
|
|
1254
1403
|
const tpl = templatesById[tplId] || null;
|
|
1255
1404
|
$('#dev_template').val(tplId);
|
|
1256
1405
|
refreshSelect($('#dev_template'));
|
|
1406
|
+
updateEmsControls(device.ems || {});
|
|
1257
1407
|
|
|
1258
1408
|
fillProtocolSelect(tplId, device.protocol);
|
|
1259
1409
|
|
|
@@ -1442,6 +1592,7 @@ function openDeviceModal(device, idx) {
|
|
|
1442
1592
|
// Populate serial port datalist from the host (supports hotplug).
|
|
1443
1593
|
refreshSerialPorts(true);
|
|
1444
1594
|
|
|
1595
|
+
miraPairingForm(true);
|
|
1445
1596
|
updateTextFields();
|
|
1446
1597
|
openModal();
|
|
1447
1598
|
}
|
|
@@ -1699,7 +1850,7 @@ function collectDeviceFromModal() {
|
|
|
1699
1850
|
}
|
|
1700
1851
|
|
|
1701
1852
|
function updateJsonPreview() {
|
|
1702
|
-
const jsonStr =
|
|
1853
|
+
const jsonStr = printableDeviceConfiguration();
|
|
1703
1854
|
$('#devicesJson').val(jsonStr);
|
|
1704
1855
|
$('#jsonPreview').text(jsonStr);
|
|
1705
1856
|
}
|
|
@@ -1949,6 +2100,9 @@ function initEventHandlers() {
|
|
|
1949
2100
|
}
|
|
1950
2101
|
});
|
|
1951
2102
|
|
|
2103
|
+
$('#dev_category,#dev_manufacturer,#dev_template').on('change', () => miraPairingForm(true));
|
|
2104
|
+
$('#dev_protocol,#mb_path,#mb_host,#mb_port,#mira_wpm_choice').on('change', () => miraPairingForm(false));
|
|
2105
|
+
|
|
1952
2106
|
// Save device
|
|
1953
2107
|
$('#btnSaveDevice').on('click', () => {
|
|
1954
2108
|
try {
|
|
@@ -1970,12 +2124,16 @@ function initEventHandlers() {
|
|
|
1970
2124
|
);
|
|
1971
2125
|
}
|
|
1972
2126
|
|
|
2127
|
+
const pair = planMiraPair(d, devices, editIndex, $('#mira_wpm_choice').val(), Number($('#mira_wpm_unit').val()));
|
|
2128
|
+
if (pair) d.connection.miraWpmDeviceId = pair.id;
|
|
1973
2129
|
if (editIndex >= 0) {
|
|
1974
2130
|
const previous = devices[editIndex];
|
|
1975
2131
|
devices[editIndex] = { ...previous, ...d, connection: previous.protocol === d.protocol ? { ...previous.connection, ...d.connection } : d.connection };
|
|
1976
2132
|
for (const key of ['insecureTls', 'insecureTLS', 'allowInsecureTls', 'rejectUnauthorized']) delete devices[editIndex].connection[key];
|
|
2133
|
+
if (d.templateId !== MIRA_HSM) delete devices[editIndex].connection.miraWpmDeviceId;
|
|
1977
2134
|
} else {
|
|
1978
2135
|
devices.push(d);
|
|
2136
|
+
if (pair?.companion) devices.push(pair.companion);
|
|
1979
2137
|
}
|
|
1980
2138
|
|
|
1981
2139
|
if (emsRenewalRequested) window.EosDeviceEms.requestRenewal(d.id);
|
|
@@ -1986,6 +2144,7 @@ function initEventHandlers() {
|
|
|
1986
2144
|
setChanged(true);
|
|
1987
2145
|
|
|
1988
2146
|
closeModal();
|
|
2147
|
+
if (pair?.id) toast((pair.companion ? 'Wärmepumpenmodul hinzugefügt: ' : 'Vorhandenes Wärmepumpenmodul zugeordnet: ') + pair.id);
|
|
1989
2148
|
} catch (e) {
|
|
1990
2149
|
toast('Fehler: ' + (e.message || e.toString()));
|
|
1991
2150
|
}
|