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.
Files changed (242) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +10 -11
  2. package/README.md +7 -7
  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-UhaQHyF1.js → AdapterUpdateDialog-5L75o18m.js} +5 -5
  7. package/adminWww/assets/{Adapters-Di3sM_ky.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-DXjTE0pX.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-DTo6XJF_.js → Logs-rUAV7SwM.js} +2 -2
  17. package/adminWww/assets/MoreHoriz-CS7nODK8.js +1 -0
  18. package/adminWww/assets/{Objects-DyEBMDK6.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-BQ4OzwbT.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-CGSSNegd.js → hostInit-DqGL6nY8.js} +1 -1
  33. package/adminWww/assets/icons-material-07rWS63O.js +1 -0
  34. package/adminWww/assets/{index-C4CShixx.js → index-BhhkToP2.js} +2 -2
  35. package/adminWww/assets/{installSVGRenderer-DeaOAT3W.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-c5733c2d.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.31.js → remoteEntry-eos-9.0.34.js} +1 -1
  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/build/lib/eosUiProcess.js +31 -14
  51. package/build/lib/eosUiProcess.js.map +1 -1
  52. package/build/lib/eosUiProcessRpc.js +3 -1
  53. package/build/lib/eosUiProcessRpc.js.map +1 -1
  54. package/build/lib/eosUiProcessWorker.js +6 -4
  55. package/build/lib/eosUiProcessWorker.js.map +1 -1
  56. package/docs/README.md +3 -2
  57. package/docs/reports/unified-9.0.32/PRUEFBERICHT.md +34 -0
  58. package/docs/reports/unified-9.0.32/PRUEFERGEBNISSE.json +112 -0
  59. package/docs/reports/unified-9.0.32/raw/INDEX.json +102 -0
  60. package/docs/reports/unified-9.0.32/raw/backend.log +5 -0
  61. package/docs/reports/unified-9.0.32/raw/browser-cadence-headless.json +63 -0
  62. package/docs/reports/unified-9.0.32/raw/browser-flow-headless.json +328 -0
  63. package/docs/reports/unified-9.0.32/raw/focused.log +67 -0
  64. package/docs/reports/unified-9.0.32/raw/frontend.log +151 -0
  65. package/docs/reports/unified-9.0.32/raw/installer.log +26 -0
  66. package/docs/reports/unified-9.0.32/raw/lint.log +5 -0
  67. package/docs/reports/unified-9.0.32/raw/modules.log +5 -0
  68. package/docs/reports/unified-9.0.32/raw/node22-tests-final.log +17212 -0
  69. package/docs/reports/unified-9.0.32/raw/node22-version.log +1 -0
  70. package/docs/reports/unified-9.0.32/raw/node24-tests-final.log +2869 -0
  71. package/docs/reports/unified-9.0.32/raw/node24-version.log +1 -0
  72. package/docs/reports/unified-9.0.32/raw/sbom.log +2 -0
  73. package/docs/reports/unified-9.0.32/raw/typecheck.log +5 -0
  74. package/docs/reports/unified-9.0.32/raw/ui-runtime.log +8 -0
  75. package/docs/reports/unified-9.0.32/raw/version-parity-928-929.log +6 -0
  76. package/docs/reports/unified-9.0.33/PRUEFBERICHT.md +60 -0
  77. package/docs/reports/unified-9.0.33/PRUEFERGEBNISSE.json +112 -0
  78. package/docs/reports/unified-9.0.33/raw/INDEX.json +272 -0
  79. package/docs/reports/unified-9.0.33/raw/backend.log +5 -0
  80. package/docs/reports/unified-9.0.33/raw/browser/UI_REVIEW.json +147 -0
  81. package/docs/reports/unified-9.0.33/raw/browser/admin-bundle.log +136 -0
  82. package/docs/reports/unified-9.0.33/raw/browser/eos-backup-settings-browser.log +67 -0
  83. package/docs/reports/unified-9.0.33/raw/browser/eos-customer-tariff-startup-browser.log +43 -0
  84. package/docs/reports/unified-9.0.33/raw/browser/eos-energyflow-browser-smoke.log +438 -0
  85. package/docs/reports/unified-9.0.33/raw/browser/eos-energyflow-cadence-browser-10s.log +108 -0
  86. package/docs/reports/unified-9.0.33/raw/browser/eos-evcs-delete-browser.log +1 -0
  87. package/docs/reports/unified-9.0.33/raw/browser/eos-history-setup-browser-smoke.log +49 -0
  88. package/docs/reports/unified-9.0.33/raw/browser/eos-kiosk-browser.log +59 -0
  89. package/docs/reports/unified-9.0.33/raw/browser/eos-ocpp-admin-browser.log +71 -0
  90. package/docs/reports/unified-9.0.33/raw/browser/eos-ocpp-installer-discovery-browser.log +11 -0
  91. package/docs/reports/unified-9.0.33/raw/browser/eos-pwa-trust-browser.log +35 -0
  92. package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-controls-browser.log +78 -0
  93. package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-health-browser.log +49 -0
  94. package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-login-browser.log +34 -0
  95. package/docs/reports/unified-9.0.33/raw/browser/smarthome.log +46 -0
  96. package/docs/reports/unified-9.0.33/raw/browser-ten-seconds.json +108 -0
  97. package/docs/reports/unified-9.0.33/raw/changed-test-coverage.json +116 -0
  98. package/docs/reports/unified-9.0.33/raw/connected-control-node22.jsonl +42 -0
  99. package/docs/reports/unified-9.0.33/raw/connected-control-summary-node22.json +103 -0
  100. package/docs/reports/unified-9.0.33/raw/connected-control-summary.json +103 -0
  101. package/docs/reports/unified-9.0.33/raw/connected-control.jsonl +42 -0
  102. package/docs/reports/unified-9.0.33/raw/display-ui-node22.log +162 -0
  103. package/docs/reports/unified-9.0.33/raw/display-ui.log +35 -0
  104. package/docs/reports/unified-9.0.33/raw/frontend.log +151 -0
  105. package/docs/reports/unified-9.0.33/raw/git-delivery-fix.log +10 -0
  106. package/docs/reports/unified-9.0.33/raw/installer.log +26 -0
  107. package/docs/reports/unified-9.0.33/raw/license-central-node24.log +173 -0
  108. package/docs/reports/unified-9.0.33/raw/lint-final.log +45 -0
  109. package/docs/reports/unified-9.0.33/raw/modules.log +5 -0
  110. package/docs/reports/unified-9.0.33/raw/node22-npm-version.log +1 -0
  111. package/docs/reports/unified-9.0.33/raw/node22-tests-final.log +17646 -0
  112. package/docs/reports/unified-9.0.33/raw/node22-version.log +1 -0
  113. package/docs/reports/unified-9.0.33/raw/node24-npm-version.log +1 -0
  114. package/docs/reports/unified-9.0.33/raw/node24-tests-final.log +2941 -0
  115. package/docs/reports/unified-9.0.33/raw/node24-version.log +1 -0
  116. package/docs/reports/unified-9.0.33/raw/process-final-node22.log +220 -0
  117. package/docs/reports/unified-9.0.33/raw/process-final-node24.log +110 -0
  118. package/docs/reports/unified-9.0.33/raw/ram-picker.jsonl +12 -0
  119. package/docs/reports/unified-9.0.33/raw/reg-combined-node22.log +622 -0
  120. package/docs/reports/unified-9.0.33/raw/reg-combined.log +108 -0
  121. package/docs/reports/unified-9.0.33/raw/sbom-final.log +8 -0
  122. package/docs/reports/unified-9.0.33/raw/tariff-update-all-final-node22.log +1185 -0
  123. package/docs/reports/unified-9.0.33/raw/typecheck-final.log +5 -0
  124. package/docs/reports/unified-9.0.33/raw/ui-functional-node24.log +430 -0
  125. package/docs/reports/unified-9.0.33/raw/ui-runtime-final-verification.log +1 -0
  126. package/docs/reports/unified-9.0.33/raw/update-controller-standard-7-2-5.log +4 -0
  127. package/docs/reports/unified-9.0.33/raw/worker-memory-eos933.log +12 -0
  128. package/docs/reports/unified-9.0.33/raw/worker-memory-flow932.log +12 -0
  129. package/docs/reports/unified-9.0.34/PRUEFBERICHT.md +40 -0
  130. package/docs/reports/unified-9.0.34/PRUEFERGEBNISSE.json +112 -0
  131. package/docs/reports/unified-9.0.34/raw/INDEX.json +137 -0
  132. package/docs/reports/unified-9.0.34/raw/backend.log +5 -0
  133. package/docs/reports/unified-9.0.34/raw/dashboard-interval.json +108 -0
  134. package/docs/reports/unified-9.0.34/raw/fixtures-verification.log +44 -0
  135. package/docs/reports/unified-9.0.34/raw/frontend.log +152 -0
  136. package/docs/reports/unified-9.0.34/raw/installer.log +26 -0
  137. package/docs/reports/unified-9.0.34/raw/lint.log +45 -0
  138. package/docs/reports/unified-9.0.34/raw/mira-dashboard-browser.json +1 -0
  139. package/docs/reports/unified-9.0.34/raw/mira-devices-browser.log +9 -0
  140. package/docs/reports/unified-9.0.34/raw/mira-memory-process.json +379 -0
  141. package/docs/reports/unified-9.0.34/raw/modules.log +5 -0
  142. package/docs/reports/unified-9.0.34/raw/node22-mira.log +216 -0
  143. package/docs/reports/unified-9.0.34/raw/node22-protocol-to-ems.log +8 -0
  144. package/docs/reports/unified-9.0.34/raw/node22-tests-final.log +17850 -0
  145. package/docs/reports/unified-9.0.34/raw/node22-version.log +1 -0
  146. package/docs/reports/unified-9.0.34/raw/node24-mira.log +40 -0
  147. package/docs/reports/unified-9.0.34/raw/node24-protocol-to-ems.log +6 -0
  148. package/docs/reports/unified-9.0.34/raw/node24-tests-final.log +2973 -0
  149. package/docs/reports/unified-9.0.34/raw/node24-version.log +1 -0
  150. package/docs/reports/unified-9.0.34/raw/protocol-to-ems.cjs +364 -0
  151. package/docs/reports/unified-9.0.34/raw/release-metadata.log +13 -0
  152. package/docs/reports/unified-9.0.34/raw/sbom.log +8 -0
  153. package/docs/reports/unified-9.0.34/raw/typecheck.log +5 -0
  154. package/docs/reports/unified-9.0.34/raw/ui-runtime.log +8 -0
  155. package/docs/start/START_HIER_9.0.32.md +16 -0
  156. package/docs/start/START_HIER_9.0.33.md +32 -0
  157. package/docs/start/START_HIER_9.0.34.md +25 -0
  158. package/io-package.json +16 -16
  159. package/modules/devices/admin/alias-contract-v1.json +22 -0
  160. package/modules/devices/admin/ems-assignment.js +6 -1
  161. package/modules/devices/admin/host-bridge.js +2 -0
  162. package/modules/devices/admin/index.html +16 -0
  163. package/modules/devices/admin/index_m.js +168 -9
  164. package/modules/devices/admin/templates.json +976 -0
  165. package/modules/devices/checks/emsAssignment.check.js +52 -2
  166. package/modules/devices/index.js +5 -1
  167. package/modules/devices/lib/alias-contract-v1.json +22 -0
  168. package/modules/devices/lib/deviceRuntime.js +17 -7
  169. package/modules/devices/lib/drivers/modbus.js +1 -1
  170. package/modules/devices/lib/drivers/modbusRtuBus.js +7 -1
  171. package/modules/devices/lib/drivers/ovumMira.js +148 -0
  172. package/modules/devices/lib/ovumMiraAliases.js +61 -0
  173. package/modules/devices/lib/ovumMiraConnection.js +32 -0
  174. package/modules/devices/lib/templates.json +976 -0
  175. package/modules/devices/test/aliasContractV1.test.js +4 -4
  176. package/modules/devices/test/deviceAliasSemantics.test.js +2 -2
  177. package/modules/devices/test/fixtures/approved-additive-templates.json +3 -1
  178. package/modules/devices/test/ovumMiraPairing.test.js +76 -0
  179. package/modules/devices/test/ovumMiraTemplates.test.js +110 -0
  180. package/modules/devices/test/ovumMiraTransport.test.js +162 -0
  181. package/package.json +10 -5
  182. package/release-manifests/unified/build-environment.cdx.json +7 -7
  183. package/release-manifests/unified/files.json +302 -180
  184. package/release-manifests/unified/frontend.cdx.json +7 -7
  185. package/release-manifests/unified/installer.cdx.json +7 -7
  186. package/release-manifests/unified/obsolete-admin-assets.json +281 -28
  187. package/release-manifests/unified/runtime.cdx.json +28 -28
  188. package/release-manifests/unified/validation.json +15 -15
  189. package/tools/eos-release-manifest.cjs +2 -2
  190. package/ui/ems/consumers/ovum-mira.js +164 -0
  191. package/ui/ems/consumers/sg-ready.js +26 -6
  192. package/ui/ems/datapoints.js +12 -4
  193. package/ui/ems/modules/charging-management.js +58 -67
  194. package/ui/ems/modules/core-limits.js +59 -36
  195. package/ui/ems/modules/para14a.js +3 -2
  196. package/ui/ems/modules/prime-mover-control.js +141 -29
  197. package/ui/ems/modules/stage-a-diagnostics.js +4 -2
  198. package/ui/ems/modules/storage-control.js +31 -38
  199. package/ui/ems/modules/storage-mapping.js +14 -13
  200. package/ui/ems/modules/tarif-vis.js +38 -56
  201. package/ui/ems/modules/thermal-control.js +91 -10
  202. package/ui/ems/services/measurement-freshness.js +58 -21
  203. package/ui/ems/services/safety-envelope.js +13 -6
  204. package/ui/io-package.json +13 -1
  205. package/ui/lib/datapoint-picker.js +27 -20
  206. package/ui/lib/installer-lifecycle.js +11 -2
  207. package/ui/lib/tariff-price.js +7 -1
  208. package/ui/lib/ts-mirrors/ems/core-limits/core-runtime.js +5 -1
  209. package/ui/main.js +313 -188
  210. package/ui/package.json +4 -3
  211. package/ui/www/app.js +238 -100
  212. package/ui/www/ems-apps.js +30 -10
  213. package/ui/www/index.html +1 -0
  214. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  215. package/ui/www/live-display.js +38 -4
  216. package/ui/www/manifest.webmanifest +2 -2
  217. package/ui/www/power-measurements.js +28 -3
  218. package/adminWww/assets/AddLink-0L0E-LsA.js +0 -1
  219. package/adminWww/assets/ColorLens-DA51K29x.js +0 -1
  220. package/adminWww/assets/ConfigManager-C2naRwDl.js +0 -1
  221. package/adminWww/assets/Enums-B9ucB-qg.js +0 -92
  222. package/adminWww/assets/Fields-DN41WFbp.js +0 -1
  223. package/adminWww/assets/FileCopy-B16lEuur.js +0 -1
  224. package/adminWww/assets/Files-C3PbbeNR.js +0 -1
  225. package/adminWww/assets/Instances-PKvEjDNQ.js +0 -4
  226. package/adminWww/assets/Intro-BnYMjDZr.js +0 -2
  227. package/adminWww/assets/Lens-9lkeoWGk.js +0 -1
  228. package/adminWww/assets/LinearScale-Be5h2beh.js +0 -1
  229. package/adminWww/assets/North-C2whbHM-.js +0 -1
  230. package/adminWww/assets/Overview-CWLYuqZx.js +0 -3
  231. package/adminWww/assets/PersonOff-DqBq0Fho.js +0 -1
  232. package/adminWww/assets/PlaylistAdd-O8k92YBd.js +0 -1
  233. package/adminWww/assets/State-Ca9_Ke_c.js +0 -1
  234. package/adminWww/assets/UsedResources-20bsoxmj.js +0 -2
  235. package/adminWww/assets/Users-yZyZX-18.js +0 -1
  236. package/adminWww/assets/date-fns-C1dqkno9.js +0 -1
  237. package/adminWww/assets/icons-material-C3PNaipj.js +0 -1
  238. package/adminWww/assets/isSameWeek-Crh37s7U.js +0 -1
  239. package/adminWww/assets/isWithinInterval-Bo1WiDfq.js +0 -1
  240. package/adminWww/assets/locale-hLcz_Xh2.js +0 -1
  241. package/adminWww/assets/sentry-DwQQLI7N.js +0 -1
  242. package/adminWww/assets/startOfWeek-DJph8SIW.js +0 -1
