iobroker.eos-admin 9.0.24 → 9.0.26

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 (322) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +3 -3
  2. package/README.md +10 -4
  3. package/START_HIER_9.0.25.md +60 -0
  4. package/START_HIER_9.0.26.md +80 -0
  5. package/adminWww/.vite/manifest.json +39 -39
  6. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
  7. package/adminWww/assets/{AdapterUpdateDialog-D7sI5VRm.js → AdapterUpdateDialog-DIjnNZ5k.js} +1 -1
  8. package/adminWww/assets/{Adapters-DS6ITaEH.js → Adapters-D8UOQg1q.js} +1 -1
  9. package/adminWww/assets/{ConfigManager-_iFDSXuD.js → ConfigManager-CAvT_4-g.js} +1 -1
  10. package/adminWww/assets/{Enums-Bdv7Tqmf.js → Enums-CrNUOX0d.js} +1 -1
  11. package/adminWww/assets/{Fields-CWUY1AnV.js → Fields-D-0qFiqr.js} +1 -1
  12. package/adminWww/assets/{Files-BveV1b_F.js → Files-BL8kvaeC.js} +1 -1
  13. package/adminWww/assets/{Hosts-B1HWZLGl.js → Hosts-BToJLy61.js} +1 -1
  14. package/adminWww/assets/{Instances-DYvbOlj7.js → Instances-Dlrp1KGP.js} +1 -1
  15. package/adminWww/assets/{Intro-pYT2FzIK.js → Intro-5EbxvP4X.js} +1 -1
  16. package/adminWww/assets/{Logs-D2ZbCY3Z.js → Logs-xdFVJ6fZ.js} +1 -1
  17. package/adminWww/assets/{Objects-CTUxbXJM.js → Objects-DhyJ5eAY.js} +1 -1
  18. package/adminWww/assets/{Overview-i6PsoN_F.js → Overview-BspgcFB7.js} +1 -1
  19. package/adminWww/assets/{State-BEQXNcI3.js → State-CJ1mKH_U.js} +1 -1
  20. package/adminWww/assets/{UsedResources-CLc1afk1.js → UsedResources-BMiCxqWH.js} +1 -1
  21. package/adminWww/assets/{Users-DG6i7iqC.js → Users-DrlJHRa5.js} +1 -1
  22. package/adminWww/assets/{bootstrap-4KhX67tn.js → bootstrap-BU7j1Fe_.js} +3 -3
  23. package/adminWww/assets/{hostInit-B08JmaAP.js → hostInit-Cgee6juw.js} +1 -1
  24. package/adminWww/assets/{icons-material-sOCHi6x9.js → icons-material-C0U9EKON.js} +1 -1
  25. package/adminWww/assets/{index-DHSNS0v8.js → index-BUZf1ftI.js} +2 -2
  26. package/adminWww/assets/{installSVGRenderer-CWaaO5tF.js → installSVGRenderer-CcjgaxiA.js} +1 -1
  27. package/adminWww/assets/{mf-entry-bootstrap-0-e7c54f7f.js → mf-entry-bootstrap-0-96d40e57.js} +2 -2
  28. package/adminWww/index.html +23 -23
  29. package/adminWww/mf-manifest.json +1 -1
  30. package/adminWww/mf-stats.json +1 -1
  31. package/adminWww/{remoteEntry-eos-9.0.24.js → remoteEntry-eos-9.0.26.js} +1 -1
  32. package/adminWww/remoteEntry.js +1 -1
  33. package/build/lib/eosKiosk.js +11 -1
  34. package/build/lib/eosKiosk.js.map +1 -1
  35. package/build/lib/eosLegacyMigration.js +10 -0
  36. package/build/lib/eosLegacyMigration.js.map +1 -1
  37. package/build/lib/eosModuleConfigStore.js +1 -1
  38. package/build/lib/eosModuleConfigStore.js.map +1 -1
  39. package/build/lib/eosModuleHost.js +176 -36
  40. package/build/lib/eosModuleHost.js.map +1 -1
  41. package/build/lib/eosModuleHttp.js +43 -8
  42. package/build/lib/eosModuleHttp.js.map +1 -1
  43. package/build/lib/eosModuleLoad.js +83 -0
  44. package/build/lib/eosModuleLoad.js.map +1 -0
  45. package/build/lib/eosModuleProcess.js +16 -1
  46. package/build/lib/eosModuleProcess.js.map +1 -1
  47. package/build/lib/eosModuleProcessProtocol.js +13 -1
  48. package/build/lib/eosModuleProcessProtocol.js.map +1 -1
  49. package/build/lib/eosModuleProcessWorker.js +50 -23
  50. package/build/lib/eosModuleProcessWorker.js.map +1 -1
  51. package/build/lib/eosRuntimeControl.js +235 -0
  52. package/build/lib/eosRuntimeControl.js.map +1 -0
  53. package/build/lib/eosRuntimeHealth.js +17 -2
  54. package/build/lib/eosRuntimeHealth.js.map +1 -1
  55. package/build/lib/eosTlsHttp.js +84 -0
  56. package/build/lib/eosTlsHttp.js.map +1 -1
  57. package/build/lib/eosUiProcess.js +94 -55
  58. package/build/lib/eosUiProcess.js.map +1 -1
  59. package/build/lib/eosUiProcessRpc.js +16 -3
  60. package/build/lib/eosUiProcessRpc.js.map +1 -1
  61. package/build/lib/eosUiProcessWorker.js +48 -3
  62. package/build/lib/eosUiProcessWorker.js.map +1 -1
  63. package/build/lib/web.js +89 -12
  64. package/build/lib/web.js.map +1 -1
  65. package/build/main.js +6 -2
  66. package/build/main.js.map +1 -1
  67. package/docs/reports/unified-9.0.25/MIGRATION_INDEPENDENT_REVIEW.md +74 -0
  68. package/docs/reports/unified-9.0.25/OCPP_STARTSPERRE_9.0.24.md +60 -0
  69. package/docs/reports/unified-9.0.25/PRUEFBERICHT.md +78 -0
  70. package/docs/reports/unified-9.0.25/RUNTIME_CONTROLS_BROWSERPRUEFUNG.md +81 -0
  71. package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_BACKEND.md +58 -0
  72. package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_INDEPENDENT_REVIEW.md +66 -0
  73. package/docs/reports/unified-9.0.25/RUNTIME_LOGIN_RECOVERY.md +32 -0
  74. package/docs/reports/unified-9.0.25/TARIFF_UPDATE_PERSISTENCE.md +50 -0
  75. package/docs/reports/unified-9.0.25/UI_CONFIG_COMMIT_ACK.md +51 -0
  76. package/docs/reports/unified-9.0.25/raw/BUILD_CHECKS.json +49 -0
  77. package/docs/reports/unified-9.0.25/raw/INDEX.json +43 -0
  78. package/docs/reports/unified-9.0.25/raw/SBOM_GENERATION.json +42 -0
  79. package/docs/reports/unified-9.0.25/raw/build-backend.log +5 -0
  80. package/docs/reports/unified-9.0.25/raw/build-frontend.log +152 -0
  81. package/docs/reports/unified-9.0.25/raw/build-installer.log +26 -0
  82. package/docs/reports/unified-9.0.25/raw/build-modules.log +5 -0
  83. package/docs/reports/unified-9.0.25/raw/build-ui-runtime.log +7 -0
  84. package/docs/reports/unified-9.0.25/raw/eos-production-audit.json +77 -0
  85. package/docs/reports/unified-9.0.25/raw/eos-production-audit.stderr +1 -0
  86. package/docs/reports/unified-9.0.25/raw/frontend-sbom.stderr +1 -0
  87. package/docs/reports/unified-9.0.25/raw/installer-sbom.stderr +1 -0
  88. package/docs/reports/unified-9.0.25/raw/lint.log +45 -0
  89. package/docs/reports/unified-9.0.25/raw/node22-tests-final.log +15879 -0
  90. package/docs/reports/unified-9.0.25/raw/node22-version.log +1 -0
  91. package/docs/reports/unified-9.0.25/raw/node24-tests-final.log +2653 -0
  92. package/docs/reports/unified-9.0.25/raw/node24-version.log +1 -0
  93. package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node22-final.tap +236 -0
  94. package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node24-final.tap +44 -0
  95. package/docs/reports/unified-9.0.25/raw/runtime-control-backend/source-sha256.json +19 -0
  96. package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node22.json +70 -0
  97. package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node24.json +70 -0
  98. package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node22.json +49 -0
  99. package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node24.json +49 -0
  100. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node22.log +15 -0
  101. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node24.log +15 -0
  102. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node22.json +32 -0
  103. package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node24.json +32 -0
  104. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node22.log +28 -0
  105. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node24.log +10 -0
  106. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/route-regression-node24.log +28 -0
  107. package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/source-sha256.json +6 -0
  108. package/docs/reports/unified-9.0.25/raw/runtime-processes/README.md +41 -0
  109. package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node22.tap +44 -0
  110. package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node24.tap +13 -0
  111. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node22.tap +232 -0
  112. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node24.tap +43 -0
  113. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node22.tap +68 -0
  114. package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node24.tap +17 -0
  115. package/docs/reports/unified-9.0.25/raw/sbom-lock.log +1 -0
  116. package/docs/reports/unified-9.0.25/raw/sbom-lock.stderr +1 -0
  117. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node22.tap +44 -0
  118. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node24.tap +40 -0
  119. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node22.tap +44 -0
  120. package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node24.tap +13 -0
  121. package/docs/reports/unified-9.0.25/raw/tariff-update/commit-ack-sha256.txt +4 -0
  122. package/docs/reports/unified-9.0.25/raw/tariff-update/config-ack-result.json +19 -0
  123. package/docs/reports/unified-9.0.25/raw/tariff-update/generate-921-fixture.cjs +36 -0
  124. package/docs/reports/unified-9.0.25/raw/tariff-update/node22.tap +68 -0
  125. package/docs/reports/unified-9.0.25/raw/tariff-update/node24.tap +64 -0
  126. package/docs/reports/unified-9.0.25/raw/tariff-update/reproduce-config-ack.cjs +55 -0
  127. package/docs/reports/unified-9.0.25/raw/tariff-update/reviewed-sha256.txt +4 -0
  128. package/docs/reports/unified-9.0.25/raw/typecheck.log +5 -0
  129. package/docs/reports/unified-9.0.26/ACTIVATION.md +50 -0
  130. package/docs/reports/unified-9.0.26/BACKUP_READINESS_REVIEW.md +30 -0
  131. package/docs/reports/unified-9.0.26/BACKUP_UI.md +69 -0
  132. package/docs/reports/unified-9.0.26/CHARGING_CLIENT_REVIEW.md +24 -0
  133. package/docs/reports/unified-9.0.26/EVCS_DELETE_UI_REVIEW.md +120 -0
  134. package/docs/reports/unified-9.0.26/EVCS_IDENTITY_REVIEW.md +47 -0
  135. package/docs/reports/unified-9.0.26/INDEPENDENT_REVIEW.md +114 -0
  136. package/docs/reports/unified-9.0.26/LIFECYCLE_REVIEW.md +47 -0
  137. package/docs/reports/unified-9.0.26/OCPP_DELETION_REVIEW.md +49 -0
  138. package/docs/reports/unified-9.0.26/PIPELINE_OFFLINE_ASSERTION_REVIEW.md +71 -0
  139. package/docs/reports/unified-9.0.26/PRUEFBERICHT.md +71 -0
  140. package/docs/reports/unified-9.0.26/PWA_TLS.md +43 -0
  141. package/docs/reports/unified-9.0.26/TARIFF_STARTUP.md +42 -0
  142. package/docs/reports/unified-9.0.26/installed-package/README.md +105 -0
  143. package/docs/reports/unified-9.0.26/installed-package/baseline925-git-export.json +31 -0
  144. package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-install.log +15 -0
  145. package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-lifecycle.log +17 -0
  146. package/docs/reports/unified-9.0.26/installed-package/baseline925-node22.log +26 -0
  147. package/docs/reports/unified-9.0.26/installed-package/baseline925-node24-lifecycle.log +17 -0
  148. package/docs/reports/unified-9.0.26/installed-package/baseline925-node24.log +10 -0
  149. package/docs/reports/unified-9.0.26/installed-package/diagnostic-node22.log +26 -0
  150. package/docs/reports/unified-9.0.26/installed-package/diagnostic-node24.log +10 -0
  151. package/docs/reports/unified-9.0.26/installed-package/registry925-comparison.json +18 -0
  152. package/docs/reports/unified-9.0.26/raw/INDEX.json +43 -0
  153. package/docs/reports/unified-9.0.26/raw/activation/INTERNAL_VISUAL_CHECKS.md +1 -0
  154. package/docs/reports/unified-9.0.26/raw/activation/eslint.log +0 -0
  155. package/docs/reports/unified-9.0.26/raw/activation/node22-browser.json +74 -0
  156. package/docs/reports/unified-9.0.26/raw/activation/node22-browser.stderr.log +2 -0
  157. package/docs/reports/unified-9.0.26/raw/activation/node22-real-processes.log +40 -0
  158. package/docs/reports/unified-9.0.26/raw/activation/node22-unit-http.log +196 -0
  159. package/docs/reports/unified-9.0.26/raw/activation/node24-browser.json +74 -0
  160. package/docs/reports/unified-9.0.26/raw/activation/node24-browser.stderr.log +0 -0
  161. package/docs/reports/unified-9.0.26/raw/activation/node24-module-http.log +18 -0
  162. package/docs/reports/unified-9.0.26/raw/activation/node24-tests.log +43 -0
  163. package/docs/reports/unified-9.0.26/raw/activation/typecheck.log +0 -0
  164. package/docs/reports/unified-9.0.26/raw/activation/verification.json +38 -0
  165. package/docs/reports/unified-9.0.26/raw/backup-ui/field-map.json +497 -0
  166. package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.json +67 -0
  167. package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.stderr.log +2 -0
  168. package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.json +67 -0
  169. package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.stderr.log +0 -0
  170. package/docs/reports/unified-9.0.26/raw/backup-ui/verification.json +32 -0
  171. package/docs/reports/unified-9.0.26/raw/build-and-static/FINAL_CHECKS.json +45 -0
  172. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-before-ems-tariff.log +5 -0
  173. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-delivery.log +5 -0
  174. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-frontend.log +152 -0
  175. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-installer.log +26 -0
  176. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-modules.log +5 -0
  177. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime-delivery.log +7 -0
  178. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime.log +7 -0
  179. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-complete.log +45 -0
  180. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-delivery.log +45 -0
  181. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.json +77 -0
  182. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.stderr +1 -0
  183. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.json +7 -0
  184. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.stderr +9 -0
  185. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-sbom-vendored.log +1 -0
  186. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-complete.log +5 -0
  187. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-delivery.log +5 -0
  188. package/docs/reports/unified-9.0.26/raw/charging-control-client-review-hashes.json +10 -0
  189. package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node22.log +86 -0
  190. package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node24.log +20 -0
  191. package/docs/reports/unified-9.0.26/raw/charging-identity/node22.log +130 -0
  192. package/docs/reports/unified-9.0.26/raw/charging-identity/node24.log +27 -0
  193. package/docs/reports/unified-9.0.26/raw/charging-identity-review/PRODUCT_REVIEW.md +45 -0
  194. package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.json +18 -0
  195. package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.stderr +0 -0
  196. package/docs/reports/unified-9.0.26/raw/charging-identity-review/node24-tests.log +38 -0
  197. package/docs/reports/unified-9.0.26/raw/charging-identity-review/registry-ipc.json +24 -0
  198. package/docs/reports/unified-9.0.26/raw/charging-identity-review/review-probes.cjs +81 -0
  199. package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node22.log +188 -0
  200. package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node24.log +36 -0
  201. package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node22.log +148 -0
  202. package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node24.log +30 -0
  203. package/docs/reports/unified-9.0.26/raw/evcs-delete/browser-lint.log +0 -0
  204. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.json +28 -0
  205. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.log +3 -0
  206. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-client-handshake.log +112 -0
  207. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-corrected.log +94 -0
  208. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-diagnostic.log +27 -0
  209. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-repro.log +94 -0
  210. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-tick-probe.log +36 -0
  211. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.json +28 -0
  212. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.log +1 -0
  213. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-client-handshake.log +24 -0
  214. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-corrected.log +23 -0
  215. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-repro.log +23 -0
  216. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-tick-probe.log +28 -0
  217. package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-corrected-snapshot.json +23 -0
  218. package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-lint.log +6 -0
  219. package/docs/reports/unified-9.0.26/raw/final-source-snapshot.json +16 -0
  220. package/docs/reports/unified-9.0.26/raw/git-vendor-source/node22.log +28 -0
  221. package/docs/reports/unified-9.0.26/raw/git-vendor-source/node24.log +10 -0
  222. package/docs/reports/unified-9.0.26/raw/git-vendor-source/verification.json +29 -0
  223. package/docs/reports/unified-9.0.26/raw/independent-review/GIT_ADDENDUM.json +20 -0
  224. package/docs/reports/unified-9.0.26/raw/independent-review/INDEX.json +76 -0
  225. package/docs/reports/unified-9.0.26/raw/independent-review/baseline925-artifacts-independent.json +16 -0
  226. package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node22.log +22 -0
  227. package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node24.log +9 -0
  228. package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-node24.log +9 -0
  229. package/docs/reports/unified-9.0.26/raw/independent-review/git-transport-independent.json +33 -0
  230. package/docs/reports/unified-9.0.26/raw/independent-review/npm-dry-run-file-inventory.json +16271 -0
  231. package/docs/reports/unified-9.0.26/raw/independent-review/npm-git-complete-inventory.json +40 -0
  232. package/docs/reports/unified-9.0.26/raw/independent-review/public-trust-node24.log +9 -0
  233. package/docs/reports/unified-9.0.26/raw/independent-review/runtime-lifecycle-import-node24.log +35 -0
  234. package/docs/reports/unified-9.0.26/raw/lifecycle/node22-baseline925.json +30 -0
  235. package/docs/reports/unified-9.0.26/raw/lifecycle/node22-candidate926.json +30 -0
  236. package/docs/reports/unified-9.0.26/raw/lifecycle/node24-baseline925.json +30 -0
  237. package/docs/reports/unified-9.0.26/raw/lifecycle/node24-candidate926.json +30 -0
  238. package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-git-regression.log +16035 -0
  239. package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-ui.log +16037 -0
  240. package/docs/reports/unified-9.0.26/raw/node22-tests-before-ems-tariff.log +16064 -0
  241. package/docs/reports/unified-9.0.26/raw/node22-tests-before-git-regression.log +16027 -0
  242. package/docs/reports/unified-9.0.26/raw/node22-tests-before-pipeline-fixture.log +11584 -0
  243. package/docs/reports/unified-9.0.26/raw/node22-tests-before-remap-noop.log +11581 -0
  244. package/docs/reports/unified-9.0.26/raw/node22-tests-final.log +16520 -0
  245. package/docs/reports/unified-9.0.26/raw/node22-version.log +1 -0
  246. package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-git-regression.log +2678 -0
  247. package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-ui.log +2678 -0
  248. package/docs/reports/unified-9.0.26/raw/node24-tests-before-ems-tariff.log +1860 -0
  249. package/docs/reports/unified-9.0.26/raw/node24-tests-before-git-regression.log +2677 -0
  250. package/docs/reports/unified-9.0.26/raw/node24-tests-before-pipeline-fixture.log +1925 -0
  251. package/docs/reports/unified-9.0.26/raw/node24-tests-before-remap-noop.log +1924 -0
  252. package/docs/reports/unified-9.0.26/raw/node24-tests-final.log +2757 -0
  253. package/docs/reports/unified-9.0.26/raw/node24-version.log +1 -0
  254. package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node22.log +148 -0
  255. package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node24.log +30 -0
  256. package/docs/reports/unified-9.0.26/raw/publish-overlay-provenance.json +10 -0
  257. package/docs/reports/unified-9.0.26/raw/pwa/INTERNAL_VISUAL_CHECKS.md +1 -0
  258. package/docs/reports/unified-9.0.26/raw/pwa/index.json +18 -0
  259. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-baseline.log +48 -0
  260. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.json +33 -0
  261. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.stderr +5 -0
  262. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.json +33 -0
  263. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.stderr +2 -0
  264. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node22.log +137 -0
  265. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node24.log +32 -0
  266. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-lint.log +0 -0
  267. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node22.log +28 -0
  268. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node24.log +10 -0
  269. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-tls-final.log +9 -0
  270. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-typecheck.log +0 -0
  271. package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node22.log +250 -0
  272. package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node24.log +46 -0
  273. package/docs/reports/unified-9.0.26/raw/tariff-startup/PRODUCT_REVIEW.md +30 -0
  274. package/docs/reports/unified-9.0.26/raw/tariff-startup/browser-eslint.log +0 -0
  275. package/docs/reports/unified-9.0.26/raw/tariff-startup/eslint.log +0 -0
  276. package/docs/reports/unified-9.0.26/raw/tariff-startup/independent-review-node24.log +35 -0
  277. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.json +43 -0
  278. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.stderr +2 -0
  279. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-process-final.log +26 -0
  280. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-tests.log +378 -0
  281. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.json +43 -0
  282. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.stderr +0 -0
  283. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-process-final.log +10 -0
  284. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-tests.log +66 -0
  285. package/docs/reports/unified-9.0.26/raw/tariff-startup/process-verification.json +41 -0
  286. package/docs/reports/unified-9.0.26/raw/tariff-startup/typecheck.log +0 -0
  287. package/docs/unified/NEXOWATT_TLS_DE.md +12 -2
  288. package/io-package.json +12 -14
  289. package/modules/backup/admin/index.html +24 -95
  290. package/modules/backup/admin/index.js +350 -98
  291. package/modules/backup/admin/style.css +40 -0
  292. package/package.json +14 -8
  293. package/public/eos-runtime/index.html +7 -6
  294. package/public/eos-runtime/index.js +159 -11
  295. package/public/eos-runtime/style.css +9 -0
  296. package/public/eos-tls/index.html +1 -1
  297. package/public/eos-tls/trust.css +19 -0
  298. package/public/eos-tls/trust.html +52 -0
  299. package/release-manifests/unified/build-environment.cdx.json +6 -6
  300. package/release-manifests/unified/files.json +420 -149
  301. package/release-manifests/unified/frontend.cdx.json +6 -6
  302. package/release-manifests/unified/installer.cdx.json +6 -6
  303. package/release-manifests/unified/obsolete-admin-assets.json +552 -388
  304. package/release-manifests/unified/runtime.cdx.json +26 -26
  305. package/release-manifests/unified/validation.json +15 -15
  306. package/tools/eos-lifecycle-benchmark.cjs +50 -0
  307. package/tools/eos-release-manifest.cjs +1 -1
  308. package/ui/ems/engine.js +5 -1
  309. package/ui/io-package.json +1 -1
  310. package/ui/lib/charging-point-identity.js +465 -0
  311. package/ui/lib/charging-station-identity.js +111 -0
  312. package/ui/lib/ocpp-auto-discovery.js +34 -3
  313. package/ui/main.js +165 -29
  314. package/ui/package.json +1 -1
  315. package/ui/www/app.js +63 -18
  316. package/ui/www/customer-tariff.js +67 -11
  317. package/ui/www/dc-station-display.js +15 -11
  318. package/ui/www/ems-apps.js +40 -6
  319. package/ui/www/evcs.js +55 -12
  320. package/ui/www/login.html +1 -0
  321. package/ui/www/login.js +7 -3
  322. package/ui/www/manifest.webmanifest +2 -2
