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.
Files changed (260) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +13 -11
  2. package/README.md +12 -8
  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-DH6S-kWX.js} +5 -5
  7. package/adminWww/assets/{Adapters-dDEp7o5h.js → Adapters-CIlqSF5B.js} +5 -5
  8. package/adminWww/assets/ConfigManager-BhVBfM-q.js +1 -0
  9. package/adminWww/assets/Enums-3H97czGs.js +92 -0
  10. package/adminWww/assets/Fields-vWLKiuvO.js +1 -0
  11. package/adminWww/assets/Files-wmjjMXYM.js +1 -0
  12. package/adminWww/assets/{Hosts-CwU1LujG.js → Hosts-Bk-xmI98.js} +6 -6
  13. package/adminWww/assets/Instances-Db6Vgh62.js +4 -0
  14. package/adminWww/assets/Intro-Dc3wAG9V.js +2 -0
  15. package/adminWww/assets/KeyboardArrowRight-ifvmV1ZL.js +1 -0
  16. package/adminWww/assets/{Logs-B5SpNqHq.js → Logs-CPbEGWNq.js} +2 -2
  17. package/adminWww/assets/MoreHoriz-CS7nODK8.js +1 -0
  18. package/adminWww/assets/{Objects-COg_cFkz.js → Objects-DJB-2468.js} +4 -4
  19. package/adminWww/assets/Overview-DdvghCLQ.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-0UzpgKYj.js +1 -0
  24. package/adminWww/assets/UsedResources-Bcmo58YD.js +2 -0
  25. package/adminWww/assets/Users-BGHf3Rox.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-qkrk_CAn.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-DlGqatlv.js} +1 -1
  33. package/adminWww/assets/icons-material-CUNq6tdT.js +1 -0
  34. package/adminWww/assets/{index-nddph2Sl.js → index-BrtKq3UN.js} +2 -2
  35. package/adminWww/assets/{installSVGRenderer-CPDIwFAL.js → installSVGRenderer-DujLjpXt.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-3e1cd85c.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.33.js → remoteEntry-eos-9.0.35.js} +1 -1
  45. package/adminWww/remoteEntry.js +1 -1
  46. package/build/lib/eosDashboardProcessStatus.js +191 -0
  47. package/build/lib/eosDashboardProcessStatus.js.map +1 -0
  48. package/build/lib/eosDeviceEmsPlan.js +285 -9
  49. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  50. package/build/lib/eosDeviceEmsService.js +29 -2
  51. package/build/lib/eosDeviceEmsService.js.map +1 -1
  52. package/build/lib/eosKiosk.js +1 -0
  53. package/build/lib/eosKiosk.js.map +1 -1
  54. package/build/lib/eosModuleHost.js +17 -6
  55. package/build/lib/eosModuleHost.js.map +1 -1
  56. package/build/lib/eosModuleHttp.js +18 -3
  57. package/build/lib/eosModuleHttp.js.map +1 -1
  58. package/build/lib/eosModuleProcess.js +17 -0
  59. package/build/lib/eosModuleProcess.js.map +1 -1
  60. package/build/lib/eosModuleProcessWorker.js +22 -1
  61. package/build/lib/eosModuleProcessWorker.js.map +1 -1
  62. package/build/lib/eosRuntimeControl.js +6 -0
  63. package/build/lib/eosRuntimeControl.js.map +1 -1
  64. package/build/lib/eosRuntimeHealth.js +50 -1
  65. package/build/lib/eosRuntimeHealth.js.map +1 -1
  66. package/build/lib/eosSupervisorNotifications.js +169 -0
  67. package/build/lib/eosSupervisorNotifications.js.map +1 -0
  68. package/build/lib/eosUiProcess.js +1 -0
  69. package/build/lib/eosUiProcess.js.map +1 -1
  70. package/build/lib/web.js +5 -0
  71. package/build/lib/web.js.map +1 -1
  72. package/docs/README.md +3 -2
  73. package/docs/reports/unified-9.0.34/PRUEFBERICHT.md +40 -0
  74. package/docs/reports/unified-9.0.34/PRUEFERGEBNISSE.json +112 -0
  75. package/docs/reports/unified-9.0.34/raw/INDEX.json +137 -0
  76. package/docs/reports/unified-9.0.34/raw/backend.log +5 -0
  77. package/docs/reports/unified-9.0.34/raw/dashboard-interval.json +108 -0
  78. package/docs/reports/unified-9.0.34/raw/fixtures-verification.log +44 -0
  79. package/docs/reports/unified-9.0.34/raw/frontend.log +152 -0
  80. package/docs/reports/unified-9.0.34/raw/installer.log +26 -0
  81. package/docs/reports/unified-9.0.34/raw/lint.log +45 -0
  82. package/docs/reports/unified-9.0.34/raw/mira-dashboard-browser.json +1 -0
  83. package/docs/reports/unified-9.0.34/raw/mira-devices-browser.log +9 -0
  84. package/docs/reports/unified-9.0.34/raw/mira-memory-process.json +379 -0
  85. package/docs/reports/unified-9.0.34/raw/modules.log +5 -0
  86. package/docs/reports/unified-9.0.34/raw/node22-mira.log +216 -0
  87. package/docs/reports/unified-9.0.34/raw/node22-protocol-to-ems.log +8 -0
  88. package/docs/reports/unified-9.0.34/raw/node22-tests-final.log +17850 -0
  89. package/docs/reports/unified-9.0.34/raw/node22-version.log +1 -0
  90. package/docs/reports/unified-9.0.34/raw/node24-mira.log +40 -0
  91. package/docs/reports/unified-9.0.34/raw/node24-protocol-to-ems.log +6 -0
  92. package/docs/reports/unified-9.0.34/raw/node24-tests-final.log +2973 -0
  93. package/docs/reports/unified-9.0.34/raw/node24-version.log +1 -0
  94. package/docs/reports/unified-9.0.34/raw/protocol-to-ems.cjs +364 -0
  95. package/docs/reports/unified-9.0.34/raw/release-metadata.log +13 -0
  96. package/docs/reports/unified-9.0.34/raw/sbom.log +8 -0
  97. package/docs/reports/unified-9.0.34/raw/typecheck.log +5 -0
  98. package/docs/reports/unified-9.0.34/raw/ui-runtime.log +8 -0
  99. package/docs/reports/unified-9.0.35/PRUEFBERICHT.md +51 -0
  100. package/docs/reports/unified-9.0.35/PRUEFERGEBNISSE.json +112 -0
  101. package/docs/reports/unified-9.0.35/raw/INDEX.json +282 -0
  102. package/docs/reports/unified-9.0.35/raw/backend.log +5 -0
  103. package/docs/reports/unified-9.0.35/raw/browser-lp-detail.log +1 -0
  104. package/docs/reports/unified-9.0.35/raw/browser-lp-feedback.log +1 -0
  105. package/docs/reports/unified-9.0.35/raw/cold-ocpp-22.log +108 -0
  106. package/docs/reports/unified-9.0.35/raw/cold-ocpp-24.log +24 -0
  107. package/docs/reports/unified-9.0.35/raw/core-final-node22.log +1439 -0
  108. package/docs/reports/unified-9.0.35/raw/core-final-node24.log +1381 -0
  109. package/docs/reports/unified-9.0.35/raw/dashboard-de-en-nl.json +716 -0
  110. package/docs/reports/unified-9.0.35/raw/device-chain-closed-fixed.json +98 -0
  111. package/docs/reports/unified-9.0.35/raw/device-chain-rst-fixed.json +98 -0
  112. package/docs/reports/unified-9.0.35/raw/device-chain.json +93 -0
  113. package/docs/reports/unified-9.0.35/raw/ee-fusion-final.log +12 -0
  114. package/docs/reports/unified-9.0.35/raw/eebus-monitor-browser.json +1 -0
  115. package/docs/reports/unified-9.0.35/raw/eebus-monitor-node22.log +206 -0
  116. package/docs/reports/unified-9.0.35/raw/eebus-monitor-node24.log +39 -0
  117. package/docs/reports/unified-9.0.35/raw/fixtures-verification.log +44 -0
  118. package/docs/reports/unified-9.0.35/raw/frontend.log +152 -0
  119. package/docs/reports/unified-9.0.35/raw/installer.log +26 -0
  120. package/docs/reports/unified-9.0.35/raw/legacy-mail-setup-browser.log +1 -0
  121. package/docs/reports/unified-9.0.35/raw/lint.log +45 -0
  122. package/docs/reports/unified-9.0.35/raw/live-ems-loss.log +10 -0
  123. package/docs/reports/unified-9.0.35/raw/modules.log +5 -0
  124. package/docs/reports/unified-9.0.35/raw/node22-mira-reconnect-integrity.log +452 -0
  125. package/docs/reports/unified-9.0.35/raw/node22-mira.log +222 -0
  126. package/docs/reports/unified-9.0.35/raw/node22-system-status.log +213 -0
  127. package/docs/reports/unified-9.0.35/raw/node22-tests-final.log +18137 -0
  128. package/docs/reports/unified-9.0.35/raw/node22-version.log +1 -0
  129. package/docs/reports/unified-9.0.35/raw/node24-mira-reconnect-integrity.log +79 -0
  130. package/docs/reports/unified-9.0.35/raw/node24-mira.log +41 -0
  131. package/docs/reports/unified-9.0.35/raw/node24-system-status.log +40 -0
  132. package/docs/reports/unified-9.0.35/raw/node24-tests-final.log +3019 -0
  133. package/docs/reports/unified-9.0.35/raw/node24-version.log +1 -0
  134. package/docs/reports/unified-9.0.35/raw/notifications-legacy-node22.log +1 -0
  135. package/docs/reports/unified-9.0.35/raw/notifications-legacy-node24.log +1 -0
  136. package/docs/reports/unified-9.0.35/raw/notifications-node22.log +67 -0
  137. package/docs/reports/unified-9.0.35/raw/notifications-node24.log +17 -0
  138. package/docs/reports/unified-9.0.35/raw/npm-runtime-audit.json +77 -0
  139. package/docs/reports/unified-9.0.35/raw/ocpp-dashboard-stations-node22.log +110 -0
  140. package/docs/reports/unified-9.0.35/raw/ocpp-dashboard-stations-node24.log +106 -0
  141. package/docs/reports/unified-9.0.35/raw/ocpp-history-node22.log +561 -0
  142. package/docs/reports/unified-9.0.35/raw/ocpp-history-node24.log +98 -0
  143. package/docs/reports/unified-9.0.35/raw/poll-life-node22.log +38 -0
  144. package/docs/reports/unified-9.0.35/raw/poll-life-node24.log +12 -0
  145. package/docs/reports/unified-9.0.35/raw/qa-source-check.log +2 -0
  146. package/docs/reports/unified-9.0.35/raw/release-metadata.log +13 -0
  147. package/docs/reports/unified-9.0.35/raw/sbom.log +8 -0
  148. package/docs/reports/unified-9.0.35/raw/typecheck.log +5 -0
  149. package/docs/reports/unified-9.0.35/raw/ui-runtime.log +8 -0
  150. package/docs/reports/unified-9.0.35/raw/vergleich-9.0.33.json +29 -0
  151. package/docs/reports/unified-9.0.35/raw/vergleich-9.0.34.json +249 -0
  152. package/docs/reports/unified-9.0.35/raw/vorher-9.0.33-chromium.json +286 -0
  153. package/docs/reports/unified-9.0.35/raw/vorher-9.0.34-chromium.json +291 -0
  154. package/docs/start/START_HIER_9.0.34.md +25 -0
  155. package/docs/start/START_HIER_9.0.35.md +27 -0
  156. package/io-package.json +12 -12
  157. package/modules/devices/admin/alias-contract-v1.json +22 -0
  158. package/modules/devices/admin/ems-assignment.js +6 -1
  159. package/modules/devices/admin/host-bridge.js +2 -0
  160. package/modules/devices/admin/index.html +16 -0
  161. package/modules/devices/admin/index_m.js +168 -9
  162. package/modules/devices/admin/templates.json +976 -0
  163. package/modules/devices/checks/emsAssignment.check.js +52 -2
  164. package/modules/devices/contracts.d.ts +1 -0
  165. package/modules/devices/index.js +25 -2
  166. package/modules/devices/lib/alias-contract-v1.json +22 -0
  167. package/modules/devices/lib/deviceRuntime.js +36 -7
  168. package/modules/devices/lib/drivers/modbus.js +12 -7
  169. package/modules/devices/lib/drivers/modbusRtuBus.js +7 -1
  170. package/modules/devices/lib/drivers/ovumMira.js +152 -0
  171. package/modules/devices/lib/ovumMiraAliases.js +61 -0
  172. package/modules/devices/lib/ovumMiraConnection.js +32 -0
  173. package/modules/devices/lib/templates.json +976 -0
  174. package/modules/devices/test/aliasContractV1.test.js +4 -4
  175. package/modules/devices/test/deviceAliasSemantics.test.js +2 -2
  176. package/modules/devices/test/fixtures/approved-additive-templates.json +3 -1
  177. package/modules/devices/test/ovumMiraPairing.test.js +76 -0
  178. package/modules/devices/test/ovumMiraTemplates.test.js +110 -0
  179. package/modules/devices/test/ovumMiraTransport.test.js +201 -0
  180. package/modules/eebus/README.md +8 -0
  181. package/modules/eebus/admin/index.js +29 -2
  182. package/modules/eebus/build/index.js +28 -3
  183. package/modules/eebus/build/lib/eebusRuntime.js +17 -2
  184. package/modules/eebus/build/lib/partnerMonitor.js +160 -0
  185. package/modules/eebus/build/lib/shipEndpoint.js +4 -0
  186. package/modules/eebus/build/lib/stateDefinitions.js +1 -0
  187. package/modules/eebus/src/index.ts +23 -3
  188. package/modules/eebus/src/lib/eebusRuntime.ts +20 -2
  189. package/modules/eebus/src/lib/partnerMonitor.ts +127 -0
  190. package/modules/eebus/src/lib/shipEndpoint.ts +5 -0
  191. package/modules/eebus/src/lib/stateDefinitions.ts +1 -0
  192. package/modules/eebus/test/partner-monitor.test.js +82 -0
  193. package/modules/eebus/test/security.test.js +17 -0
  194. package/modules/ocpp/README.md +9 -1
  195. package/modules/ocpp/build/index.js +137 -10
  196. package/modules/ocpp/build/stationHistory.js +113 -0
  197. package/modules/ocpp/ocpp/freshness.d.ts +3 -0
  198. package/modules/ocpp/ocpp/freshness.js +6 -0
  199. package/modules/ocpp/provenance.json +3 -2
  200. package/modules/ocpp/runtime.d.ts +1 -0
  201. package/modules/ocpp/runtime.js +23 -1
  202. package/modules/ocpp/src/index.ts +163 -12
  203. package/modules/ocpp/src/stationHistory.ts +119 -0
  204. package/modules/ocpp/test/hosted.test.cjs +161 -0
  205. package/package.json +9 -5
  206. package/release-manifests/unified/build-environment.cdx.json +6 -6
  207. package/release-manifests/unified/files.json +313 -190
  208. package/release-manifests/unified/frontend.cdx.json +6 -6
  209. package/release-manifests/unified/installer.cdx.json +6 -6
  210. package/release-manifests/unified/obsolete-admin-assets.json +166 -0
  211. package/release-manifests/unified/runtime.cdx.json +30 -30
  212. package/release-manifests/unified/validation.json +15 -15
  213. package/tools/eos-release-manifest.cjs +1 -1
  214. package/ui/ems/consumers/ovum-mira.js +164 -0
  215. package/ui/ems/modules/para14a.js +3 -2
  216. package/ui/ems/modules/stage-a-diagnostics.js +4 -2
  217. package/ui/ems/modules/thermal-control.js +91 -10
  218. package/ui/io-package.json +9 -1
  219. package/ui/lib/installer-lifecycle.js +11 -2
  220. package/ui/lib/notification-mail.js +235 -40
  221. package/ui/lib/notification-policy.js +41 -14
  222. package/ui/main.js +37 -7
  223. package/ui/package.json +2 -1
  224. package/ui/www/app.js +122 -24
  225. package/ui/www/dashboard-lp-status.js +4 -11
  226. package/ui/www/dashboard-process-status.js +202 -0
  227. package/ui/www/ems-apps.js +28 -9
  228. package/ui/www/i18n/en.json +23 -0
  229. package/ui/www/i18n/nl.json +20 -0
  230. package/ui/www/index.html +10 -5
  231. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  232. package/ui/www/live-display.js +101 -9
  233. package/ui/www/manifest.webmanifest +2 -2
  234. package/ui/www/settings.html +2 -2
  235. package/ui/www/styles.css +4 -0
  236. package/adminWww/assets/AddLink-0L0E-LsA.js +0 -1
  237. package/adminWww/assets/ColorLens-DA51K29x.js +0 -1
  238. package/adminWww/assets/ConfigManager-DbqTWi2N.js +0 -1
  239. package/adminWww/assets/Enums-DjldGElU.js +0 -92
  240. package/adminWww/assets/Fields-0GsPCJeU.js +0 -1
  241. package/adminWww/assets/FileCopy-B16lEuur.js +0 -1
  242. package/adminWww/assets/Files-COnUtEbg.js +0 -1
  243. package/adminWww/assets/Instances-CUX5mxMQ.js +0 -4
  244. package/adminWww/assets/Intro-BhQmHn3A.js +0 -2
  245. package/adminWww/assets/Lens-9lkeoWGk.js +0 -1
  246. package/adminWww/assets/LinearScale-Be5h2beh.js +0 -1
  247. package/adminWww/assets/North-C2whbHM-.js +0 -1
  248. package/adminWww/assets/Overview-CitzUjBF.js +0 -3
  249. package/adminWww/assets/PersonOff-DqBq0Fho.js +0 -1
  250. package/adminWww/assets/PlaylistAdd-O8k92YBd.js +0 -1
  251. package/adminWww/assets/State-D5ljzf-T.js +0 -1
  252. package/adminWww/assets/UsedResources-BY_NF2wB.js +0 -2
  253. package/adminWww/assets/Users-Cu93_-VF.js +0 -1
  254. package/adminWww/assets/date-fns-C1dqkno9.js +0 -1
  255. package/adminWww/assets/icons-material-DjqX0l_7.js +0 -1
  256. package/adminWww/assets/isSameWeek-Crh37s7U.js +0 -1
  257. package/adminWww/assets/isWithinInterval-Bo1WiDfq.js +0 -1
  258. package/adminWww/assets/locale-hLcz_Xh2.js +0 -1
  259. package/adminWww/assets/sentry-DwQQLI7N.js +0 -1
  260. 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:899d9d925a26038d8d956627ab100ebb4fc3b358992c1b4ccdb38ad00a37472a
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 type = normalizeType(r.type || r.deviceType || r.kind);
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 = clamp(num(r.maxPowerW, 2500), 0, 1e12);
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', 0);
770
+ await this._setStateIfChanged('thermal.summary.appliedTotalW', Math.round(miraMeasuredW));
735
771
  await this._setStateIfChanged('thermal.summary.budgetUsedW', 0);
736
- await this._setStateIfChanged('thermal.summary.status', attempted ? 'module-disabled-safe-stop' : 'module-disabled-no-actuators');
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 ? 0 : used,
2105
+ pvReserveW: tariffImportPreferred ? Math.min(used, miraPvReserveW) : used,
2025
2106
  pvOnly: !tariffImportPreferred,
2026
2107
  mode: tariffImportPreferred ? 'tariffNegative' : 'pvAuto',
2027
2108
  });
@@ -1,8 +1,16 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "nexowatt-ui",
4
- "version": "9.0.33",
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:b6fb03d371839579e04a18d6a993414a41fdca9588fd143722c6174b39eae153
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'))