@@ -2,10 +2,10 @@
2
2
  "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.5",
5
- "serialNumber": "urn:uuid:1d7d1a4f-9616-4d8e-9d8e-6913c77dec26",
5
+ "serialNumber": "urn:uuid:e97abbae-f141-4c2c-b77b-f96dbe19e744",
6
6
  "version": 2,
7
7
  "metadata": {
8
- "timestamp": "2026-11-26T11:21:52.427Z",
8
+ "timestamp": "2026-11-26T18:23:21.766Z",
9
9
  "lifecycles": [
10
10
  {
11
11
  "phase": "pre-build"
@@ -19,14 +19,14 @@
19
19
  }
20
20
  ],
21
21
  "component": {
22
- "bom-ref": "iobroker.eos-admin@9.0.31",
23
- "type": "application",
22
+ "bom-ref": "iobroker.eos-admin@9.0.34",
23
+ "type": "library",
24
24
  "name": "iobroker.eos-admin",
25
- "version": "9.0.31",
25
+ "version": "9.0.34",
26
26
  "scope": "required",
27
27
  "author": "NexoWatt",
28
28
  "description": "NexoWatt EOS: licensed local energy management, dashboard and ioBroker system administration in one adapter.",
29
- "purl": "pkg:npm/iobroker.eos-admin@9.0.31",
29
+ "purl": "pkg:npm/iobroker.eos-admin@9.0.34",
30
30
  "properties": [],
31
31
  "externalReferences": []
32
32
  }
@@ -11922,10 +11922,10 @@
11922
11922
  ]