package/ui/main.js CHANGED
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/main.ts
10
- * Quell-Hash: sha256:ad361d2b7b0b927a9644e599c04682b4af2895a775374ecad364a37576534a05
10
+ * Quell-Hash: sha256:bac2f47a42f00f3f4642fdf9764ffdfd2eb4f957049d3e27c49d3157e5acda58
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -82,6 +82,8 @@ const tariffProviderRegistry = require('./ems/services/tariff-provider-registry'
82
82
  const { normalizeEvcsEnergyTotalKwh } = require('./ems/services/evcs-unit-conversion');
83
83
  const { validateEvcsElectricalConfig } = require('./lib/evcs-electrical-limits');
84
84
  const { OcppAutoDiscovery, planOcppDiscovery, normalizeOcppDiscovery, ocppDiscoveryPatterns, ocppStationRoot, ocppRootInScope, ocppNamespace } = require('./lib/ocpp-auto-discovery');
85
+ const { beginChargingControlWrite, bindChargingPointIdentityBaseline, chargingPointLayoutChanged, remapChargingPointDefaultModes, publicChargingControlIdentity, assertChargingControlIdentity } = require('./lib/charging-point-identity');
86
+ const { remapChargingStationAssignments } = require('./lib/charging-station-identity');
85
87
  const { NotificationMail, validAddress } = require('./lib/notification-mail');
86
88
  const { startOpenMeteoPvForecastRuntime, requestOpenMeteoJson, validateOpenMeteoWeather, safeOpenMeteoError, configuredOpenMeteoApiKey } = require('./ems/services/open-meteo-pv-forecast'), { AdminOverviewPublisher } = require('./ems/services/admin-overview-publisher');
87
89
  /**
@@ -4755,6 +4757,7 @@ class NexoWattVis extends HostedAdapter {
4755
4757
  }
4756
4758
 
4757
4759
  async loadInstallerConfigFromState() {
4760
+ this._nwInstallerConfigHydrated = false;
4758
4761
  const preservedMode = this.namespace !== this.hostNamespace && /^nexowatt-ui\.\d+$/.test(this.namespace);
4759
4762
  const previous = { config: this.config, native: this._nwNativeConfigBase, patch: this._nwInstallerConfigPatch, rawPatch: this._nwInstallerConfigRawPatch };
4760
4763
  try {
@@ -4822,6 +4825,9 @@ class NexoWattVis extends HostedAdapter {
4822
4825
  await this.nwWriteUserdataBackup(patch, source === 'userdata' ? 'restore-userdata' : 'normalize');
4823
4826
  } catch (_e5) {}
4824
4827
  }
4828
+ // Read APIs may only confirm the persisted tariff after the entire load
4829
+ // (including a required first commit) succeeded, never native defaults.
4830
+ this._nwInstallerConfigHydrated = true;
4825
4831
 
4826
4832
  } catch (e) {
4827
4833
  this.config = previous.config;
@@ -4890,6 +4896,42 @@ class NexoWattVis extends HostedAdapter {
4890
4896
  });
4891
4897
  }
4892
4898
 
4899
+ /** Keep old index ownership durable before committing a changed point order.
4900
+ * The old engine and accepted customer writes are drained before snapshots;
4901
+ * Engine.init recovers/copies the journal before new controllers can start. */
4902
+ async _nwPrepareChargingPointReconfigure(nextConfig, restartEms) {
4903
+ const configuredRows = config => {
4904
+ const settings = config?.settingsConfig || {};
4905
+ const list = Array.isArray(settings.evcsList) ? settings.evcsList : [];
4906
+ const configuredCount = settings.evcsCount === undefined ? list.length : Number(settings.evcsCount);
4907
+ const count = Number.isFinite(configuredCount) ? Math.max(0, Math.min(50, Math.round(configuredCount))) : list.length;
4908
+ return Array.from({ length: count }, (_, index) => list[index] && typeof list[index] === 'object' ? list[index] : {});
4909
+ };
4910
+ const previous = Array.isArray(this.evcsList) ? this.evcsList : configuredRows(this.config);
4911
+ const desired = remapChargingPointDefaultModes(previous, configuredRows(nextConfig), this.namespace);
4912
+ const changed = chargingPointLayoutChanged(previous, desired, this.config?.chargeKiosk, nextConfig?.chargeKiosk, this.namespace);
4913
+ let stopped = false;
4914
+ const stopPrevious = async () => {
4915
+ this._nwEvcsIdentityTransitionPending = true;
4916
+ const previousEngine = this.emsEngine;
4917
+ if (previousEngine) {
4918
+ if (typeof previousEngine.stopForReconfigure !== 'function') throw new Error('EOS_EMS_STOP_UNCONFIRMED');
4919
+ await previousEngine.stopForReconfigure();
4920
+ if (this.emsEngine === previousEngine) this.emsEngine = null;
4921
+ }
4922
+ stopped = true;
4923
+ };
4924
+ if (changed || this._nwEvcsIdentityTransitionPending) await stopPrevious();
4925
+ await bindChargingPointIdentityBaseline(this, previous, desired, nextConfig?.chargeKiosk);
4926
+ const recovery = this._nwEvcsIdentityTransitionPending === true;
4927
+ if (recovery && !stopped) await stopPrevious();
4928
+ if (changed || recovery || stopped) {
4929
+ this._nwEvcsIdentityTransitionPending = true;
4930
+ return true;
4931
+ }
4932
+ return !!restartEms;
4933
+ }
4934
+
4893
4935
  async _nwApplyInstallerRuntime(restartEms, reason) {
4894
4936
  this._nwConfigureHistory();
4895
4937
  const currentTariffModule = this.emsEngine?.mm?.modules?.find(entry => entry.key === 'tariffProvider')?.instance;
@@ -4954,6 +4996,7 @@ class NexoWattVis extends HostedAdapter {
4954
4996
  const storageLicense = this._nwValidateStorageFarmLicense(next);
4955
4997
  if (!storageLicense.ok) throw new Error(String(storageLicense.error || 'EOS_EMS_STORAGE_LICENSE_REQUIRED'));
4956
4998
  await this._nwProvisionInstallerObjects(next);
4999
+ await this._nwPrepareChargingPointReconfigure(next, true);
4957
5000
  assertReady();
4958
5001
  if (plan.changed) {
4959
5002
  if (await this.persistInstallerConfigToState(patch) === false) throw new Error('EOS_DEVICE_EMS_PERSIST_FAILED');
@@ -4965,7 +5008,7 @@ class NexoWattVis extends HostedAdapter {
4965
5008
  assertReady();
4966
5009
  if (this.emsEngine?.stopForReconfigure) await this.emsEngine.stopForReconfigure();
4967
5010
  assertReady();
4968
- this.config = next;
5011
+ this.config = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, patch);
4969
5012
  await this._nwApplyInstallerRuntime(true, 'device-commissioning');
4970
5013
  this._nwDeviceEmsApplyPending = false;
4971
5014
  try { await this.nwWriteUserdataBackup(patch, 'device-commissioning'); }
@@ -4992,6 +5035,7 @@ class NexoWattVis extends HostedAdapter {
4992
5035
  const patch = this.nwDeepMerge(this._nwDeepClone(this._nwInstallerConfigPatch || {}), plan.patch);
4993
5036
  const next = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, patch);
4994
5037
  await this._nwProvisionInstallerObjects(next);
5038
+ await this._nwPrepareChargingPointReconfigure(next, true);
4995
5039
  assertReady();
4996
5040
  if (plan.changed) {
4997
5041
  if (await this.persistInstallerConfigToState(patch) === false) throw new Error('EOS_OCPP_DISCOVERY_PERSIST_FAILED');
@@ -5003,7 +5047,7 @@ class NexoWattVis extends HostedAdapter {
5003
5047
  assertReady();
5004
5048
  if (this.emsEngine?.stopForReconfigure) await awaitEmsTransition(this.emsEngine.stopForReconfigure());
5005
5049
  assertReady();
5006
- this.config = next;
5050
+ this.config = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, patch);
5007
5051
  await this._nwApplyInstallerRuntime(true, 'ocpp-discovery');
5008
5052
  this._nwOcppApplyPending = false;
5009
5053
  try { await this.nwWriteUserdataBackup(patch, 'ocpp-discovery'); }
@@ -5018,6 +5062,12 @@ class NexoWattVis extends HostedAdapter {
5018
5062
  hostNamespace: this.hostNamespace,
5019
5063
  readObjects: async () => Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.getForeignObjectsAsync(pattern, 'state')))),
5020
5064
  readMetadata: async () => Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.getForeignStatesAsync(`${pattern}.info.*`)))),
