iobroker.eos-admin 9.0.33 → 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.
Files changed (147) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +10 -11
  2. package/README.md +7 -9
  3. package/adminWww/.vite/manifest.json +233 -224
  4. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13897 -13887
  5. package/adminWww/assets/AccessTime-CuR73YC3.js +1 -0
  6. package/adminWww/assets/{AdapterUpdateDialog-DBUqmmyD.js → AdapterUpdateDialog-5L75o18m.js} +5 -5
  7. package/adminWww/assets/{Adapters-dDEp7o5h.js → Adapters-FcghjF7E.js} +5 -5
  8. package/adminWww/assets/ConfigManager-BnHarBfH.js +1 -0
  9. package/adminWww/assets/Enums-BjLbLLQL.js +92 -0
  10. package/adminWww/assets/Fields-DDE1hVOa.js +1 -0
  11. package/adminWww/assets/Files-CDjnR4q6.js +1 -0
  12. package/adminWww/assets/{Hosts-CwU1LujG.js → Hosts-CJKQaNrD.js} +6 -6
  13. package/adminWww/assets/Instances-DZNl369k.js +4 -0
  14. package/adminWww/assets/Intro-CjAmMGDB.js +2 -0
  15. package/adminWww/assets/KeyboardArrowRight-ifvmV1ZL.js +1 -0
  16. package/adminWww/assets/{Logs-B5SpNqHq.js → Logs-rUAV7SwM.js} +2 -2
  17. package/adminWww/assets/MoreHoriz-CS7nODK8.js +1 -0
  18. package/adminWww/assets/{Objects-COg_cFkz.js → Objects-CqOH6rT_.js} +4 -4
  19. package/adminWww/assets/Overview-BOtXqsMy.js +3 -0
  20. package/adminWww/assets/Pageview-wzrLQZ-j.js +1 -0
  21. package/adminWww/assets/PersonOff-YtHcY0sV.js +1 -0
  22. package/adminWww/assets/Star-D8VNXawT.js +1 -0
  23. package/adminWww/assets/State-C8ncThop.js +1 -0
  24. package/adminWww/assets/UsedResources-lUYJqy4F.js +2 -0
  25. package/adminWww/assets/Users-CK1Cax82.js +1 -0
  26. package/adminWww/assets/ViewCompact-D7bHgn99.js +1 -0
  27. package/adminWww/assets/ViewSidebar-CjClbCI5.js +1 -0
  28. package/adminWww/assets/WifiTethering-DJ9VO12W.js +1 -0
  29. package/adminWww/assets/{bootstrap-Dwfxhm2V.js → bootstrap-CC0Qr-kr.js} +25 -25
  30. package/adminWww/assets/date-fns-BtR4dG_j.js +1 -0
  31. package/adminWww/assets/en-US-BjjaEI6N.js +1 -0
  32. package/adminWww/assets/{hostInit-3BbTwhaZ.js → hostInit-DqGL6nY8.js} +1 -1
  33. package/adminWww/assets/icons-material-07rWS63O.js +1 -0
  34. package/adminWww/assets/{index-nddph2Sl.js → index-BhhkToP2.js} +2 -2
  35. package/adminWww/assets/{installSVGRenderer-CPDIwFAL.js → installSVGRenderer-B4-7lSQZ.js} +1 -1
  36. package/adminWww/assets/isSameWeek-WMSJR5Qs.js +1 -0
  37. package/adminWww/assets/locale-DN6Bdkdt.js +1 -0
  38. package/adminWww/assets/{mf-entry-bootstrap-0-d1f0f40f.js → mf-entry-bootstrap-0-1afd2287.js} +2 -2
  39. package/adminWww/assets/sentry-CPzCHrwe.js +1 -0
  40. package/adminWww/assets/setYear-DDSuW45e.js +1 -0
  41. package/adminWww/index.html +23 -23
  42. package/adminWww/mf-manifest.json +1 -1
  43. package/adminWww/mf-stats.json +1 -1
  44. package/adminWww/remoteEntry-eos-9.0.34.js +12 -0
  45. package/adminWww/remoteEntry.js +1 -1
  46. package/build/lib/eosDeviceEmsPlan.js +285 -9
  47. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  48. package/build/lib/eosDeviceEmsService.js +29 -2
  49. package/build/lib/eosDeviceEmsService.js.map +1 -1
  50. package/docs/README.md +2 -2
  51. package/docs/reports/unified-9.0.34/PRUEFBERICHT.md +40 -0
  52. package/docs/reports/unified-9.0.34/PRUEFERGEBNISSE.json +112 -0
  53. package/docs/reports/unified-9.0.34/raw/INDEX.json +137 -0
  54. package/docs/reports/unified-9.0.34/raw/backend.log +5 -0
  55. package/docs/reports/unified-9.0.34/raw/dashboard-interval.json +108 -0
  56. package/docs/reports/unified-9.0.34/raw/fixtures-verification.log +44 -0
  57. package/docs/reports/unified-9.0.34/raw/frontend.log +152 -0
  58. package/docs/reports/unified-9.0.34/raw/installer.log +26 -0
  59. package/docs/reports/unified-9.0.34/raw/lint.log +45 -0
  60. package/docs/reports/unified-9.0.34/raw/mira-dashboard-browser.json +1 -0
  61. package/docs/reports/unified-9.0.34/raw/mira-devices-browser.log +9 -0
  62. package/docs/reports/unified-9.0.34/raw/mira-memory-process.json +379 -0
  63. package/docs/reports/unified-9.0.34/raw/modules.log +5 -0
  64. package/docs/reports/unified-9.0.34/raw/node22-mira.log +216 -0
  65. package/docs/reports/unified-9.0.34/raw/node22-protocol-to-ems.log +8 -0
  66. package/docs/reports/unified-9.0.34/raw/node22-tests-final.log +17850 -0
  67. package/docs/reports/unified-9.0.34/raw/node22-version.log +1 -0
  68. package/docs/reports/unified-9.0.34/raw/node24-mira.log +40 -0
  69. package/docs/reports/unified-9.0.34/raw/node24-protocol-to-ems.log +6 -0
  70. package/docs/reports/unified-9.0.34/raw/node24-tests-final.log +2973 -0
  71. package/docs/reports/unified-9.0.34/raw/node24-version.log +1 -0
  72. package/docs/reports/unified-9.0.34/raw/protocol-to-ems.cjs +364 -0
  73. package/docs/reports/unified-9.0.34/raw/release-metadata.log +13 -0
  74. package/docs/reports/unified-9.0.34/raw/sbom.log +8 -0
  75. package/docs/reports/unified-9.0.34/raw/typecheck.log +5 -0
  76. package/docs/reports/unified-9.0.34/raw/ui-runtime.log +8 -0
  77. package/docs/start/START_HIER_9.0.34.md +25 -0
  78. package/io-package.json +8 -8
  79. package/modules/devices/admin/alias-contract-v1.json +22 -0
  80. package/modules/devices/admin/ems-assignment.js +6 -1
  81. package/modules/devices/admin/host-bridge.js +2 -0
  82. package/modules/devices/admin/index.html +16 -0
  83. package/modules/devices/admin/index_m.js +168 -9
  84. package/modules/devices/admin/templates.json +976 -0
  85. package/modules/devices/checks/emsAssignment.check.js +52 -2
  86. package/modules/devices/index.js +5 -1
  87. package/modules/devices/lib/alias-contract-v1.json +22 -0
  88. package/modules/devices/lib/deviceRuntime.js +17 -7
  89. package/modules/devices/lib/drivers/modbus.js +1 -1
  90. package/modules/devices/lib/drivers/modbusRtuBus.js +7 -1
  91. package/modules/devices/lib/drivers/ovumMira.js +148 -0
  92. package/modules/devices/lib/ovumMiraAliases.js +61 -0
  93. package/modules/devices/lib/ovumMiraConnection.js +32 -0
  94. package/modules/devices/lib/templates.json +976 -0
  95. package/modules/devices/test/aliasContractV1.test.js +4 -4
  96. package/modules/devices/test/deviceAliasSemantics.test.js +2 -2
  97. package/modules/devices/test/fixtures/approved-additive-templates.json +3 -1
  98. package/modules/devices/test/ovumMiraPairing.test.js +76 -0
  99. package/modules/devices/test/ovumMiraTemplates.test.js +110 -0
  100. package/modules/devices/test/ovumMiraTransport.test.js +162 -0
  101. package/package.json +6 -4
  102. package/release-manifests/unified/build-environment.cdx.json +6 -6
  103. package/release-manifests/unified/files.json +155 -112
  104. package/release-manifests/unified/frontend.cdx.json +6 -6
  105. package/release-manifests/unified/installer.cdx.json +6 -6
  106. package/release-manifests/unified/obsolete-admin-assets.json +83 -0
  107. package/release-manifests/unified/runtime.cdx.json +27 -27
  108. package/release-manifests/unified/validation.json +15 -15
  109. package/tools/eos-release-manifest.cjs +1 -1
  110. package/ui/ems/consumers/ovum-mira.js +164 -0
  111. package/ui/ems/modules/para14a.js +3 -2
  112. package/ui/ems/modules/stage-a-diagnostics.js +4 -2
  113. package/ui/ems/modules/thermal-control.js +91 -10
  114. package/ui/io-package.json +5 -1
  115. package/ui/lib/installer-lifecycle.js +11 -2
  116. package/ui/main.js +37 -7
  117. package/ui/package.json +1 -1
  118. package/ui/www/app.js +32 -14
  119. package/ui/www/ems-apps.js +28 -9
  120. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  121. package/ui/www/manifest.webmanifest +2 -2
  122. package/adminWww/assets/AddLink-0L0E-LsA.js +0 -1
  123. package/adminWww/assets/ColorLens-DA51K29x.js +0 -1
  124. package/adminWww/assets/ConfigManager-DbqTWi2N.js +0 -1
  125. package/adminWww/assets/Enums-DjldGElU.js +0 -92
  126. package/adminWww/assets/Fields-0GsPCJeU.js +0 -1
  127. package/adminWww/assets/FileCopy-B16lEuur.js +0 -1
  128. package/adminWww/assets/Files-COnUtEbg.js +0 -1
  129. package/adminWww/assets/Instances-CUX5mxMQ.js +0 -4
  130. package/adminWww/assets/Intro-BhQmHn3A.js +0 -2
  131. package/adminWww/assets/Lens-9lkeoWGk.js +0 -1
  132. package/adminWww/assets/LinearScale-Be5h2beh.js +0 -1
  133. package/adminWww/assets/North-C2whbHM-.js +0 -1
  134. package/adminWww/assets/Overview-CitzUjBF.js +0 -3
  135. package/adminWww/assets/PersonOff-DqBq0Fho.js +0 -1
  136. package/adminWww/assets/PlaylistAdd-O8k92YBd.js +0 -1
  137. package/adminWww/assets/State-D5ljzf-T.js +0 -1
  138. package/adminWww/assets/UsedResources-BY_NF2wB.js +0 -2
  139. package/adminWww/assets/Users-Cu93_-VF.js +0 -1
  140. package/adminWww/assets/date-fns-C1dqkno9.js +0 -1
  141. package/adminWww/assets/icons-material-DjqX0l_7.js +0 -1
  142. package/adminWww/assets/isSameWeek-Crh37s7U.js +0 -1
  143. package/adminWww/assets/isWithinInterval-Bo1WiDfq.js +0 -1
  144. package/adminWww/assets/locale-hLcz_Xh2.js +0 -1
  145. package/adminWww/assets/sentry-DwQQLI7N.js +0 -1
  146. package/adminWww/assets/startOfWeek-DJph8SIW.js +0 -1
  147. package/adminWww/remoteEntry-eos-9.0.33.js +0 -12
