iobroker.eos-admin 9.0.25 → 9.0.27

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 (324) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +12 -15
  2. package/README.md +6 -4
  3. package/START_HIER_9.0.26.md +80 -0
  4. package/START_HIER_9.0.27.md +33 -0
  5. package/adminWww/.vite/manifest.json +114 -114
  6. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13759 -13759
  7. package/adminWww/assets/{AdapterUpdateDialog-CLDpmxDx.js → AdapterUpdateDialog-L3aqW3ID.js} +1 -1
  8. package/adminWww/assets/{Adapters-BCGeX2v7.js → Adapters-Db3kbmAj.js} +1 -1
  9. package/adminWww/assets/{ConfigManager-B_sJf5_w.js → ConfigManager-D33l1qlC.js} +1 -1
  10. package/adminWww/assets/{Enums-D3n1pOtc.js → Enums-HlPEZ4AF.js} +1 -1
  11. package/adminWww/assets/{Fields-Bdx5gPoT.js → Fields-BWBgNDOp.js} +1 -1
  12. package/adminWww/assets/{Files-BPK84lYU.js → Files-BYaJp3AG.js} +1 -1
  13. package/adminWww/assets/{Hosts--Jr6oLf2.js → Hosts-DimiJ78g.js} +1 -1
  14. package/adminWww/assets/{Instances-DxTOzFus.js → Instances-C5kAjcqw.js} +1 -1
  15. package/adminWww/assets/{Intro-CYBGeZtu.js → Intro-B8keS0Ph.js} +1 -1
  16. package/adminWww/assets/{Logs-CVNC-4S8.js → Logs-D9dqF5Ag.js} +1 -1
  17. package/adminWww/assets/{Objects-Cqm9Rvym.js → Objects-oliB7_Se.js} +1 -1
  18. package/adminWww/assets/{Overview-JgjcHwlz.js → Overview-BmjcCFve.js} +1 -1
  19. package/adminWww/assets/{State-BV14HSwZ.js → State-DQz1O54D.js} +1 -1
  20. package/adminWww/assets/{UsedResources-Dz48WzEF.js → UsedResources-DOAuH0-U.js} +1 -1
  21. package/adminWww/assets/{Users-D19YlRCD.js → Users-Dv1iXiRk.js} +1 -1
  22. package/adminWww/assets/{bootstrap-a7POLSDr.js → bootstrap-BVw0diuj.js} +3 -3
  23. package/adminWww/assets/{hostInit-keGjwsZR.js → hostInit-C_7OBoza.js} +1 -1
  24. package/adminWww/assets/{icons-material-Omb_HCfb.js → icons-material-Apny8Mbp.js} +1 -1
  25. package/adminWww/assets/{index-DqPrQK7T.js → index-DwDSxDMx.js} +2 -2
  26. package/adminWww/assets/{installSVGRenderer-iWfLFoQU.js → installSVGRenderer--VTzKbml.js} +1 -1
  27. package/adminWww/assets/{mf-entry-bootstrap-0-2a856bb6.js → mf-entry-bootstrap-0-6f3e4c6b.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.27.js +12 -0
  32. package/adminWww/remoteEntry.js +1 -1
  33. package/build/lib/eosDeviceEmsPlan.js +24 -1
  34. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  35. package/build/lib/eosKiosk.js +11 -1
  36. package/build/lib/eosKiosk.js.map +1 -1
  37. package/build/lib/eosModuleHost.js +200 -41
  38. package/build/lib/eosModuleHost.js.map +1 -1
  39. package/build/lib/eosModuleHttp.js +9 -3
  40. package/build/lib/eosModuleHttp.js.map +1 -1
  41. package/build/lib/eosModuleLoad.js +83 -0
  42. package/build/lib/eosModuleLoad.js.map +1 -0
  43. package/build/lib/eosModuleProcess.js +16 -1
  44. package/build/lib/eosModuleProcess.js.map +1 -1
  45. package/build/lib/eosModuleProcessProtocol.js +13 -1
  46. package/build/lib/eosModuleProcessProtocol.js.map +1 -1
  47. package/build/lib/eosModuleProcessWorker.js +50 -23
  48. package/build/lib/eosModuleProcessWorker.js.map +1 -1
  49. package/build/lib/eosRuntimeControl.js +17 -6
  50. package/build/lib/eosRuntimeControl.js.map +1 -1
  51. package/build/lib/eosTlsHttp.js +84 -0
  52. package/build/lib/eosTlsHttp.js.map +1 -1
  53. package/build/lib/eosUiProcessWorker.js +1 -0
  54. package/build/lib/eosUiProcessWorker.js.map +1 -1
  55. package/build/lib/web.js +18 -1
  56. package/build/lib/web.js.map +1 -1
  57. package/docs/reports/unified-9.0.26/ACTIVATION.md +50 -0
  58. package/docs/reports/unified-9.0.26/BACKUP_READINESS_REVIEW.md +30 -0
  59. package/docs/reports/unified-9.0.26/BACKUP_UI.md +69 -0
  60. package/docs/reports/unified-9.0.26/CHARGING_CLIENT_REVIEW.md +24 -0
  61. package/docs/reports/unified-9.0.26/EVCS_DELETE_UI_REVIEW.md +120 -0
  62. package/docs/reports/unified-9.0.26/EVCS_IDENTITY_REVIEW.md +47 -0
  63. package/docs/reports/unified-9.0.26/INDEPENDENT_REVIEW.md +114 -0
  64. package/docs/reports/unified-9.0.26/LIFECYCLE_REVIEW.md +47 -0
  65. package/docs/reports/unified-9.0.26/OCPP_DELETION_REVIEW.md +49 -0
  66. package/docs/reports/unified-9.0.26/PIPELINE_OFFLINE_ASSERTION_REVIEW.md +71 -0
  67. package/docs/reports/unified-9.0.26/PRUEFBERICHT.md +71 -0
  68. package/docs/reports/unified-9.0.26/PWA_TLS.md +43 -0
  69. package/docs/reports/unified-9.0.26/TARIFF_STARTUP.md +42 -0
  70. package/docs/reports/unified-9.0.26/installed-package/README.md +105 -0
  71. package/docs/reports/unified-9.0.26/installed-package/baseline925-git-export.json +31 -0
  72. package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-install.log +15 -0
  73. package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-lifecycle.log +17 -0
  74. package/docs/reports/unified-9.0.26/installed-package/baseline925-node22.log +26 -0
  75. package/docs/reports/unified-9.0.26/installed-package/baseline925-node24-lifecycle.log +17 -0
  76. package/docs/reports/unified-9.0.26/installed-package/baseline925-node24.log +10 -0
  77. package/docs/reports/unified-9.0.26/installed-package/diagnostic-node22.log +26 -0
  78. package/docs/reports/unified-9.0.26/installed-package/diagnostic-node24.log +10 -0
  79. package/docs/reports/unified-9.0.26/installed-package/registry925-comparison.json +18 -0
  80. package/docs/reports/unified-9.0.26/raw/INDEX.json +43 -0
  81. package/docs/reports/unified-9.0.26/raw/activation/INTERNAL_VISUAL_CHECKS.md +1 -0
  82. package/docs/reports/unified-9.0.26/raw/activation/eslint.log +0 -0
  83. package/docs/reports/unified-9.0.26/raw/activation/node22-browser.json +74 -0
  84. package/docs/reports/unified-9.0.26/raw/activation/node22-browser.stderr.log +2 -0
  85. package/docs/reports/unified-9.0.26/raw/activation/node22-real-processes.log +40 -0
  86. package/docs/reports/unified-9.0.26/raw/activation/node22-unit-http.log +196 -0
  87. package/docs/reports/unified-9.0.26/raw/activation/node24-browser.json +74 -0
  88. package/docs/reports/unified-9.0.26/raw/activation/node24-browser.stderr.log +0 -0
  89. package/docs/reports/unified-9.0.26/raw/activation/node24-module-http.log +18 -0
  90. package/docs/reports/unified-9.0.26/raw/activation/node24-tests.log +43 -0
  91. package/docs/reports/unified-9.0.26/raw/activation/typecheck.log +0 -0
  92. package/docs/reports/unified-9.0.26/raw/activation/verification.json +38 -0
  93. package/docs/reports/unified-9.0.26/raw/backup-ui/field-map.json +497 -0
  94. package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.json +67 -0
  95. package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.stderr.log +2 -0
  96. package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.json +67 -0
  97. package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.stderr.log +0 -0
  98. package/docs/reports/unified-9.0.26/raw/backup-ui/verification.json +32 -0
  99. package/docs/reports/unified-9.0.26/raw/build-and-static/FINAL_CHECKS.json +45 -0
  100. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-before-ems-tariff.log +5 -0
  101. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-delivery.log +5 -0
  102. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-frontend.log +152 -0
  103. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-installer.log +26 -0
  104. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-modules.log +5 -0
  105. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime-delivery.log +7 -0
  106. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime.log +7 -0
  107. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-complete.log +45 -0
  108. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-delivery.log +45 -0
  109. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.json +77 -0
  110. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.stderr +1 -0
  111. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.json +7 -0
  112. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.stderr +9 -0
  113. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-sbom-vendored.log +1 -0
  114. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-complete.log +5 -0
  115. package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-delivery.log +5 -0
  116. package/docs/reports/unified-9.0.26/raw/charging-control-client-review-hashes.json +10 -0
  117. package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node22.log +86 -0
  118. package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node24.log +20 -0
  119. package/docs/reports/unified-9.0.26/raw/charging-identity/node22.log +130 -0
  120. package/docs/reports/unified-9.0.26/raw/charging-identity/node24.log +27 -0
  121. package/docs/reports/unified-9.0.26/raw/charging-identity-review/PRODUCT_REVIEW.md +45 -0
  122. package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.json +18 -0
  123. package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.stderr +0 -0
  124. package/docs/reports/unified-9.0.26/raw/charging-identity-review/node24-tests.log +38 -0
  125. package/docs/reports/unified-9.0.26/raw/charging-identity-review/registry-ipc.json +24 -0
  126. package/docs/reports/unified-9.0.26/raw/charging-identity-review/review-probes.cjs +81 -0
  127. package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node22.log +188 -0
  128. package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node24.log +36 -0
  129. package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node22.log +148 -0
  130. package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node24.log +30 -0
  131. package/docs/reports/unified-9.0.26/raw/evcs-delete/browser-lint.log +0 -0
  132. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.json +28 -0
  133. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.log +3 -0
  134. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-client-handshake.log +112 -0
  135. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-corrected.log +94 -0
  136. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-diagnostic.log +27 -0
  137. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-repro.log +94 -0
  138. package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-tick-probe.log +36 -0
  139. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.json +28 -0
  140. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.log +1 -0
  141. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-client-handshake.log +24 -0
  142. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-corrected.log +23 -0
  143. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-repro.log +23 -0
  144. package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-tick-probe.log +28 -0
  145. package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-corrected-snapshot.json +23 -0
  146. package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-lint.log +6 -0
  147. package/docs/reports/unified-9.0.26/raw/final-source-snapshot.json +16 -0
  148. package/docs/reports/unified-9.0.26/raw/git-vendor-source/node22.log +28 -0
  149. package/docs/reports/unified-9.0.26/raw/git-vendor-source/node24.log +10 -0
  150. package/docs/reports/unified-9.0.26/raw/git-vendor-source/verification.json +29 -0
  151. package/docs/reports/unified-9.0.26/raw/independent-review/GIT_ADDENDUM.json +20 -0
  152. package/docs/reports/unified-9.0.26/raw/independent-review/INDEX.json +76 -0
  153. package/docs/reports/unified-9.0.26/raw/independent-review/baseline925-artifacts-independent.json +16 -0
  154. package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node22.log +22 -0
  155. package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node24.log +9 -0
  156. package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-node24.log +9 -0
  157. package/docs/reports/unified-9.0.26/raw/independent-review/git-transport-independent.json +33 -0
  158. package/docs/reports/unified-9.0.26/raw/independent-review/npm-dry-run-file-inventory.json +16271 -0
  159. package/docs/reports/unified-9.0.26/raw/independent-review/npm-git-complete-inventory.json +40 -0
  160. package/docs/reports/unified-9.0.26/raw/independent-review/public-trust-node24.log +9 -0
  161. package/docs/reports/unified-9.0.26/raw/independent-review/runtime-lifecycle-import-node24.log +35 -0
  162. package/docs/reports/unified-9.0.26/raw/lifecycle/node22-baseline925.json +30 -0
  163. package/docs/reports/unified-9.0.26/raw/lifecycle/node22-candidate926.json +30 -0
  164. package/docs/reports/unified-9.0.26/raw/lifecycle/node24-baseline925.json +30 -0
  165. package/docs/reports/unified-9.0.26/raw/lifecycle/node24-candidate926.json +30 -0
  166. package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-git-regression.log +16035 -0
  167. package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-ui.log +16037 -0
  168. package/docs/reports/unified-9.0.26/raw/node22-tests-before-ems-tariff.log +16064 -0
  169. package/docs/reports/unified-9.0.26/raw/node22-tests-before-git-regression.log +16027 -0
  170. package/docs/reports/unified-9.0.26/raw/node22-tests-before-pipeline-fixture.log +11584 -0
  171. package/docs/reports/unified-9.0.26/raw/node22-tests-before-remap-noop.log +11581 -0
  172. package/docs/reports/unified-9.0.26/raw/node22-tests-final.log +16520 -0
  173. package/docs/reports/unified-9.0.26/raw/node22-version.log +1 -0
  174. package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-git-regression.log +2678 -0
  175. package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-ui.log +2678 -0
  176. package/docs/reports/unified-9.0.26/raw/node24-tests-before-ems-tariff.log +1860 -0
  177. package/docs/reports/unified-9.0.26/raw/node24-tests-before-git-regression.log +2677 -0
  178. package/docs/reports/unified-9.0.26/raw/node24-tests-before-pipeline-fixture.log +1925 -0
  179. package/docs/reports/unified-9.0.26/raw/node24-tests-before-remap-noop.log +1924 -0
  180. package/docs/reports/unified-9.0.26/raw/node24-tests-final.log +2757 -0
  181. package/docs/reports/unified-9.0.26/raw/node24-version.log +1 -0
  182. package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node22.log +148 -0
  183. package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node24.log +30 -0
  184. package/docs/reports/unified-9.0.26/raw/publish-overlay-provenance.json +10 -0
  185. package/docs/reports/unified-9.0.26/raw/pwa/INTERNAL_VISUAL_CHECKS.md +1 -0
  186. package/docs/reports/unified-9.0.26/raw/pwa/index.json +18 -0
  187. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-baseline.log +48 -0
  188. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.json +33 -0
  189. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.stderr +5 -0
  190. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.json +33 -0
  191. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.stderr +2 -0
  192. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node22.log +137 -0
  193. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node24.log +32 -0
  194. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-lint.log +0 -0
  195. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node22.log +28 -0
  196. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node24.log +10 -0
  197. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-tls-final.log +9 -0
  198. package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-typecheck.log +0 -0
  199. package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node22.log +250 -0
  200. package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node24.log +46 -0
  201. package/docs/reports/unified-9.0.26/raw/tariff-startup/PRODUCT_REVIEW.md +30 -0
  202. package/docs/reports/unified-9.0.26/raw/tariff-startup/browser-eslint.log +0 -0
  203. package/docs/reports/unified-9.0.26/raw/tariff-startup/eslint.log +0 -0
  204. package/docs/reports/unified-9.0.26/raw/tariff-startup/independent-review-node24.log +35 -0
  205. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.json +43 -0
  206. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.stderr +2 -0
  207. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-process-final.log +26 -0
  208. package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-tests.log +378 -0
  209. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.json +43 -0
  210. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.stderr +0 -0
  211. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-process-final.log +10 -0
  212. package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-tests.log +66 -0
  213. package/docs/reports/unified-9.0.26/raw/tariff-startup/process-verification.json +41 -0
  214. package/docs/reports/unified-9.0.26/raw/tariff-startup/typecheck.log +0 -0
  215. package/docs/reports/unified-9.0.27/ABHAENGIGKEITEN.md +27 -0
  216. package/docs/reports/unified-9.0.27/PRUEFBERICHT.md +68 -0
  217. package/docs/reports/unified-9.0.27/PRUEFERGEBNISSE.json +292 -0
  218. package/docs/reports/unified-9.0.27/SICHERHEITSBETRACHTUNG.md +26 -0
  219. package/docs/reports/unified-9.0.27/TIBBER_NEUSTART.md +23 -0
  220. package/docs/reports/unified-9.0.27/UPDATE_WIEDERANLAUF.md +46 -0
  221. package/docs/reports/unified-9.0.27/raw/INDEX.json +347 -0
  222. package/docs/reports/unified-9.0.27/raw/admin-build-mirror-review.json +75 -0
  223. package/docs/reports/unified-9.0.27/raw/ajv-production-reachability.json +35 -0
  224. package/docs/reports/unified-9.0.27/raw/backend-build.log +5 -0
  225. package/docs/reports/unified-9.0.27/raw/baseline-devices.log +138 -0
  226. package/docs/reports/unified-9.0.27/raw/baseline-module-startup.log +82 -0
  227. package/docs/reports/unified-9.0.27/raw/baseline-ocpp-contract.log +93 -0
  228. package/docs/reports/unified-9.0.27/raw/baseline-ocpp-frontend.log +255 -0
  229. package/docs/reports/unified-9.0.27/raw/baseline-repository-tools.log +84 -0
  230. package/docs/reports/unified-9.0.27/raw/browser-blocked.log +38 -0
  231. package/docs/reports/unified-9.0.27/raw/controller-725-reproduction-node24.log +4 -0
  232. package/docs/reports/unified-9.0.27/raw/devices-child-rpc-diagnostic.log +34 -0
  233. package/docs/reports/unified-9.0.27/raw/devices-filter-without-readiness.log +15 -0
  234. package/docs/reports/unified-9.0.27/raw/devices-final-web-filtered-node22.log +107 -0
  235. package/docs/reports/unified-9.0.27/raw/devices-final-web-filtered-node24.log +26 -0
  236. package/docs/reports/unified-9.0.27/raw/eos-update-path-node24.log +52 -0
  237. package/docs/reports/unified-9.0.27/raw/frontend-build.log +152 -0
  238. package/docs/reports/unified-9.0.27/raw/influx/provenance.json +42 -0
  239. package/docs/reports/unified-9.0.27/raw/installer-build.log +26 -0
  240. package/docs/reports/unified-9.0.27/raw/lint.log +5 -0
  241. package/docs/reports/unified-9.0.27/raw/modules-build.log +5 -0
  242. package/docs/reports/unified-9.0.27/raw/node22-tests-final.log +16976 -0
  243. package/docs/reports/unified-9.0.27/raw/node22-version.log +1 -0
  244. package/docs/reports/unified-9.0.27/raw/node24-tests-final.log +2831 -0
  245. package/docs/reports/unified-9.0.27/raw/node24-version.log +1 -0
  246. package/docs/reports/unified-9.0.27/raw/npm-audit-development.json +398 -0
  247. package/docs/reports/unified-9.0.27/raw/npm-audit-production.json +77 -0
  248. package/docs/reports/unified-9.0.27/raw/npm-production-ajv-tree.json +33 -0
  249. package/docs/reports/unified-9.0.27/raw/npm-production-ajv-tree.stderr +1 -0
  250. package/docs/reports/unified-9.0.27/raw/npm926-dateivergleich.json +6 -0
  251. package/docs/reports/unified-9.0.27/raw/production-audit-review.json +30 -0
  252. package/docs/reports/unified-9.0.27/raw/release-targeted.log +118 -0
  253. package/docs/reports/unified-9.0.27/raw/restart-regressions-node22.log +361 -0
  254. package/docs/reports/unified-9.0.27/raw/sbom-generation.json +11 -0
  255. package/docs/reports/unified-9.0.27/raw/source-fixtures.json +30 -0
  256. package/docs/reports/unified-9.0.27/raw/targeted-ocpp-frontend.log +26 -0
  257. package/docs/reports/unified-9.0.27/raw/test-environment.json +24 -0
  258. package/docs/reports/unified-9.0.27/raw/tibber/backend/REVIEW.md +40 -0
  259. package/docs/reports/unified-9.0.27/raw/tibber/backend/appcenter-overwrite-patched-scratch.log +11 -0
  260. package/docs/reports/unified-9.0.27/raw/tibber/backend/appcenter-overwrite-repro.log +33 -0
  261. package/docs/reports/unified-9.0.27/raw/tibber/backend/customer-tariff-lint.log +0 -0
  262. package/docs/reports/unified-9.0.27/raw/tibber/backend/customer-tariff-typecheck.log +0 -0
  263. package/docs/reports/unified-9.0.27/raw/tibber/backend/process-disk-restart-node24.log +10 -0
  264. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-diagnostic.log +58 -0
  265. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-ipc-counts.log +45 -0
  266. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-node24.log +42 -0
  267. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-final-node22.log +134 -0
  268. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-final-node24.log +28 -0
  269. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-source-node22-diagnostic.log +220 -0
  270. package/docs/reports/unified-9.0.27/raw/tibber/independent/tariff-background-hydration-review.log +1 -0
  271. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-header-object-mask-review.log +1 -0
  272. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-independent-frontend-review.log +14 -0
  273. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-independent-scope-review.log +1 -0
  274. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-mapping-targeted-node24.log +2184 -0
  275. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-parent-persistence-review.log +20 -0
  276. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/appcenter-tariff-roundtrip-baseline.log +57 -0
  277. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/customer-editor-final.log +24 -0
  278. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/frontend-guard-baseline.log +303 -0
  279. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/frontend-guard-final.log +14 -0
  280. package/docs/reports/unified-9.0.27/raw/tibber-appcenter-baseline.log +33 -0
  281. package/docs/reports/unified-9.0.27/raw/tibber-background-hydration-baseline.log +1 -0
  282. package/docs/reports/unified-9.0.27/raw/tibber-form-baseline.log +57 -0
  283. package/docs/reports/unified-9.0.27/raw/tibber-mapping-targeted-node24.log +2184 -0
  284. package/docs/reports/unified-9.0.27/raw/tibber-minimal-fix-isolation.log +11 -0
  285. package/docs/reports/unified-9.0.27/raw/typecheck.log +5 -0
  286. package/docs/reports/unified-9.0.27/raw/ui-build.log +7 -0
  287. package/docs/unified/NEXOWATT_TLS_DE.md +12 -2
  288. package/io-package.json +12 -13
  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/modules/devices/admin/ems-assignment.js +1 -0
  293. package/package.json +13 -10
  294. package/public/eos-runtime/index.js +12 -2
  295. package/public/eos-tls/index.html +1 -1
  296. package/public/eos-tls/trust.css +19 -0
  297. package/public/eos-tls/trust.html +52 -0
  298. package/release-manifests/unified/build-environment.cdx.json +6 -6
  299. package/release-manifests/unified/files.json +419 -140
  300. package/release-manifests/unified/frontend.cdx.json +6 -6
  301. package/release-manifests/unified/installer.cdx.json +2 -2
  302. package/release-manifests/unified/obsolete-admin-assets.json +627 -463
  303. package/release-manifests/unified/runtime.cdx.json +28 -28
  304. package/release-manifests/unified/validation.json +15 -15
  305. package/tools/eos-lifecycle-benchmark.cjs +50 -0
  306. package/tools/eos-release-manifest.cjs +1 -1
  307. package/ui/ems/engine.js +5 -1
  308. package/ui/io-package.json +1 -1
  309. package/ui/lib/charging-point-identity.js +465 -0
  310. package/ui/lib/charging-station-identity.js +111 -0
  311. package/ui/lib/customer-tariff.js +73 -1
  312. package/ui/lib/installer-lifecycle.js +5 -3
  313. package/ui/lib/ocpp-auto-discovery.js +83 -5
  314. package/ui/main.js +261 -113
  315. package/ui/package.json +1 -1
  316. package/ui/www/app.js +63 -18
  317. package/ui/www/customer-tariff.js +67 -11
  318. package/ui/www/dc-station-display.js +15 -11
  319. package/ui/www/ems-apps.js +227 -135
  320. package/ui/www/evcs.js +55 -12
  321. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  322. package/ui/www/login.html +1 -0
  323. package/ui/www/manifest.webmanifest +2 -2
  324. package/adminWww/remoteEntry-eos-9.0.25.js +0 -12
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:0929d163c13709fb7736ba4c35a32374a1524032791acc8fb6be5a51a94957c2
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -59,7 +59,7 @@ const { installerRevision, assertInstallerRevision, provisionInstallerObjects, a
59
59
  const { buildFarmOverview } = require('./lib/storage-farm-overview');
60
60
  const { readFlowMeasurement, sumFlowMeasurements } = require('./lib/flow-measurement');
61
61
  const { tariffDisplayConfig, tariffPriceNumber } = require('./lib/tariff-price');
62
- const { customerTariffView, prepareCustomerTariffChange } = require('./lib/customer-tariff');
62
+ const { customerTariffView, prepareCustomerTariffChange, mergeInstallerTariffSecrets } = require('./lib/customer-tariff');
63
63
  const { InfluxDirectClient } = require('./lib/influx-direct');
64
64
  const { InfluxHistoryRuntime } = require('./lib/influx-history-runtime');
65
65
  const { PostgresHistoryClient, loadPostgresProfile } = require('./lib/postgres-history');
@@ -81,7 +81,9 @@ const { buildStationDisplayPresentation } = require('./lib/station-display-prese
81
81
  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
- const { OcppAutoDiscovery, planOcppDiscovery, normalizeOcppDiscovery, ocppDiscoveryPatterns, ocppStationRoot, ocppRootInScope, ocppNamespace } = require('./lib/ocpp-auto-discovery');
84
+ const { OcppAutoDiscovery, collectOcppStations, filterOcppDiscoverySources, planOcppDiscovery, prepareOcppDiscoveryExclusions, normalizeOcppDiscovery, ocppDiscoveryPatterns } = 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;
@@ -4932,6 +4974,7 @@ class NexoWattVis extends HostedAdapter {
4932
4974
  const assertReady = () => {
4933
4975
  if (this._nwShuttingDown || this._bridge.canWrite() !== true) throw new Error('EOS_UI_OWNERSHIP_REQUIRED');
4934
4976
  if (!['ready', 'degraded'].includes(this._hostedStartup?.state)) throw new Error('EOS_UI_STARTING');
4977
+ if (this._nwInstallerConfigHydrated !== true) throw new Error('EOS_UI_CONFIG_NOT_READY');
4935
4978
  if (!centralLicenseSnapshot(this._bridge).ok) throw new Error('EOS_LICENSE_REQUIRED');
4936
4979
  };
4937
4980
  assertReady();
@@ -4954,6 +4997,7 @@ class NexoWattVis extends HostedAdapter {
4954
4997
  const storageLicense = this._nwValidateStorageFarmLicense(next);
4955
4998
  if (!storageLicense.ok) throw new Error(String(storageLicense.error || 'EOS_EMS_STORAGE_LICENSE_REQUIRED'));
4956
4999
  await this._nwProvisionInstallerObjects(next);
5000
+ await this._nwPrepareChargingPointReconfigure(next, true);
4957
5001
  assertReady();
4958
5002
  if (plan.changed) {
4959
5003
  if (await this.persistInstallerConfigToState(patch) === false) throw new Error('EOS_DEVICE_EMS_PERSIST_FAILED');
@@ -4965,7 +5009,7 @@ class NexoWattVis extends HostedAdapter {
4965
5009
  assertReady();
4966
5010
  if (this.emsEngine?.stopForReconfigure) await this.emsEngine.stopForReconfigure();
4967
5011
  assertReady();
4968
- this.config = next;
5012
+ this.config = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, patch);
4969
5013
  await this._nwApplyInstallerRuntime(true, 'device-commissioning');
4970
5014
  this._nwDeviceEmsApplyPending = false;
4971
5015
  try { await this.nwWriteUserdataBackup(patch, 'device-commissioning'); }
@@ -4979,6 +5023,7 @@ class NexoWattVis extends HostedAdapter {
4979
5023
  const assertReady = () => {
4980
5024
  if (this._nwShuttingDown || this._bridge.canWrite() !== true) throw new Error('EOS_UI_OWNERSHIP_REQUIRED');
4981
5025
  if (!['ready', 'degraded'].includes(this._hostedStartup?.state)) throw new Error('EOS_UI_STARTING');
5026
+ if (this._nwInstallerConfigHydrated !== true) throw new Error('EOS_UI_CONFIG_NOT_READY');
4982
5027
  if (!centralLicenseSnapshot(this._bridge).ok) throw new Error('EOS_LICENSE_REQUIRED');
4983
5028
  };
4984
5029
  assertReady();
@@ -4992,6 +5037,7 @@ class NexoWattVis extends HostedAdapter {
4992
5037
  const patch = this.nwDeepMerge(this._nwDeepClone(this._nwInstallerConfigPatch || {}), plan.patch);
4993
5038
  const next = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, patch);
4994
5039
  await this._nwProvisionInstallerObjects(next);
5040
+ await this._nwPrepareChargingPointReconfigure(next, true);
4995
5041
  assertReady();
4996
5042
  if (plan.changed) {
4997
5043
  if (await this.persistInstallerConfigToState(patch) === false) throw new Error('EOS_OCPP_DISCOVERY_PERSIST_FAILED');
@@ -5003,7 +5049,7 @@ class NexoWattVis extends HostedAdapter {
5003
5049
  assertReady();
5004
5050
  if (this.emsEngine?.stopForReconfigure) await awaitEmsTransition(this.emsEngine.stopForReconfigure());
5005
5051
  assertReady();
5006
- this.config = next;
5052
+ this.config = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, patch);
5007
5053
  await this._nwApplyInstallerRuntime(true, 'ocpp-discovery');
5008
5054
  this._nwOcppApplyPending = false;
5009
5055
  try { await this.nwWriteUserdataBackup(patch, 'ocpp-discovery'); }
@@ -5012,12 +5058,32 @@ class NexoWattVis extends HostedAdapter {
5012
5058
  } finally { this._nwEndInstallerConfigMutation(token); }
5013
5059
  }
5014
5060
 
5061
+ async _nwReadOcppDiscoveryObjects() {
5062
+ return Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace)
5063
+ .map(pattern => this.getForeignObjectsAsync(pattern, 'state'))));
5064
+ }
5065
+
5066
+ async _nwReadOcppDiscoveryMetadata() {
5067
+ return Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace)
5068
+ .map(pattern => this.getForeignStatesAsync(`${pattern}.info.*`))));
5069
+ }
5070
+
5071
+ async _nwReadOcppDiscoverySources() {
5072
+ return {
5073
+ instances: await this.getObjectViewAsync('system', 'instance', {
5074
+ startkey: 'system.adapter.ocpp21.', endkey: 'system.adapter.ocpp21.\u9999', limit: 129,
5075
+ }),
5076
+ hostedNamespace: this._bridge.getRuntimeReadiness?.()?.hostedOcppNamespace,
5077
+ };
5078
+ }
5079
+
5015
5080
  _nwStartOcppAutoDiscovery() {
5016
5081
  if (this._nwShuttingDown || this._ocppAutoDiscovery) return;
5017
5082
  this._ocppAutoDiscovery = new OcppAutoDiscovery({
5018
5083
  hostNamespace: this.hostNamespace,
5019
- readObjects: async () => Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.getForeignObjectsAsync(pattern, 'state')))),
5020
- readMetadata: async () => Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.getForeignStatesAsync(`${pattern}.info.*`)))),
5084
+ readObjects: () => this._nwReadOcppDiscoveryObjects(),
5085
+ readMetadata: () => this._nwReadOcppDiscoveryMetadata(),
5086
+ readSources: () => this._nwReadOcppDiscoverySources(),
5021
5087
  subscribe: () => Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.subscribeForeignStatesAsync(`${pattern}.info.*`))),
