iobroker.eos-admin 9.0.33 → 9.0.35
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 +13 -11
- package/README.md +12 -8
- 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-DBUqmmyD.js → AdapterUpdateDialog-DH6S-kWX.js} +5 -5
- package/adminWww/assets/{Adapters-dDEp7o5h.js → Adapters-CIlqSF5B.js} +5 -5
- package/adminWww/assets/ConfigManager-BhVBfM-q.js +1 -0
- package/adminWww/assets/Enums-3H97czGs.js +92 -0
- package/adminWww/assets/Fields-vWLKiuvO.js +1 -0
- package/adminWww/assets/Files-wmjjMXYM.js +1 -0
- package/adminWww/assets/{Hosts-CwU1LujG.js → Hosts-Bk-xmI98.js} +6 -6
- package/adminWww/assets/Instances-Db6Vgh62.js +4 -0
- package/adminWww/assets/Intro-Dc3wAG9V.js +2 -0
- package/adminWww/assets/KeyboardArrowRight-ifvmV1ZL.js +1 -0
- package/adminWww/assets/{Logs-B5SpNqHq.js → Logs-CPbEGWNq.js} +2 -2
- package/adminWww/assets/MoreHoriz-CS7nODK8.js +1 -0
- package/adminWww/assets/{Objects-COg_cFkz.js → Objects-DJB-2468.js} +4 -4
- package/adminWww/assets/Overview-DdvghCLQ.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-0UzpgKYj.js +1 -0
- package/adminWww/assets/UsedResources-Bcmo58YD.js +2 -0
- package/adminWww/assets/Users-BGHf3Rox.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-Dwfxhm2V.js → bootstrap-qkrk_CAn.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-3BbTwhaZ.js → hostInit-DlGqatlv.js} +1 -1
- package/adminWww/assets/icons-material-CUNq6tdT.js +1 -0
- package/adminWww/assets/{index-nddph2Sl.js → index-BrtKq3UN.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-CPDIwFAL.js → installSVGRenderer-DujLjpXt.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-d1f0f40f.js → mf-entry-bootstrap-0-3e1cd85c.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.33.js → remoteEntry-eos-9.0.35.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosDashboardProcessStatus.js +191 -0
- package/build/lib/eosDashboardProcessStatus.js.map +1 -0
- 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/eosKiosk.js +1 -0
- package/build/lib/eosKiosk.js.map +1 -1
- package/build/lib/eosModuleHost.js +17 -6
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +18 -3
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +17 -0
- package/build/lib/eosModuleProcess.js.map +1 -1
- package/build/lib/eosModuleProcessWorker.js +22 -1
- package/build/lib/eosModuleProcessWorker.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +6 -0
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/lib/eosRuntimeHealth.js +50 -1
- package/build/lib/eosRuntimeHealth.js.map +1 -1
- package/build/lib/eosSupervisorNotifications.js +169 -0
- package/build/lib/eosSupervisorNotifications.js.map +1 -0
- package/build/lib/eosUiProcess.js +1 -0
- package/build/lib/eosUiProcess.js.map +1 -1
- package/build/lib/web.js +5 -0
- package/build/lib/web.js.map +1 -1
- package/docs/README.md +3 -2
- 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/reports/unified-9.0.35/PRUEFBERICHT.md +51 -0
- package/docs/reports/unified-9.0.35/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.35/raw/INDEX.json +282 -0
- package/docs/reports/unified-9.0.35/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.35/raw/browser-lp-detail.log +1 -0
- package/docs/reports/unified-9.0.35/raw/browser-lp-feedback.log +1 -0
- package/docs/reports/unified-9.0.35/raw/cold-ocpp-22.log +108 -0
- package/docs/reports/unified-9.0.35/raw/cold-ocpp-24.log +24 -0
- package/docs/reports/unified-9.0.35/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.35/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.35/raw/dashboard-de-en-nl.json +716 -0
- package/docs/reports/unified-9.0.35/raw/device-chain-closed-fixed.json +98 -0
- package/docs/reports/unified-9.0.35/raw/device-chain-rst-fixed.json +98 -0
- package/docs/reports/unified-9.0.35/raw/device-chain.json +93 -0
- package/docs/reports/unified-9.0.35/raw/ee-fusion-final.log +12 -0
- package/docs/reports/unified-9.0.35/raw/eebus-monitor-browser.json +1 -0
- package/docs/reports/unified-9.0.35/raw/eebus-monitor-node22.log +206 -0
- package/docs/reports/unified-9.0.35/raw/eebus-monitor-node24.log +39 -0
- package/docs/reports/unified-9.0.35/raw/fixtures-verification.log +44 -0
- package/docs/reports/unified-9.0.35/raw/frontend.log +152 -0
- package/docs/reports/unified-9.0.35/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.35/raw/legacy-mail-setup-browser.log +1 -0
- package/docs/reports/unified-9.0.35/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.35/raw/live-ems-loss.log +10 -0
- package/docs/reports/unified-9.0.35/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.35/raw/node22-mira-reconnect-integrity.log +452 -0
- package/docs/reports/unified-9.0.35/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.35/raw/node22-system-status.log +213 -0
- package/docs/reports/unified-9.0.35/raw/node22-tests-final.log +18137 -0
- package/docs/reports/unified-9.0.35/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.35/raw/node24-mira-reconnect-integrity.log +79 -0
- package/docs/reports/unified-9.0.35/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.35/raw/node24-system-status.log +40 -0
- package/docs/reports/unified-9.0.35/raw/node24-tests-final.log +3019 -0
- package/docs/reports/unified-9.0.35/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.35/raw/notifications-legacy-node22.log +1 -0
- package/docs/reports/unified-9.0.35/raw/notifications-legacy-node24.log +1 -0
- package/docs/reports/unified-9.0.35/raw/notifications-node22.log +67 -0
- package/docs/reports/unified-9.0.35/raw/notifications-node24.log +17 -0
- package/docs/reports/unified-9.0.35/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-dashboard-stations-node22.log +110 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-dashboard-stations-node24.log +106 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-history-node22.log +561 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-history-node24.log +98 -0
- package/docs/reports/unified-9.0.35/raw/poll-life-node22.log +38 -0
- package/docs/reports/unified-9.0.35/raw/poll-life-node24.log +12 -0
- package/docs/reports/unified-9.0.35/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.35/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.35/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.35/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.35/raw/ui-runtime.log +8 -0
- package/docs/reports/unified-9.0.35/raw/vergleich-9.0.33.json +29 -0
- package/docs/reports/unified-9.0.35/raw/vergleich-9.0.34.json +249 -0
- package/docs/reports/unified-9.0.35/raw/vorher-9.0.33-chromium.json +286 -0
- package/docs/reports/unified-9.0.35/raw/vorher-9.0.34-chromium.json +291 -0
- package/docs/start/START_HIER_9.0.34.md +25 -0
- package/docs/start/START_HIER_9.0.35.md +27 -0
- package/io-package.json +12 -12
- 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/contracts.d.ts +1 -0
- package/modules/devices/index.js +25 -2
- package/modules/devices/lib/alias-contract-v1.json +22 -0
- package/modules/devices/lib/deviceRuntime.js +36 -7
- package/modules/devices/lib/drivers/modbus.js +12 -7
- package/modules/devices/lib/drivers/modbusRtuBus.js +7 -1
- package/modules/devices/lib/drivers/ovumMira.js +152 -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 +201 -0
- package/modules/eebus/README.md +8 -0
- package/modules/eebus/admin/index.js +29 -2
- package/modules/eebus/build/index.js +28 -3
- package/modules/eebus/build/lib/eebusRuntime.js +17 -2
- package/modules/eebus/build/lib/partnerMonitor.js +160 -0
- package/modules/eebus/build/lib/shipEndpoint.js +4 -0
- package/modules/eebus/build/lib/stateDefinitions.js +1 -0
- package/modules/eebus/src/index.ts +23 -3
- package/modules/eebus/src/lib/eebusRuntime.ts +20 -2
- package/modules/eebus/src/lib/partnerMonitor.ts +127 -0
- package/modules/eebus/src/lib/shipEndpoint.ts +5 -0
- package/modules/eebus/src/lib/stateDefinitions.ts +1 -0
- package/modules/eebus/test/partner-monitor.test.js +82 -0
- package/modules/eebus/test/security.test.js +17 -0
- package/modules/ocpp/README.md +9 -1
- package/modules/ocpp/build/index.js +137 -10
- package/modules/ocpp/build/stationHistory.js +113 -0
- package/modules/ocpp/ocpp/freshness.d.ts +3 -0
- package/modules/ocpp/ocpp/freshness.js +6 -0
- package/modules/ocpp/provenance.json +3 -2
- package/modules/ocpp/runtime.d.ts +1 -0
- package/modules/ocpp/runtime.js +23 -1
- package/modules/ocpp/src/index.ts +163 -12
- package/modules/ocpp/src/stationHistory.ts +119 -0
- package/modules/ocpp/test/hosted.test.cjs +161 -0
- package/package.json +9 -5
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +313 -190
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +166 -0
- package/release-manifests/unified/runtime.cdx.json +30 -30
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-manifest.cjs +1 -1
- package/ui/ems/consumers/ovum-mira.js +164 -0
- package/ui/ems/modules/para14a.js +3 -2
- package/ui/ems/modules/stage-a-diagnostics.js +4 -2
- package/ui/ems/modules/thermal-control.js +91 -10
- package/ui/io-package.json +9 -1
- package/ui/lib/installer-lifecycle.js +11 -2
- package/ui/lib/notification-mail.js +235 -40
- package/ui/lib/notification-policy.js +41 -14
- package/ui/main.js +37 -7
- package/ui/package.json +2 -1
- package/ui/www/app.js +122 -24
- package/ui/www/dashboard-lp-status.js +4 -11
- package/ui/www/dashboard-process-status.js +202 -0
- package/ui/www/ems-apps.js +28 -9
- package/ui/www/i18n/en.json +23 -0
- package/ui/www/i18n/nl.json +20 -0
- package/ui/www/index.html +10 -5
- package/ui/www/licenses/smarthome-markdown-components.json +156 -156
- package/ui/www/live-display.js +101 -9
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/settings.html +2 -2
- package/ui/www/styles.css +4 -0
- package/adminWww/assets/AddLink-0L0E-LsA.js +0 -1
- package/adminWww/assets/ColorLens-DA51K29x.js +0 -1
- package/adminWww/assets/ConfigManager-DbqTWi2N.js +0 -1
- package/adminWww/assets/Enums-DjldGElU.js +0 -92
- package/adminWww/assets/Fields-0GsPCJeU.js +0 -1
- package/adminWww/assets/FileCopy-B16lEuur.js +0 -1
- package/adminWww/assets/Files-COnUtEbg.js +0 -1
- package/adminWww/assets/Instances-CUX5mxMQ.js +0 -4
- package/adminWww/assets/Intro-BhQmHn3A.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-CitzUjBF.js +0 -3
- package/adminWww/assets/PersonOff-DqBq0Fho.js +0 -1
- package/adminWww/assets/PlaylistAdd-O8k92YBd.js +0 -1
- package/adminWww/assets/State-D5ljzf-T.js +0 -1
- package/adminWww/assets/UsedResources-BY_NF2wB.js +0 -2
- package/adminWww/assets/Users-Cu93_-VF.js +0 -1
- package/adminWww/assets/date-fns-C1dqkno9.js +0 -1
- package/adminWww/assets/icons-material-DjqX0l_7.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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/ems/modules/thermal-control.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:22a3be98230f58eece31013022c5f131d8e066abec396596b0ee8b2eaf687ff2
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
const { BaseModule } = require('./base');
|
|
77
77
|
const { resolveThermalStrategyOverlay } = require('../services/operating-strategy-runtime');
|
|
78
78
|
const { applySetpoint } = require('../consumers');
|
|
79
|
+
const { miraBinding, registerMiraDevice, regulateMira, miraSample } = require('../consumers/ovum-mira');
|
|
79
80
|
const { withActuatorShadowContext, priorityForOwner } = require('../services/actuator-shadow-arbiter');
|
|
80
81
|
const { ActuatorCommandContract } = require('../services/actuator-command-contract');
|
|
81
82
|
const { recordAcceptedPowerTarget } = require('../services/accepted-power-effects');
|
|
@@ -291,10 +292,13 @@ class ThermalControlModule extends BaseModule {
|
|
|
291
292
|
const modeRaw = String(r.mode || 'pvAuto').trim().toLowerCase();
|
|
292
293
|
const mode = (modeRaw === 'manual' || modeRaw === 'off') ? modeRaw : 'pvAuto';
|
|
293
294
|
|
|
294
|
-
const
|
|
295
|
+
const ovumMira = r.ovumMira === true;
|
|
296
|
+
const type = ovumMira ? 'power' : normalizeType(r.type || r.deviceType || r.kind);
|
|
295
297
|
const profile = normalizeProfile(r.profile, type);
|
|
296
298
|
|
|
297
|
-
const maxPowerW =
|
|
299
|
+
const maxPowerW = ovumMira
|
|
300
|
+
? (Number.isSafeInteger(r.maxPowerW) && r.maxPowerW > 0 && r.maxPowerW <= 2147483647 ? r.maxPowerW : 0)
|
|
301
|
+
: clamp(num(r.maxPowerW, 2500), 0, 1e12);
|
|
298
302
|
const startSurplusW = clamp(num(r.startSurplusW, 800), 0, 1e12);
|
|
299
303
|
const stopSurplusW = clamp(num(r.stopSurplusW, 300), 0, 1e12);
|
|
300
304
|
const minOnSec = clamp(num(r.minOnSec, 300), 0, 86400);
|
|
@@ -306,7 +310,7 @@ class ThermalControlModule extends BaseModule {
|
|
|
306
310
|
if (slotTypeRaw === 'heatingrod' || slotTypeRaw === 'heating_rod' || slotTypeRaw === 'heating-rod' || slotTypeRaw === 'heizstab' || slotTypeRaw === 'rod' || slotTypeRaw === 'immersion') {
|
|
307
311
|
continue;
|
|
308
312
|
}
|
|
309
|
-
const ctrl = (slotCfg.ctrl && typeof slotCfg.ctrl === 'object') ? slotCfg.ctrl : {};
|
|
313
|
+
const ctrl = (!ovumMira && slotCfg.ctrl && typeof slotCfg.ctrl === 'object') ? slotCfg.ctrl : {};
|
|
310
314
|
|
|
311
315
|
const name = String(r.name || slotCfg.name || '').trim() || `Thermal ${slot}`;
|
|
312
316
|
|
|
@@ -379,6 +383,9 @@ class ThermalControlModule extends BaseModule {
|
|
|
379
383
|
maxRetries,
|
|
380
384
|
faultLockSec,
|
|
381
385
|
|
|
386
|
+
ovumMira,
|
|
387
|
+
miraSourcesConfirmed: ovumMira && maxPowerW > 0 && r.miraSourcesConfirmed === true,
|
|
388
|
+
miraBinding: ovumMira ? miraBinding(r, powerId, this.adapter.config.eosDeviceEms?.bindings, slot) : null,
|
|
382
389
|
powerId,
|
|
383
390
|
switchWriteId,
|
|
384
391
|
setpointWriteId,
|
|
@@ -412,6 +419,14 @@ class ThermalControlModule extends BaseModule {
|
|
|
412
419
|
return String(a.name || '').localeCompare(String(b.name || ''));
|
|
413
420
|
});
|
|
414
421
|
|
|
422
|
+
// A hydraulic module represents one system. Ambiguous control assignments cannot write.
|
|
423
|
+
const miraOwners = new Map();
|
|
424
|
+
for (const d of out) {
|
|
425
|
+
if (!d.enabled || !d.miraSourcesConfirmed || !d.miraBinding) continue;
|
|
426
|
+
const previous = miraOwners.get(d.miraBinding.base);
|
|
427
|
+
if (previous) previous.miraConflict = d.miraConflict = true;
|
|
428
|
+
else miraOwners.set(d.miraBinding.base, d);
|
|
429
|
+
}
|
|
415
430
|
this._devices = out;
|
|
416
431
|
}
|
|
417
432
|
|
|
@@ -624,6 +639,8 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
624
639
|
d.pWKey = k;
|
|
625
640
|
}
|
|
626
641
|
|
|
642
|
+
if (d.ovumMira) await registerMiraDevice(this.dp, d);
|
|
643
|
+
|
|
627
644
|
// DP mapping (actuation)
|
|
628
645
|
if (this.dp && d.switchWriteId) {
|
|
629
646
|
const k = `th.${d.id}.en`;
|
|
@@ -667,9 +684,28 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
667
684
|
if (!Array.isArray(this._devices) || !this._devices.length) this._buildDevicesFromConfig();
|
|
668
685
|
const failures = [];
|
|
669
686
|
let attempted = 0;
|
|
687
|
+
let miraReleases = 0;
|
|
688
|
+
let miraMeasuredW = 0;
|
|
670
689
|
|
|
671
690
|
for (const d of this._devices || []) {
|
|
672
691
|
try {
|
|
692
|
+
if (d.ovumMira) {
|
|
693
|
+
await registerMiraDevice(this.dp, d);
|
|
694
|
+
if (!d.miraKeys) continue;
|
|
695
|
+
const mode = String(this.dp.getRaw(d.userModeKey, '') || '').toLowerCase();
|
|
696
|
+
const manual = ['manual', 'manuell'].includes(mode) || ((!mode || mode === 'inherit') && d.mode === 'manual')
|
|
697
|
+
|| this.dp.getBoolean(d.userEnabledKey, true) === false || this._readOverrideForDevice(d, Date.now()).manualActive;
|
|
698
|
+
if (manual && !d.miraBoostIssued) continue;
|
|
699
|
+
attempted++;
|
|
700
|
+
miraReleases++;
|
|
701
|
+
const release = await regulateMira(this, d, { requestedW: 0 });
|
|
702
|
+
miraMeasuredW += release.usedW;
|
|
703
|
+
if (!release.applied) failures.push(d.id + ':' + release.status);
|
|
704
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.applied`, release.applied);
|
|
705
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.targetW`, 0);
|
|
706
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.status`, release.status);
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
673
709
|
if (this.dp && typeof this.dp.upsert === 'function') {
|
|
674
710
|
if (d.switchWriteId && !d.enableKey) {
|
|
675
711
|
d.enableKey = `th.${d.id}.en`;
|
|
@@ -731,12 +767,15 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
731
767
|
}
|
|
732
768
|
}
|
|
733
769
|
try {
|
|
734
|
-
await this._setStateIfChanged('thermal.summary.appliedTotalW',
|
|
770
|
+
await this._setStateIfChanged('thermal.summary.appliedTotalW', Math.round(miraMeasuredW));
|
|
735
771
|
await this._setStateIfChanged('thermal.summary.budgetUsedW', 0);
|
|
736
|
-
|
|
772
|
+
const status = miraReleases ? (failures.length ? 'module-disabled-release-pending' : 'module-disabled-mira-local-control')
|
|
773
|
+
: (attempted ? 'module-disabled-safe-stop' : 'module-disabled-no-actuators');
|
|
774
|
+
await this._setStateIfChanged('thermal.summary.status', status);
|
|
737
775
|
} catch (_diagnosticError) {}
|
|
738
776
|
if (failures.length) throw new Error(`thermal-safe-stop-failed:${failures.join(',')}`);
|
|
739
|
-
return { ok: true, attempted, stopped: attempted }
|
|
777
|
+
return miraReleases ? { ok: true, attempted, stopped: attempted - miraReleases, miraNeutral: miraReleases }
|
|
778
|
+
: { ok: true, attempted, stopped: attempted };
|
|
740
779
|
}
|
|
741
780
|
|
|
742
781
|
/**
|
|
@@ -1495,6 +1534,7 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
1495
1534
|
|
|
1496
1535
|
let appliedTotalW = 0;
|
|
1497
1536
|
let budgetUsedW = 0;
|
|
1537
|
+
let miraPvReserveW = 0;
|
|
1498
1538
|
const ctx = { dp: this.dp, adapter: this.adapter };
|
|
1499
1539
|
// Der Core darf nur aktuelle PV-Automatiklast in sein PV-Budget
|
|
1500
1540
|
// zurückrechnen. Dieser Modusnachweis ist getrennt von der direkten
|
|
@@ -1579,7 +1619,11 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
1579
1619
|
// Read measured power if mapped
|
|
1580
1620
|
let measuredW = null;
|
|
1581
1621
|
if (this.dp && d.pWKey && this.dp.getEntry && this.dp.getEntry(d.pWKey)) {
|
|
1582
|
-
measuredW = this.dp.getNumber(d.pWKey, null);
|
|
1622
|
+
measuredW = d.ovumMira ? (miraSample(this.dp, d.pWKey, now)?.value ?? null) : this.dp.getNumber(d.pWKey, null);
|
|
1623
|
+
if (d.ovumMira && (measuredW === null || measuredW < 0)) {
|
|
1624
|
+
measuredW = null;
|
|
1625
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.measuredW`, null);
|
|
1626
|
+
}
|
|
1583
1627
|
if (typeof measuredW === 'number' && Number.isFinite(measuredW)) {
|
|
1584
1628
|
await this._setStateIfChanged(`thermal.devices.${d.id}.measuredW`, Math.round(measuredW));
|
|
1585
1629
|
}
|
|
@@ -1590,13 +1634,50 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
1590
1634
|
// Manuell, Aus und Boost bleiben Hauslast. Der Core prüft zusätzlich
|
|
1591
1635
|
// die Frische dieses Nachweises und des gemappten Leistungszählers.
|
|
1592
1636
|
this.adapter._zeroExportPvOwnedThermal[d.id] = {
|
|
1593
|
-
owned: effectiveEnabled && effectiveMode === 'pvAuto' && !ov.boostActive && !ov.manualActive,
|
|
1637
|
+
owned: !d.ovumMira && effectiveEnabled && effectiveMode === 'pvAuto' && !ov.boostActive && !ov.manualActive,
|
|
1594
1638
|
ts: now,
|
|
1595
1639
|
};
|
|
1596
1640
|
await this._setStateIfChanged(`thermal.devices.${d.id}.boostActive`, !!ov.boostActive);
|
|
1597
1641
|
await this._setStateIfChanged(`thermal.devices.${d.id}.boostUntil`, ov.boostUntil ? Math.round(ov.boostUntil) : 0);
|
|
1598
1642
|
await this._setStateIfChanged(`thermal.devices.${d.id}.manualUntil`, ov.manualUntil ? Math.round(ov.manualUntil) : 0);
|
|
1599
1643
|
|
|
1644
|
+
if (d.ovumMira) {
|
|
1645
|
+
const boost = effectiveEnabled && ov.boostActive && d.boostEnabled;
|
|
1646
|
+
const manual = !effectiveEnabled || (!boost && (ov.manualActive || effectiveMode === 'manual'));
|
|
1647
|
+
let requestedW = 0;
|
|
1648
|
+
if (effectiveEnabled && !manual && !para14aActive) {
|
|
1649
|
+
if (boost) {
|
|
1650
|
+
requestedW = Math.min(d.boostPowerW, d.maxPowerW);
|
|
1651
|
+
} else if (effectiveMode === 'pvAuto') {
|
|
1652
|
+
let availableW = availableForAutomationW();
|
|
1653
|
+
if (pv.source === 'ems.budget.tariffNegative') {
|
|
1654
|
+
// A cheap-import grant alone is not a MIRA surplus request.
|
|
1655
|
+
const pvGrant = this.adapter._emsBudget?.getPvGrant?.({key: 'thermal', requestedW: availableW});
|
|
1656
|
+
availableW = Math.min(availableW, Math.max(0, num(pvGrant?.grantW, 0) - miraPvReserveW));
|
|
1657
|
+
}
|
|
1658
|
+
const band = this._computeBandDesiredOn(d.id, availableW, d.startSurplusW, d.stopSurplusW);
|
|
1659
|
+
const action = String(strategyOverlay.action || 'standard').toLowerCase();
|
|
1660
|
+
const pause = strategyOverlay.fallbackPause === true || (strategyOverlay.active && ['pause', 'off', 'disable', 'block'].includes(action));
|
|
1661
|
+
const on = this._hysteresisOnOff(d.id, !pause && band, d.minOnSec, d.minOffSec);
|
|
1662
|
+
requestedW = !pause && on ? Math.min(availableW, d.maxPowerW) : 0;
|
|
1663
|
+
if (strategyOverlay.active && typeof strategyOverlay.requestedPowerW === 'number') {
|
|
1664
|
+
requestedW = Math.min(requestedW, Math.max(0, strategyOverlay.requestedPowerW));
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
const mira = await regulateMira(this, d, { requestedW, manual, boost });
|
|
1669
|
+
this.adapter._zeroExportPvOwnedThermal[d.id].owned = mira.owned;
|
|
1670
|
+
const usedW = consumeControlledW(mira.usedW);
|
|
1671
|
+
appliedTotalW += measuredW === null ? 0 : Math.max(0, Math.round(measuredW));
|
|
1672
|
+
budgetUsedW += usedW;
|
|
1673
|
+
if (!boost && !manual && mira.targetW > 0) miraPvReserveW += usedW;
|
|
1674
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.targetW`, mira.targetW);
|
|
1675
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.applied`, mira.applied);
|
|
1676
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.status`, mira.status);
|
|
1677
|
+
await this._setStateIfChanged(`thermal.devices.${d.id}.override`, manual ? 'manual' : (boost ? 'boost' : ''));
|
|
1678
|
+
continue;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1600
1681
|
const heldManualContext = !effectiveEnabled
|
|
1601
1682
|
|| (ov.manualActive && !ov.boostActive)
|
|
1602
1683
|
|| effectiveMode === 'manual';
|
|
@@ -2021,7 +2102,7 @@ const mk = async (id, name, type, role, unit = undefined) => {
|
|
|
2021
2102
|
priority: 200,
|
|
2022
2103
|
requestedW: used,
|
|
2023
2104
|
reserveW: used,
|
|
2024
|
-
pvReserveW: tariffImportPreferred ?
|
|
2105
|
+
pvReserveW: tariffImportPreferred ? Math.min(used, miraPvReserveW) : used,
|
|
2025
2106
|
pvOnly: !tariffImportPreferred,
|
|
2026
2107
|
mode: tariffImportPreferred ? 'tariffNegative' : 'pvAuto',
|
|
2027
2108
|
});
|
package/ui/io-package.json
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "nexowatt-ui",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.35",
|
|
5
5
|
"news": {
|
|
6
|
+
"9.0.35": {
|
|
7
|
+
"de": "Der Live-Systemstatus berücksichtigt Messwerte, Verbindung, aktive EOS-Prozesse und Geräte. Er nennt bestätigte Störungen und respektiert bewusst pausierte Module. Konfigurierbare Benachrichtigungen melden Prozess- und Geräteausfälle. Der MIRA-Treiber unterscheidet einen Modbus-Verbindungsabbruch von einem nicht unterstützten Register.",
|
|
8
|
+
"en": "Live system status covers telemetry, connection, active EOS processes and devices. It identifies confirmed faults and respects intentionally paused modules. Configurable notifications report process and device outages. The MIRA driver distinguishes a Modbus connection reset from an unsupported register."
|
|
9
|
+
},
|
|
10
|
+
"9.0.34": {
|
|
11
|
+
"de": "OVUM MIRA ab Firmware 1.1.3 über Modbus einrichten, elektrische Wärmepumpenleistung im Energiefluss anzeigen und die PV-Anforderung an den Hydraulikregler übergeben.",
|
|
12
|
+
"en": "Connect OVUM MIRA from firmware 1.1.3 via Modbus, display electrical heat-pump power in the energy flow and send PV requests to the hydraulic controller."
|
|
13
|
+
},
|
|
6
14
|
"9.0.33": {
|
|
7
15
|
"de": "EMS prüft Bestätigung, Qualität und Alter der Netzanschlussmessung vor der Leistungsfreigabe. Verbesserungen an Energiefluss und Regelung bei Mess- und Kommunikationsstörungen.",
|
|
8
16
|
"en": "The EMS checks acknowledgement, quality and age of grid measurements before granting power. Improves energy flow and control when measurements or communications fail."
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/lib/installer-lifecycle.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:b7631ce1e2cbbf152a346196d3f9f5e2a6cadcb731a71b99a1b91b8e9207bac8
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -145,7 +145,7 @@ function activeDeviceProfileReferences(value) {
|
|
|
145
145
|
const singleActive = active('storage', 'enableStorageControl') && !(record(singleStorage._eosDevice).v === 1 && singleStorage.enabled === false);
|
|
146
146
|
const read = new Set();
|
|
147
147
|
const write = new Set();
|
|
148
|
-
const writeKey = /(?:write|^set|^target|^output(?:Object)?Id$|^(?:pv)?feedInLimit|^pvLimit|^runObjectId$|^maxChargeObjectId$|^maxDischargeObjectId$|^phaseSwitchId$|^chargeEnableObjectId$|^dischargeEnableObjectId$|^feneconGridSetpoint|^e3dcSetPower|^enableId$)/i;
|
|
148
|
+
const writeKey = /(?:^mira(?:PvStatus|PowerTarget)Id$|write|^set|^target|^output(?:Object)?Id$|^(?:pv)?feedInLimit|^pvLimit|^runObjectId$|^maxChargeObjectId$|^maxDischargeObjectId$|^phaseSwitchId$|^chargeEnableObjectId$|^dischargeEnableObjectId$|^feneconGridSetpoint|^e3dcSetPower|^enableId$)/i;
|
|
149
149
|
let visited = 0;
|
|
150
150
|
const walk = (item, depth = 0) => {
|
|
151
151
|
if (depth > 12 || ++visited > 20000)
|
|
@@ -203,6 +203,15 @@ function activeDeviceProfileReferences(value) {
|
|
|
203
203
|
// These global measurement keys are real runtime fallbacks for enabled
|
|
204
204
|
// battery/charging controllers, not merely display references in that case.
|
|
205
205
|
const controllerMeasurementKeys = [];
|
|
206
|
+
const thermalDevices = record(config.thermal).devices;
|
|
207
|
+
if (active('thermal', 'enableThermalControl') && Array.isArray(thermalDevices)) {
|
|
208
|
+
for (const item of thermalDevices) {
|
|
209
|
+
const row = record(item);
|
|
210
|
+
if (row.ovumMira === true && row.enabled === true && typeof row.slot === 'number' && Number.isInteger(row.slot) && row.slot >= 1 && row.slot <= 10) {
|
|
211
|
+
controllerMeasurementKeys.push(`consumer${row.slot}Power`);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
206
215
|
if (singleActive)
|
|
207
216
|
controllerMeasurementKeys.push('batteryPower', 'storageChargePower', 'storageDischargePower', 'storageSoc', 'storageCapacityKwh');
|
|
208
217
|
if (singleActive || active('storagefarm', 'enableStorageFarm') || active('charging', 'enableChargingManagement'))
|