package/ui/www/app.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/www/app.ts
10
- * Quell-Hash: sha256:b13e9e0e7f43fd59983d78f50e86e3b7fdf8f41c942fc607fce76311572a0231
10
+ * Quell-Hash: sha256:8886479238d20c1219eec9882822102510e91d8ab11bd5ea4d1741bff6cec969
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -1948,7 +1948,10 @@ function updateDashboardShellUi(data) {
1948
1948
  setText('sideCo2Savings', snap.co2Text || '--');
1949
1949
 
1950
1950
  setText('sidePvPower', pv === null ? '--' : formatFlowPower(Math.abs(pv)));
1951
- setText('sideBuildingPower', load === null ? '--' : formatFlowPower(Math.max(0, load)));
1951
+ // With separate consumers the energy diagram publishes its reconciled building value below.
1952
+ if (!flowExtras?.consumers?.length && !flowExtras?.meta?.evcsAvailable) {
1953
+ setText('sideBuildingPower', load === null ? '--' : formatFlowPower(Math.max(0, load)));
1954
+ }
1952
1955
  setText('sideGridBuyPower', buy === null ? '--' : formatFlowPower(Math.max(0, buy)));
1953
1956
  setText('sideGridSellPower', sell === null ? '--' : formatFlowPower(Math.max(0, sell)));
1954
1957
  setText('sideBatteryPower', batterySigned === null ? '--' : (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
@@ -1992,7 +1995,7 @@ function initEnergyWebExtras(flowSlots){
1992
1995
  // They are configured in the App-Center (Energiefluss-Monitor -> Verbraucher/Erzeuger).
1993
1996
  // Only mapped items (a datapoint is selected) will be rendered.
1994
1997
 
1995
- const maxConsumers = 9;
1998
+ const maxConsumers = 10;
1996
1999
  const maxProducers = 5;
1997
2000
 
1998
2001
  // Backward compatible: older builds used flowOptionalConsumers/flowOptionalProducers
@@ -2148,7 +2151,7 @@ function initEnergyWebExtras(flowSlots){
2148
2151
 
2149
2152
  // value above
2150
2153
  const valEl = _svgEl('text', { id: valId, class: 'val', y: -(rNode + 8), 'text-anchor': 'middle' });
2151
- valEl.textContent = formatFlowPower(0);
2154
+ valEl.textContent = '--';
2152
2155
  g.appendChild(valEl);
2153
2156
 
2154
2157
  // label below
@@ -2440,7 +2443,7 @@ const placeSpecialLowerLeftArc = (items) => {
2440
2443
  }
2441
2444
 
2442
2445
  // Keep a free corridor around the fixed EVCS node at 0° and avoid the very
2443
- // top/bottom zones close to PV/battery. The split keeps 1..9 consumers readable.
2446
+ // top/bottom zones close to PV/battery. The split keeps 1..10 consumers readable.
2444
2447
  if (count === 1) return [-46];
2445
2448
  const upperCount = Math.ceil(count / 2);
2446
2449
  const lowerCount = count - upperCount;
@@ -8522,8 +8525,8 @@ function _ensureThermalConsumerTiles(){
8522
8525
  const grid = document.getElementById('liveQuickTiles');
8523
8526
  if (!grid) return;
8524
8527
 
8525
- // Wir erstellen feste Platzhalter für bis zu 9 Verbraucher-Slots.
8526
- for (let idx = 1; idx <= 9; idx++) {
8528
+ // Wir erstellen feste Platzhalter für bis zu 10 Verbraucher-Slots.
8529
+ for (let idx = 1; idx <= 10; idx++) {
8527
8530
  const id = `thermalConsumerCard${idx}`;
8528
8531
  if (document.getElementById(id)) continue;
8529
8532
 
@@ -8671,7 +8674,7 @@ function updateThermalConsumerUi(){
8671
8674
  */
8672
8675
  const sv = (k) => (st && st[k] && st[k].value !== undefined) ? st[k].value : undefined;
8673
8676
 
8674
- for (let idx = 1; idx <= 9; idx++) {
8677
+ for (let idx = 1; idx <= 10; idx++) {
8675
8678
  const refs = _thermalConsTiles.get(idx);
8676
8679
  if (!refs) continue;
8677
8680
 
@@ -8685,11 +8688,12 @@ function updateThermalConsumerUi(){
8685
8688
  refs.tile.style.display = show ? '' : 'none';
8686
8689
  if (!show) continue;
8687
8690
 
8688
- const dev = isRod ? (rodDevices[idx - 1] || {}) : (thermalDevices[idx - 1] || {});
8691
+ const dev = (isRod ? rodDevices : thermalDevices).find(row => Number(row?.slot ?? row?.consumerSlot) === idx)
8692
+ || (isRod ? rodDevices[idx - 1] : thermalDevices[idx - 1]) || {};
8689
8693
  const name = (dev && dev.name) ? String(dev.name) : (slot && slot.name ? String(slot.name) : `Verbraucher ${idx}`);
8690
8694
 
8691
8695
  if (refs.title) refs.title.textContent = name;
8692
- if (refs.sub) refs.sub.textContent = isRod ? 'Heizstab' : 'Thermik';
8696
+ if (refs.sub) refs.sub.textContent = isRod ? 'Heizstab' : (slot?.qc?.ovumMira ? 'OVUM MIRA · Wärmepumpe' : 'Thermik');
8693
8697
  const iconEl = document.getElementById(`thermalConsumerIcon${idx}`);
8694
8698
  if (iconEl) iconEl.textContent = isRod ? '🔥' : '♨';
8695
8699
 
@@ -8699,7 +8703,10 @@ function updateThermalConsumerUi(){
8699
8703
  pW = Number(sv(`heatingRod.devices.c${idx}.appliedW`) ?? sv(`heatingRod.devices.c${idx}.targetW`) ?? 0);
8700
8704
  }
8701
8705
  if (!Number.isFinite(pW)) pW = 0;
8702
- if (refs.power) refs.power.textContent = formatPower(Math.abs(pW));
8706
+ if (refs.power) {
8707
+ const measured = slot?.qc?.ovumMira ? getFreshFlowNumber(pKey) : pW;
8708
+ refs.power.textContent = measured === null ? '—' : formatPower(Math.abs(measured));
8709
+ }
8703
8710
 
8704
8711
  if (refs.metaM) refs.metaM.textContent = `Slot ${idx}`;
8705
8712
 
@@ -8857,7 +8864,9 @@ function updateEnergyWeb() {
8857
8864
  const direction = !hasBatteryDirection || !batShowVal ? (grossBoth ? 'Netto 0' : '')
8858
8865
  : batRev ? (grossBoth ? 'Netto laden' : 'Laden') : (grossBoth ? 'Netto entladen' : 'Entladen');
8859
8866
  T('batteryFlowDirection', direction);
8860
- T('centerPower', loadDisplay === null ? '--' : formatFlowPower(loadDisplay));
8867
+ const buildingText = loadDisplay === null ? '--' : formatFlowPower(loadDisplay);
8868
+ T('centerPower', buildingText);
8869
+ T('sideBuildingPower', buildingText);
8861
8870
  const balanceStatus = flowBalance.mismatchW === null ? (flowBalance.status || (measurements.batteryDerived ? 'Batterieleistung aus Energiebilanz berechnet' : ''))
8862
8871
  : `Bilanzabweichung ${formatFlowPower(Math.abs(flowBalance.mismatchW))} – Messpunkte, Vorzeichen und Zeitstempel prüfen`;
8863
8872
  T('energyFlowQuality', balanceStatus);
@@ -10577,6 +10586,7 @@ function openFlowQc(kind, idx){
10577
10586
  const meta = getSlotMeta(ctx.kind, ctx.idx);
10578
10587
  const fallbackKey = (ctx.kind === 'producer') ? `producer${ctx.idx}Power` : `consumer${ctx.idx}Power`;
10579
10588
  const stateKey = (entry && entry.stateKey) || (meta && meta.stateKey) || fallbackKey;
10589
+ if (ctx.qc?.ovumMira) return { valueW: getFreshFlowNumber(stateKey), maxW: ctx.qc.max };
10580
10590
  let n = readStateNumber(stateKey, NaN);
10581
10591
  let maxW = Number(ctx && ctx.qc && ctx.qc.max);
10582
10592
 
@@ -10613,6 +10623,12 @@ function openFlowQc(kind, idx){
10613
10623
  const updatePower = (readbackData = null) => {
10614
10624
  if (!ctx || !powerEl) return;
10615
10625
  const resolved = resolveFlowPower(readbackData);
10626
+ if (resolved.valueW === null) {
10627
+ powerEl.textContent = '—';
10628
+ setFlowGaugeFill(0, resolved.maxW);
10629
+ if (flowGauge) flowGauge.title = 'Keine aktuelle elektrische Leistungsmessung';
10630
+ return;
10631
+ }
10616
10632
  const rod = (readbackData && readbackData.heatingRod && readbackData.heatingRod.available) ? readbackData.heatingRod : null;
10617
10633
  const isRod = !!(ctx && ctx.kind === 'consumer' && ((ctx.qc && String(ctx.qc.controlKind || '').toLowerCase() === 'heatingrod') || rod));
10618
10634
  const modeRaw = rod ? String(rod.effectiveMode || rod.userMode || rod.mode || '').toLowerCase() : '';
@@ -10699,7 +10715,9 @@ function openFlowQc(kind, idx){
10699
10715
  const nightStatus = isRod ? nwHeatingRodNightStatus(ctl) : '';
10700
10716
  if (regStatus) regStatus.textContent = nightStatus ? 'Nachtpause' : (uEn ? 'Aktiv' : 'Aus');
10701
10717
  if (regHint) {
10702
- regHint.textContent = nightStatus
10718
+ regHint.textContent = ctl.ovumMira
10719
+ ? 'EOS steuert die PV-Anforderung. Heizung und Warmwasser regelt weiterhin die MIRA.'
10720
+ : nightStatus
10703
10721
  ? `${nightStatus}. Stufen 1–3 und Boost bleiben manuell verfügbar.`
10704
10722
  : isRod
10705
10723
  ? (uEn
@@ -10923,7 +10941,7 @@ function openFlowQc(kind, idx){
10923
10941
  if (subtitle) {
10924
10942
  subtitle.textContent = (qc.controlKind === 'heatingRod')
10925
10943
  ? 'Heizstab'
10926
- : ((k === 'producer') ? 'Erzeuger' : 'Verbraucher');
10944
+ : (qc.ovumMira ? 'OVUM MIRA · Elektrische Aufnahmeleistung' : ((k === 'producer') ? 'Erzeuger' : 'Verbraucher'));
10927
10945
  }
10928
10946
 
10929
10947
  if (swWrap) swWrap.style.display = qc.hasSwitch ? '' : 'none';
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/www/ems-apps.ts
10
- * Quell-Hash: sha256:088e92dabd6b0645c4860afd01899a0112e36951a07f1da3cb16c58c4fabdcb1
10
+ * Quell-Hash: sha256:61abce2f0a8093c15bf6e6f952319a8fc8cf738a6f3a03a66ca66786e9167663
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -3934,6 +3934,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
3934
3934
  }
3935
3935
 
3936
3936
  const slot = {
3937
+ ...(it._eosDevice ? { _eosDevice: it._eosDevice } : {}),
3937
3938
  name: (it.name !== undefined && it.name !== null) ? String(it.name) : '',
3938
3939
  icon: (it.icon !== undefined && it.icon !== null) ? String(it.icon) : '',
3939
3940
  ctrl,
@@ -4724,10 +4725,20 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
4724
4725
  enabled: (typeof prev.enabled === 'boolean') ? !!prev.enabled : false,
4725
4726
  mode,
4726
4727
  name: String(prev.name || '').trim(),
4727
- type,
4728
+ ...(prev.ovumMira === true ? {
4729
+ ovumMira: true,
4730
+ miraSourcesConfirmed: prev.miraSourcesConfirmed === true,
4731
+ miraTopologyId: prev.miraTopologyId,
4732
+ miraPvStatusId: prev.miraPvStatusId,
4733
+ miraPvStatusReadId: prev.miraPvStatusReadId,
4734
+ miraPowerTargetId: prev.miraPowerTargetId,
4735
+ miraPowerTargetReadId: prev.miraPowerTargetReadId,
4736
+ ...(prev._eosDevice ? { _eosDevice: prev._eosDevice } : {}),
4737
+ } : {}),
4738
+ type: prev.ovumMira === true ? 'power' : type,
4728
4739
  profile,
4729
4740
  priority: _clampInt(prev.priority, 1, 999, 100 + slot),
4730
- maxPowerW: Math.max(0, Math.round(Number(prev.maxPowerW ?? 2500) || 2500)),
4741
+ maxPowerW: prev.ovumMira === true ? Math.max(0, Number(prev.maxPowerW) || 0) : Math.max(0, Math.round(Number(prev.maxPowerW ?? 2500) || 2500)),
4731
4742
  estimatedPowerW: Math.max(0, Math.round(Number(prev.estimatedPowerW ?? 1500) || 1500)),
4732
4743
  startSurplusW: Math.max(0, Math.round(Number(prev.startSurplusW ?? 800) || 800)),
4733
4744
  stopSurplusW: Math.max(0, Math.round(Number(prev.stopSurplusW ?? 300) || 300)),
@@ -5325,7 +5336,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
5325
5336
  const info = document.createElement('div');
5326
5337
  info.className = 'nw-config-field-hint';
5327
5338
  info.style.margin = '0';
5328
- info.textContent = [
5339
+ info.textContent = dev.ovumMira === true
5340
+ ? (dev.miraSourcesConfirmed ? 'OVUM MIRA · Elektrische PV-Anforderung über das Hydraulikmodul.' : 'OVUM MIRA · Freigabe und Quellenwahl in der Geräteverwaltung prüfen.')
5341
+ : [
5329
5342
  `Leistung: ${String((currentConfig.datapoints && currentConfig.datapoints[`consumer${slot}Power`]) || '').trim() ? '✓' : 'fehlt'}`,
5330
5343
  `Switch: ${String(ctrl.switchWriteId || '').trim() ? '✓' : '–'}`,
5331
5344
  `Setpoint: ${String(ctrl.setpointWriteId || '').trim() ? '✓' : '–'}`,
@@ -5345,9 +5358,13 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
5345
5358
  const grpBasic = _mkCfgGroup('Grunddaten');
5346
5359
  grpBasic.body.appendChild(_mkCfgField('PV-Auto aktiv', _mkCfgToggle(dev.enabled, (v) => { dev.enabled = !!v; setDirty(); }), 'Aktiviert die automatische Überschuss-Regelung für diesen Slot.'));
5347
5360
  grpBasic.body.appendChild(_mkCfgField('Name (optional)', _mkCfgInput('text', dev.name || '', (v) => { dev.name = String(v || '').trim(); setDirty(); }, { width: '220px', placeholder: 'Anzeige-Name' }), 'Leer lassen = Name aus Energiefluss-Slot verwenden.'));
5348
- grpBasic.body.appendChild(_mkCfgField('Modus', _mkCfgSelect(dev.mode || 'pvAuto', modeOptions, (v) => { dev.mode = v; setDirty(); }, { width: '160px' }), 'PV-Auto = EMS regelt, Manuell = nur Ist-Leistung bilanzieren, Aus = immer aus.'));
5349
- grpBasic.body.appendChild(_mkCfgField('Regelart', _mkCfgSelect(dev.type || 'setpoint', typeOptions, (v) => { dev.type = v; syncVisibility(); setDirty(); }, { width: '220px' }), 'Setpoint / SG-Ready / modulierende Leistungsansteuerung.'));
5350
- grpBasic.body.appendChild(_mkCfgField('Profil', _mkCfgSelect(dev.profile || 'heating', profileOptions, (v) => { dev.profile = v; const defs = _thermalDefaultSetpoints(v); if (!Number.isFinite(Number(dev.autoOnSetpoint))) dev.autoOnSetpoint = defs.on; if (!Number.isFinite(Number(dev.autoOffSetpoint))) dev.autoOffSetpoint = defs.off; if (!Number.isFinite(Number(dev.boostSetpoint))) dev.boostSetpoint = defs.boost; buildThermalUI(); setDirty(); }, { width: '150px' }), 'Bestimmt nur sinnvolle Default-Sollwerte für Setpoint-Geräte.'));
5361
+ grpBasic.body.appendChild(_mkCfgField('Modus', _mkCfgSelect(dev.mode || 'pvAuto', dev.ovumMira === true ? [
5362
+ { value: 'pvAuto', label: 'PV-Automatik' }, { value: 'manual', label: 'Geräteregelung' }, { value: 'off', label: 'PV-Anforderung aus' },
5363
+ ] : modeOptions, (v) => { dev.mode = v; setDirty(); }, { width: '160px' }), dev.ovumMira === true ? 'Die lokale Wärmeregelung bleibt am Gerät aktiv.' : 'PV-Auto = EMS regelt, Manuell = nur Ist-Leistung bilanzieren, Aus = immer aus.'));
5364
+ if (dev.ovumMira !== true) {
5365
+ grpBasic.body.appendChild(_mkCfgField('Regelart', _mkCfgSelect(dev.type || 'setpoint', typeOptions, (v) => { dev.type = v; syncVisibility(); setDirty(); }, { width: '220px' }), 'Setpoint / SG-Ready / modulierende Leistungsansteuerung.'));
5366
+ grpBasic.body.appendChild(_mkCfgField('Profil', _mkCfgSelect(dev.profile || 'heating', profileOptions, (v) => { dev.profile = v; const defs = _thermalDefaultSetpoints(v); if (!Number.isFinite(Number(dev.autoOnSetpoint))) dev.autoOnSetpoint = defs.on; if (!Number.isFinite(Number(dev.autoOffSetpoint))) dev.autoOffSetpoint = defs.off; if (!Number.isFinite(Number(dev.boostSetpoint))) dev.boostSetpoint = defs.boost; buildThermalUI(); setDirty(); }, { width: '150px' }), 'Bestimmt nur sinnvolle Default-Sollwerte für Setpoint-Geräte.'));
5367
+ }
5351
5368
  grpBasic.body.appendChild(_mkCfgField('Priorität', _mkCfgInput('number', dev.priority, (v) => { dev.priority = _clampInt(v, 1, 999, 100 + slot); setDirty(); }, { min: 1, max: 999, step: 1, width: '110px' }), 'Kleinere Zahl = wird früher bedient.'));
5352
5369
  right.appendChild(grpBasic.wrap);
5353
5370
 
@@ -5366,7 +5383,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
5366
5383
  right.appendChild(grpSetpoint.wrap);
5367
5384
 
5368
5385
  const grpPower = _mkCfgGroup('Leistungsregelung');
5369
- grpPower.body.appendChild(_mkCfgField('Max. Leistung (W)', _mkCfgInput('number', dev.maxPowerW, (v) => { dev.maxPowerW = Math.max(0, Math.round(Number(v) || 0)); setDirty(); }, { min: 0, step: 10, width: '140px' }), 'Für modulierende Leistungsgeräte.'));
5386
+ grpPower.body.appendChild(_mkCfgField('Max. Leistung (W)', _mkCfgInput('number', dev.maxPowerW, (v) => { dev.maxPowerW = Math.max(0, Math.round(Number(v) || 0)); setDirty(); }, { min: 0, step: 10, width: '140px', disabled: dev.ovumMira === true }), dev.ovumMira === true ? 'Die freigegebene elektrische Leistung wird in der Geräteverwaltung eingestellt.' : 'Für modulierende Leistungsgeräte.'));
5370
5387
  grpPower.body.appendChild(_mkCfgField('Boost Leistung (W)', _mkCfgInput('number', dev.boostPowerW, (v) => { dev.boostPowerW = Math.max(0, Math.round(Number(v) || 0)); setDirty(); }, { min: 0, step: 10, width: '140px' }), 'Wert für Schnellsteuerung/Boost.'));
5371
5388
  right.appendChild(grpPower.wrap);
5372
5389
 
@@ -13162,7 +13179,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
13162
13179
  }
13163
13180
  const evcsDevs = devices.filter(d => _isNwEvcsDevice(d));
13164
13181
  const pvDevs = devices.filter(d => _isNwPvDevice(d));
13165
- const heatDevs = devices.filter(d => _isNwHeatDevice(d));
13182
+ // Native MIRA ownership, metering and HSM pairing are assigned by the Devices planner.
13183
+ // Re-running the legacy wizard must not create a second consumer or a §14a actuator.
13184
+ const heatDevs = devices.filter(d => _isNwHeatDevice(d) && !['heat.ovum.mira.hsm', 'heat.ovum.mira.wpm'].includes(d.templateId));
13166
13185
  const meterDevs = devices.filter(d => _isNwMeterDevice(d));
13167
13186
  const storageDevs = devices.filter(d => _isNwStorageDevice(d));
13168
13187
  const solarChargers = devices.filter(d => _nwDeviceClass(d) === 'solarCharger');