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
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/www/ems-apps.ts
10
- * Quell-Hash: sha256:1cf0f87852c1fc5d3e72528f777843f626a4fc561c3a41719ed8cc0609f83103
10
+ * Quell-Hash: sha256:e9b2e1babf672181807086e69928c205e546ed8b47ba65fdbe64dc9193bb89e9
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -782,6 +782,8 @@
782
782
  // Direkte dynamische Tarifprovider
783
783
  // ------------------------------
784
784
  let tariffProviderRegistryCache = null;
785
+ let tariffProviderFormConfig = null;
786
+ let tariffProviderFormBaseline = null;
785
787
  const _tpEl = (id) => document.getElementById(id);
786
788
  const _tpStr = (id, fallback = '') => {
787
789
  const el = _tpEl(id);
@@ -792,6 +794,7 @@
792
794
  return el ? !!el.checked : fallback;
793
795
  };
794
796
  const _tpNum = (id, fallback = 0) => {
797
+ if (!_tpEl(id)) return fallback;
795
798
  const n = Number(_tpStr(id, ''));
796
799
  return Number.isFinite(n) ? n : fallback;
797
800
  };
@@ -849,63 +852,93 @@
849
852
  }
850
853
  function collectTariffProviderConfig() {
851
854
  const existing = currentConfig && currentConfig.tariffProvider && typeof currentConfig.tariffProvider === 'object' ? currentConfig.tariffProvider : {};
855
+ const credentials = existing.credentials && typeof existing.credentials === 'object' ? existing.credentials : {};
856
+ const formula = existing.formula && typeof existing.formula === 'object' ? existing.formula : {};
857
+ const custom = existing.customRest && typeof existing.customRest === 'object' ? existing.customRest : {};
852
858
  const country = _tpStr('tariffProviderCountry', String(existing.country || 'DE')).toUpperCase() === 'NL' ? 'NL' : 'DE';
859
+ const providerId = _tpStr('tariffProviderId', existing.providerId || 'manual-dp');
853
860
  return {
854
861
  ...existing,
855
862
  enabled: _tpStr('tariffProviderEnabled', existing.enabled ? 'true' : 'false') === 'true',
856
- providerId: _tpStr('tariffProviderId', existing.providerId || 'manual-dp'),
863
+ providerId,
857
864
  sourceId: _tpStr('tariffProviderSourceId', existing.sourceId || 'entsoe'),
858
865
  providerProfileId: _tpStr('tariffProviderProfileId', existing.providerProfileId || 'local-provider'),
859
- activateTariffLogic: _tpBool('tariffProviderActivateLogic', true),
860
- automaticMode: _tpBool('tariffProviderAutomaticMode', true),
861
- autoCoupleDatapoints: _tpBool('tariffProviderAutoCouple', true),
866
+ activateTariffLogic: _tpBool('tariffProviderActivateLogic', existing.activateTariffLogic !== false),
867
+ automaticMode: _tpBool('tariffProviderAutomaticMode', existing.automaticMode !== false),
868
+ autoCoupleDatapoints: _tpBool('tariffProviderAutoCouple', existing.autoCoupleDatapoints !== false),
862
869
  country,
863
- timeZone: _tpStr('tariffProviderTimeZone', country === 'NL' ? 'Europe/Amsterdam' : 'Europe/Berlin'),
864
- resolutionMinutes: [15,30,60].includes(_tpNum('tariffProviderResolution', 15)) ? _tpNum('tariffProviderResolution', 15) : 15,
865
- refreshMinutes: Math.max(5, Math.min(360, Math.round(_tpNum('tariffProviderRefresh', 15)))),
866
- priceComponent: _tpStr('tariffProviderPriceComponent', 'total'),
867
- homeId: _tpStr('tariffProviderHomeId', ''),
868
- postalCode: _tpStr('tariffProviderPostalCode', ''),
869
- tokenUrl: _tpStr('tariffProviderTokenUrl', ''),
870
- pricesUrl: _tpStr('tariffProviderPricesUrl', ''),
870
+ timeZone: _tpStr('tariffProviderTimeZone', existing.timeZone ?? (country === 'NL' ? 'Europe/Amsterdam' : 'Europe/Berlin')),
871
+ resolutionMinutes: _tpEl('tariffProviderResolution')
872
+ ? ([15,30,60].includes(_tpNum('tariffProviderResolution', 15)) ? _tpNum('tariffProviderResolution', 15) : 15)
873
+ : (existing.resolutionMinutes ?? 15),
874
+ refreshMinutes: _tpEl('tariffProviderRefresh')
875
+ ? Math.max(5, Math.min(360, Math.round(_tpNum('tariffProviderRefresh', 15)))) : (existing.refreshMinutes ?? 15),
876
+ priceComponent: _tpStr('tariffProviderPriceComponent', existing.priceComponent ?? 'total'),
877
+ homeId: _tpStr('tariffProviderHomeId', existing.homeId || ''),
878
+ postalCode: _tpStr('tariffProviderPostalCode', existing.postalCode || ''),
879
+ tokenUrl: _tpStr('tariffProviderTokenUrl', existing.tokenUrl || ''),
880
+ pricesUrl: _tpStr('tariffProviderPricesUrl', existing.pricesUrl || ''),
871
881
  credentials: {
872
- ...(existing.credentials && typeof existing.credentials === 'object' ? existing.credentials : {}),
873
- accessToken: _tpStr('tariffProviderAccessToken', ''),
874
- securityToken: _tpStr('tariffProviderSecurityToken', ''),
875
- clientId: _tpStr('tariffProviderClientId', ''),
876
- clientSecret: _tpStr('tariffProviderClientSecret', ''),
877
- tokenUrl: _tpStr('tariffProviderTokenUrl', ''),
878
- bearerToken: _tpStr('tariffProviderBearerToken', ''),
879
- apiKey: _tpStr('tariffProviderApiKey', ''),
880
- username: _tpStr('tariffProviderUsername', ''),
881
- password: _tpStr('tariffProviderPassword', ''),
882
+ ...credentials,
883
+ accessToken: _tpStr('tariffProviderAccessToken', credentials.accessToken || ''),
884
+ securityToken: _tpStr('tariffProviderSecurityToken', credentials.securityToken || ''),
885
+ clientId: _tpStr('tariffProviderClientId', credentials.clientId || ''),
886
+ clientSecret: _tpStr('tariffProviderClientSecret', credentials.clientSecret || ''),
887
+ tokenUrl: _tpStr('tariffProviderTokenUrl', credentials.tokenUrl ?? existing.tokenUrl ?? ''),
888
+ bearerToken: _tpStr('tariffProviderBearerToken', credentials.bearerToken || ''),
889
+ apiKey: _tpStr('tariffProviderApiKey', credentials.apiKey || ''),
890
+ username: _tpStr('tariffProviderUsername', credentials.username || ''),
891
+ password: _tpStr('tariffProviderPassword', credentials.password || ''),
882
892
  },
883
893
  formula: {
884
- marketMultiplier: _tpNum('tariffProviderMarketMultiplier', 1),
885
- supplierMarkupEurPerKwh: _tpNum('tariffProviderSupplierMarkup', 0),
886
- gridVariableEurPerKwh: _tpNum('tariffProviderGridVariable', 0),
887
- taxEurPerKwh: _tpNum('tariffProviderTax', 0),
888
- otherVariableEurPerKwh: _tpNum('tariffProviderOtherVariable', 0),
889
- vatPct: _tpNum('tariffProviderVatPct', 0),
890
- priceIncludesVat: _tpStr('tariffProviderId', '') === 'tibber' || _tpStr('tariffProviderId', '') === 'energyzero',
894
+ ...formula,
895
+ marketMultiplier: _tpNum('tariffProviderMarketMultiplier', formula.marketMultiplier ?? 1),
896
+ supplierMarkupEurPerKwh: _tpNum('tariffProviderSupplierMarkup', formula.supplierMarkupEurPerKwh ?? 0),
897
+ gridVariableEurPerKwh: _tpNum('tariffProviderGridVariable', formula.gridVariableEurPerKwh ?? 0),
898
+ taxEurPerKwh: _tpNum('tariffProviderTax', formula.taxEurPerKwh ?? 0),
899
+ otherVariableEurPerKwh: _tpNum('tariffProviderOtherVariable', formula.otherVariableEurPerKwh ?? 0),
900
+ vatPct: _tpNum('tariffProviderVatPct', formula.vatPct ?? 0),
901
+ priceIncludesVat: providerId === existing.providerId && typeof formula.priceIncludesVat === 'boolean'
902
+ ? formula.priceIncludesVat : providerId === 'tibber' || providerId === 'energyzero',
891
903
  },
892
- feedInEurPerKwh: _tpNum('tariffProviderFeedIn', 0),
904
+ feedInEurPerKwh: _tpNum('tariffProviderFeedIn', existing.feedInEurPerKwh ?? 0),
893
905
  customRest: {
894
- ...(existing.customRest && typeof existing.customRest === 'object' ? existing.customRest : {}),
895
- url: _tpStr('tariffProviderRestUrl', ''),
896
- method: _tpStr('tariffProviderRestMethod', 'GET'),
897
- authMode: _tpStr('tariffProviderRestAuthMode', 'none'),
898
- apiKeyHeader: _tpStr('tariffProviderApiKeyHeader', 'x-api-key'),
899
- arrayPath: _tpStr('tariffProviderArrayPath', ''),
900
- startPath: _tpStr('tariffProviderStartPath', 'startsAt'),
901
- endPath: _tpStr('tariffProviderEndPath', 'endsAt'),
902
- pricePath: _tpStr('tariffProviderPricePath', 'total'),
903
- unit: _tpStr('tariffProviderUnit', 'EUR/kWh'),
904
- headersJson: _tpStr('tariffProviderHeadersJson', ''),
906
+ ...custom,
907
+ url: _tpStr('tariffProviderRestUrl', custom.url || ''),
908
+ method: _tpStr('tariffProviderRestMethod', custom.method ?? 'GET'),
909
+ authMode: _tpStr('tariffProviderRestAuthMode', custom.authMode ?? 'none'),
910
+ apiKeyHeader: _tpStr('tariffProviderApiKeyHeader', custom.apiKeyHeader ?? 'x-api-key'),
911
+ arrayPath: _tpStr('tariffProviderArrayPath', custom.arrayPath || ''),
912
+ startPath: _tpStr('tariffProviderStartPath', custom.startPath ?? 'startsAt'),
913
+ endPath: _tpStr('tariffProviderEndPath', custom.endPath ?? 'endsAt'),
914
+ pricePath: _tpStr('tariffProviderPricePath', custom.pricePath ?? 'total'),
915
+ unit: _tpStr('tariffProviderUnit', custom.unit ?? 'EUR/kWh'),
916
+ headersJson: _tpStr('tariffProviderHeadersJson', custom.headersJson || ''),
905
917
  },
906
918
  };
907
919
  }