5065
+ readSources: async () => ({
5066
+ instances: await this.getObjectViewAsync('system', 'instance', {
5067
+ startkey: 'system.adapter.ocpp21.', endkey: 'system.adapter.ocpp21.\u9999', limit: 129,
5068
+ }),
5069
+ hostedNamespace: this._bridge.getRuntimeReadiness?.()?.hostedOcppNamespace,
5070
+ }),
5021
5071
  subscribe: () => Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.subscribeForeignStatesAsync(`${pattern}.info.*`))),
5022
5072
  reconcile: stations => this.reconcileOcppDiscovery(stations),
5023
5073
  canRun: () => !this._nwShuttingDown && this._bridge.canWrite() === true
@@ -5075,7 +5125,30 @@ class NexoWattVis extends HostedAdapter {
5075
5125
 
5076
5126
  async persistInstallerConfigToState(patchObj) {
5077
5127
  // Auch interne Save-/Importpfade dürfen verbindliche Mesh-Grenzen nicht lösen.
5078
- const nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5128
+ let nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5129
+ const previousEvcsRows = this.config?.settingsConfig?.evcsList || [];
5130
+ const nextEvcsRows = nextRuntime?.settingsConfig?.evcsList || [];
5131
+ const persistedEvcsRows = this._nwInstallerConfigPatch?.settingsConfig?.evcsList;
5132
+ const submittedEvcsRows = patchObj?.settingsConfig?.evcsList;
5133
+ // Unrelated tariff/history saves must neither remap nor revalidate an
5134
+ // unchanged persisted point layout. Runtime-only normalization is not an
5135
+ // operator reassignment. A real persisted row change takes every guard.
5136
+ if (JSON.stringify(persistedEvcsRows === undefined ? previousEvcsRows : persistedEvcsRows)
5137
+ !== JSON.stringify(submittedEvcsRows === undefined ? nextEvcsRows : submittedEvcsRows)) {
5138
+ const remappedModes = remapChargingPointDefaultModes(previousEvcsRows, nextEvcsRows, this.namespace);
5139
+ if (remappedModes !== nextEvcsRows && patchObj && typeof patchObj === 'object') {
5140
+ patchObj.settingsConfig = { ...nextRuntime.settingsConfig, evcsList: remappedModes };
5141
+ nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5142
+ }
5143
+ // A public station URL stays bound to its physical points when lpN indices
5144
+ // move. Persist its remapped manual/fallback list in this same config commit.
5145
+ const nextKiosk = remapChargingStationAssignments(previousEvcsRows, nextRuntime?.settingsConfig?.evcsList || [],
5146
+ this.config?.chargeKiosk, nextRuntime?.chargeKiosk, this.namespace);
5147
+ if (nextKiosk !== nextRuntime?.chargeKiosk && patchObj && typeof patchObj === 'object') {
5148
+ patchObj.chargeKiosk = nextKiosk;
5149
+ nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5150
+ }
5151
+ }
5079
5152
  this._meshCoordinator?.assertAppChange(nextRuntime);
5080
5153
  assertPartnerPersistence(this.config || {}, nextRuntime);
5081
5154
  if (!this._nwPartnerCommitInFlight && JSON.stringify(currentPartnerConfig(this.config)) !== JSON.stringify(currentPartnerConfig(nextRuntime))) {
@@ -12023,6 +12096,7 @@ async onReady() {
12023
12096
  assertStartupAuthority();
12024
12097
  return result;
12025
12098
  };
12099
+ this._nwInstallerConfigHydrated = false;
12026
12100
  this._hostedStartup = { state: 'starting', error: '' };
12027
12101
  try {
12028
12102
  if (!centralLicenseSnapshot(this._bridge).ok) {
@@ -16235,7 +16309,6 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16235
16309
  app.get('/api/installer/config', requireInstaller, async (_req, res) => {
16236
16310
  try {
16237
16311
  sendNoStore(res);
16238
- const configurationRevision = this._nwInstallerConfigRevision();
16239
16312
  // A license can be saved through the Admin tab while the App-Center is already open.
16240
16313
  // Refresh the runtime license cache here before filtering apps. This also covers the
16241
16314
  // startup edge case where the HTTP gate is open but _nwLicenseInfo has not yet been
@@ -16248,7 +16321,12 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16248
16321
  // system.adapter.<instance>.native. Persisting to native triggers an ioBroker instance restart
16249
16322
  // and breaks the UI with "Failed to fetch" + SSE disconnects.
16250
16323
  const nativeObj = (this.config && typeof this.config === 'object') ? this.config : {};
16251
- let cfgOut = await _nwHydrateStorageFarmConfigFromRuntimeStates(_nwPickPersistedInstallerConfig());
16324
+ // Take the token and its configuration snapshot without an await between
16325
+ // them. Discovery may commit while license refresh/hydration is pending;
16326
+ // it must never pair newer rows with an older form revision.
16327
+ const configurationRevision = this._nwInstallerConfigRevision();
16328
+ const installerSnapshot = this._nwDeepClone(_nwPickPersistedInstallerConfig());
16329
+ let cfgOut = await _nwHydrateStorageFarmConfigFromRuntimeStates(installerSnapshot);
16252
16330
  cfgOut = _nwMaskTariffProviderForUi(cfgOut);
16253
16331
  // 1.0.3: Nur die an die UI gelieferte Kopie wird auf die aktuelle Edition
16254
16332
  // begrenzt. Alte Pro-Konfigurationen bleiben intern erhalten, dürfen bei einer
@@ -16279,7 +16357,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16279
16357
  const body = req.body || {};
16280
16358
  this._nwAssertInstallerConfigRevision(body.expectedConfigurationRevision);
16281
16359
  const patch = body.patch && typeof body.patch === 'object' ? body.patch : {};
16282
- const restartEms = body.restartEms !== false; // default true
16360
+ let restartEms = body.restartEms !== false; // identity changes always restart safely
16283
16361
  const tokenError = nwValidateStationTokenChanges(patch);
16284
16362
  if (tokenError) return res.status(400).json({ ok: false, error: 'invalid_station_token', message: tokenError });
16285
16363
 
@@ -16330,6 +16408,12 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16330
16408
  const gateResult = await _nwApplyInstallerRegressionSafetyGate(safePatch, basePatch);
16331
16409
  const guardedPatch = gateResult && gateResult.patch ? gateResult.patch : safePatch;
16332
16410
  let mergedPatch = this.nwDeepMerge(this.nwDeepMerge({}, basePatch), guardedPatch);
16411
+ // The explicit empty-list permission belongs to this accepted edit,
16412
+ // never to subsequent forms or background configuration changes.
16413
+ if (mergedPatch.settingsConfig && typeof mergedPatch.settingsConfig === 'object') {
16414
+ delete mergedPatch.settingsConfig.__allowEmptyEvcsList;
16415
+ delete mergedPatch.settingsConfig.__explicitDeleteAll;
16416
+ }
16333
16417
  // Die Topologie ist ein atomarer Vertrag; kein partieller Deep-Merge mit
16334
16418
  // alten Messpunkten, Stellhoheiten oder Schutzgrenzen.
16335
16419
  if (Object.prototype.hasOwnProperty.call(safePatch, 'nvpTopology')) mergedPatch.nvpTopology = this._nwDeepClone(safePatch.nvpTopology);
@@ -16425,6 +16509,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16425
16509
  catch (error) { const failure = safeConfigurationFailure(error); return res.status(failure.status).json(failure.body); }
16426
16510
  // Persist patch to states (no ioBroker restart)
16427
16511
  await this._nwProvisionInstallerObjects(this.nwApplyInstallerPatchToRuntimeConfig(this.config, mergedPatch));
16512
+ restartEms = await this._nwPrepareChargingPointReconfigure(this.nwApplyInstallerPatchToRuntimeConfig(this.config, mergedPatch), restartEms);
16428
16513
  if (await this.persistInstallerConfigToState(mergedPatch) === false) throw new Error('Installer-Konfiguration konnte nicht gespeichert werden.');
16429
16514
  this._nwInstallerConfigPatch = mergedPatch;
16430
16515
 
@@ -16523,7 +16608,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16523
16608
  try {
16524
16609
  const body = req.body || {};
16525
16610
  this._nwAssertInstallerConfigRevision(body.expectedConfigurationRevision);
16526
- const restartEms = body.restartEms !== false; // default true
16611
+ let restartEms = body.restartEms !== false; // identity changes always restart safely
16527
16612
  const mode = String(body.mode || 'replace').toLowerCase(); // replace | merge
16528
16613
 
16529
16614
  // Accept both a wrapped backup object or a raw patch.
@@ -16633,6 +16718,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16633
16718
  try { this._meshCoordinator?.assertAppChange(this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch)); }
16634
16719
  catch (error) { const failure = safeConfigurationFailure(error); return res.status(failure.status).json(failure.body); }
16635
16720
  await this._nwProvisionInstallerObjects(this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch));
16721
+ restartEms = await this._nwPrepareChargingPointReconfigure(this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch), restartEms);
16636
16722
  if (await this.persistInstallerConfigToState(finalPatch) === false) throw new Error('Installer-Import konnte nicht gespeichert werden.');
16637
16723
  this._nwInstallerConfigPatch = finalPatch;
16638
16724
 
@@ -17356,6 +17442,13 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
17356
17442
  const requireCustomerTariff = async (req, res, next) => {
17357
17443
  if (!['customer', 'installer', 'admin'].includes(req.nwSession?.role)) return res.status(403).json({ ok: false, error: 'forbidden' });
17358
17444
  if (!this._nwIsFeatureLicensed('dynamicTariffs')) return res.status(403).json({ ok: false, error: 'EOS_TARIFF_LICENSE_REQUIRED' });
17445
+ // Both reads and writes require a positively confirmed stored configuration.
17446
+ // HTTP/shell availability alone must never expose or overwrite native defaults.
17447
+ if (this._nwInstallerConfigHydrated !== true) {
17448
+ sendNoStore(res);
17449
+ const loading = ['idle', 'starting'].includes(this._hostedStartup?.state);
17450
+ return res.status(503).json({ ok: false, error: loading ? 'EOS_TARIFF_CONFIG_LOADING' : 'EOS_TARIFF_CONFIG_UNAVAILABLE' });
17451
+ }
17359
17452
  return next();
17360
17453
  };
17361
17454
  const customerTariffSnapshot = () => {
@@ -21664,6 +21757,10 @@ const _nwDisplayBuildPayload = (station) => {
21664
21757
  return {
21665
21758
  ok: true,
21666
21759
  generatedAt: now,
21760
+ chargingControlIdentity: (() => {
21761
+ const snapshot = publicChargingControlIdentity(this, list);
21762
+ return { revision: snapshot.revision, slots: Object.fromEntries(Object.entries(snapshot.slots).filter(([slot]) => assignedSet.has(slot))) };
21763
+ })(),
21667
21764
  station: {
21668
21765
  id: station.id,
21669
21766
  name: station.name,
@@ -23205,6 +23302,7 @@ app.post('/api/display/station/:token/heartbeat', async (req, res) => {
23205
23302
  });
23206
23303
 
23207
23304
  app.post('/api/display/station/:token/command', async (req, res) => {
23305
+ let releaseChargingControl;
23208
23306
  try {
23209
23307
  sendNoStore(res);
23210
23308
  if (!_nwDisplayIsLicensed()) return res.status(403).json({ ok: false, error: 'eos_required', message: 'DC Station Display ist nur in EOS verfügbar.' });
@@ -23243,6 +23341,8 @@ app.post('/api/display/station/:token/command', async (req, res) => {
23243
23341
  return res.status(409).json({ ok: false, error: 'global_storage_control_required', message: 'Der Speicherschutz wird zentral auf der EVCS-Seite gesteuert.' });
23244
23342
  }
23245
23343
 
23344
+ releaseChargingControl = beginChargingControlWrite(this);
23345
+ assertChargingControlIdentity(this, lp, body);
23246
23346
  const commandTs = Date.now();
23247
23347
  await _nwDisplayWriteStationState(station.id, 'lastTouch', commandTs, true);
23248
23348
  await _nwDisplayWriteStationState(station.id, 'lastCommand', `${action}:${lp}:${mode}`, true);
@@ -23258,6 +23358,11 @@ app.post('/api/display/station/:token/command', async (req, res) => {
23258
23358
  await _nwDisplayPersistSessionOperatorStates(station, payload);
23259
23359
  return res.json({ ok: true, accepted: true, action, lp, mode, bridge: bridgeResult.bridge, controlProfile: bridgeResult.controlProfile, manufacturerOpen: true, payload });
23260
23360
  } catch (e) {
23361
+ if (e && ['EOS_EVCS_IDENTITY_BUSY', 'EOS_EVCS_IDENTITY_CHANGED'].includes(e.code)) {
23362
+ return res.status(409).json({ ok: false, error: e.code, message: e.code === 'EOS_EVCS_IDENTITY_CHANGED'
23363
+ ? 'Die Ladepunktzuordnung wurde geändert. Bitte die Seite neu laden und den Ladepunkt erneut auswählen.'
23364
+ : 'Die Ladepunktzuordnung wird gerade aktualisiert. Bitte anschließend erneut bedienen.' });
23365
+ }
23261
23366
  try {
23262
23367
  const station = _nwDisplayFindStation(req.params && req.params.token);
23263
23368
  if (station) {
@@ -23268,12 +23373,16 @@ app.post('/api/display/station/:token/command', async (req, res) => {
23268
23373
  }
23269
23374
  } catch (_e) {}
23270
23375
  return res.status(500).json({ ok: false, error: 'internal_error', message: 'Anfrage konnte intern nicht verarbeitet werden.' });
23376
+ } finally {
23377
+ if (releaseChargingControl) releaseChargingControl();
23271
23378
  }
23272
23379
  });
23273
23380
  app.get('/api/locale', nwLocaleApiService.createLocaleHandler(this, sendNoStore));
23274
23381
 
23275
23382
  // API-Kommentar: GET-Route. Zweck: stellt einen Web-/API-Endpunkt bereit. Zusammenhang: Frontend-Dateien in www/* können diesen Endpunkt direkt nutzen. Route/Handler: '/config', (req, res) => {
23276
23383
  app.get('/config', async (req, res) => {
23384
+ // Resolve access before taking the synchronous rows/identity snapshot.
23385
+ const sess = authEnabled ? await resolveAccess(req) : null;
23277
23386
  // UI flags: treat missing (undefined) EMS module flags as sensible defaults.
23278
23387
  // This avoids "legacy" fallbacks in the EVCS UI on upgrades where config flags
23279
23388
  // were not persisted yet.
@@ -23498,9 +23607,8 @@ app.get('/config', async (req, res) => {
23498
23607
  return evcsAvailableEffective;
23499
23608
  };
23500
23609
 
23501
- const sess = authEnabled ? await resolveAccess(req) : null;
23502
-
23503
23610
  const nwConfigPayload = {
23611
+ chargingControlIdentity: publicChargingControlIdentity(this, evcsListForConfig),
23504
23612
  tariffDisplay: tariffDisplayConfig(cfg, this.namespace),
23505
23613
  locale: this._nwBuildLocaleInfo(),
23506
23614
  countryProfile: this._nwBuildCountryProfileInfo(),
@@ -24702,11 +24810,23 @@ settingsConfig: {
24702
24810
  // generic setter for customer-facing settings and commands
24703
24811
  // API-Kommentar: POST-Route. Zweck: stellt einen Web-/API-Endpunkt bereit. Zusammenhang: Frontend-Dateien in www/* können diesen Endpunkt direkt nutzen. Route/Handler: '/api/set', requireAuth, async (req, res) => {
24704
24812
  app.post('/api/set', requireAuth, async (req, res) => {
24813
+ let releaseChargingControl;
24705
24814
  try {
24706
24815
  const scope = req.body && req.body.scope;
24707
24816
  const key = req.body && req.body.key;
24708
24817
  const value = req.body && req.body.value;
24709
24818
  if (!['settings', 'installer', 'ems', 'bhkw', 'generator', 'threshold', 'relay', 'evcs', 'rfid', 'flow', 'storageFarm'].includes(scope) || typeof key !== 'string' || !key || key.length > 256) return res.status(400).json({ ok: false, error: 'bad request' });
24819
+ if (scope === 'ems' || scope === 'evcs' || (scope === 'settings' && /^evcs/i.test(key))) {
24820
+ releaseChargingControl = beginChargingControlWrite(this);
24821
+ // Bind to the identity rendered by the caller, before any asynchronous
24822
+ // plan/read can let a configuration change replace this index.
24823
+ const point = scope === 'ems'
24824
+ ? key.match(/^(?:evcs\.)?(\d+)\./i) || key.match(/^(?:chargingManagement\.(?:wallboxes\.)?)?lp(\d+)\./i)
24825
+ : scope === 'evcs' ? key.match(/^(?:evcs\.)?(\d+)\./i) : null;
24826
+ const global = scope === 'settings' || /^(?:evcs\.)?(?:global|all)\./i.test(key);
24827
+ if (point) assertChargingControlIdentity(this, `lp${Number(point[1])}`, req.body);
24828
+ else if (global) assertChargingControlIdentity(this, null, req.body);
24829
+ }
24710
24830
 
24711
24831
  if (scope === 'settings' && key === 'email' && String(value || '').trim() && !validAddress(String(value).trim())) return res.status(400).json({ ok: false, error: 'Bitte eine einzelne gültige E-Mail-Adresse eingeben.' });
24712
24832
 
@@ -24852,6 +24972,10 @@ settingsConfig: {
24852
24972
  }
24853
24973
  }
24854
24974
  if (!safe || !prop) return res.status(400).json({ ok: false, error: 'bad request' });
24975
+ // The compatibility spelling must still address a configured lpN,
24976
+ // never create an unbound named control that bypasses identity checks.
24977
+ if (/^lp\d+$/i.test(safe)) safe = `lp${Number(safe.slice(2))}`;
24978
+ else assertChargingControlIdentity(this, safe, req.body);
24855
24979
 
24856
24980
  // Kundenseitige Freigabe der physischen Ladestation. Dieser State ist
24857
24981
  // bewusst vom Connector-/Fahrzeugstatus (`activeId`) und von der
@@ -26028,8 +26152,15 @@ settingsConfig: {
26028
26152
  }
26029
26153
  res.json({ ok: true });
26030
26154
  } catch (e) {
26155
+ if (e && ['EOS_EVCS_IDENTITY_BUSY', 'EOS_EVCS_IDENTITY_CHANGED'].includes(e.code)) {
26156
+ return res.status(409).json({ ok: false, error: e.code, message: e.code === 'EOS_EVCS_IDENTITY_CHANGED'
26157
+ ? 'Die Ladepunktzuordnung wurde geändert. Bitte die Seite neu laden und den Ladepunkt erneut auswählen.'
26158
+ : 'Die Ladepunktzuordnung wird gerade aktualisiert. Bitte anschließend erneut bedienen.' });
26159
+ }
26031
26160
  this.log.warn('set error: ' + e.message);
26032
26161
  res.status(500).json({ ok: false, error: 'internal error' });
26162
+ } finally {
26163
+ if (releaseChargingControl) releaseChargingControl();
26033
26164
  }
26034
26165
  });
26035
26166
 
@@ -27663,7 +27794,7 @@ return res.json(out);
27663
27794
  /**
27664
27795
  * Ablauf und Zusammenhang: Übernimmt ioBroker-Ereignisse in die Adapter-Laufzeit und verteilt relevante Änderungen an Anzeige, Einstellungen und Regelung. Bestätigte Messwerte und Bedien-Schreibwünsche dürfen dabei nicht verwechselt werden.
27665
27796
  */
27666
- onStateChange(id, state) {
27797
+ async onStateChange(id, state) {
27667
27798
  if (this._nwShuttingDown) return;
27668
27799
  this._ocppAutoDiscovery?.onStateChange(id, state);
27669
27800
  if (state && state.ack === false && String(id).startsWith(this.namespace + '.')
@@ -27758,33 +27889,38 @@ return res.json(out);
27758
27889
  }
27759
27890
  } catch (_e) {}
27760
27891
 
27761
- // Sync: EVCS numerischer Modus (evcs.<i>.mode) <-> EMS User-Mode (chargingManagement.wallboxes.lp<i>.userMode)
27892
+ // Compatibility mirrors participate in the same drain as HTTP commands.
27893
+ // Copying a journal uses ack:true and writes both representations itself.
27894
+ let releaseModeMirror;
27762
27895
  try {
27763
- if (key) {
27764
- // 1) Wenn ein externer oder interner Modus-DP geschrieben wird (ack=false), übersetze in userMode.
27765
- const m = key.match(/^evcs\.(\d+)\.mode$/);
27766
- if (m && state && state.ack === false) {
27767
- const idx = Number(m[1]);
27896
+ const legacyMode = key && key.match(/^evcs\.(\d+)\.mode$/);
27897
+ const userModeState = key && key.match(/^chargingManagement\.wallboxes\.lp(\d+)\.userMode$/);
27898
+ if ((legacyMode && (state.ack === false || !this._nwIsOwnStateId(id))) || userModeState) {
27899
+ releaseModeMirror = beginChargingControlWrite(this);
27900
+ if (legacyMode && state.ack === false) {
27901
+ const idx = Number(legacyMode[1]);
27768
27902
  const mv = Number(state.val);
27769
27903
  const userMode = (mv === 1) ? 'boost' : (mv === 2) ? 'minpv' : (mv === 3) ? 'pv' : 'auto';
27770
27904
  const userModeKey = `chargingManagement.wallboxes.lp${idx}.userMode`;
27771
- this.setStateAsync(userModeKey, userMode, false).catch(()=>{});
27772
- try { this.updateValue(userModeKey, userMode, Number(state.ts) || Date.now()); } catch (_e3) {}
27905
+ await this.setStateAsync(userModeKey, userMode, false);
27906
+ this.updateValue(userModeKey, userMode, Number(state.ts) || Date.now());
27773
27907
  this._nwRequestImmediateEmsTick(`state:${userModeKey}`);
27774
27908
  }
27775
-
27776
- // 2) Wenn userMode geändert wird, spiegle in evcs.<i>.mode (ack=true), damit UI/Kompatibilität stimmt.
27777
- const um = key.match(/^chargingManagement\.wallboxes\.lp(\d+)\.userMode$/);
27778
- if (um) {
27779
- const idx = Number(um[1]);
27780
- const v = String(state.val ?? '').toLowerCase();
27781
- const numMode = (v === 'boost') ? 1 : (v === 'minpv') ? 2 : (v === 'pv') ? 3 : 0;
27782
- this.setStateAsync(`evcs.${idx}.mode`, numMode, true).catch(()=>{});
27909
+ if (legacyMode && ((!this._nwIsOwnStateId(id) && !evcsMappedAlreadyHandled) || state.ack === false)) {
27910
+ await this.setStateAsync(key, normalizedMappedValue, true);
27911
+ }
27912
+ if (userModeState) {
27913
+ const idx = Number(userModeState[1]);
27914
+ const value = String(state.val ?? '').toLowerCase();
27915
+ const numeric = value === 'boost' ? 1 : value === 'minpv' ? 2 : value === 'pv' ? 3 : 0;
27916
+ await this.setStateAsync(`evcs.${idx}.mode`, numeric, true);
27783
27917
  }
27784
27918
  }
27785
- } catch (_e) {}
27919
+ } catch (error) {
27920
+ if (error?.code !== 'EOS_EVCS_IDENTITY_BUSY') this.log.warn('EOS_EVCS_MODE_MIRROR_FAILED');
27921
+ } finally { releaseModeMirror?.(); }
27786
27922
 
27787
- if (key && key.startsWith('evcs.')) {
27923
+ if (key && key.startsWith('evcs.') && !/^evcs\.\d+\.mode$/.test(key)) {
27788
27924
  const ownState = this._nwIsOwnStateId(id);
27789
27925
  // Externe Quellen werden durch den robusten EVCS-Publisher gespiegelt.
27790
27926
  // Eigene writeable EVCS-States werden nur bei ack=false quittiert; ack=true-
package/ui/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexowatt-eos-ui-internal",
3
- "version": "9.0.24",
3
+ "version": "9.0.26",
4
4
  "description": "Internal UI and EMS module hosted by iobroker.eos-admin; not an ioBroker adapter entry point.",
5
5
  "author": "NexoWatt",
6
6
  "license": "UNLICENSED",