5022
5088
  reconcile: stations => this.reconcileOcppDiscovery(stations),
5023
5089
  canRun: () => !this._nwShuttingDown && this._bridge.canWrite() === true
@@ -5075,7 +5141,30 @@ class NexoWattVis extends HostedAdapter {
5075
5141
 
5076
5142
  async persistInstallerConfigToState(patchObj) {
5077
5143
  // Auch interne Save-/Importpfade dürfen verbindliche Mesh-Grenzen nicht lösen.
5078
- const nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5144
+ let nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5145
+ const previousEvcsRows = this.config?.settingsConfig?.evcsList || [];
5146
+ const nextEvcsRows = nextRuntime?.settingsConfig?.evcsList || [];
5147
+ const persistedEvcsRows = this._nwInstallerConfigPatch?.settingsConfig?.evcsList;
5148
+ const submittedEvcsRows = patchObj?.settingsConfig?.evcsList;
5149
+ // Unrelated tariff/history saves must neither remap nor revalidate an
5150
+ // unchanged persisted point layout. Runtime-only normalization is not an
5151
+ // operator reassignment. A real persisted row change takes every guard.
5152
+ if (JSON.stringify(persistedEvcsRows === undefined ? previousEvcsRows : persistedEvcsRows)
5153
+ !== JSON.stringify(submittedEvcsRows === undefined ? nextEvcsRows : submittedEvcsRows)) {
5154
+ const remappedModes = remapChargingPointDefaultModes(previousEvcsRows, nextEvcsRows, this.namespace);
5155
+ if (remappedModes !== nextEvcsRows && patchObj && typeof patchObj === 'object') {
5156
+ patchObj.settingsConfig = { ...nextRuntime.settingsConfig, evcsList: remappedModes };
5157
+ nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5158
+ }
5159
+ // A public station URL stays bound to its physical points when lpN indices
5160
+ // move. Persist its remapped manual/fallback list in this same config commit.
5161
+ const nextKiosk = remapChargingStationAssignments(previousEvcsRows, nextRuntime?.settingsConfig?.evcsList || [],
5162
+ this.config?.chargeKiosk, nextRuntime?.chargeKiosk, this.namespace);
5163
+ if (nextKiosk !== nextRuntime?.chargeKiosk && patchObj && typeof patchObj === 'object') {
5164
+ patchObj.chargeKiosk = nextKiosk;
5165
+ nextRuntime = this.nwApplyInstallerPatchToRuntimeConfig(this.config, patchObj);
5166
+ }
5167
+ }
5079
5168
  this._meshCoordinator?.assertAppChange(nextRuntime);
5080
5169
  assertPartnerPersistence(this.config || {}, nextRuntime);
5081
5170
  if (!this._nwPartnerCommitInFlight && JSON.stringify(currentPartnerConfig(this.config)) !== JSON.stringify(currentPartnerConfig(nextRuntime))) {
@@ -12023,6 +12112,7 @@ async onReady() {
12023
12112
  assertStartupAuthority();
12024
12113
  return result;
12025
12114
  };
12115
+ this._nwInstallerConfigHydrated = false;
12026
12116
  this._hostedStartup = { state: 'starting', error: '' };
12027
12117
  try {
12028
12118
  if (!centralLicenseSnapshot(this._bridge).ok) {
@@ -15778,6 +15868,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
15778
15868
  // KI‑Energieberater
15779
15869
  aiAdvisor: (n.aiAdvisor && typeof n.aiAdvisor === 'object') ? n.aiAdvisor : undefined,
15780
15870
  energyWallet: (n.energyWallet && typeof n.energyWallet === 'object') ? n.energyWallet : {},
15871
+ tariffProvider: (n.tariffProvider && typeof n.tariffProvider === 'object') ? this._nwDeepClone(n.tariffProvider) : {},
15781
15872
  energyLedger: (n.energyLedger && typeof n.energyLedger === 'object') ? n.energyLedger : { enabled: false },
15782
15873
  chargeKiosk: (n.chargeKiosk && typeof n.chargeKiosk === 'object') ? n.chargeKiosk : { enabled: false, displayBasePath: '/display/station/', stations: [] },
15783
15874
  meshMicrogrid: (n.meshMicrogrid && typeof n.meshMicrogrid === 'object') ? n.meshMicrogrid : { enabled: false, mode: 'diagnostic', clusterId: 'cluster_01', clusterName: 'Lokaler Energieverbund', gridLimitW: 0, nodes: [] },
@@ -16126,6 +16217,14 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16126
16217
  if (_nwTariffSecretKeys.has(String(key)) && String(creds[key] || '').trim()) creds[key] = '__KEEP__';
16127
16218
  }
16128
16219
  }
16220
+ // Request headers/bodies may embed arbitrary authentication values.
16221
+ // Keep the entire configured value server-side instead of guessing keys.
16222
+ const custom = clone?.tariffProvider?.customRest;
16223
+ if (custom && typeof custom === 'object') {
16224
+ for (const key of ['headersJson', 'body']) {
16225
+ if (custom[key] !== undefined && custom[key] !== null && custom[key] !== '') custom[key] = '__KEEP__';
16226
+ }
16227
+ }
16129
16228
  return clone;
16130
16229
  };
16131
16230
  const stripRetainedTariffCredentials = (patch) => {
@@ -16133,20 +16232,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16133
16232
  if (clean.tariffProvider) delete clean.tariffProvider.retainedProviderCredentials;
16134
16233
  return clean;
16135
16234
  };
16136
- const _nwMergeTariffProviderSecrets = (incoming, existing) => {
16137
- const next = this._nwDeepClone(incoming || {}) || {};
16138
- const prev = existing && typeof existing === 'object' ? existing : {};
16139
- next.credentials = next.credentials && typeof next.credentials === 'object' ? next.credentials : {};
16140
- const prevCreds = prev.credentials && typeof prev.credentials === 'object' ? prev.credentials : {};
16141
- for (const key of _nwTariffSecretKeys) {
16142
- const raw = next.credentials[key];
16143
- if (raw === '__KEEP__' || raw === undefined || raw === null) {
16144
- if (prevCreds[key] !== undefined) next.credentials[key] = prevCreds[key];
16145
- else delete next.credentials[key];
16146
- }
16147
- }
16148
- return next;
16149
- };
16235
+ const _nwMergeTariffProviderSecrets = mergeInstallerTariffSecrets;
16150
16236
 
16151
16237
  /** Neue/geänderte Stations-Bearer verlangen ein langes URL-sicheres Format.
16152
16238
  * Unveränderte Alt-Tokens bleiben bis zur bewussten Neuverknüpfung verwendbar;
@@ -16231,11 +16317,18 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16231
16317
  } catch (error) { return historyFailure(res, error); }
16232
16318
  finally { endMeshAppSave(mutation); }
16233
16319
  });
16320
+ // A reachable shell is not evidence that the stored Installer configuration
16321
+ // has loaded. Never publish a default snapshot/revision or accept its edit.
16322
+ const requireInstallerConfigLoaded = (_req, res, next) => {
16323
+ if (this._nwInstallerConfigHydrated === true) return next();
16324
+ sendNoStore(res);
16325
+ const loading = ['idle', 'starting'].includes(this._hostedStartup?.state);
16326
+ return res.status(503).json({ ok: false, error: loading ? 'EOS_INSTALLER_CONFIG_LOADING' : 'EOS_INSTALLER_CONFIG_UNAVAILABLE' });
16327
+ };
16234
16328
  // API-Kommentar: GET-Route. Zweck: stellt einen Web-/API-Endpunkt bereit. Zusammenhang: Frontend-Dateien in www/* können diesen Endpunkt direkt nutzen. Route/Handler: '/api/installer/config', requireInstaller, async (_req, res) => {
16235
- app.get('/api/installer/config', requireInstaller, async (_req, res) => {
16329
+ app.get('/api/installer/config', requireInstaller, requireInstallerConfigLoaded, async (_req, res) => {
16236
16330
  try {
16237
16331
  sendNoStore(res);
16238
- const configurationRevision = this._nwInstallerConfigRevision();
16239
16332
  // A license can be saved through the Admin tab while the App-Center is already open.
16240
16333
  // Refresh the runtime license cache here before filtering apps. This also covers the
16241
16334
  // startup edge case where the HTTP gate is open but _nwLicenseInfo has not yet been
@@ -16248,7 +16341,12 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16248
16341
  // system.adapter.<instance>.native. Persisting to native triggers an ioBroker instance restart
16249
16342
  // and breaks the UI with "Failed to fetch" + SSE disconnects.
16250
16343
  const nativeObj = (this.config && typeof this.config === 'object') ? this.config : {};
16251
- let cfgOut = await _nwHydrateStorageFarmConfigFromRuntimeStates(_nwPickPersistedInstallerConfig());
16344
+ // Take the token and its configuration snapshot without an await between
16345
+ // them. Discovery may commit while license refresh/hydration is pending;
16346
+ // it must never pair newer rows with an older form revision.
16347
+ const configurationRevision = this._nwInstallerConfigRevision();
16348
+ const installerSnapshot = this._nwDeepClone(_nwPickPersistedInstallerConfig());
16349
+ let cfgOut = await _nwHydrateStorageFarmConfigFromRuntimeStates(installerSnapshot);
16252
16350
  cfgOut = _nwMaskTariffProviderForUi(cfgOut);
16253
16351
  // 1.0.3: Nur die an die UI gelieferte Kopie wird auf die aktuelle Edition
16254
16352
  // begrenzt. Alte Pro-Konfigurationen bleiben intern erhalten, dürfen bei einer
@@ -16271,7 +16369,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16271
16369
  });
16272
16370
 
16273
16371
  // 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/installer/config', requireInstaller, async (req, res) => {
16274
- app.post('/api/installer/config', requireInstaller, async (req, res) => {
16372
+ app.post('/api/installer/config', requireInstaller, requireInstallerConfigLoaded, async (req, res) => {
16275
16373
  const meshSaveToken = beginMeshAppSave();
16276
16374
  if (!meshSaveToken) return res.status(409).json({ error: 'Konfiguration wird bereits gespeichert.' });
16277
16375
  try {
@@ -16279,7 +16377,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16279
16377
  const body = req.body || {};
16280
16378
  this._nwAssertInstallerConfigRevision(body.expectedConfigurationRevision);
16281
16379
  const patch = body.patch && typeof body.patch === 'object' ? body.patch : {};
16282
- const restartEms = body.restartEms !== false; // default true
16380
+ let restartEms = body.restartEms !== false; // identity changes always restart safely
16283
16381
  const tokenError = nwValidateStationTokenChanges(patch);
16284
16382
  if (tokenError) return res.status(400).json({ ok: false, error: 'invalid_station_token', message: tokenError });
16285
16383
 
@@ -16330,6 +16428,12 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16330
16428
  const gateResult = await _nwApplyInstallerRegressionSafetyGate(safePatch, basePatch);
16331
16429
  const guardedPatch = gateResult && gateResult.patch ? gateResult.patch : safePatch;
16332
16430
  let mergedPatch = this.nwDeepMerge(this.nwDeepMerge({}, basePatch), guardedPatch);
16431
+ // The explicit empty-list permission belongs to this accepted edit,
16432
+ // never to subsequent forms or background configuration changes.
16433
+ if (mergedPatch.settingsConfig && typeof mergedPatch.settingsConfig === 'object') {
16434
+ delete mergedPatch.settingsConfig.__allowEmptyEvcsList;
16435
+ delete mergedPatch.settingsConfig.__explicitDeleteAll;
16436
+ }
16333
16437
  // Die Topologie ist ein atomarer Vertrag; kein partieller Deep-Merge mit
16334
16438
  // alten Messpunkten, Stellhoheiten oder Schutzgrenzen.
16335
16439
  if (Object.prototype.hasOwnProperty.call(safePatch, 'nvpTopology')) mergedPatch.nvpTopology = this._nwDeepClone(safePatch.nvpTopology);
@@ -16347,6 +16451,22 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16347
16451
  mergedPatch = (norm && norm.patch) ? norm.patch : mergedPatch;
16348
16452
  } catch (_e) {}
16349
16453
 
16454
+ // An explicit EMS deletion must survive the next background OCPP scan.
16455
+ // Compute this from the authoritative before/after rows under the same
16456
+ // revision lock; never trust a form's copied exclusion metadata.
16457
+ const beforeOcppEdit = this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, basePatch);
16458
+ const explicitOcppRows = safePatch.settingsConfig && typeof safePatch.settingsConfig === 'object'
16459
+ && Object.prototype.hasOwnProperty.call(safePatch.settingsConfig, 'evcsList');
16460
+ const beforeHasOcppExclusions = Object.prototype.hasOwnProperty.call(beforeOcppEdit.settingsConfig || {}, 'ocppExcludedStationRoots');
16461
+ const ocppExclusions = explicitOcppRows
16462
+ ? prepareOcppDiscoveryExclusions(beforeOcppEdit, this.nwApplyInstallerPatchToRuntimeConfig(this.config || {}, mergedPatch))
16463
+ : (beforeHasOcppExclusions ? this._nwDeepClone(beforeOcppEdit.settingsConfig.ocppExcludedStationRoots) : []);
16464
+ if ((Array.isArray(ocppExclusions) && ocppExclusions.length) || beforeHasOcppExclusions) {
16465
+ mergedPatch.settingsConfig = { ...mergedPatch.settingsConfig, ocppExcludedStationRoots: ocppExclusions };
16466
+ } else if (mergedPatch.settingsConfig && typeof mergedPatch.settingsConfig === 'object') {
16467
+ delete mergedPatch.settingsConfig.ocppExcludedStationRoots;
16468
+ }
16469
+
16350
16470
  if (Object.prototype.hasOwnProperty.call(safePatch, 'nvpTopology')) {
16351
16471
  const desired = safePatch.nvpTopology;
16352
16472
  if (JSON.stringify(desired) === JSON.stringify(currentNvpConfig(this))) {
@@ -16425,6 +16545,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16425
16545
  catch (error) { const failure = safeConfigurationFailure(error); return res.status(failure.status).json(failure.body); }
16426
16546
  // Persist patch to states (no ioBroker restart)
16427
16547
  await this._nwProvisionInstallerObjects(this.nwApplyInstallerPatchToRuntimeConfig(this.config, mergedPatch));
16548
+ restartEms = await this._nwPrepareChargingPointReconfigure(this.nwApplyInstallerPatchToRuntimeConfig(this.config, mergedPatch), restartEms);
16428
16549
  if (await this.persistInstallerConfigToState(mergedPatch) === false) throw new Error('Installer-Konfiguration konnte nicht gespeichert werden.');
16429
16550
  this._nwInstallerConfigPatch = mergedPatch;
16430
16551
 
@@ -16523,7 +16644,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16523
16644
  try {
16524
16645
  const body = req.body || {};
16525
16646
  this._nwAssertInstallerConfigRevision(body.expectedConfigurationRevision);
16526
- const restartEms = body.restartEms !== false; // default true
16647
+ let restartEms = body.restartEms !== false; // identity changes always restart safely
16527
16648
  const mode = String(body.mode || 'replace').toLowerCase(); // replace | merge
16528
16649
 
16529
16650
  // Accept both a wrapped backup object or a raw patch.
@@ -16611,6 +16732,15 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16611
16732
  finalPatch = (norm && norm.patch) ? norm.patch : finalPatch;
16612
16733
  } catch (_e) {}
16613
16734
 
16735
+ // An explicit backup restore retains its saved removal choices. Validate
16736
+ // their shape/size before provisioning or stopping writers; rows restored
16737
+ // by that same backup are an explicit re-import of those identities.
16738
+ const restoredOcppConfig = this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch);
16739
+ const restoredOcppExclusions = prepareOcppDiscoveryExclusions(restoredOcppConfig, restoredOcppConfig);
16740
+ if (Object.prototype.hasOwnProperty.call(restoredOcppConfig.settingsConfig || {}, 'ocppExcludedStationRoots')) {
16741
+ finalPatch.settingsConfig = { ...finalPatch.settingsConfig, ocppExcludedStationRoots: restoredOcppExclusions };
16742
+ }
16743
+
16614
16744
  if (Object.prototype.hasOwnProperty.call(safePatch, 'nvpTopology')) {
16615
16745
  const desired = safePatch.nvpTopology;
16616
16746
  if (JSON.stringify(desired) === JSON.stringify(currentNvpConfig(this))) {
@@ -16633,6 +16763,7 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16633
16763
  try { this._meshCoordinator?.assertAppChange(this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch)); }
16634
16764
  catch (error) { const failure = safeConfigurationFailure(error); return res.status(failure.status).json(failure.body); }
16635
16765
  await this._nwProvisionInstallerObjects(this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch));
16766
+ restartEms = await this._nwPrepareChargingPointReconfigure(this.nwApplyInstallerPatchToRuntimeConfig(baseNative, finalPatch), restartEms);
16636
16767
  if (await this.persistInstallerConfigToState(finalPatch) === false) throw new Error('Installer-Import konnte nicht gespeichert werden.');
16637
16768
  this._nwInstallerConfigPatch = finalPatch;
16638
16769
 
@@ -16880,70 +17011,37 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
16880
17011
  ? Math.max(1, Math.min(50, Math.round(Number(q.max))))
16881
17012
  : 50;
16882
17013
 
16883
- // NexoWatt EOS uses the native compact datapoint contract of its own
16884
- // OCPP21 adapter directly. Aliases are deliberately not part of automatic
16885
- // discovery, because they can be missing, stale or resolve through a
16886
- // different ioBroker write path. Existing alias configurations are migrated
16887
- // by ChargingManagement/UI to these native IDs.
16888
- let compactObjects = {};
16889
- try {
16890
- compactObjects = Object.assign({}, ...await Promise.all(ocppDiscoveryPatterns(this.hostNamespace).map(pattern => this.getForeignObjectsAsync(pattern, 'state'))));
16891
- } catch (_compactScanError) {
16892
- compactObjects = {};
16893
- }
16894
-
16895
- const compactGroups = new Map();
16896
- for (const id of Object.keys(compactObjects)) {
16897
- const root = ocppStationRoot(id);
16898
- if (!ocppRootInScope(root, this.hostNamespace)) continue;
16899
- if (!compactGroups.has(root)) compactGroups.set(root, { root, station: root.slice(root.lastIndexOf('.') + 1) });
16900
- }
16901
-
16902
- const compactHas = (id) => !!(id && compactObjects[id]);
16903
- const compactPick = (...ids) => ids.flat().map(id => String(id || '').trim()).find(compactHas) || '';
16904
- const compactConnectors = [];
16905
- for (const group of compactGroups.values()) {
16906
- const nativeRoot = group.root;
16907
- const nativeId = (suffix) => `${nativeRoot}.${suffix}`;
16908
- const powerId = compactPick(nativeId('measurements.powerW'));
16909
- const energyKWhId = compactPick(nativeId('measurements.energyKWh'));
16910
- const energyWhId = compactPick(nativeId('measurements.energyWh'));
16911
- const energyTotalId = energyKWhId || energyWhId;
16912
- const ids = {
16913
- powerId,
16914
- energyTotalId,
16915
- statusId: compactPick(nativeId('info.status')),
16916
- chargingStateId: compactPick(nativeId('transactions.chargingState')),
16917
- activeId: compactPick(nativeId('transactions.transactionActive')),
16918
- vehicleConnectedId: '',
16919
- chargeDemandId: '',
16920
- heartbeatId: compactPick(nativeId('health.lastSeenMs')),
16921
- onlineId: compactPick(nativeId('info.socketConnected')),
16922
- dataFreshId: compactPick(nativeId('health.dataFresh')),
16923
- setCurrentAId: '',
16924
- setPowerWId: compactPick(nativeId('control.chargeLimit')),
16925
- enableWriteId: compactPick(nativeId('control.availability')),
16926
- vehicleSocId: compactPick(nativeId('measurements.socPercent'), nativeId('vehicle.socPercent')),
16927
- rfidReadId: compactPick(nativeId('info.rfid')),
16928
- currentId: compactPick(nativeId('measurements.currentA')),
16929
- };
16930
- if (!Object.values(ids).some(value => String(value || '').trim())) continue;
16931
- compactConnectors.push({
16932
- stationKey: nativeRoot,
16933
- adapterInstance: ocppNamespace(nativeRoot),
16934
- connectorNo: 1,
16935
- base: nativeRoot,
16936
- name: group.station,
16937
- ids,
16938
- energyTotalInputIsWh: !!energyWhId && !energyKWhId,
16939
- energyUnit: energyKWhId ? 'kWh' : (energyWhId ? 'Wh' : ''),
16940
- telemetryProfile: 'nexowattocpp',
16941
- controlPreference: 'powerW',
16942
- contractVersion: 'nexowatt-ocpp21-0.4-native',
16943
- adapterKind: 'nexowatt-ocpp21-native-compact',
16944
- });
16945
- }
16946
- compactConnectors.sort((a, b) => String(a.stationKey).localeCompare(String(b.stationKey)));
17014
+ // Use the exact same validated contract and source lifecycle as the
17015
+ // background registration. Retained objects from a deleted standalone
17016
+ // adapter are not another charger and must not be offered again here.
17017
+ const [compactObjects, compactMetadata, compactSources] = await Promise.all([
17018
+ this._nwReadOcppDiscoveryObjects(), this._nwReadOcppDiscoveryMetadata(), this._nwReadOcppDiscoverySources(),
17019
+ ]);
17020
+ const compactStations = filterOcppDiscoverySources(
17021
+ collectOcppStations(compactObjects, compactMetadata, this.hostNamespace), compactSources, this.hostNamespace);
17022
+ const compactConnectors = compactStations.map(station => ({
17023
+ // Legacy response field denotes physical identity only; clients must
17024
+ // not use it as an automatic station/group assignment.
17025
+ stationKey: station.root,
17026
+ adapterInstance: station.adapterInstance,
17027
+ connectorNo: 1,
17028
+ base: station.root,
17029
+ name: station.name,
17030
+ ids: { ...station.ids },
17031
+ energyTotalInputIsWh: false,
17032
+ energyUnit: station.ids.energyTotalId ? 'kWh' : '',
17033
+ telemetryProfile: 'nexowattocpp',
17034
+ controlPreference: 'powerW',
17035
+ contractVersion: 'nexowatt-ocpp21-0.4-native',
17036
+ adapterKind: 'nexowatt-ocpp21-native-compact',
17037
+ missing: [...station.missing],
17038
+ ocppDiscovery: {
17039
+ source: 'nexowatt-ocpp21', stationRoot: station.root, contract: 'nexowatt-ocpp21-0.4-native',
17040
+ controlScope: 'station', connectorCount: station.connectorCount, evseCount: station.evseCount,
17041
+ topologySource: station.topologySource, connectors: station.connectors,
17042
+ code: station.missing.length ? 'CONTRACT_INCOMPLETE' : 'COMMISSIONING_REQUIRED', autoCreated: true,
17043
+ },
17044
+ }));
16947
17045
  if (compactConnectors.length > 0) {
16948
17046
  return res.json({
16949
17047
  ok: true,
@@ -17356,6 +17454,13 @@ app.get('/api/smarthome/type-detect', requireDpDiscovery, async (req, res) => {
17356
17454
  const requireCustomerTariff = async (req, res, next) => {
17357
17455
  if (!['customer', 'installer', 'admin'].includes(req.nwSession?.role)) return res.status(403).json({ ok: false, error: 'forbidden' });
17358
17456
  if (!this._nwIsFeatureLicensed('dynamicTariffs')) return res.status(403).json({ ok: false, error: 'EOS_TARIFF_LICENSE_REQUIRED' });
17457
+ // Both reads and writes require a positively confirmed stored configuration.
17458
+ // HTTP/shell availability alone must never expose or overwrite native defaults.
17459
+ if (this._nwInstallerConfigHydrated !== true) {
17460
+ sendNoStore(res);
17461
+ const loading = ['idle', 'starting'].includes(this._hostedStartup?.state);
17462
+ return res.status(503).json({ ok: false, error: loading ? 'EOS_TARIFF_CONFIG_LOADING' : 'EOS_TARIFF_CONFIG_UNAVAILABLE' });
17463
+ }
17359
17464
  return next();
17360
17465
  };
17361
17466
  const customerTariffSnapshot = () => {
@@ -21664,6 +21769,10 @@ const _nwDisplayBuildPayload = (station) => {
21664
21769
  return {
21665
21770
  ok: true,
21666
21771
  generatedAt: now,
21772
+ chargingControlIdentity: (() => {
21773
+ const snapshot = publicChargingControlIdentity(this, list);
21774
+ return { revision: snapshot.revision, slots: Object.fromEntries(Object.entries(snapshot.slots).filter(([slot]) => assignedSet.has(slot))) };
21775
+ })(),
21667
21776
  station: {
21668
21777
  id: station.id,
21669
21778
  name: station.name,
@@ -23205,6 +23314,7 @@ app.post('/api/display/station/:token/heartbeat', async (req, res) => {
23205
23314
  });
23206
23315
 
23207
23316
  app.post('/api/display/station/:token/command', async (req, res) => {
23317
+ let releaseChargingControl;
23208
23318
  try {
23209
23319
  sendNoStore(res);
23210
23320
  if (!_nwDisplayIsLicensed()) return res.status(403).json({ ok: false, error: 'eos_required', message: 'DC Station Display ist nur in EOS verfügbar.' });
@@ -23243,6 +23353,8 @@ app.post('/api/display/station/:token/command', async (req, res) => {
23243
23353
  return res.status(409).json({ ok: false, error: 'global_storage_control_required', message: 'Der Speicherschutz wird zentral auf der EVCS-Seite gesteuert.' });
23244
23354
  }
23245
23355
 
23356
+ releaseChargingControl = beginChargingControlWrite(this);
23357
+ assertChargingControlIdentity(this, lp, body);
23246
23358
  const commandTs = Date.now();
23247
23359
  await _nwDisplayWriteStationState(station.id, 'lastTouch', commandTs, true);
23248
23360
  await _nwDisplayWriteStationState(station.id, 'lastCommand', `${action}:${lp}:${mode}`, true);
@@ -23258,6 +23370,11 @@ app.post('/api/display/station/:token/command', async (req, res) => {
23258
23370
  await _nwDisplayPersistSessionOperatorStates(station, payload);
23259
23371
  return res.json({ ok: true, accepted: true, action, lp, mode, bridge: bridgeResult.bridge, controlProfile: bridgeResult.controlProfile, manufacturerOpen: true, payload });
23260
23372
  } catch (e) {
23373
+ if (e && ['EOS_EVCS_IDENTITY_BUSY', 'EOS_EVCS_IDENTITY_CHANGED'].includes(e.code)) {
23374
+ return res.status(409).json({ ok: false, error: e.code, message: e.code === 'EOS_EVCS_IDENTITY_CHANGED'
23375
+ ? 'Die Ladepunktzuordnung wurde geändert. Bitte die Seite neu laden und den Ladepunkt erneut auswählen.'
23376
+ : 'Die Ladepunktzuordnung wird gerade aktualisiert. Bitte anschließend erneut bedienen.' });
23377
+ }
23261
23378
  try {
23262
23379
  const station = _nwDisplayFindStation(req.params && req.params.token);
23263
23380
  if (station) {
@@ -23268,12 +23385,16 @@ app.post('/api/display/station/:token/command', async (req, res) => {
23268
23385
  }
23269
23386
  } catch (_e) {}
23270
23387
  return res.status(500).json({ ok: false, error: 'internal_error', message: 'Anfrage konnte intern nicht verarbeitet werden.' });
23388
+ } finally {
23389
+ if (releaseChargingControl) releaseChargingControl();
23271
23390
  }
23272
23391
  });
23273
23392
  app.get('/api/locale', nwLocaleApiService.createLocaleHandler(this, sendNoStore));
23274
23393
 
23275
23394
  // 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
23395
  app.get('/config', async (req, res) => {
23396
+ // Resolve access before taking the synchronous rows/identity snapshot.
23397
+ const sess = authEnabled ? await resolveAccess(req) : null;
23277
23398
  // UI flags: treat missing (undefined) EMS module flags as sensible defaults.
23278
23399
  // This avoids "legacy" fallbacks in the EVCS UI on upgrades where config flags
23279
23400
  // were not persisted yet.
@@ -23498,9 +23619,8 @@ app.get('/config', async (req, res) => {
23498
23619
  return evcsAvailableEffective;
23499
23620
  };
23500
23621
 
23501
- const sess = authEnabled ? await resolveAccess(req) : null;
23502
-
23503
23622
  const nwConfigPayload = {
23623
+ chargingControlIdentity: publicChargingControlIdentity(this, evcsListForConfig),
23504
23624
  tariffDisplay: tariffDisplayConfig(cfg, this.namespace),
23505
23625
  locale: this._nwBuildLocaleInfo(),
23506
23626
  countryProfile: this._nwBuildCountryProfileInfo(),
@@ -24702,11 +24822,23 @@ settingsConfig: {
24702
24822
  // generic setter for customer-facing settings and commands
24703
24823
  // 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
24824
  app.post('/api/set', requireAuth, async (req, res) => {
24825
+ let releaseChargingControl;
24705
24826
  try {
24706
24827
  const scope = req.body && req.body.scope;
24707
24828
  const key = req.body && req.body.key;
24708
24829
  const value = req.body && req.body.value;
24709
24830
  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' });
24831
+ if (scope === 'ems' || scope === 'evcs' || (scope === 'settings' && /^evcs/i.test(key))) {
24832
+ releaseChargingControl = beginChargingControlWrite(this);
24833
+ // Bind to the identity rendered by the caller, before any asynchronous
24834
+ // plan/read can let a configuration change replace this index.
24835
+ const point = scope === 'ems'
24836
+ ? key.match(/^(?:evcs\.)?(\d+)\./i) || key.match(/^(?:chargingManagement\.(?:wallboxes\.)?)?lp(\d+)\./i)
24837
+ : scope === 'evcs' ? key.match(/^(?:evcs\.)?(\d+)\./i) : null;
24838
+ const global = scope === 'settings' || /^(?:evcs\.)?(?:global|all)\./i.test(key);
24839
+ if (point) assertChargingControlIdentity(this, `lp${Number(point[1])}`, req.body);
24840
+ else if (global) assertChargingControlIdentity(this, null, req.body);
24841
+ }
24710
24842
 
24711
24843
  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
24844
 
@@ -24852,6 +24984,10 @@ settingsConfig: {
24852
24984
  }
24853
24985
  }
24854
24986
  if (!safe || !prop) return res.status(400).json({ ok: false, error: 'bad request' });
24987
+ // The compatibility spelling must still address a configured lpN,
24988
+ // never create an unbound named control that bypasses identity checks.
24989
+ if (/^lp\d+$/i.test(safe)) safe = `lp${Number(safe.slice(2))}`;
24990
+ else assertChargingControlIdentity(this, safe, req.body);
24855
24991
 
24856
24992
  // Kundenseitige Freigabe der physischen Ladestation. Dieser State ist
24857
24993
  // bewusst vom Connector-/Fahrzeugstatus (`activeId`) und von der
@@ -26028,8 +26164,15 @@ settingsConfig: {
26028
26164
  }
26029
26165
  res.json({ ok: true });
26030
26166
  } catch (e) {
26167
+ if (e && ['EOS_EVCS_IDENTITY_BUSY', 'EOS_EVCS_IDENTITY_CHANGED'].includes(e.code)) {
26168
+ return res.status(409).json({ ok: false, error: e.code, message: e.code === 'EOS_EVCS_IDENTITY_CHANGED'
26169
+ ? 'Die Ladepunktzuordnung wurde geändert. Bitte die Seite neu laden und den Ladepunkt erneut auswählen.'
26170
+ : 'Die Ladepunktzuordnung wird gerade aktualisiert. Bitte anschließend erneut bedienen.' });
26171
+ }
26031
26172
  this.log.warn('set error: ' + e.message);
26032
26173
  res.status(500).json({ ok: false, error: 'internal error' });
26174
+ } finally {
26175
+ if (releaseChargingControl) releaseChargingControl();
26033
26176
  }
26034
26177
  });
26035
26178
 
@@ -27663,7 +27806,7 @@ return res.json(out);
27663
27806
  /**
27664
27807
  * 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
27808
  */
27666
- onStateChange(id, state) {
27809
+ async onStateChange(id, state) {
27667
27810
  if (this._nwShuttingDown) return;
27668
27811
  this._ocppAutoDiscovery?.onStateChange(id, state);
27669
27812
  if (state && state.ack === false && String(id).startsWith(this.namespace + '.')
@@ -27758,33 +27901,38 @@ return res.json(out);
27758
27901
  }
27759
27902
  } catch (_e) {}
27760
27903
 
27761
- // Sync: EVCS numerischer Modus (evcs.<i>.mode) <-> EMS User-Mode (chargingManagement.wallboxes.lp<i>.userMode)
27904
+ // Compatibility mirrors participate in the same drain as HTTP commands.
27905
+ // Copying a journal uses ack:true and writes both representations itself.
27906
+ let releaseModeMirror;
27762
27907
  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]);
27908
+ const legacyMode = key && key.match(/^evcs\.(\d+)\.mode$/);
27909
+ const userModeState = key && key.match(/^chargingManagement\.wallboxes\.lp(\d+)\.userMode$/);
27910
+ if ((legacyMode && (state.ack === false || !this._nwIsOwnStateId(id))) || userModeState) {
27911
+ releaseModeMirror = beginChargingControlWrite(this);
27912
+ if (legacyMode && state.ack === false) {
27913
+ const idx = Number(legacyMode[1]);
27768
27914
  const mv = Number(state.val);
27769
27915
  const userMode = (mv === 1) ? 'boost' : (mv === 2) ? 'minpv' : (mv === 3) ? 'pv' : 'auto';
27770
27916
  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) {}
27917
+ await this.setStateAsync(userModeKey, userMode, false);
27918
+ this.updateValue(userModeKey, userMode, Number(state.ts) || Date.now());
27773
27919
  this._nwRequestImmediateEmsTick(`state:${userModeKey}`);
27774
27920
  }
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(()=>{});
27921
+ if (legacyMode && ((!this._nwIsOwnStateId(id) && !evcsMappedAlreadyHandled) || state.ack === false)) {
27922
+ await this.setStateAsync(key, normalizedMappedValue, true);
27923
+ }
27924
+ if (userModeState) {
27925
+ const idx = Number(userModeState[1]);
27926
+ const value = String(state.val ?? '').toLowerCase();
27927
+ const numeric = value === 'boost' ? 1 : value === 'minpv' ? 2 : value === 'pv' ? 3 : 0;
27928
+ await this.setStateAsync(`evcs.${idx}.mode`, numeric, true);
27783
27929
  }
27784
27930
  }
27785
- } catch (_e) {}
27931
+ } catch (error) {
27932
+ if (error?.code !== 'EOS_EVCS_IDENTITY_BUSY') this.log.warn('EOS_EVCS_MODE_MIRROR_FAILED');
27933
+ } finally { releaseModeMirror?.(); }
27786
27934
 
27787
- if (key && key.startsWith('evcs.')) {
27935
+ if (key && key.startsWith('evcs.') && !/^evcs\.\d+\.mode$/.test(key)) {
27788
27936
  const ownState = this._nwIsOwnStateId(id);
27789
27937
  // Externe Quellen werden durch den robusten EVCS-Publisher gespiegelt.
27790
27938
  // Eigene writeable EVCS-States werden nur bei ack=false quittiert; ack=true-