iobroker.eos-admin 9.0.30 → 9.0.33

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 (182) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +11 -12
  2. package/README.md +11 -11
  3. package/adminWww/.vite/manifest.json +39 -39
  4. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +111 -110
  5. package/adminWww/apple-touch-icon-eos-v2.png +0 -0
  6. package/adminWww/apple-touch-icon.png +0 -0
  7. package/adminWww/assets/{AdapterUpdateDialog-qC6MANmq.js → AdapterUpdateDialog-DBUqmmyD.js} +1 -1
  8. package/adminWww/assets/{Adapters-C8quekd0.js → Adapters-dDEp7o5h.js} +1 -1
  9. package/adminWww/assets/{ConfigManager-hRZCAWRy.js → ConfigManager-DbqTWi2N.js} +1 -1
  10. package/adminWww/assets/{Enums-Dd0Z2KfV.js → Enums-DjldGElU.js} +1 -1
  11. package/adminWww/assets/{Fields-WfHFtdYw.js → Fields-0GsPCJeU.js} +1 -1
  12. package/adminWww/assets/{Files-DyG14v5-.js → Files-COnUtEbg.js} +1 -1
  13. package/adminWww/assets/{Hosts-3pSXVMxW.js → Hosts-CwU1LujG.js} +1 -1
  14. package/adminWww/assets/{Instances-DT6fp_TN.js → Instances-CUX5mxMQ.js} +1 -1
  15. package/adminWww/assets/{Intro-C6pMFhbu.js → Intro-BhQmHn3A.js} +1 -1
  16. package/adminWww/assets/{Logs-suepwNkZ.js → Logs-B5SpNqHq.js} +1 -1
  17. package/adminWww/assets/{Objects-CpjVeEjv.js → Objects-COg_cFkz.js} +1 -1
  18. package/adminWww/assets/{Overview-CxZJgF7X.js → Overview-CitzUjBF.js} +1 -1
  19. package/adminWww/assets/{State-CUsia7sz.js → State-D5ljzf-T.js} +1 -1
  20. package/adminWww/assets/{UsedResources-C3zr7pM8.js → UsedResources-BY_NF2wB.js} +1 -1
  21. package/adminWww/assets/{Users-BoBSUBkO.js → Users-Cu93_-VF.js} +1 -1
  22. package/adminWww/assets/{bootstrap-CM9qXoc1.js → bootstrap-Dwfxhm2V.js} +3 -3
  23. package/adminWww/assets/{hostInit-BQPg9kSQ.js → hostInit-3BbTwhaZ.js} +1 -1
  24. package/adminWww/assets/{icons-material-CDhwkQ0o.js → icons-material-DjqX0l_7.js} +1 -1
  25. package/adminWww/assets/{index-BrXN_pu2.js → index-nddph2Sl.js} +2 -2
  26. package/adminWww/assets/{installSVGRenderer-BEgWxsNI.js → installSVGRenderer-CPDIwFAL.js} +1 -1
  27. package/adminWww/assets/{mf-entry-bootstrap-0-3ef6056c.js → mf-entry-bootstrap-0-d1f0f40f.js} +2 -2
  28. package/adminWww/index.html +24 -24
  29. package/adminWww/mf-manifest.json +1 -1
  30. package/adminWww/mf-stats.json +1 -1
  31. package/adminWww/remoteEntry-eos-9.0.33.js +12 -0
  32. package/adminWww/remoteEntry.js +1 -1
  33. package/build/lib/eosUiProcess.js +31 -14
  34. package/build/lib/eosUiProcess.js.map +1 -1
  35. package/build/lib/eosUiProcessRpc.js +3 -1
  36. package/build/lib/eosUiProcessRpc.js.map +1 -1
  37. package/build/lib/eosUiProcessWorker.js +6 -4
  38. package/build/lib/eosUiProcessWorker.js.map +1 -1
  39. package/build/lib/web.js +9 -8
  40. package/build/lib/web.js.map +1 -1
  41. package/docs/README.md +3 -2
  42. package/docs/reports/unified-9.0.31/PRUEFBERICHT.md +22 -0
  43. package/docs/reports/unified-9.0.31/PRUEFERGEBNISSE.json +112 -0
  44. package/docs/reports/unified-9.0.31/raw/INDEX.json +102 -0
  45. package/docs/reports/unified-9.0.31/raw/backend.log +5 -0
  46. package/docs/reports/unified-9.0.31/raw/branding-build-node22.log +59 -0
  47. package/docs/reports/unified-9.0.31/raw/branding-node24.log +17 -0
  48. package/docs/reports/unified-9.0.31/raw/frontend.log +151 -0
  49. package/docs/reports/unified-9.0.31/raw/https-build-node22.log +235 -0
  50. package/docs/reports/unified-9.0.31/raw/https-node24.log +46 -0
  51. package/docs/reports/unified-9.0.31/raw/installer.log +26 -0
  52. package/docs/reports/unified-9.0.31/raw/lint.log +5 -0
  53. package/docs/reports/unified-9.0.31/raw/modules.log +5 -0
  54. package/docs/reports/unified-9.0.31/raw/node22-tests-final.log +17170 -0
  55. package/docs/reports/unified-9.0.31/raw/node22-version.log +1 -0
  56. package/docs/reports/unified-9.0.31/raw/node24-tests-final.log +2862 -0
  57. package/docs/reports/unified-9.0.31/raw/node24-version.log +1 -0
  58. package/docs/reports/unified-9.0.31/raw/typecheck.log +5 -0
  59. package/docs/reports/unified-9.0.31/raw/ui-runtime.log +8 -0
  60. package/docs/reports/unified-9.0.31/raw/web-lint.log +0 -0
  61. package/docs/reports/unified-9.0.32/PRUEFBERICHT.md +34 -0
  62. package/docs/reports/unified-9.0.32/PRUEFERGEBNISSE.json +112 -0
  63. package/docs/reports/unified-9.0.32/raw/INDEX.json +102 -0
  64. package/docs/reports/unified-9.0.32/raw/backend.log +5 -0
  65. package/docs/reports/unified-9.0.32/raw/browser-cadence-headless.json +63 -0
  66. package/docs/reports/unified-9.0.32/raw/browser-flow-headless.json +328 -0
  67. package/docs/reports/unified-9.0.32/raw/focused.log +67 -0
  68. package/docs/reports/unified-9.0.32/raw/frontend.log +151 -0
  69. package/docs/reports/unified-9.0.32/raw/installer.log +26 -0
  70. package/docs/reports/unified-9.0.32/raw/lint.log +5 -0
  71. package/docs/reports/unified-9.0.32/raw/modules.log +5 -0
  72. package/docs/reports/unified-9.0.32/raw/node22-tests-final.log +17212 -0
  73. package/docs/reports/unified-9.0.32/raw/node22-version.log +1 -0
  74. package/docs/reports/unified-9.0.32/raw/node24-tests-final.log +2869 -0
  75. package/docs/reports/unified-9.0.32/raw/node24-version.log +1 -0
  76. package/docs/reports/unified-9.0.32/raw/sbom.log +2 -0
  77. package/docs/reports/unified-9.0.32/raw/typecheck.log +5 -0
  78. package/docs/reports/unified-9.0.32/raw/ui-runtime.log +8 -0
  79. package/docs/reports/unified-9.0.32/raw/version-parity-928-929.log +6 -0
  80. package/docs/reports/unified-9.0.33/PRUEFBERICHT.md +60 -0
  81. package/docs/reports/unified-9.0.33/PRUEFERGEBNISSE.json +112 -0
  82. package/docs/reports/unified-9.0.33/raw/INDEX.json +272 -0
  83. package/docs/reports/unified-9.0.33/raw/backend.log +5 -0
  84. package/docs/reports/unified-9.0.33/raw/browser/UI_REVIEW.json +147 -0
  85. package/docs/reports/unified-9.0.33/raw/browser/admin-bundle.log +136 -0
  86. package/docs/reports/unified-9.0.33/raw/browser/eos-backup-settings-browser.log +67 -0
  87. package/docs/reports/unified-9.0.33/raw/browser/eos-customer-tariff-startup-browser.log +43 -0
  88. package/docs/reports/unified-9.0.33/raw/browser/eos-energyflow-browser-smoke.log +438 -0
  89. package/docs/reports/unified-9.0.33/raw/browser/eos-energyflow-cadence-browser-10s.log +108 -0
  90. package/docs/reports/unified-9.0.33/raw/browser/eos-evcs-delete-browser.log +1 -0
  91. package/docs/reports/unified-9.0.33/raw/browser/eos-history-setup-browser-smoke.log +49 -0
  92. package/docs/reports/unified-9.0.33/raw/browser/eos-kiosk-browser.log +59 -0
  93. package/docs/reports/unified-9.0.33/raw/browser/eos-ocpp-admin-browser.log +71 -0
  94. package/docs/reports/unified-9.0.33/raw/browser/eos-ocpp-installer-discovery-browser.log +11 -0
  95. package/docs/reports/unified-9.0.33/raw/browser/eos-pwa-trust-browser.log +35 -0
  96. package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-controls-browser.log +78 -0
  97. package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-health-browser.log +49 -0
  98. package/docs/reports/unified-9.0.33/raw/browser/eos-runtime-login-browser.log +34 -0
  99. package/docs/reports/unified-9.0.33/raw/browser/smarthome.log +46 -0
  100. package/docs/reports/unified-9.0.33/raw/browser-ten-seconds.json +108 -0
  101. package/docs/reports/unified-9.0.33/raw/changed-test-coverage.json +116 -0
  102. package/docs/reports/unified-9.0.33/raw/connected-control-node22.jsonl +42 -0
  103. package/docs/reports/unified-9.0.33/raw/connected-control-summary-node22.json +103 -0
  104. package/docs/reports/unified-9.0.33/raw/connected-control-summary.json +103 -0
  105. package/docs/reports/unified-9.0.33/raw/connected-control.jsonl +42 -0
  106. package/docs/reports/unified-9.0.33/raw/display-ui-node22.log +162 -0
  107. package/docs/reports/unified-9.0.33/raw/display-ui.log +35 -0
  108. package/docs/reports/unified-9.0.33/raw/frontend.log +151 -0
  109. package/docs/reports/unified-9.0.33/raw/git-delivery-fix.log +10 -0
  110. package/docs/reports/unified-9.0.33/raw/installer.log +26 -0
  111. package/docs/reports/unified-9.0.33/raw/license-central-node24.log +173 -0
  112. package/docs/reports/unified-9.0.33/raw/lint-final.log +45 -0
  113. package/docs/reports/unified-9.0.33/raw/modules.log +5 -0
  114. package/docs/reports/unified-9.0.33/raw/node22-npm-version.log +1 -0
  115. package/docs/reports/unified-9.0.33/raw/node22-tests-final.log +17646 -0
  116. package/docs/reports/unified-9.0.33/raw/node22-version.log +1 -0
  117. package/docs/reports/unified-9.0.33/raw/node24-npm-version.log +1 -0
  118. package/docs/reports/unified-9.0.33/raw/node24-tests-final.log +2941 -0
  119. package/docs/reports/unified-9.0.33/raw/node24-version.log +1 -0
  120. package/docs/reports/unified-9.0.33/raw/process-final-node22.log +220 -0
  121. package/docs/reports/unified-9.0.33/raw/process-final-node24.log +110 -0
  122. package/docs/reports/unified-9.0.33/raw/ram-picker.jsonl +12 -0
  123. package/docs/reports/unified-9.0.33/raw/reg-combined-node22.log +622 -0
  124. package/docs/reports/unified-9.0.33/raw/reg-combined.log +108 -0
  125. package/docs/reports/unified-9.0.33/raw/sbom-final.log +8 -0
  126. package/docs/reports/unified-9.0.33/raw/tariff-update-all-final-node22.log +1185 -0
  127. package/docs/reports/unified-9.0.33/raw/typecheck-final.log +5 -0
  128. package/docs/reports/unified-9.0.33/raw/ui-functional-node24.log +430 -0
  129. package/docs/reports/unified-9.0.33/raw/ui-runtime-final-verification.log +1 -0
  130. package/docs/reports/unified-9.0.33/raw/update-controller-standard-7-2-5.log +4 -0
  131. package/docs/reports/unified-9.0.33/raw/worker-memory-eos933.log +12 -0
  132. package/docs/reports/unified-9.0.33/raw/worker-memory-flow932.log +12 -0
  133. package/docs/start/START_HIER_9.0.31.md +16 -0
  134. package/docs/start/START_HIER_9.0.32.md +16 -0
  135. package/docs/start/START_HIER_9.0.33.md +32 -0
  136. package/io-package.json +16 -16
  137. package/package.json +10 -5
  138. package/public/eos-tls/trust.html +1 -1
  139. package/release-manifests/unified/build-environment.cdx.json +6 -6
  140. package/release-manifests/unified/files.json +259 -157
  141. package/release-manifests/unified/frontend.cdx.json +6 -6
  142. package/release-manifests/unified/installer.cdx.json +6 -6
  143. package/release-manifests/unified/obsolete-admin-assets.json +341 -88
  144. package/release-manifests/unified/runtime.cdx.json +26 -26
  145. package/release-manifests/unified/validation.json +15 -15
  146. package/tools/eos-release-manifest.cjs +2 -2
  147. package/ui/ems/consumers/sg-ready.js +26 -6
  148. package/ui/ems/datapoints.js +12 -4
  149. package/ui/ems/modules/charging-management.js +58 -67
  150. package/ui/ems/modules/core-limits.js +59 -36
  151. package/ui/ems/modules/prime-mover-control.js +141 -29
  152. package/ui/ems/modules/storage-control.js +31 -38
  153. package/ui/ems/modules/storage-mapping.js +14 -13
  154. package/ui/ems/modules/tarif-vis.js +38 -56
  155. package/ui/ems/services/measurement-freshness.js +58 -21
  156. package/ui/ems/services/safety-envelope.js +13 -6
  157. package/ui/io-package.json +13 -1
  158. package/ui/lib/datapoint-picker.js +27 -20
  159. package/ui/lib/eos-presentation-routes.js +2 -5
  160. package/ui/lib/tariff-price.js +7 -1
  161. package/ui/lib/ts-mirrors/ems/core-limits/core-runtime.js +5 -1
  162. package/ui/lib/ui-access-policy.js +12 -3
  163. package/ui/main.js +280 -190
  164. package/ui/package.json +4 -3
  165. package/ui/www/app.js +207 -87
  166. package/ui/www/ems-apps.html +1 -1
  167. package/ui/www/ems-apps.js +3 -2
  168. package/ui/www/energy-ledger.html +1 -1
  169. package/ui/www/evcs.html +1 -1
  170. package/ui/www/history.html +1 -1
  171. package/ui/www/index.html +2 -1
  172. package/ui/www/live-display.js +38 -4
  173. package/ui/www/logic.html +1 -1
  174. package/ui/www/login.html +1 -1
  175. package/ui/www/manifest.webmanifest +2 -2
  176. package/ui/www/power-measurements.js +28 -3
  177. package/ui/www/settings.html +1 -1
  178. package/ui/www/simulation.html +1 -1
  179. package/ui/www/smarthome-config.html +1 -1
  180. package/ui/www/smarthome.html +1 -1
  181. package/ui/www/storagefarm.html +1 -1
  182. package/adminWww/remoteEntry-eos-9.0.30.js +0 -12