920
+ function collectTariffProviderPatch() {
921
+ // An unrelated EMS save must not create a tariff from unconfirmed/default
922
+ // controls. Keep the loaded provider untouched unless its own form changed.
923
+ if (!tariffProviderFormConfig || tariffProviderFormConfig !== currentConfig?.tariffProvider || tariffProviderFormBaseline === null) return undefined;
924
+ const collected = collectTariffProviderConfig();
925
+ if (JSON.stringify(collected) === tariffProviderFormBaseline) return undefined;
926
+ // Rendering may display defaults for optional legacy fields. Only actual
927
+ // changes to that rendered baseline belong in this save, never those defaults.
928
+ const mergeChangedFields = (before, after, stored) => {
929
+ const out = { ...(stored && typeof stored === 'object' ? stored : {}) };
930
+ for (const [key, value] of Object.entries(after)) {
931
+ if (JSON.stringify(before?.[key]) === JSON.stringify(value)) continue;
932
+ out[key] = value && typeof value === 'object' && !Array.isArray(value)
933
+ ? mergeChangedFields(before?.[key], value, out[key]) : value;
934
+ }
935
+ return out;
936
+ };
937
+ return mergeChangedFields(JSON.parse(tariffProviderFormBaseline), collected, tariffProviderFormConfig);
938
+ }
908
939
  function applyTariffProviderUI(config) {
940
+ tariffProviderFormConfig = null;
941
+ tariffProviderFormBaseline = null;
909
942
  const cfg = config && typeof config === 'object' ? config : {};
910
943
  const credentials = cfg.credentials && typeof cfg.credentials === 'object' ? cfg.credentials : {};
911
944
  const formula = cfg.formula && typeof cfg.formula === 'object' ? cfg.formula : {};
@@ -951,6 +984,10 @@
951
984
  _tpSet('tariffProviderPricePath', custom.pricePath || 'total');
952
985
  _tpSet('tariffProviderUnit', custom.unit || 'EUR/kWh');
953
986
  _tpSet('tariffProviderHeadersJson', custom.headersJson || '');
987
+ if (config && typeof config === 'object' && !Array.isArray(config)) {
988
+ tariffProviderFormConfig = config;
989
+ tariffProviderFormBaseline = JSON.stringify(collectTariffProviderConfig());
990
+ }
954
991
  loadTariffProviderRegistry().then(() => {
955
992
  if (cfg.enabled && cfg.providerId !== 'manual-dp' && cfg.autoCoupleDatapoints !== false) _coupleTariffProviderDatapointsSync();
956
993
  }).catch(() => {});
@@ -1027,6 +1064,9 @@
1027
1064
 
1028
1065
  let currentConfig = null;
1029
1066
  let configurationRevision = null;
1067
+ // Nur eine bewusste Löschaktion darf den Schutz vor leerem EVCS-Payload öffnen.
1068
+ // Die Freigabe gehört zum aktuellen Entwurf, niemals zur gespeicherten Konfiguration.
1069
+ let evcsExplicitEmpty = false;
1030
1070
  // CAS stammt ausschließlich aus einem vollständig geladenen Gesamtstand.
1031
1071
  // Eine Änderungsmeldung erhöht nur die beobachtete Version, niemals den Save-Token.
1032
1072
  let dynamicGridLoadedVersion = null;
@@ -1675,11 +1715,12 @@ function _collectFlowPowerDpIsWFromUI() {
1675
1715
  }
1676
1716
 
1677
1717
  let appCenterConfigDirty = false;
1718
+ let appCenterLoadedDraftSnapshot = null;
1678
1719
  let appCenterMutationBusy = false;
1679
- /** Ein Gesamt-Save/Import ersetzt danach die sichtbaren Eingaben. Während
1720
+ /** Laden, Gesamt-Save und Import ersetzen die sichtbaren Eingaben. Während
1680
1721
  * dieses Requests verhindert inert neue Eingaben, auch im eingebetteten Formular. */
1681
1722
  function beginAppCenterMutation() {
1682
- if (appCenterMutationBusy) throw new Error('Speichern oder Import läuft bereits. Bitte den Abschluss abwarten.');
1723
+ if (appCenterMutationBusy) throw new Error('Laden, Speichern oder Import läuft bereits. Bitte den Abschluss abwarten.');
1683
1724
  appCenterMutationBusy = true;
1684
1725
  closeDpModal();
1685
1726
  const main = document.querySelector('main');
@@ -1690,6 +1731,19 @@ function _collectFlowPowerDpIsWFromUI() {
1690
1731
  if (main) { main.inert = wasInert; main.removeAttribute('aria-busy'); }
1691
1732
  };
1692
1733
  }
1734
+ function appCenterDraftSnapshot() {
1735
+ try {
1736
+ const inputs = Array.from(document.querySelectorAll('main input, main select, main textarea'))
1737
+ .map(input => [input.id, input.name, input.type, input.value, input.checked,
1738
+ input.multiple && input.selectedOptions ? Array.from(input.selectedOptions).map(option => option.value) : null]);
1739
+ return JSON.stringify([currentConfig, inputs]);
1740
+ } catch (_error) { return null; }
1741
+ }
1742
+ function hasAppCenterDraftChanges() {
1743
+ if (appCenterConfigDirty || appCenterLoadedDraftSnapshot === null) return true;
1744
+ const current = appCenterDraftSnapshot();
1745
+ return current === null || current !== appCenterLoadedDraftSnapshot;
1746
+ }
1693
1747
  function setDirty() {
1694
1748
  appCenterConfigDirty = true;
1695
1749
  if (els.save) {
@@ -1700,6 +1754,7 @@ function _collectFlowPowerDpIsWFromUI() {
1700
1754
  }
1701
1755
  function clearDirty() {
1702
1756
  appCenterConfigDirty = false;
1757
+ appCenterLoadedDraftSnapshot = appCenterDraftSnapshot();
1703
1758
  if (els.save) {
1704
1759
  delete els.save.dataset.dirty;
1705
1760
  els.save.title = '';
@@ -10505,6 +10560,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
10505
10560
  row[field] = value;
10506
10561
  list[idx - 1] = row;
10507
10562
  sc.evcsList = list;
10563
+ setDirty();
10508
10564
  }
10509
10565
  /**
10510
10566
  * Code-Teil: buildEvcsUI
@@ -10560,13 +10616,14 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
10560
10616
 
10561
10617
  const ocppStatus = currentConfig && currentConfig.ocppAutoDiscovery;
10562
10618
  const ocppPending = ocppStatus && Array.isArray(ocppStatus.stations)
10563
- ? ocppStatus.stations.filter(row => ['LICENSE_LIMIT', 'ROW_LIMIT', 'CONTROL_GROUP_CONFLICT', 'MIXED_MANUAL_MAPPING'].includes(row.code)) : [];
10619
+ ? ocppStatus.stations.filter(row => ['LICENSE_LIMIT', 'ROW_LIMIT', 'CONTROL_GROUP_CONFLICT', 'MIXED_MANUAL_MAPPING', 'USER_EXCLUDED'].includes(row.code)) : [];
10564
10620
  if (ocppPending.length || (ocppStatus && ocppStatus.error)) {
10565
10621
  const notice = document.createElement('div');
10566
10622
  notice.className = 'nw-help';
10567
10623
  notice.dataset.ocppDiscoveryPending = '1';
10568
10624
  notice.textContent = ocppPending.map(row => `${row.root}: ${row.code === 'LICENSE_LIMIT'
10569
10625
  ? 'Erkannt; für die automatische Zuordnung ist ein freier lizenzierter Ladepunkt erforderlich.'
10626
+ : row.code === 'USER_EXCLUDED' ? 'Aus der EMS-Zuordnung entfernt. Über die OCPP-Erkennung bei Bedarf erneut hinzufügen.'
10570
10627
  : row.code === 'ROW_LIMIT' ? 'Erkannt; das Ladepunktlimit ist erreicht.'
10571
10628
  : 'Erkannt; vorhandene Datenpunktzuordnungen widersprechen sich. Die Stationszuordnung prüfen.'}`).join(' ')
10572
10629
  || 'Die automatische OCPP-Zuordnung ist noch nicht abgeschlossen und wird erneut geprüft.';
@@ -10919,6 +10976,25 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
10919
10976
  actions.appendChild(btnUp);
10920
10977
  actions.appendChild(btnDown);
10921
10978
 
10979
+ const btnRemove = document.createElement('button');
10980
+ btnRemove.type = 'button';
10981
+ btnRemove.className = 'nw-config-btn nw-config-btn--ghost';
10982
+ btnRemove.textContent = 'Ladepunkt entfernen';
10983
+ btnRemove.dataset.evcsRemove = String(i);
10984
+ btnRemove.title = 'Diesen Ladepunkt beim Speichern aus der EMS-Zuordnung entfernen';
10985
+ btnRemove.addEventListener('click', () => {
10986
+ if (appCenterMutationBusy) return;
10987
+ const rows = _ensureSettingsConfig().evcsList;
10988
+ if (!Array.isArray(rows) || rows[i - 1] !== rowCfg) return;
10989
+ rows.splice(i - 1, 1);
10990
+ sc.evcsCount = rows.length;
10991
+ evcsExplicitEmpty = rows.length === 0;
10992
+ buildEvcsUI();
10993
+ setDirty();
10994
+ setStatus('Ladepunkt im Entwurf entfernt. Mit „Speichern“ wird die EMS-Zuordnung gelöscht; „Neu laden“ verwirft die Änderung.', 'warn');
10995
+ });
10996
+ actions.appendChild(btnRemove);
10997
+
10922
10998
  top.appendChild(title);
10923
10999
  top.appendChild(actions);
10924
11000
  header.appendChild(top);
@@ -11670,6 +11746,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
11670
11746
  */
11671
11747
  function collectSettingsConfigFromUI() {
11672
11748
  const out = deepMerge({}, (currentConfig && currentConfig.settingsConfig) ? currentConfig.settingsConfig : {});
11749
+ delete out.__allowEmptyEvcsList;
11750
+ delete out.__explicitDeleteAll;
11673
11751
  const count = _clampInt(els.evcsCount ? els.evcsCount.value : out.evcsCount, 0, _maxEvcsCount(), 0);
11674
11752
  out.evcsCount = count;
11675
11753
 
@@ -11679,6 +11757,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
11679
11757
  }
11680
11758
  // evcsList is maintained live via _updateEvcsField. Still ensure correct length.
11681
11759
  out.evcsList = _ensureEvcsList(count);
11760
+ if (evcsExplicitEmpty && count === 0) out.__allowEmptyEvcsList = true;
11682
11761
  if (els.evcsGlobalStorageAssistCustomerAllowed) {
11683
11762
  const activeCount = out.evcsList.filter((row) => row && row.enabled !== false).length;
11684
11763
  out.evcsGlobalStorageAssistCustomerAllowed = activeCount >= 2 && !!els.evcsGlobalStorageAssistCustomerAllowed.checked;
@@ -11701,6 +11780,14 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
11701
11780
  const incomingPartnerVersion = dynamicGridVersion(cfg?.partnerIntegrations?.configVersion);
11702
11781
  if (incomingPartnerVersion && incomingPartnerVersion < partnerObservedVersion) throw new Error(partnerReloadNotice);
11703
11782
  currentConfig = cfg || {};
11783
+ // A loaded list is authoritative over an older display counter. Explicit
11784
+ // removal still sends both an empty list and count zero through its own UI.
11785
+ const loadedEvcs = currentConfig.settingsConfig;
11786
+ if (loadedEvcs && Array.isArray(loadedEvcs.evcsList)) {
11787
+ loadedEvcs.evcsCount = Math.max(_clampInt(loadedEvcs.evcsCount, 0, _maxEvcsCount(), 0),
11788
+ Math.min(_maxEvcsCount(), loadedEvcs.evcsList.length));
11789
+ }
11790
+ evcsExplicitEmpty = false;
11704
11791
  partnerLoadedVersion = incomingPartnerVersion;
11705
11792
  partnerObservedVersion = Math.max(partnerObservedVersion, partnerLoadedVersion || 0);
11706
11793
  for (const frame of partnerFrames()) {
@@ -12080,41 +12167,48 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12080
12167
  return '';
12081
12168
  }
12082
12169
 
12083
- function _ocppStationIdentityFromRow(row) {
12170
+ function _ocppStationIdentitiesFromRow(row) {
12084
12171
  const r = row && typeof row === 'object' ? row : {};
12172
+ const identities = new Set();
12085
12173
  for (const field of [
12086
12174
  'powerId', 'energyTotalId', 'statusId', 'chargingStateId', 'activeId', 'heartbeatId',
12087
- 'onlineId', 'dataFreshId', 'setPowerWId', 'enableWriteId',
12175
+ 'onlineId', 'dataFreshId', 'setCurrentAId', 'setPowerWId', 'enableWriteId',
12176
+ 'vehicleConnectedId', 'chargeDemandId', 'currentId', 'appliedChargeLimitWId', 'appliedChargeLimitValidId',
12088
12177
  'vehicleSocId', 'rfidReadId',
12089
12178
  ]) {
12090
12179
  const identity = _ocppStationIdentityFromDp(r[field]);
12091
- if (identity) return identity;
12092
- }
12093
- const stationKey = String(r.stationKey || '').trim();
12094
- if (stationKey) {
12180
+ if (identity) identities.add(identity);
12181
+ }
12182
+ const discoveredIdentity = r.ocppDiscovery && r.ocppDiscovery.source === 'nexowatt-ocpp21'
12183
+ ? _ocppStationIdentityFromDp(r.ocppDiscovery.stationRoot) : '';
12184
+ if (discoveredIdentity) identities.add(discoveredIdentity);
12185
+ // A legacy row may identify its physical station without datapoints yet.
12186
+ // Once native IDs exist, a manual display group must not override them.
12187
+ if (identities.size === 0) {
12188
+ const stationKey = String(r.stationKey || '').trim();
12095
12189
  const nativeIdentity = _ocppStationIdentityFromDp(stationKey);
12096
- if (nativeIdentity) return nativeIdentity;
12097
- const hostedInstance = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/^eos-admin\.\d+\.ocpp$/);
12098
- if (hostedInstance && /^[A-Za-z0-9_-]+$/.test(stationKey)) return `${hostedInstance[0]}|${stationKey}`;
12099
- const instanceMatch = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/(?:^|\.)ocpp21\.(\d+)(?:\.|$)/i);
12100
- if (instanceMatch) return `${instanceMatch[1]}|${stationKey}`;
12190
+ if (nativeIdentity) identities.add(nativeIdentity);
12191
+ else if (stationKey) {
12192
+ const hostedInstance = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/^eos-admin\.\d+\.ocpp$/);
12193
+ const instanceMatch = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/(?:^|\.)ocpp21\.(\d+)(?:\.|$)/i);
12194
+ if (hostedInstance && /^[A-Za-z0-9_-]+$/.test(stationKey)) identities.add(`${hostedInstance[0]}|${stationKey}`);
12195
+ else if (instanceMatch) identities.add(`${instanceMatch[1]}|${stationKey}`);
12196
+ }
12101
12197
  }
12102
- return '';
12198
+ return [...identities];
12199
+ }
12200
+
12201
+ function _ocppStationIdentityFromRow(row) {
12202
+ const identities = _ocppStationIdentitiesFromRow(row);
12203
+ return identities.length === 1 ? identities[0] : '';
12103
12204
  }
12104
12205
 
12105
12206
  function _ocppStationIdentityFromConnector(connector) {
12106
12207
  const c = connector && typeof connector === 'object' ? connector : {};
12107
- const ids = c.ids && typeof c.ids === 'object' ? c.ids : {};
12108
- for (const field of [
12109
- 'powerId', 'energyTotalId', 'statusId', 'chargingStateId', 'activeId', 'heartbeatId',
12110
- 'onlineId', 'dataFreshId', 'setPowerWId', 'enableWriteId',
12111
- 'vehicleSocId', 'rfidReadId',
12112
- ]) {
12113
- const identity = _ocppStationIdentityFromDp(ids[field]);
12114
- if (identity) return identity;
12115
- }
12208
+ const identities = new Set(_ocppStationIdentitiesFromRow(c.ids));
12116
12209
  const baseIdentity = _ocppStationIdentityFromDp(c.base);
12117
- return baseIdentity || '';
12210
+ if (baseIdentity) identities.add(baseIdentity);
12211
+ return identities.size === 1 ? [...identities][0] : '';
12118
12212
  }
12119
12213
 
12120
12214
  function _isEmptyEvcsMappingRow(row) {
@@ -12192,10 +12286,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12192
12286
  }
12193
12287
  };
12194
12288
 
12195
- // Meta
12196
- if (c && typeof c.stationKey === 'string') {
12197
- if (overwrite || onlyEmpty) setField('stationKey', c.stationKey);
12198
- }
12289
+ // Physical OCPP identity comes from the native datapoints. stationKey is
12290
+ // the installer's display/group assignment and must never be auto-filled.
12291
+ // Existing assignments remain untouched, including an explicitly empty one.
12199
12292
  if (c && c.connectorNo !== undefined && c.connectorNo !== null) {
12200
12293
  const n = Number(c.connectorNo);
12201
12294
  if (Number.isFinite(n)) {
@@ -12212,7 +12305,10 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12212
12305
 
12213
12306
  // Mappings (fill)
12214
12307
  const previousEnergyId = String(out.energyTotalId || '').trim();
12215
- for (const k of ['powerId','energyTotalId','statusId','chargingStateId','activeId','vehicleConnectedId','chargeDemandId','heartbeatId','onlineId','dataFreshId','setCurrentAId','setPowerWId','enableWriteId','vehicleSocId','rfidReadId']) {
12308
+ const monitorOnly = !_isEmptyEvcsMappingRow(r)
12309
+ && !String(r.setCurrentAId || '').trim() && !String(r.setPowerWId || '').trim();
12310
+ for (const k of ['powerId','energyTotalId','statusId','chargingStateId','activeId','vehicleConnectedId','chargeDemandId','heartbeatId','onlineId','dataFreshId','setCurrentAId','setPowerWId','enableWriteId','vehicleSocId','rfidReadId','appliedChargeLimitWId','appliedChargeLimitValidId']) {
12311
+ if (monitorOnly && ['setCurrentAId', 'setPowerWId', 'enableWriteId'].includes(k)) continue;
12216
12312
  if (ids[k]) setField(k, ids[k]);
12217
12313
  }
12218
12314
  const energyMappingWasApplied = !!ids.energyTotalId && (
@@ -12234,6 +12330,17 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12234
12330
  }
12235
12331
  }
12236
12332
  if (c && c.contractVersion) out.ocppDatapointContract = String(c.contractVersion);
12333
+ const discovery = c && c.ocppDiscovery;
12334
+ if (discovery && discovery.source === 'nexowatt-ocpp21' && discovery.controlScope === 'station'
12335
+ && _ocppStationIdentityFromDp(discovery.stationRoot) === _ocppStationIdentityFromConnector(c)) {
12336
+ // New rows keep the physical contract; manual rows without this metadata
12337
+ // must not silently become auto-managed command targets.
12338
+ if (Object.keys(r).length === 0) out.ocppDiscovery = Object.assign({}, discovery);
12339
+ else if (r.ocppDiscovery && r.ocppDiscovery.source === 'nexowatt-ocpp21'
12340
+ && r.ocppDiscovery.stationRoot === discovery.stationRoot) {
12341
+ out.ocppDiscovery = Object.assign({}, discovery, { autoCreated: r.ocppDiscovery.autoCreated === true });
12342
+ }
12343
+ }
12237
12344
 
12238
12345
  // Discovery identifies data points, not commissioned electrical limits.
12239
12346
  // The native contract does not attest AC/DC type, phases or minimum current.
@@ -12250,51 +12357,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12250
12357
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
12251
12358
  */
12252
12359
  async function ocppAutoDetect() {
12253
- try {
12254
- setStatus('OCPP21: Suche nach nativen Ladepunkten…');
12255
- const { connectors } = await fetchOcppDiscovery();
12256
-
12257
- if (!connectors.length) {
12258
- setStatus('OCPP21: Keine Ladepunkte gefunden (prüfe, ob der NexoWatt-OCPP21-Adapter läuft und die Station verbunden ist).', 'error');
12259
- return;
12260
- }
12261
-
12262
- const sc = _ensureSettingsConfig();
12263
- const existingList = Array.isArray(sc.evcsList) ? sc.evcsList : [];
12264
- const hasExisting = existingList.some(r => r && (
12265
- String(r.powerId || '').trim() ||
12266
- String(r.setCurrentAId || '').trim() ||
12267
- String(r.setPowerWId || '').trim() ||
12268
- String(r.statusId || '').trim()
12269
- ));
12270
-
12271
- if (hasExisting) {
12272
- const ok = window.confirm('Es sind bereits Ladepunkte konfiguriert.\n\nSoll die OCPP-Erkennung die aktuelle Konfiguration überschreiben?');
12273
- if (!ok) {
12274
- setStatus('OCPP21: Abgebrochen.', 'ok');
12275
- return;
12276
- }
12277
- }
12278
-
12279
- const count = Math.max(1, Math.min(50, connectors.length));
12280
- sc.evcsCount = count;
12281
- sc.evcsList = [];
12282
-
12283
- for (let i = 0; i < count; i++) {
12284
- const c = connectors[i];
12285
- sc.evcsList[i] = _applyOcppConnectorToRow({}, c, { overwrite: true });
12286
- }
12287
-
12288
- // Rebuild UI
12289
- if (els.evcsCount) els.evcsCount.value = String(count);
12290
- buildEvcsUI();
12291
- try { buildStationGroupsUI(); } catch (_e) {}
12292
- scheduleValidation(300);
12293
-
12294
- setStatus(`OCPP21: ${count} Ladepunkte direkt erkannt und vorbelegt. Bitte „Speichern & EMS neu starten“ klicken.`, 'ok');
12295
- } catch (e) {
12296
- setStatus('OCPP21: Erkennung fehlgeschlagen: ' + (e && e.message ? e.message : e), 'error');
12297
- }
12360
+ // Both buttons share one identity-preserving merge. Repeating discovery
12361
+ // cannot replace commissioned limits, names, activation or manual groups.
12362
+ return ocppMapExisting();
12298
12363
  }
12299
12364
  /**
12300
12365
  * Code-Teil: ocppMapExisting
@@ -12303,6 +12368,11 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12303
12368
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
12304
12369
  */
12305
12370
  async function ocppMapExisting() {
12371
+ if (appCenterMutationBusy) throw new Error('Laden, Speichern oder Erkennung läuft bereits. Bitte den Abschluss abwarten.');
12372
+ // Background commissioning may have saved new rows since this page opened.
12373
+ // Refresh only a pristine form; never rebase a dirty draft's CAS token.
12374
+ if (!hasAppCenterDraftChanges()) await loadConfig();
12375
+ const endMutation = beginAppCenterMutation();
12306
12376
  try {
12307
12377
  setStatus('OCPP21: Suche direkte native Datenpunkte…');
12308
12378
  const { connectors } = await fetchOcppDiscovery();
@@ -12313,28 +12383,33 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12313
12383
  }
12314
12384
 
12315
12385
  const sc = _ensureSettingsConfig();
12316
- const currentCount = _clampInt(sc.evcsCount, 0, 50, 0);
12386
+ const currentCount = Math.max(_clampInt(sc.evcsCount, 0, 50, 0),
12387
+ Array.isArray(sc.evcsList) ? sc.evcsList.length : 0);
12317
12388
  const list = _ensureEvcsList(currentCount).slice();
12318
12389
  const usedRows = new Set();
12390
+ const seenStations = new Set();
12319
12391
  let migratedCount = 0;
12320
12392
  let appendedCount = 0;
12321
12393
  let skippedCount = 0;
12394
+ let conflictCount = 0;
12322
12395
 
12323
12396
  for (const connector of connectors) {
12324
12397
  const connectorIdentity = _ocppStationIdentityFromConnector(connector);
12398
+ // A station-scoped native limit is one writer even when the inventory
12399
+ // repeats it through multiple connectors or equivalent aliases.
12400
+ if (!connectorIdentity || seenStations.has(connectorIdentity)) continue;
12401
+ seenStations.add(connectorIdentity);
12325
12402
  let rowIndex = -1;
12326
12403
 
12327
- // 1. A previously configured OCPP21/alias row of the same station wins.
12328
- if (connectorIdentity) {
12329
- rowIndex = list.findIndex((row, index) => !usedRows.has(index) && _ocppStationIdentityFromRow(row) === connectorIdentity);
12330
- }
12331
-
12332
- // 2. An explicitly stored stationKey may identify a still-empty OCPP row.
12333
- if (rowIndex < 0 && connector && connector.stationKey) {
12334
- rowIndex = list.findIndex((row, index) => !usedRows.has(index)
12335
- && String(row && row.stationKey || '').trim() === String(connector.stationKey || '').trim()
12336
- && (_isEmptyEvcsMappingRow(row) || String(row && row.telemetryProfile || '').toLowerCase().includes('ocpp')));
12404
+ // Ambiguous/mixed existing mappings need installer review. Never add
12405
+ // another writer merely because no unambiguous row can be selected.
12406
+ const matches = list.map((row, index) => ({ index, identities: _ocppStationIdentitiesFromRow(row) }))
12407
+ .filter(match => match.identities.includes(connectorIdentity));
12408
+ if (matches.length > 1 || matches.some(match => match.identities.length > 1)) {
12409
+ conflictCount += 1;
12410
+ continue;
12337
12411
  }
12412
+ if (matches.length === 1 && !usedRows.has(matches[0].index)) rowIndex = matches[0].index;
12338
12413
 
12339
12414
  // 3. Reuse only a genuinely empty row. Never overwrite a Modbus/MQTT or
12340
12415
  // nexowatt-devices chargepoint merely because it occupies the same index.
@@ -12367,13 +12442,15 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12367
12442
  buildEvcsUI();
12368
12443
  try { buildStationGroupsUI(); } catch (_e) {}
12369
12444
  scheduleValidation(300);
12445
+ if (migratedCount || appendedCount) setDirty();
12370
12446
  const parts = [`${migratedCount} OCPP21-Zuordnung(en) aktualisiert`];
12371
12447
  if (appendedCount) parts.push(`${appendedCount} neuer Ladepunkt angelegt`);
12372
12448
  if (skippedCount) parts.push(`${skippedCount} Station(en) wegen Maximalzahl nicht übernommen`);
12373
- setStatus(`OCPP21: ${parts.join(', ')}. Fremde Ladepunkte wurden nicht überschrieben. Bitte speichern.`, skippedCount ? 'error' : 'ok');
12449
+ if (conflictCount) parts.push(`${conflictCount} widersprüchliche Zuordnung(en) unverändert – bitte prüfen`);
12450
+ setStatus(`OCPP21: ${parts.join(', ')}. Fremde Ladepunkte wurden nicht überschrieben. Bitte speichern.`, skippedCount || conflictCount ? 'error' : 'ok');
12374
12451
  } catch (e) {
12375
12452
  setStatus('OCPP21: Zuordnung fehlgeschlagen: ' + (e && e.message ? e.message : e), 'error');
12376
- }
12453
+ } finally { endMutation(); }
12377
12454
  }
12378
12455
 
12379
12456
  // ------------------------------
@@ -13398,9 +13475,10 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
13398
13475
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
13399
13476
  */
13400
13477
  async function loadConfig() {
13478
+ const endMutation = beginAppCenterMutation();
13479
+ try {
13401
13480
  setStatus('Lade Konfiguration…');
13402
13481
  const data = await fetchJson('/api/installer/config?t=' + Date.now(), { cache: 'no-store' });
13403
- configurationRevision = typeof data.configurationRevision === 'string' ? data.configurationRevision : null;
13404
13482
  const cfg = (data && data.config && typeof data.config === 'object') ? data.config : {};
13405
13483
 
13406
13484
  // Runtime-Fallback: Die Lizenzseite nutzt /api/license/info und kann eine Lizenz sofort
@@ -13421,9 +13499,11 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
13421
13499
 
13422
13500
  await hydrateStorageFarmConfigFromRuntimeState(cfg);
13423
13501
  applyConfigToUI(cfg);
13502
+ configurationRevision = typeof data.configurationRevision === 'string' ? data.configurationRevision : null;
13424
13503
  clearDirty();
13425
13504
  scheduleValidation(300);
13426
13505
  setStatus('Konfiguration geladen.', 'ok');
13506
+ } finally { endMutation(); }
13427
13507
  }
13428
13508
  /**
13429
13509
  * Code-Teil: collectPatchFromUI
@@ -13818,8 +13898,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
13818
13898
  }
13819
13899
 
13820
13900
  // Datapoints (inkl. Energiefluss-Monitor)
13821
- patch.tariffProvider = collectTariffProviderConfig();
13822
- if (patch.tariffProvider.enabled && patch.tariffProvider.providerId !== 'manual-dp' && patch.tariffProvider.autoCoupleDatapoints) {
13901
+ const tariffPatch = collectTariffProviderPatch();
13902
+ if (tariffPatch) patch.tariffProvider = tariffPatch;
13903
+ if (tariffPatch && tariffPatch.enabled && tariffPatch.providerId !== 'manual-dp' && tariffPatch.autoCoupleDatapoints) {
13823
13904
  _coupleTariffProviderDatapointsSync();
13824
13905
  }
13825
13906
  patch.datapoints = Object.assign({}, currentConfig.datapoints || {});
@@ -14403,8 +14484,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
14403
14484
  }
14404
14485
  const payload = { patch, restartEms: true, expectedDynamicGridConfigVersion, expectedConfigurationRevision: configurationRevision };
14405
14486
  const data = await fetchJson('/api/installer/config', { method: 'POST', body: JSON.stringify(payload) });
14406
- configurationRevision = data.configurationRevision;
14407
14487
  applyConfigToUI(data.config || {});
14488
+ configurationRevision = data.configurationRevision;
14408
14489
  clearDirty();
14409
14490
  setStatus('Gespeichert. EMS wurde neu gestartet.', 'ok');
14410
14491
  } finally { endMutation(); }
@@ -14434,6 +14515,12 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
14434
14515
  p.style.display = (id === _activeTab) ? '' : 'none';
14435
14516
  });
14436
14517
 
14518
+ // Background discovery persists independently of this page. Refresh a
14519
+ // pristine mapping screen on entry, but preserve every unsaved draft.
14520
+ if (_activeTab === 'evcs' && configurationRevision && !hasAppCenterDraftChanges() && !appCenterMutationBusy) {
14521
+ void loadConfig().catch(error => setStatus('Ladepunkte konnten nicht aktualisiert werden: '
14522
+ + (error && error.message ? error.message : error), 'error'));
14523
+ }
14437
14524
  // immediate status refresh when entering the tab
14438
14525
  if (_activeTab === 'status') {
14439
14526
  refreshEmsStatus().catch(() => {});
@@ -16939,9 +17026,14 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
16939
17026
  if (els.evcsCount) {
16940
17027
  // Ereignis-Kommentar: Bindet das UI-Ereignis 'change' an els.evcsCount. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
16941
17028
  els.evcsCount.addEventListener('change', () => {
17029
+ if (appCenterMutationBusy) return;
16942
17030
  const sc = _ensureSettingsConfig();
16943
- sc.evcsCount = _clampInt(els.evcsCount.value, 0, _maxEvcsCount(), 0);
17031
+ const nextCount = _clampInt(els.evcsCount.value, 0, _maxEvcsCount(), 0);
17032
+ if (nextCount === 0 && Array.isArray(sc.evcsList) && sc.evcsList.length > 0) evcsExplicitEmpty = true;
17033
+ if (nextCount > 0) evcsExplicitEmpty = false;
17034
+ sc.evcsCount = nextCount;
16944
17035
  buildEvcsUI();
17036
+ setDirty();
16945
17037
  });
16946
17038
  }
16947
17039
  if (els.evcsMaxPowerKw) {