11923
11923
  },
11924
11924
  {
11925
- "bom-ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.31",
11925
+ "bom-ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.34",
11926
11926
  "type": "library",
11927
11927
  "name": "@iobroker/webserver",
11928
- "version": "3.4.0+nexowatt.9.0.31",
11928
+ "version": "3.4.0+nexowatt.9.0.34",
11929
11929
  "scope": "required",
11930
11930
  "description": "Locally vendored @iobroker/webserver 3.4.0 with two reviewed certificate-material logging replacements; not an unmodified registry release.",
11931
11931
  "licenses": [
@@ -12002,9 +12002,9 @@
12002
12002
  },
12003
12003
  {
12004
12004
  "type": "library",
12005
- "bom-ref": "nexowatt:integrated:devices@9.0.31",
12005
+ "bom-ref": "nexowatt:integrated:devices@9.0.34",
12006
12006
  "name": "NexoWatt EOS integrated devices",
12007
- "version": "9.0.31",
12007
+ "version": "9.0.34",
12008
12008
  "scope": "required",
12009
12009
  "licenses": [
12010
12010
  {
@@ -12016,7 +12016,7 @@
12016
12016
  "hashes": [
12017
12017
  {
12018
12018
  "alg": "SHA-256",
12019
- "content": "620cd458e496065df040f11347eb15566817dc04c4d933481346718d881ac268"
12019
+ "content": "0cc95711d337d48ea1f195627105568044f251ab94dd934ade1001ee2c7d577c"
12020
12020
  }
12021
12021
  ],
12022
12022
  "pedigree": {
@@ -12046,9 +12046,9 @@
12046
12046
  },
12047
12047
  {
12048
12048
  "type": "library",
12049
- "bom-ref": "nexowatt:integrated:eebus@9.0.31",
12049
+ "bom-ref": "nexowatt:integrated:eebus@9.0.34",
12050
12050
  "name": "NexoWatt EOS integrated eebus",
12051
- "version": "9.0.31",
12051
+ "version": "9.0.34",
12052
12052
  "scope": "required",
12053
12053
  "licenses": [
12054
12054
  {
@@ -12090,9 +12090,9 @@
12090
12090
  },
12091
12091
  {
12092
12092
  "type": "library",
12093
- "bom-ref": "nexowatt:integrated:backup@9.0.31",
12093
+ "bom-ref": "nexowatt:integrated:backup@9.0.34",
12094
12094
  "name": "NexoWatt EOS integrated backup",
12095
- "version": "9.0.31",
12095
+ "version": "9.0.34",
12096
12096
  "scope": "required",
12097
12097
  "licenses": [
12098
12098
  {
@@ -12141,9 +12141,9 @@
12141
12141
  },
12142
12142
  {
12143
12143
  "type": "library",
12144
- "bom-ref": "nexowatt:integrated:ocpp@9.0.31",
12144
+ "bom-ref": "nexowatt:integrated:ocpp@9.0.34",
12145
12145
  "name": "NexoWatt EOS integrated ocpp",
12146
- "version": "9.0.31",
12146
+ "version": "9.0.34",
12147
12147
  "scope": "required",
12148
12148
  "licenses": [
12149
12149
  {
@@ -12193,7 +12193,7 @@
12193
12193
  ],
12194
12194
  "dependencies": [
12195
12195
  {
12196
- "ref": "iobroker.eos-admin@9.0.31",
12196
+ "ref": "iobroker.eos-admin@9.0.34",
12197
12197
  "dependsOn": [
12198
12198
  "@iobroker/adapter-core@3.4.3",
12199
12199
  "@iobroker/plugin-docker@1.2.1",
@@ -12230,11 +12230,11 @@
12230
12230
  "tar-fs@3.1.3",
12231
12231
  "ws@8.22.0",
12232
12232
  "ocpp-rpc@2.2.1",
12233
- "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.31",
12234
- "nexowatt:integrated:devices@9.0.31",
12235
- "nexowatt:integrated:eebus@9.0.31",
12236
- "nexowatt:integrated:backup@9.0.31",
12237
- "nexowatt:integrated:ocpp@9.0.31"
12233
+ "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.34",
12234
+ "nexowatt:integrated:devices@9.0.34",
12235
+ "nexowatt:integrated:eebus@9.0.34",
12236
+ "nexowatt:integrated:backup@9.0.34",
12237
+ "nexowatt:integrated:ocpp@9.0.34"
12238
12238
  ]
12239
12239
  },
12240
12240
  {
@@ -14815,7 +14815,7 @@
14815
14815
  "dependsOn": []
14816
14816
  },
14817
14817
  {
14818
- "ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.31",
14818
+ "ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.34",
14819
14819
  "dependsOn": [
14820
14820
  "@node-oauth/oauth2-server@5.3.1",
14821
14821
  "jsonwebtoken@9.0.3",
@@ -14823,7 +14823,7 @@
14823
14823
  ]
14824
14824
  },
14825
14825
  {
14826
- "ref": "nexowatt:integrated:devices@9.0.31",
14826
+ "ref": "nexowatt:integrated:devices@9.0.34",
14827
14827
  "dependsOn": [
14828
14828
  "axios@1.20.0",
14829
14829
  "modbus-serial@8.0.25",
@@ -14832,14 +14832,14 @@
14832
14832
  ]
14833
14833
  },
14834
14834
  {
14835
- "ref": "nexowatt:integrated:eebus@9.0.31",
14835
+ "ref": "nexowatt:integrated:eebus@9.0.34",
14836
14836
  "dependsOn": [
14837
14837
  "ws@8.22.0",
14838
14838
  "bonjour-service@1.4.4"
14839
14839
  ]
14840
14840
  },
14841
14841
  {
14842
- "ref": "nexowatt:integrated:backup@9.0.31",
14842
+ "ref": "nexowatt:integrated:backup@9.0.34",
14843
14843
  "dependsOn": [
14844
14844
  "tar-fs@3.1.3",
14845
14845
  "cron-parser@5.10.6",
@@ -14851,7 +14851,7 @@
14851
14851
  ]
14852
14852
  },
14853
14853
  {
14854
- "ref": "nexowatt:integrated:ocpp@9.0.31",
14854
+ "ref": "nexowatt:integrated:ocpp@9.0.34",
14855
14855
  "dependsOn": [
14856
14856
  "ocpp-rpc@2.2.1"
14857
14857
  ]
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "schema": 1,
3
- "version": "9.0.31",
3
+ "version": "9.0.34",
4
4
  "snapshot": {
5
5
  "algorithm": "SHA-256",
6
- "files": 6077,
7
- "sha256": "9b6d547ecbf536b26ca5e63444a6e890f8230712f235f16d39caa66f0902c26e"
6
+ "files": 6199,
7
+ "sha256": "73b1e3130f35f9f49469d1552cbecef7a11ee22ff0f4f79c6730588b0a725fa8"
8
8
  },
9
9
  "evidence": {
10
10
  "index": {
11
- "path": "docs/reports/unified-9.0.31/raw/INDEX.json",
12
- "sha256": "5f4d3f3c1c6ab40be5b961844a37ac34cf19d5f5355dd523eb93c2689066cb62"
11
+ "path": "docs/reports/unified-9.0.34/raw/INDEX.json",
12
+ "sha256": "cec5eaca468fed135fd436401caf4912dd3981a3016a1fd0f17b07985fb8a98d"
13
13
  },
14
14
  "runs": [
15
15
  {
@@ -17,18 +17,18 @@
17
17
  "nodeVersion": "v22.23.4",
18
18
  "command": "npm test",
19
19
  "result": {
20
- "tests": 2740,
21
- "pass": 2738,
20
+ "tests": 2850,
21
+ "pass": 2848,
22
22
  "fail": 0,
23
23
  "skipped": 2,
24
24
  "cancelled": 0
25
25
  },
26
26
  "log": {
27
- "path": "docs/reports/unified-9.0.31/raw/node22-tests-final.log",
28
- "sha256": "07dec9c471c1b2ff3f4c53293f93fe747662f508ae7c4eb8048721e612d86be0"
27
+ "path": "docs/reports/unified-9.0.34/raw/node22-tests-final.log",
28
+ "sha256": "b520b1a6615e0cec663775c25468f8e0f59e9457403a67ff0d5cfe40ae9fc8fc"
29
29
  },
30
30
  "runtime": {
31
- "path": "docs/reports/unified-9.0.31/raw/node22-version.log",
31
+ "path": "docs/reports/unified-9.0.34/raw/node22-version.log",
32
32
  "sha256": "2266957ed9a639bd7264d714bfa798a961510bf2e50695c668ab8fc0c3f4e906"
33
33
  }
34
34
  },
@@ -37,18 +37,18 @@
37
37
  "nodeVersion": "v24.22.3",
38
38
  "command": "npm test",
39
39
  "result": {
40
- "tests": 2740,
41
- "pass": 2738,
40
+ "tests": 2850,
41
+ "pass": 2848,
42
42
  "fail": 0,
43
43
  "skipped": 2,
44
44
  "cancelled": 0
45
45
  },
46
46
  "log": {
47
- "path": "docs/reports/unified-9.0.31/raw/node24-tests-final.log",
48
- "sha256": "fb14023e87cc5a4213ff98adc9fdbad2c4d8c09945d77600589c9741e77e8685"
47
+ "path": "docs/reports/unified-9.0.34/raw/node24-tests-final.log",
48
+ "sha256": "d251b134ac5b7e61d19859ecf017f338eb4b3ab7d77596ff842c01a4c1e7a304"
49
49
  },
50
50
  "runtime": {
51
- "path": "docs/reports/unified-9.0.31/raw/node24-version.log",
51
+ "path": "docs/reports/unified-9.0.34/raw/node24-version.log",
52
52
  "sha256": "4409d3bfa08b82f385bd424eeda65fc63b756129f0e89e82df77f1fecafccc14"
53
53
  }
54
54
  }
@@ -5,11 +5,11 @@ const path = require('node:path');
5
5
  const crypto = require('node:crypto');
6
6
  const root = path.resolve(__dirname, '..');
7
7
  const manifestPath = path.join(root, 'release-manifests/unified/files.json');
8
- const roots = ['docs/start/START_HIER_9.0.31.md', 'docs/reports/unified-9.0.31', 'nexowatt-eos-admin-repository-entry-v9-0-31.json', 'docs/start/START_HIER_9.0.30.md', 'docs/reports/unified-9.0.30', 'nexowatt-eos-admin-repository-entry-v9-0-30.json', 'docs/start/START_HIER_9.0.29.md', 'docs/reports/unified-9.0.29', 'nexowatt-eos-admin-repository-entry-v9-0-29.json', 'docs/changelog-archive.json', 'docs/start/START_HIER_9.0.28.md', 'docs/reports/unified-9.0.28', 'nexowatt-eos-admin-repository-entry-v9-0-28.json', 'docs/README.md', 'docs/DOKUMENTATION_9.0.27.md', 'docs/UMSORTIERTE_DATEIEN.tsv', 'docs/archive', 'docs/start', 'docs/start/START_HIER_9.0.27.md', 'docs/reports/unified-9.0.27', 'nexowatt-eos-admin-repository-entry-v9-0-27.json', 'tsconfig.eos-repository-tools.json', 'tools/nexowatt-generate-eos-admin-repo-entry.cjs', 'tools/nexowatt-patch-repo.cjs', 'tools/nexowatt-repair-eos-admin-update.cjs', 'docs/NEXOWATT_EOS_UI_V28_UPDATE_FIX_DE.md', 'tsconfig.eos-backup-admin.json', 'eslint.backup-admin.config.mjs', 'tools/eos-lifecycle-benchmark.cjs', 'docs/start/START_HIER_9.0.26.md', 'docs/reports/unified-9.0.26', 'nexowatt-eos-admin-repository-entry-v9-0-26.json', 'tsconfig.eos-runtime-control.json', 'docs/start/START_HIER_9.0.25.md', 'docs/reports/unified-9.0.25', 'nexowatt-eos-admin-repository-entry-v9-0-25.json', 'reports/security/KIOSK_BACKEND_924.md', 'tsconfig.eos-ocpp-admin.json', 'eslint.ocpp-admin.config.mjs', 'docs/start/START_HIER_9.0.24.md', 'docs/reports/unified-9.0.24', 'nexowatt-eos-admin-repository-entry-v9-0-24.json', 'docs/MODULE_PROCESS_RUNTIME.md', 'tsconfig.eos-module-process.json', 'tsconfig.ui-process.json', 'docs/start/START_HIER_9.0.23.md', 'docs/reports/unified-9.0.23', 'nexowatt-eos-admin-repository-entry-v9-0-23.json', 'ui/tsconfig.ocpp-limit-feedback.json', 'ui/eslint.ocpp-limit-feedback.config.mjs', 'ui/tsconfig.ocpp-auto-discovery.json', 'ui/eslint.ocpp-auto-discovery.config.mjs', 'tsconfig.eos-runtime-health.json', 'eslint.runtime-health.config.mjs', 'ui/tsconfig.flow-measurement.json', 'ui/eslint.flow-measurement.config.mjs', 'ui/tsconfig.postgres-history.json', 'ui/eslint.postgres-history.config.mjs', 'ui/tsconfig.ems-control-values.json', 'ui/eslint.ems-control-values.config.mjs', 'docs/QA-9.0.22-INDEPENDENT.md', 'docs/9.0.22', 'nexowatt-eos-admin-repository-entry-v9-0-22.json', 'package.json', 'package-lock.json', 'io-package.json', '.npmrc', '.gitignore', '.gitattributes', 'LICENSE', 'LICENSE-NEXOWATT.md',
8
+ const roots = ['docs/start/START_HIER_9.0.34.md', 'docs/reports/unified-9.0.34', 'nexowatt-eos-admin-repository-entry-v9-0-34.json', 'docs/start/START_HIER_9.0.33.md', 'docs/reports/unified-9.0.33', 'nexowatt-eos-admin-repository-entry-v9-0-33.json', 'docs/start/START_HIER_9.0.32.md', 'docs/reports/unified-9.0.32', 'nexowatt-eos-admin-repository-entry-v9-0-32.json', 'docs/start/START_HIER_9.0.31.md', 'docs/reports/unified-9.0.31', 'nexowatt-eos-admin-repository-entry-v9-0-31.json', 'docs/start/START_HIER_9.0.30.md', 'docs/reports/unified-9.0.30', 'nexowatt-eos-admin-repository-entry-v9-0-30.json', 'docs/start/START_HIER_9.0.29.md', 'docs/reports/unified-9.0.29', 'nexowatt-eos-admin-repository-entry-v9-0-29.json', 'docs/changelog-archive.json', 'docs/start/START_HIER_9.0.28.md', 'docs/reports/unified-9.0.28', 'nexowatt-eos-admin-repository-entry-v9-0-28.json', 'docs/README.md', 'docs/DOKUMENTATION_9.0.27.md', 'docs/UMSORTIERTE_DATEIEN.tsv', 'docs/archive', 'docs/start', 'docs/start/START_HIER_9.0.27.md', 'docs/reports/unified-9.0.27', 'nexowatt-eos-admin-repository-entry-v9-0-27.json', 'tsconfig.eos-repository-tools.json', 'tools/nexowatt-generate-eos-admin-repo-entry.cjs', 'tools/nexowatt-patch-repo.cjs', 'tools/nexowatt-repair-eos-admin-update.cjs', 'docs/NEXOWATT_EOS_UI_V28_UPDATE_FIX_DE.md', 'tsconfig.eos-backup-admin.json', 'eslint.backup-admin.config.mjs', 'tools/eos-lifecycle-benchmark.cjs', 'docs/start/START_HIER_9.0.26.md', 'docs/reports/unified-9.0.26', 'nexowatt-eos-admin-repository-entry-v9-0-26.json', 'tsconfig.eos-runtime-control.json', 'docs/start/START_HIER_9.0.25.md', 'docs/reports/unified-9.0.25', 'nexowatt-eos-admin-repository-entry-v9-0-25.json', 'reports/security/KIOSK_BACKEND_924.md', 'tsconfig.eos-ocpp-admin.json', 'eslint.ocpp-admin.config.mjs', 'docs/start/START_HIER_9.0.24.md', 'docs/reports/unified-9.0.24', 'nexowatt-eos-admin-repository-entry-v9-0-24.json', 'docs/MODULE_PROCESS_RUNTIME.md', 'tsconfig.eos-module-process.json', 'tsconfig.ui-process.json', 'docs/start/START_HIER_9.0.23.md', 'docs/reports/unified-9.0.23', 'nexowatt-eos-admin-repository-entry-v9-0-23.json', 'ui/tsconfig.ocpp-limit-feedback.json', 'ui/eslint.ocpp-limit-feedback.config.mjs', 'ui/tsconfig.ocpp-auto-discovery.json', 'ui/eslint.ocpp-auto-discovery.config.mjs', 'tsconfig.eos-runtime-health.json', 'eslint.runtime-health.config.mjs', 'ui/tsconfig.flow-measurement.json', 'ui/eslint.flow-measurement.config.mjs', 'ui/tsconfig.postgres-history.json', 'ui/eslint.postgres-history.config.mjs', 'ui/tsconfig.ems-control-values.json', 'ui/eslint.ems-control-values.config.mjs', 'docs/QA-9.0.22-INDEPENDENT.md', 'docs/9.0.22', 'nexowatt-eos-admin-repository-entry-v9-0-22.json', 'package.json', 'package-lock.json', 'io-package.json', '.npmrc', '.gitignore', '.gitattributes', 'LICENSE', 'LICENSE-NEXOWATT.md',
9
9
  'docs/start/START_HIER_9.0.1.md', 'docs/start/START_HIER_9.0.2.md', 'docs/start/START_HIER_9.0.3.md', 'docs/start/START_HIER_9.0.4.md', 'docs/start/START_HIER_9.0.5.md', 'docs/start/START_HIER_9.0.6.md', 'docs/start/START_HIER_9.0.7.md', 'docs/start/START_HIER_9.0.8.md', 'docs/start/START_HIER_9.0.9.md', 'docs/start/START_HIER_9.0.10.md', 'docs/start/START_HIER_9.0.11.md', 'docs/start/START_HIER_9.0.12.md', 'docs/start/START_HIER_9.0.13.md', 'docs/start/START_HIER_9.0.14.md', 'docs/start/START_HIER_9.0.15.md', 'docs/start/START_HIER_9.0.16.md', 'docs/start/START_HIER_9.0.17.md', 'docs/start/START_HIER_9.0.18.md', 'docs/start/START_HIER_9.0.19.md', 'docs/start/START_HIER_9.0.20.md','docs/start/START_HIER_9.0.21.md', 'docs/start/START_HIER_9.0.22.md', 'THIRD-PARTY-NOTICES.md', 'THIRD_PARTY_NOTICES.md', 'NEXOWATT_PROPRIETARY_LICENSE.md', 'README.md', 'NEXOWATT_EOS_BUILD_INFO.json',
10
10
  'tasks.mts', 'tsconfig.eos-customer-updates.json', 'ui/tsconfig.eos-updates-ui.json', 'ui/eslint.eos-updates-ui.config.mjs', 'ui/eslint.influx-history-runtime.config.mjs', 'ui/eslint.history-setup-ui.config.mjs', 'ui/tsconfig.influx-history-runtime.json', 'ui/eslint.influx-security.config.mjs', 'ui/tsconfig.influx-security.json', 'ui/eslint.influx-direct.config.mjs', 'ui/tsconfig.influx-direct.json', 'tsconfig.eos-device-ems.json', 'ui/tsconfig.customer-tariff.json', 'ui/tsconfig.customer-tariff-ui.json', 'ui/eslint.customer-tariff.config.mjs', 'ui/eslint.customer-tariff-ui.config.mjs', 'ui/tsconfig.installer-lifecycle.json', 'ui/tsconfig.live-display-ui.json', 'ui/eslint.live-display-ui.config.mjs', 'ui/tsconfig.tariff-display-ui.json', 'ui/eslint.tariff-display-ui.config.mjs', 'ui/tsconfig.storagefarm-dispatch-ui.json', 'ui/eslint.storagefarm-dispatch-ui.config.mjs', 'ui/tsconfig.storagefarm-summary-ui.json', 'ui/eslint.storagefarm-summary-ui.config.mjs', 'ui/tsconfig.power-measurements.json', 'ui/eslint.power-measurements.config.mjs', 'ui/eslint.installer-lifecycle.config.mjs', 'tsconfig.build.json', 'eslint.config.mjs', 'eslint.unified.config.mjs', '.github/workflows/test-and-release.yml',
11
11
  'AGENTS.md', 'modules', 'test', 'src-admin/test', 'src', 'build', 'admin', 'adminWww', 'public', 'packages/eos-license-client', 'deploy',
12
- 'ui/release-manifests', 'ui/main.js', 'ui/lib', 'ui/ems', 'ui/backend', 'ui/build-ts', 'ui/www', 'ui/admin',
12
+ 'ui/release-manifests', 'ui/main.js', 'ui/lib', 'ui/ems', 'ui/backend', 'ui/www', 'ui/admin',
13
13
  'ui/src-ts', 'ui/src-admin-tab/src', 'ui/src-admin-tab/package.json', 'ui/src-admin-tab/package-lock.json',
14
14
  'ui/io-package.json', 'ui/package.json', 'ui/package-lock.json', 'src-admin/src', 'src-admin/public', 'src-admin/package.json',
15
15
  'src-admin/package-lock.json', 'src-admin/build-tools', 'tools/nexowatt-sync-release-version.cjs', 'tools/nexowatt-version-sync-selftest.cjs', 'tools/eos-release-manifest.cjs', 'tools/eos-release-check.cjs', 'tools/eos-prepare-publish.cjs', 'tools/eos-release-evidence.cjs', 'tools/eos-migration-plan.cjs', 'tools/eos-access-diagnostics.cjs', 'tools/eos-coexistence-recovery.cjs',
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Copyright (c) 2026 NexoWatt. All rights reserved.
3
+ * Confidential and Proprietary.
4
+ * Use, modification or distribution without express written permission is prohibited.
5
+ */
6
+ /**
7
+ * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
+ *
9
+ * Quelle: src-ts/runtime-executables/ems/consumers/ovum-mira.ts
10
+ * Quell-Hash: sha256:17cf0153c25d5b054aeab130c8f881a243a8649826396e999a0e5a1076f78640
11
+ * Erzeugung: npm run sync:ts-runtime-executables
12
+ *
13
+ * Zweck:
14
+ * Diese JavaScript-Datei ist das ausführbare Build-Artefakt für ems/consumers/ovum-mira.js.
15
+ * Die fachliche Bearbeitung erfolgt ab 0.7.131 in der TypeScript-Quelle.
16
+ * Ab 0.7.132 sind doppelte Legacy-JS-Bäume wie .nwcore entfernt.
17
+ *
18
+ * Pflege-Regel:
19
+ * 1. Änderung zuerst in src-ts/runtime-executables/ vornehmen.
20
+ * 2. npm run sync:ts-runtime-executables ausführen.
21
+ * 3. npm run test:runtime-executables prüfen.
22
+ */
23
+ 'use strict';
24
+
25
+ const { withActuatorShadowContext, priorityForOwner } = require('../services/actuator-shadow-arbiter');
26
+ const { liveSafetyEnvelope, evaluateFlexibleLoadRequest, commitFlexibleLoadDecision } = require('../services/safety-envelope');
27
+
28
+ const MAX_READING_AGE_MS = 30000;
29
+
30
+ function miraBinding(row, powerId, bindings, slot) {
31
+ const ending = '.aliases.v1.ctrl.pvStatus';
32
+ if (typeof row.miraPvStatusId !== 'string' || !row.miraPvStatusId.endsWith(ending)) return null;
33
+ const base = row.miraPvStatusId.slice(0, -ending.length);
34
+ if (!base || typeof powerId !== 'string' || !powerId.endsWith('.aliases.v1.r.power')
35
+ || row.miraPowerTargetId !== base + '.aliases.v1.ctrl.pvPowerTargetW'
36
+ || row.miraPvStatusReadId !== base + '.aliases.v1.r.pvStatus'
37
+ || row.miraPowerTargetReadId !== base + '.aliases.v1.r.pvPowerTargetW') return null;
38
+ const hsm = bindings?.[base];
39
+ const wpmBase = powerId.slice(0, -'.aliases.v1.r.power'.length);
40
+ const wpm = bindings?.[wpmBase];
41
+ if (row._eosDevice?.baseId !== base || row._eosDevice?.mode !== 'mira'
42
+ || hsm?.deviceTemplateId !== 'heat.ovum.mira.hsm' || hsm?.activationRequested !== true
43
+ || !Number.isSafeInteger(hsm.miraCommissionedMaxW) || hsm.miraCommissionedMaxW <= 0
44
+ || hsm.miraCommissionedMaxW > 10000000 || wpm?.target !== 'consumer' + slot + 'Power') return null;
45
+ return { base, maxW: hsm.miraCommissionedMaxW, mode: row.miraPvStatusId, watts: row.miraPowerTargetId,
46
+ modeRead: row.miraPvStatusReadId, wattsRead: row.miraPowerTargetReadId };
47
+ }
48
+
49
+ async function registerMiraDevice(dp, d) {
50
+ if (!dp || !d.miraBinding || d.miraKeys || d.miraConflict || !d.miraSourcesConfirmed || !d.enabled) return;
51
+ const keys = {};
52
+ for (const [role, direction] of [['mode','out'], ['watts','out'], ['modeRead','in'], ['wattsRead','in']]) {
53
+ const key = 'th.' + d.id + '.mira.' + role;
54
+ await dp.upsert({ key, objectId: d.miraBinding[role], direction, unit: role.startsWith('watts') ? 'W' : '',
55
+ dataType: 'number', deadband: 0 });
56
+ keys[role] = key;
57
+ }
58
+ d.miraKeys = keys;
59
+ d.miraCommands = {};
60
+ }
61
+
62
+ // Read the original controller sample. An outgoing state or a device heartbeat is not register feedback.
63
+ function miraSample(dp, key, now) {
64
+ const ts = key && dp.getVerifiedMeasurementTimestampMs(key, now);
65
+ if (!Number.isFinite(ts) || ts <= 0 || ts > now || now - ts > MAX_READING_AGE_MS) return null;
66
+ const value = dp.getNumber(key, null);
67
+ return typeof value === 'number' && Number.isFinite(value) ? { value, ts } : null;
68
+ }
69
+
70
+ function currentRegister(d, role, sample) {
71
+ const last = d.miraCommands[role];
72
+ return sample && (!last || sample.ts >= last.ts) ? sample.value : null;
73
+ }
74
+
75
+ // One asynchronous device command per tick. Repeated writes use the existing bounded actuator contract.
76
+ async function requestRegister(thermal, d, role, value, sample, now) {
77
+ const id = 'thermal:' + d.id + ':mira:' + role;
78
+ const contract = thermal._actuatorContract;
79
+ const cfg = thermal._contractCfg(d, true);
80
+ const decision = contract.prepare(id, value, now, cfg);
81
+ const actual = currentRegister(d, role, sample);
82
+ const last = d.miraCommands[role];
83
+ if (actual === value && (!last || value === last.value)) return contract.confirmFromReadback(id, value, actual, true, now);
84
+ if (!decision.allowed) return contract.result(id, now);
85
+ const key = d.miraKeys[role];
86
+ const owner = 'thermal.' + d.id;
87
+ const result = await withActuatorShadowContext(thermal.adapter, {
88
+ owner, module: 'thermalControl', priority: priorityForOwner(owner), leaseMs: 20000,
89
+ enforceAuthority: true, releaseAuthority: role === 'mode' && value === 0, kind: 'thermal-mira',
90
+ }, () => thermal.dp.writeNumber(key, value, false));
91
+ // Includes uncertain transport failures: a late pre-command sample must never authorize boost.
92
+ d.miraCommands[role] = { value, ts: now };
93
+ return contract.complete(id, value, result === true, null, actual, now, cfg);
94
+ }
95
+
96
+ function miraSafetyGrant(thermal, d, requestedW, measuredW, now) {
97
+ const adapter = thermal.adapter;
98
+ // The productive EMS always supplies a generation and independent physical NVP measurements.
99
+ if (!adapter?._emsSafetyCycle || measuredW === null || requestedW <= 0) return null;
100
+ const envelope = liveSafetyEnvelope(adapter, thermal.dp, { now, generation: adapter._emsSafetyCycle.generation });
101
+ if (!envelope || !envelope.valid) return null;
102
+ return evaluateFlexibleLoadRequest(adapter, {
103
+ key: 'thermal:' + d.id, app: 'thermal', deviceKey: d.id, requestedW, currentActualW: measuredW,
104
+ currentActualFresh: true, phaseCount: Math.max(1, Math.min(3, Number(envelope.phase?.requiredCount) || 3)),
105
+ voltageV: Number(envelope.phase?.voltageV) || 230, deviceCapW: d.maxPowerW, now,
106
+ });
107
+ }
108
+
109
+ async function regulateMira(thermal, d, options) {
110
+ const now = Date.now();
111
+ const measured = miraSample(thermal.dp, d.pWKey, now);
112
+ const measuredW = measured && measured.value >= 0 ? measured.value : null;
113
+ const result = { applied: false, targetW: 0, usedW: measuredW ?? 0, owned: false, status: 'mira_not_commissioned' };
114
+ if (!d.miraKeys || !d.miraSourcesConfirmed || !d.enabled || d.miraConflict) return result;
115
+ // During manual operation relinquish only a boost that this worker had actually requested.
116
+ if (options.manual && !d.miraBoostIssued) return { ...result, status: 'mira_manual' };
117
+ const mode = miraSample(thermal.dp, d.miraKeys.modeRead, now);
118
+ const watts = miraSample(thermal.dp, d.miraKeys.wattsRead, now);
119
+ const actualMode = currentRegister(d, 'mode', mode);
120
+ const actualWatts = currentRegister(d, 'watts', watts);
121
+ const hasFeedback = !!mode && [0, 1, 2].includes(mode.value) && !!watts && Number.isInteger(watts.value) && watts.value >= 0;
122
+ const requestedW = Math.floor(Math.max(0, Math.min(d.maxPowerW, d.miraBinding.maxW, options.requestedW)));
123
+ const grant = hasFeedback && !options.manual && !thermal._isPara14aActive()
124
+ ? miraSafetyGrant(thermal, d, requestedW, measuredW, now) : null;
125
+ const allowedW = Math.max(0, Math.floor(Math.min(requestedW, grant?.allowedW || 0)));
126
+ const lastWatts = d.miraCommands.watts;
127
+ const lastMode = d.miraCommands.mode;
128
+ const boostPossible = actualMode === 1 || (actualMode === null && lastMode?.value === 1);
129
+ const needsReduction = boostPossible && Math.max(watts?.value || 0, lastWatts?.value || 0) > allowedW;
130
+ let r;
131
+ if (!allowedW || needsReduction) {
132
+ // 0 returns temperature control to MIRA. It neither stops the compressor nor demonstrates a load reduction.
133
+ r = await requestRegister(thermal, d, 'mode', 0, mode, now);
134
+ if (r.confirmed) d.miraBoostIssued = false;
135
+ result.status = r.confirmed ? 'mira_local_control' : 'mira_neutral_' + r.status;
136
+ if (requestedW > 0 && (!hasFeedback || measuredW === null)) result.status = 'mira_missing_feedback_' + result.status;
137
+ } else {
138
+ // A smaller confirmed target may activate while the PV grant is increasing. Never enable a target
139
+ // above the current grant. Updating an already active target still requires fresh HSM readback.
140
+ const staged = actualMode !== 1 && lastWatts?.value > 0 && lastWatts.value <= allowedW;
141
+ const desired = staged ? lastWatts.value : allowedW;
142
+ result.targetW = desired;
143
+ if (actualWatts !== desired || (lastWatts && lastWatts.value !== desired)) {
144
+ r = await requestRegister(thermal, d, 'watts', desired, watts, now);
145
+ result.status = 'mira_target_' + r.status;
146
+ } else {
147
+ d.miraBoostIssued = true;
148
+ r = await requestRegister(thermal, d, 'mode', 1, mode, now);
149
+ result.owned = r.confirmed && !options.boost;
150
+ result.applied = r.confirmed;
151
+ result.status = r.confirmed ? 'mira_pv_readback' : 'mira_pv_' + r.status;
152
+ }
153
+ // Reserve the permitted demand while the two register writes are in flight. Neither the grant
154
+ // nor the MIRA register echoes is promoted to a physical reduction in accepted-power-effects.
155
+ commitFlexibleLoadDecision(thermal.adapter, grant, true);
156
+ result.usedW = Math.max(result.usedW, desired);
157
+ }
158
+ result.accepted = r.accepted;
159
+ result.applied = result.applied || (allowedW === 0 && r.confirmed);
160
+ await thermal._publishThermalContract(d, 'thermal.' + d.id, r);
161
+ return result;
162
+ }
163
+
164
+ module.exports = { miraBinding, registerMiraDevice, regulateMira, miraSample };
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/ems/consumers/sg-ready.ts
10
- * Quell-Hash: sha256:571353cb573a81f3d4e62b26478251c9803acc6ca04c09973bb3e505aa859c4b
10
+ * Quell-Hash: sha256:2fecfb6edca7b71ce554a784fa8d794c840959a7062d7e587b57d4cf735a5b6c
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -163,11 +163,31 @@ async function applySgReady(ctx, consumer, target) {
163
163
  /** @type {true|false|null} */
164
164
  let wroteEn = null;
165
165
 
166
- if (has1) wrote1 = await dp.writeBoolean(sg1Key, !!sg1, false);
167
- if (has2) wrote2 = await dp.writeBoolean(sg2Key, !!sg2, false);
168
- if (enableKey) {
169
- if (!hasEn) wroteEn = false;
170
- else wroteEn = await dp.writeBoolean(enableKey, !!enable, false);
166
+ // null means the registry already holds the requested physical value.
167
+ const write = async (key, present, value) => {
168
+ if (!key) return null;
169
+ if (!present) return false;
170
+ try { return await dp.writeBoolean(key, value, false); }
171
+ catch (_error) { return false; }
172
+ };
173
+ const changingContacts = (sg1Key && dp.getBoolean?.(sg1Key, null) !== sg1)
174
+ || (sg2Key && dp.getBoolean?.(sg2Key, null) !== sg2);
175
+ if (enableKey && (!enable || changingContacts)) wroteEn = await write(enableKey, hasEn, false);
176
+
177
+ if (!enable || wroteEn !== false) {
178
+ wrote1 = await write(sg1Key, has1, sg1);
179
+ // For an energising request never advance to a second contact after an error.
180
+ if (!enable || wrote1 !== false) wrote2 = await write(sg2Key, has2, sg2);
181
+ if (enable && wrote1 !== false && wrote2 !== false && enableKey) {
182
+ wroteEn = await write(enableKey, hasEn, true);
183
+ }
184
+ }
185
+ if (enable && (wrote1 === false || wrote2 === false || wroteEn === false)) {
186
+ // Withdraw the release and the boost request, including the case without a separate release relay.
187
+ // Preserve the failed result even when the fallback writes succeeded.
188
+ await write(enableKey, hasEn, false);
189
+ await write(sg1Key, has1, inv1);
190
+ await write(sg2Key, has2, inv2);
171
191
  }
172
192
  const results = [wrote1, wrote2, wroteEn].filter(v => v !== null && v !== undefined);
173
193
  const anyFalse = results.some(v => v === false);
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/ems/datapoints.ts
10
- * Quell-Hash: sha256:a7d76e01798e64eabbd9228a24fbf096ee890867918a91f9433c71b6540a47af
10
+ * Quell-Hash: sha256:7ef72a2e28ad92af2cebf854183d7a956e937d882398774352c3cc4a1101e742
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -726,11 +726,11 @@ class DatapointRegistry {
726
726
  this.cacheByObjectId.set(id, {
727
727
  val: state.val,
728
728
  q: state.q,
729
- sourceTs: Number.isFinite(stateTs) && stateTs > 0 ? stateTs : 0,
729
+ sourceTs: Number.isFinite(state.ts) && state.ts > 0 ? state.ts : 0,
730
730
  ts: Number.isFinite(stateTs) && stateTs > 0 ? stateTs : receivedTs,
731
731
  lc: Number.isFinite(changeTs) && changeTs > 0 ? changeTs : (Number.isFinite(stateTs) && stateTs > 0 ? stateTs : receivedTs),
732
732
  receivedTs,
733
- ack: !!state.ack,
733
+ ack: state.ack === true,
734
734
  });
735
735
  }
736
736
 
@@ -782,7 +782,15 @@ class DatapointRegistry {
782
782
  return c ? c.val : null;
783
783
  }
784
784
 
785
- /** Liefert den originalen Messwert-Zeitstempel ohne Heartbeat-/Connected-Fallback. */
785
+ /** Nur bestätigte Gerätemessungen mit brauchbarer Qualität dürfen Stellleistung freigeben. */
786
+ getVerifiedMeasurementTimestampMs(key, now = Date.now()) {
787
+ const entry = this.getEntry(key);
788
+ const sample = entry && this.cacheByObjectId.get(entry.srcObjectId || entry.objectId);
789
+ if (!sample || sample.ack !== true || (sample.q !== undefined && sample.q !== 0)) return null;
790
+ return sample.sourceTs > 0 && sample.sourceTs <= now ? sample.sourceTs : null;
791
+ }
792
+
793
+ /** Allgemeiner Cache-Zeitstempel für bestehende Verbraucher. */
786
794
  getMeasurementTimestampMs(key) {
787
795
  const e = this.getEntry(key);
788
796
  if (!e) return null;