@@ -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:da70298e-9e1a-4d31-9196-c4ffd65dc39a",
5
+ "serialNumber": "urn:uuid:f241324e-fb78-49ad-a12f-7f63ab355f10",
6
6
  "version": 2,
7
7
  "metadata": {
8
- "timestamp": "2026-11-26T09:57:27.766Z",
8
+ "timestamp": "2026-11-26T12:44:24.927Z",
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.30",
22
+ "bom-ref": "iobroker.eos-admin@9.0.33",
23
23
  "type": "library",
24
24
  "name": "iobroker.eos-admin",
25
- "version": "9.0.30",
25
+ "version": "9.0.33",
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.30",
29
+ "purl": "pkg:npm/iobroker.eos-admin@9.0.33",
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.30",
11925
+ "bom-ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.33",
11926
11926
  "type": "library",
11927
11927
  "name": "@iobroker/webserver",
11928
- "version": "3.4.0+nexowatt.9.0.30",
11928
+ "version": "3.4.0+nexowatt.9.0.33",
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.30",
12005
+ "bom-ref": "nexowatt:integrated:devices@9.0.33",
12006
12006
  "name": "NexoWatt EOS integrated devices",
12007
- "version": "9.0.30",
12007
+ "version": "9.0.33",
12008
12008
  "scope": "required",
12009
12009
  "licenses": [
12010
12010
  {
@@ -12046,9 +12046,9 @@
12046
12046
  },
12047
12047
  {
12048
12048
  "type": "library",
12049
- "bom-ref": "nexowatt:integrated:eebus@9.0.30",
12049
+ "bom-ref": "nexowatt:integrated:eebus@9.0.33",
12050
12050
  "name": "NexoWatt EOS integrated eebus",
12051
- "version": "9.0.30",
12051
+ "version": "9.0.33",
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.30",
12093
+ "bom-ref": "nexowatt:integrated:backup@9.0.33",
12094
12094
  "name": "NexoWatt EOS integrated backup",
12095
- "version": "9.0.30",
12095
+ "version": "9.0.33",
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.30",
12144
+ "bom-ref": "nexowatt:integrated:ocpp@9.0.33",
12145
12145
  "name": "NexoWatt EOS integrated ocpp",
12146
- "version": "9.0.30",
12146
+ "version": "9.0.33",
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.30",
12196
+ "ref": "iobroker.eos-admin@9.0.33",
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.30",
12234
- "nexowatt:integrated:devices@9.0.30",
12235
- "nexowatt:integrated:eebus@9.0.30",
12236
- "nexowatt:integrated:backup@9.0.30",
12237
- "nexowatt:integrated:ocpp@9.0.30"
12233
+ "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.33",
12234
+ "nexowatt:integrated:devices@9.0.33",
12235
+ "nexowatt:integrated:eebus@9.0.33",
12236
+ "nexowatt:integrated:backup@9.0.33",
12237
+ "nexowatt:integrated:ocpp@9.0.33"
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.30",
14818
+ "ref": "nexowatt:vendored:webserver@3.4.0+nexowatt.9.0.33",
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.30",
14826
+ "ref": "nexowatt:integrated:devices@9.0.33",
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.30",
14835
+ "ref": "nexowatt:integrated:eebus@9.0.33",
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.30",
14842
+ "ref": "nexowatt:integrated:backup@9.0.33",
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.30",
14854
+ "ref": "nexowatt:integrated:ocpp@9.0.33",
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.30",
3
+ "version": "9.0.33",
4
4
  "snapshot": {
5
5
  "algorithm": "SHA-256",
6
- "files": 6054,
7
- "sha256": "9de5bed18e5734d1ef0c714928fb416a78692004da8be0e8c9727e2c964c9055"
6
+ "files": 6156,
7
+ "sha256": "2456cacac3549f4fd19dbc56a160ff1299f03e8bcaf48aced00dd65a5e16c28c"
8
8
  },
9
9
  "evidence": {
10
10
  "index": {
11
- "path": "docs/reports/unified-9.0.30/raw/INDEX.json",
12
- "sha256": "7144e8e1c17e0a9505ae324182cbacc7210c87e8062dba4660a7a18dd3a8c0ba"
11
+ "path": "docs/reports/unified-9.0.33/raw/INDEX.json",
12
+ "sha256": "3a5d2ed28e28d31c6a2ad022acc73faf432d714972e44e0119a5cbac1a20aa75"
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": 2818,
21
+ "pass": 2816,
22
22
  "fail": 0,
23
23
  "skipped": 2,
24
24
  "cancelled": 0
25
25
  },
26
26
  "log": {
27
- "path": "docs/reports/unified-9.0.30/raw/node22-tests-final.log",
28
- "sha256": "cfcd7c5f37026c5c89128ca3794184d332ebfbe11924f97f964d4418591f6e97"
27
+ "path": "docs/reports/unified-9.0.33/raw/node22-tests-final.log",
28
+ "sha256": "9fff0172129db7f96e03ba15a592ef6db05846a882ead973e1a4af2efe562d19"
29
29
  },
30
30
  "runtime": {
31
- "path": "docs/reports/unified-9.0.30/raw/node22-version.log",
31
+ "path": "docs/reports/unified-9.0.33/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": 2818,
41
+ "pass": 2816,
42
42
  "fail": 0,
43
43
  "skipped": 2,
44
44
  "cancelled": 0
45
45
  },
46
46
  "log": {
47
- "path": "docs/reports/unified-9.0.30/raw/node24-tests-final.log",
48
- "sha256": "5b89a445ba75e5234c2b222201c63f87aef7551880d32343adf02139c0ea16dc"
47
+ "path": "docs/reports/unified-9.0.33/raw/node24-tests-final.log",
48
+ "sha256": "216fcd798241431af4d7f41299f17543ea2df3cd4df09bd0e9b25acd12245d46"
49
49
  },
50
50
  "runtime": {
51
- "path": "docs/reports/unified-9.0.30/raw/node24-version.log",
51
+ "path": "docs/reports/unified-9.0.33/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.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.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',
@@ -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;
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/ems/modules/charging-management.ts
10
- * Quell-Hash: sha256:305c05010a6328ee034469a14398167a917e0732b3809828afc09e2090844af0
10
+ * Quell-Hash: sha256:52f80d763e27fa9547b52142ae16a79e63485d77d4f8b693a2f625c98966bd15
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -35,6 +35,7 @@
35
35
  'use strict';
36
36
 
37
37
  const { BaseModule } = require('./base');
38
+ const { tariffPriceNumber, verifiedTariffAgeMs } = require('../../lib/tariff-price');
38
39
  const { EMS_CONTROL_FIELDS, checkedEmsControlState } = require('../../lib/ems-control-values');
39
40
  const { readFlowMeasurement } = require('../../lib/flow-measurement');
40
41
  const { resolveOcppLimitFeedback, resolveOcppRuntimeAlive, ocppConnectionConfirmed, ocppLeaseCapability, OcppControlLeases } = require('../../lib/ocpp-limit-feedback');
@@ -1119,8 +1120,8 @@ function resolveChargingPvBudgetControl({
1119
1120
  const localRaw = Math.max(0, Number(localRawW) || 0);
1120
1121
  const localEffective = Math.max(0, Number(localEffectiveW) || 0);
1121
1122
  const rt = centralBudget && typeof centralBudget === 'object' ? centralBudget : null;
1122
- const ts = rt ? Number(rt.ts) : NaN;
1123
- const ageMs = Number.isFinite(ts) && ts > 0 ? Math.max(0, Number(now) - ts) : null;
1123
+ const ts = rt?.ts;
1124
+ const ageMs = Number.isFinite(ts) && ts > 0 && ts <= now ? now - ts : null;
1124
1125
  const fresh = ageMs !== null && ageMs <= Math.max(1000, Number(maxAgeMs) || 30000);
1125
1126
  const pvGate = rt && rt.gates && rt.gates.pv && typeof rt.gates.pv === 'object'
1126
1127
  ? rt.gates.pv
@@ -1129,15 +1130,15 @@ function resolveChargingPvBudgetControl({
1129
1130
  ? rt.gates.pvAllocation
1130
1131
  : null;
1131
1132
 
1132
- if (fresh && pvGate) {
1133
- const gateEffectiveW = Math.max(0, Number(pvGate.effectiveW) || 0);
1134
- const allocationTotalW = allocation && Number.isFinite(Number(allocation.totalW))
1135
- ? Math.max(0, Number(allocation.totalW))
1136
- : gateEffectiveW;
1137
- const allocationCapW = allocation && Number.isFinite(Number(allocation.evcsCapW))
1138
- ? Math.max(0, Number(allocation.evcsCapW))
1139
- : allocationTotalW;
1140
- const allocationLimitedW = Math.max(0, Math.min(allocationTotalW, allocationCapW));
1133
+ const unverifiedStorage = rt?.raw?.pvBudgetPhysicalSource === 'storage-flow-unverified';
1134
+ const nonnegativeWatts = value => Number.isFinite(value) && value >= 0;
1135
+ const validGrant = pvGate && nonnegativeWatts(pvGate.effectiveW)
1136
+ && (pvGate.rawW === undefined || (nonnegativeWatts(pvGate.rawW) && pvGate.effectiveW <= pvGate.rawW))
1137
+ && (!allocation || (nonnegativeWatts(allocation.totalW) && nonnegativeWatts(allocation.evcsCapW)));
1138
+ if (fresh && validGrant && !unverifiedStorage) {
1139
+ const gateEffectiveW = pvGate.effectiveW;
1140
+ const allocationTotalW = allocation ? Math.min(gateEffectiveW, allocation.totalW) : gateEffectiveW;
1141
+ const allocationLimitedW = allocation ? Math.min(allocationTotalW, allocation.evcsCapW) : allocationTotalW;
1141
1142
 
1142
1143
  // Zwei zentrale PV-Grants sind absichtlich getrennt:
1143
1144
  // - physicalGrantW: gesamtes aktuell physikalisch verfuegbares PV-Budget.
@@ -1192,44 +1193,24 @@ function resolveChargingPvBudgetControl({
1192
1193
  };
1193
1194
  }
1194
1195
 
1195
- // In der aktuellen Adaptergeneration ist Core-Limits immer vor dem
1196
- // Lademanagement aktiv. Existiert die zentrale Runtime, ist sie daher auch
1197
- // bei einem kurzzeitig fehlenden/stalen Snapshot die einzige Quelle. Ein
1198
- // Rueckfall auf die lokale EVCS-PV-Rekonstruktion wuerde genau das zweite
1199
- // Parallelbudget erzeugen, das Speicher und Wallbox gegeneinander regeln
1200
- // laesst. In diesem Fehlerfall wird PV-Laden sicher blockiert, bis der Core
1201
- // wieder einen frischen Grant liefert.
1202
- if (rt) {
1203
- return {
1204
- authoritative: true,
1205
- blocked: true,
1206
- source: fresh ? 'central-ems-budget-missing-pv-gate' : 'central-ems-budget-stale-blocked',
1207
- ageMs,
1208
- rawW: 0,
1209
- totalW: 0,
1210
- evcsCapW: 0,
1211
- allocation: allocation || null,
1212
- localRawW: localRaw,
1213
- localEffectiveW: localEffective,
1214
- mismatchW: -localEffective,
1215
- centralGrantW: 0,
1216
- };
1217
- }
1218
-
1219
- // Nur fuer sehr alte Laufzeiten ohne Core-Limits bleibt der lokale Wert als
1220
- // Kompatibilitaetsfallback erhalten. Im regulaeren NexoWatt-EMS wird dieser
1221
- // Zweig wegen der festen Modulreihenfolge nicht verwendet.
1196
+ // Only the current shared grant can reserve PV for a controllable load.
1197
+ // A local house estimate cannot replace it during startup or recovery.
1222
1198
  return {
1223
- authoritative: false,
1224
- source: 'local-fallback-no-central-budget',
1199
+ authoritative: true,
1200
+ blocked: true,
1201
+ source: !rt ? 'central-ems-budget-missing'
1202
+ : !fresh ? 'central-ems-budget-stale-blocked'
1203
+ : unverifiedStorage ? 'storage-flow-unverified'
1204
+ : pvGate ? 'central-ems-budget-invalid-pv-grant' : 'central-ems-budget-missing-pv-gate',
1225
1205
  ageMs,
1226
- rawW: localRaw,
1227
- totalW: localEffective,
1228
- evcsCapW: localEffective,
1229
- allocation: null,
1206
+ rawW: 0,
1207
+ totalW: 0,
1208
+ evcsCapW: 0,
1209
+ allocation,
1230
1210
  localRawW: localRaw,
1231
1211
  localEffectiveW: localEffective,
1232
- mismatchW: 0,
1212
+ mismatchW: -localEffective,
1213
+ centralGrantW: 0,
1233
1214
  };
1234
1215
  }
1235
1216
  /** Code-Teil: toBool – Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen. */
@@ -8284,8 +8265,7 @@ class ChargingManagementModule extends BaseModule {
8284
8265
  tariffActive = stTariffActive ? !!stTariffActive.val : false;
8285
8266
  tariffDynamicStale = stTariffStale ? !!stTariffStale.val : false;
8286
8267
  tariffCurrentState = stTariffState ? String(stTariffState.val || 'unknown').trim().toLowerCase().replace(/ü/g, 'ue') : 'unknown';
8287
- const currentPrice = stTariffPrice ? Number(stTariffPrice.val) : NaN;
8288
- tariffCurrentPriceEurKwh = Number.isFinite(currentPrice) ? currentPrice : null;
8268
+ tariffCurrentPriceEurKwh = tariffPriceNumber(stTariffPrice?.val);
8289
8269
  tariffCurrentPriceFresh = stTariffFresh ? !!stTariffFresh.val : (tariffCurrentPriceEurKwh !== null && !tariffDynamicStale);
8290
8270
  if (nfEnabled && nfMode === 'HT') gridChargeAllowedRaw = false;
8291
8271
  else if (nfEnabled && nfMode === 'NT') {
@@ -8431,13 +8411,14 @@ class ChargingManagementModule extends BaseModule {
8431
8411
  const delta = (ref !== null && exp !== null) ? Math.max(0, exp - ref) : null;
8432
8412
  const cheapManual = (ref !== null && delta !== null) ? (ref - delta) : null;
8433
8413
 
8434
- // Price curves from provider mapping (via dp registry)
8435
- let rawToday = null;
8436
- let rawTomorrow = null;
8437
- if (this.dp && typeof this.dp.getEntry === 'function') {
8438
- if (this.dp.getEntry('tarif.pricesTodayJson')) rawToday = this.dp.getRaw('tarif.pricesTodayJson');
8439
- if (this.dp.getEntry('tarif.pricesTomorrowJson')) rawTomorrow = this.dp.getRaw('tarif.pricesTomorrowJson');
8440
- }
8414
+ // The deadline planner accepts the same priced inputs as the
8415
+ // active tariff policy, including each curve's source timestamp.
8416
+ const ageLimit = this.adapter._tarifVis?.curveMaxAgeMs;
8417
+ const readCurve = key => Number.isFinite(ageLimit) && verifiedTariffAgeMs(this.dp, key, now) <= ageLimit
8418
+ ? this.dp.getRaw(key) : null;
8419
+ const rawToday = readCurve('tarif.pricesTodayJson');
8420
+ const rawTomorrow = readCurve('tarif.pricesTomorrowJson');
8421
+ const hasCurrentPrice = active && tariffCurrentPriceFresh && !tariffDynamicStale && tariffCurrentPriceEurKwh !== null;
8441
8422
 
8442
8423
  const curve = [
8443
8424
  ...parsePriceCurve(rawToday),
@@ -8453,6 +8434,10 @@ class ChargingManagementModule extends BaseModule {
8453
8434
  if (!Number.isFinite(startMs) || !Number.isFinite(endMs) || endMs <= now) continue;
8454
8435
  if (startMs >= horizonEndMs) break;
8455
8436
 
8437
+ if (hasCurrentPrice && startMs <= now) {
8438
+ segs.push({ startMs, endMs, priceEurKwh: tariffCurrentPriceEurKwh, state: tariffCurrentState, allowGrid: gridChargeAllowedRaw });
8439
+ continue;
8440
+ }
8456
8441
  const p = it.priceEurKwh;
8457
8442
 
8458
8443
  // Approximate tariff state for planning (no hysteresis; conservative enough).
@@ -8475,8 +8460,9 @@ class ChargingManagementModule extends BaseModule {
8475
8460
  segs.push({ startMs, endMs, priceEurKwh: p, state, allowGrid });
8476
8461
  }
8477
8462
 
8478
- if (active && tariffCurrentPriceFresh && tariffCurrentPriceEurKwh !== null && !segs.some((segment) => segment.startMs <= now && segment.endMs > now)) {
8479
- segs.unshift({ startMs: now, endMs: Math.min(horizonEndMs, now + 15 * 60000), priceEurKwh: tariffCurrentPriceEurKwh, state: tariffCurrentState, allowGrid: gridChargeAllowedRaw });
8463
+ if (hasCurrentPrice && !segs.some(segment => segment.startMs <= now)) {
8464
+ const endMs = Math.min(horizonEndMs, now + 15 * 60000, segs[0]?.startMs ?? Infinity);
8465
+ segs.unshift({ startMs: now, endMs, priceEurKwh: tariffCurrentPriceEurKwh, state: tariffCurrentState, allowGrid: gridChargeAllowedRaw });
8480
8466
  }
8481
8467
  tariffForecast = {
8482
8468
  active,
@@ -8600,7 +8586,7 @@ class ChargingManagementModule extends BaseModule {
8600
8586
  // Der nächste Core-Zyklus liest diese ORIGINALEN Leistungsmesswerte.
8601
8587
  // Für PV-Rekonstruktion braucht er die volle Aufnahme, auch im Boost:
8602
8588
  // Der Netzanteil wird bereits einmal über den signierten NVP abgezogen.
8603
- this.adapter._zeroExportEvcsMeters = { ts: now,
8589
+ this.adapter._zeroExportEvcsMeters = { ts: now, pvBaseByKey: new Map(),
8604
8590
  keys: wbList.filter(w => w.controlAvailable === true && w.actualPowerWId).map(w => `cm.wb.${w.safe}.pW`) };
8605
8591
  for (const w of wbList) {
8606
8592
  let override = normalizeWallboxModeOverride(w.userMode);
@@ -8878,6 +8864,7 @@ class ChargingManagementModule extends BaseModule {
8878
8864
  let pvBudgetLocalEstimateWState = 0;
8879
8865
  let pvBudgetMismatchWState = 0;
8880
8866
  let pvBudgetCentralAuthoritative = false;
8867
+ let centralPvInputsUsable = false;
8881
8868
 
8882
8869
  if (needPvBudget || needPvDiagnostics) {
8883
8870
  // PV-Überschuss sauber ermitteln:
@@ -8924,12 +8911,16 @@ class ChargingManagementModule extends BaseModule {
8924
8911
  // Boost bleibt ausserhalb der Kundenaufteilung. Kommandowerte werden hier bewusst
8925
8912
  // nicht verwendet; der NVP bildet den realen Leistungsfluss ab.
8926
8913
  const effectiveMode = String(w.effectiveMode || '').trim().toLowerCase();
8914
+ const meterKey = `cm.wb.${w.safe}.pW`;
8915
+ const pvBases = this.adapter._zeroExportEvcsMeters.pvBaseByKey;
8927
8916
  if ((effectiveMode === 'normal' || effectiveMode === 'auto')
8928
8917
  && normalizeWallboxModeOverride(w.userMode) === 'auto' && w.meterStale !== true) {
8929
8918
  pvEvcsPhysicalPvManagedW += a;
8930
8919
  pvEvcsAutoPriorityMeasuredW += a;
8920
+ pvBases.set(meterKey, { id: w.actualPowerWId, baseW: 0 });
8931
8921
  } else if (effectiveMode === 'pv') {
8932
8922
  pvEvcsPhysicalPvManagedW += a;
8923
+ pvBases.set(meterKey, { id: w.actualPowerWId, baseW: 0 });
8933
8924
  } else if (effectiveMode === 'minpv') {
8934
8925
  // Min+PV-Grundlast kommt aus dem normalen Gesamt-/Netzbudget.
8935
8926
  // Nur der Anteil oberhalb der technischen Mindestleistung darf
@@ -8943,6 +8934,7 @@ class ChargingManagementModule extends BaseModule {
8943
8934
  : 0,
8944
8935
  );
8945
8936
  pvEvcsPhysicalPvManagedW += Math.max(0, a - Math.min(a, minPvPhysicalBaseW));
8937
+ pvBases.set(meterKey, { id: w.actualPowerWId, baseW: minPvPhysicalBaseW });
8946
8938
  }
8947
8939
 
8948
8940
  const prevCmd = (this._lastCmdTargetW && typeof this._lastCmdTargetW.get === 'function')
@@ -9001,7 +8993,7 @@ class ChargingManagementModule extends BaseModule {
9001
8993
  let centralStorageFlowUsed = false;
9002
8994
  try {
9003
8995
  const flow = (this.adapter && typeof this.adapter._nwResolveBatteryFlowFromCache === 'function')
9004
- ? this.adapter._nwResolveBatteryFlowFromCache({ maxAgeMs: storageFlowMaxAgeMs, deadbandW: 25 })
8996
+ ? this.adapter._nwResolveBatteryFlowFromCache({ now, maxAgeMs: storageFlowMaxAgeMs, deadbandW: 25, observe: true, strictStale: true })
9005
8997
  : null;
9006
8998
  if (flow && typeof flow === 'object') {
9007
8999
  centralStorageFlowUsed = true;
@@ -9105,14 +9097,12 @@ class ChargingManagementModule extends BaseModule {
9105
9097
  : pvEvcsActualW;
9106
9098
  const baseLoadNoEvW = Math.max(0, loadTotalDirectW - evcsForLoadW);
9107
9099
  pvSurplusNoEvW = Math.max(0, pvDirectW - baseLoadNoEvW);
9108
- gridImportNoEvW = Math.max(0, baseLoadNoEvW - pvDirectW);
9109
9100
  } else if (typeof gridW === 'number' && Number.isFinite(gridW)) {
9110
9101
  // Fallback-Rekonstruktion ohne direkte PV-/Verbrauchs-DPs. Wir rechnen
9111
9102
  // sowohl EVCS als auch die aktuelle Speicherladung zum sichtbaren Export
9112
9103
  // zurueck. Batterie-Entladung wird abgezogen, weil sie kein PV-Ueberschuss
9113
9104
  // ist und das Wallbox-Budget niemals kuenstlich vergroessern darf.
9114
9105
  pvSurplusNoEvW = Math.max(0, (-gridW) + pvEvcsUsedW + storageChargeNowW - storageDischargeNowW);
9115
- gridImportNoEvW = Math.max(0, gridW - pvEvcsUsedW - storageChargeNowW + storageDischargeNowW);
9116
9106
  } else if (typeof pvSurplusCfgW === 'number' && Number.isFinite(pvSurplusCfgW)) {
9117
9107
  // Fallback wenn kein Grid-DP verfügbar (z. B. nur PV-Surplus DP konfiguriert)
9118
9108
  pvSurplusNoEvW = Math.max(0, pvSurplusCfgW);
@@ -9169,6 +9159,7 @@ class ChargingManagementModule extends BaseModule {
9169
9159
  });
9170
9160
  const allocationGate = pvBudgetControl.allocation;
9171
9161
  pvBudgetCentralAuthoritative = pvBudgetControl.authoritative === true;
9162
+ centralPvInputsUsable = pvBudgetControl.blocked !== true;
9172
9163
  pvBudgetSourceState = String(pvBudgetControl.source || '');
9173
9164
  pvBudgetCentralAgeMsState = pvBudgetControl.ageMs;
9174
9165
  pvBudgetCentralTotalWState = Math.max(0, Number(pvBudgetControl.totalW) || 0);
@@ -9219,11 +9210,11 @@ class ChargingManagementModule extends BaseModule {
9219
9210
  && Number.isFinite(Number(w.pvStartupHoldUntilMs)) && Number(w.pvStartupHoldUntilMs) > now);
9220
9211
 
9221
9212
  gridImportW = (typeof gridW === 'number' && Number.isFinite(gridW)) ? Math.max(0, gridW) : 0;
9222
- if (!(typeof gridImportNoEvW === 'number' && Number.isFinite(gridImportNoEvW))) {
9223
- gridImportNoEvW = (typeof gridW === 'number' && Number.isFinite(gridW))
9224
- ? Math.max(0, gridW - pvEvcsUsedW - storageChargeNowW + storageDischargeNowW)
9225
- : 0;
9226
- }
9213
+ // The abort threshold describes import at the physical connection.
9214
+ // A building estimate or an outstanding EV command is not a meter reading.
9215
+ gridImportNoEvW = Number.isFinite(gridW)
9216
+ ? Math.max(0, gridW - pvEvcsActualW - storageChargeNowW + storageDischargeNowW)
9217
+ : 0;
9227
9218
 
9228
9219
  let pvAvail = purePvHysteresisActive ? !!this._pvAvailable : false;
9229
9220
  if (purePvHysteresisActive) {
@@ -11530,7 +11521,7 @@ if (components.length) {
11530
11521
  const probeActualFresh = !!(w.actualPowerWId && typeof probeMeasurementAgeMs === 'number'
11531
11522
  && Number.isFinite(probeMeasurementAgeMs) && probeMeasurementAgeMs >= 0
11532
11523
  && probeMeasurementAgeMs <= 5000 && !w.meterStale && !w.staleAny);
11533
- const probeEligible = !!(isPvOnly && zeroMode.active && w.enabled && w.online && w.controlAvailable
11524
+ const probeEligible = !!(isPvOnly && centralPvInputsUsable && zeroMode.active && w.enabled && w.online && w.controlAvailable
11534
11525
  && w.electricalLimitsValid !== false && w.vehiclePlugged === true
11535
11526
  && (w.vehicleDemandConfirmed === true || w.vehicleStartEligible === true)
11536
11527
  && !w.faultActive && !w.unavailableActive && !w.operationalBlocked && !w.rfidLockActive