iobroker.eos-admin 9.0.25 → 9.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEXOWATT_EOS_BUILD_INFO.json +3 -3
- package/README.md +6 -4
- package/START_HIER_9.0.26.md +80 -0
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-CLDpmxDx.js → AdapterUpdateDialog-DIjnNZ5k.js} +1 -1
- package/adminWww/assets/{Adapters-BCGeX2v7.js → Adapters-D8UOQg1q.js} +1 -1
- package/adminWww/assets/{ConfigManager-B_sJf5_w.js → ConfigManager-CAvT_4-g.js} +1 -1
- package/adminWww/assets/{Enums-D3n1pOtc.js → Enums-CrNUOX0d.js} +1 -1
- package/adminWww/assets/{Fields-Bdx5gPoT.js → Fields-D-0qFiqr.js} +1 -1
- package/adminWww/assets/{Files-BPK84lYU.js → Files-BL8kvaeC.js} +1 -1
- package/adminWww/assets/{Hosts--Jr6oLf2.js → Hosts-BToJLy61.js} +1 -1
- package/adminWww/assets/{Instances-DxTOzFus.js → Instances-Dlrp1KGP.js} +1 -1
- package/adminWww/assets/{Intro-CYBGeZtu.js → Intro-5EbxvP4X.js} +1 -1
- package/adminWww/assets/{Logs-CVNC-4S8.js → Logs-xdFVJ6fZ.js} +1 -1
- package/adminWww/assets/{Objects-Cqm9Rvym.js → Objects-DhyJ5eAY.js} +1 -1
- package/adminWww/assets/{Overview-JgjcHwlz.js → Overview-BspgcFB7.js} +1 -1
- package/adminWww/assets/{State-BV14HSwZ.js → State-CJ1mKH_U.js} +1 -1
- package/adminWww/assets/{UsedResources-Dz48WzEF.js → UsedResources-BMiCxqWH.js} +1 -1
- package/adminWww/assets/{Users-D19YlRCD.js → Users-DrlJHRa5.js} +1 -1
- package/adminWww/assets/{bootstrap-a7POLSDr.js → bootstrap-BU7j1Fe_.js} +3 -3
- package/adminWww/assets/{hostInit-keGjwsZR.js → hostInit-Cgee6juw.js} +1 -1
- package/adminWww/assets/{icons-material-Omb_HCfb.js → icons-material-C0U9EKON.js} +1 -1
- package/adminWww/assets/{index-DqPrQK7T.js → index-BUZf1ftI.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-iWfLFoQU.js → installSVGRenderer-CcjgaxiA.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-2a856bb6.js → mf-entry-bootstrap-0-96d40e57.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/remoteEntry-eos-9.0.26.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosKiosk.js +11 -1
- package/build/lib/eosKiosk.js.map +1 -1
- package/build/lib/eosModuleHost.js +134 -38
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +9 -3
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleLoad.js +83 -0
- package/build/lib/eosModuleLoad.js.map +1 -0
- package/build/lib/eosModuleProcess.js +16 -1
- package/build/lib/eosModuleProcess.js.map +1 -1
- package/build/lib/eosModuleProcessProtocol.js +13 -1
- package/build/lib/eosModuleProcessProtocol.js.map +1 -1
- package/build/lib/eosModuleProcessWorker.js +50 -23
- package/build/lib/eosModuleProcessWorker.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +17 -6
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/lib/eosTlsHttp.js +84 -0
- package/build/lib/eosTlsHttp.js.map +1 -1
- package/build/lib/eosUiProcessWorker.js +1 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -1
- package/build/lib/web.js +18 -1
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.26/ACTIVATION.md +50 -0
- package/docs/reports/unified-9.0.26/BACKUP_READINESS_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.26/BACKUP_UI.md +69 -0
- package/docs/reports/unified-9.0.26/CHARGING_CLIENT_REVIEW.md +24 -0
- package/docs/reports/unified-9.0.26/EVCS_DELETE_UI_REVIEW.md +120 -0
- package/docs/reports/unified-9.0.26/EVCS_IDENTITY_REVIEW.md +47 -0
- package/docs/reports/unified-9.0.26/INDEPENDENT_REVIEW.md +114 -0
- package/docs/reports/unified-9.0.26/LIFECYCLE_REVIEW.md +47 -0
- package/docs/reports/unified-9.0.26/OCPP_DELETION_REVIEW.md +49 -0
- package/docs/reports/unified-9.0.26/PIPELINE_OFFLINE_ASSERTION_REVIEW.md +71 -0
- package/docs/reports/unified-9.0.26/PRUEFBERICHT.md +71 -0
- package/docs/reports/unified-9.0.26/PWA_TLS.md +43 -0
- package/docs/reports/unified-9.0.26/TARIFF_STARTUP.md +42 -0
- package/docs/reports/unified-9.0.26/installed-package/README.md +105 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-git-export.json +31 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-install.log +15 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node22-lifecycle.log +17 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node22.log +26 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node24-lifecycle.log +17 -0
- package/docs/reports/unified-9.0.26/installed-package/baseline925-node24.log +10 -0
- package/docs/reports/unified-9.0.26/installed-package/diagnostic-node22.log +26 -0
- package/docs/reports/unified-9.0.26/installed-package/diagnostic-node24.log +10 -0
- package/docs/reports/unified-9.0.26/installed-package/registry925-comparison.json +18 -0
- package/docs/reports/unified-9.0.26/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.26/raw/activation/INTERNAL_VISUAL_CHECKS.md +1 -0
- package/docs/reports/unified-9.0.26/raw/activation/eslint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-browser.json +74 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-browser.stderr.log +2 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-real-processes.log +40 -0
- package/docs/reports/unified-9.0.26/raw/activation/node22-unit-http.log +196 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-browser.json +74 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-browser.stderr.log +0 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-module-http.log +18 -0
- package/docs/reports/unified-9.0.26/raw/activation/node24-tests.log +43 -0
- package/docs/reports/unified-9.0.26/raw/activation/typecheck.log +0 -0
- package/docs/reports/unified-9.0.26/raw/activation/verification.json +38 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/field-map.json +497 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.json +67 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node22-browser.stderr.log +2 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.json +67 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/node24-browser.stderr.log +0 -0
- package/docs/reports/unified-9.0.26/raw/backup-ui/verification.json +32 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/FINAL_CHECKS.json +45 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-before-ems-tariff.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-backend-delivery.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-frontend.log +152 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-installer.log +26 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-modules.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime-delivery.log +7 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-build-ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-complete.log +45 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-lint-delivery.log +45 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.json +77 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.json +7 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-registry-check.stderr +9 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-sbom-vendored.log +1 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-complete.log +5 -0
- package/docs/reports/unified-9.0.26/raw/build-and-static/eos926-typecheck-delivery.log +5 -0
- package/docs/reports/unified-9.0.26/raw/charging-control-client-review-hashes.json +10 -0
- package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node22.log +86 -0
- package/docs/reports/unified-9.0.26/raw/charging-control-client-review-node24.log +20 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity/node22.log +130 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity/node24.log +27 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/PRODUCT_REVIEW.md +45 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.json +18 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/independent-probes.stderr +0 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/node24-tests.log +38 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/registry-ipc.json +24 -0
- package/docs/reports/unified-9.0.26/raw/charging-identity-review/review-probes.cjs +81 -0
- package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node22.log +188 -0
- package/docs/reports/unified-9.0.26/raw/deletion-station-kiosk-node24.log +36 -0
- package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node22.log +148 -0
- package/docs/reports/unified-9.0.26/raw/evcs-control-fence-node24.log +30 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/browser-lint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.json +28 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-browser.log +3 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-client-handshake.log +112 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-corrected.log +94 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-diagnostic.log +27 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-repro.log +94 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node22-pipeline-tick-probe.log +36 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.json +28 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-browser.log +1 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-client-handshake.log +24 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-corrected.log +23 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-repro.log +23 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/node24-pipeline-tick-probe.log +28 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-corrected-snapshot.json +23 -0
- package/docs/reports/unified-9.0.26/raw/evcs-delete/pipeline-lint.log +6 -0
- package/docs/reports/unified-9.0.26/raw/final-source-snapshot.json +16 -0
- package/docs/reports/unified-9.0.26/raw/git-vendor-source/node22.log +28 -0
- package/docs/reports/unified-9.0.26/raw/git-vendor-source/node24.log +10 -0
- package/docs/reports/unified-9.0.26/raw/git-vendor-source/verification.json +29 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/GIT_ADDENDUM.json +20 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/INDEX.json +76 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/baseline925-artifacts-independent.json +16 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node22.log +22 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-complete-node24.log +9 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-runtime-node24.log +9 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/git-transport-independent.json +33 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/npm-dry-run-file-inventory.json +16271 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/npm-git-complete-inventory.json +40 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/public-trust-node24.log +9 -0
- package/docs/reports/unified-9.0.26/raw/independent-review/runtime-lifecycle-import-node24.log +35 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node22-baseline925.json +30 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node22-candidate926.json +30 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node24-baseline925.json +30 -0
- package/docs/reports/unified-9.0.26/raw/lifecycle/node24-candidate926.json +30 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-git-regression.log +16035 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-backup-ui.log +16037 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-ems-tariff.log +16064 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-git-regression.log +16027 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-pipeline-fixture.log +11584 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-before-remap-noop.log +11581 -0
- package/docs/reports/unified-9.0.26/raw/node22-tests-final.log +16520 -0
- package/docs/reports/unified-9.0.26/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-git-regression.log +2678 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-backup-ui.log +2678 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-ems-tariff.log +1860 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-git-regression.log +2677 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-pipeline-fixture.log +1925 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-before-remap-noop.log +1924 -0
- package/docs/reports/unified-9.0.26/raw/node24-tests-final.log +2757 -0
- package/docs/reports/unified-9.0.26/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node22.log +148 -0
- package/docs/reports/unified-9.0.26/raw/ocpp-deletion-node24.log +30 -0
- package/docs/reports/unified-9.0.26/raw/publish-overlay-provenance.json +10 -0
- package/docs/reports/unified-9.0.26/raw/pwa/INTERNAL_VISUAL_CHECKS.md +1 -0
- package/docs/reports/unified-9.0.26/raw/pwa/index.json +18 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-baseline.log +48 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.json +33 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser-node22.stderr +5 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.json +33 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-browser.stderr +2 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node22.log +137 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-focused-node24.log +32 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-lint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node22.log +28 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-recovery-node24.log +10 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-tls-final.log +9 -0
- package/docs/reports/unified-9.0.26/raw/pwa/pwa-926-typecheck.log +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node22.log +250 -0
- package/docs/reports/unified-9.0.26/raw/tariff-deletion-station-kiosk-node24.log +46 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/PRODUCT_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/browser-eslint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/eslint.log +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/independent-review-node24.log +35 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.json +43 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-browser.stderr +2 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-process-final.log +26 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node22-tests.log +378 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.json +43 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-browser.stderr +0 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-process-final.log +10 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/node24-tests.log +66 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/process-verification.json +41 -0
- package/docs/reports/unified-9.0.26/raw/tariff-startup/typecheck.log +0 -0
- package/docs/unified/NEXOWATT_TLS_DE.md +12 -2
- package/io-package.json +8 -9
- package/modules/backup/admin/index.html +24 -95
- package/modules/backup/admin/index.js +350 -98
- package/modules/backup/admin/style.css +40 -0
- package/package.json +12 -8
- package/public/eos-runtime/index.js +12 -2
- package/public/eos-tls/index.html +1 -1
- package/public/eos-tls/trust.css +19 -0
- package/public/eos-tls/trust.html +52 -0
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +316 -126
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +2 -2
- package/release-manifests/unified/obsolete-admin-assets.json +539 -457
- package/release-manifests/unified/runtime.cdx.json +26 -26
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-lifecycle-benchmark.cjs +50 -0
- package/tools/eos-release-manifest.cjs +1 -1
- package/ui/ems/engine.js +5 -1
- package/ui/io-package.json +1 -1
- package/ui/lib/charging-point-identity.js +465 -0
- package/ui/lib/charging-station-identity.js +111 -0
- package/ui/lib/ocpp-auto-discovery.js +34 -3
- package/ui/main.js +165 -29
- package/ui/package.json +1 -1
- package/ui/www/app.js +63 -18
- package/ui/www/customer-tariff.js +67 -11
- package/ui/www/dc-station-display.js +15 -11
- package/ui/www/ems-apps.js +40 -6
- package/ui/www/evcs.js +55 -12
- package/ui/www/login.html +1 -0
- package/ui/www/manifest.webmanifest +2 -2
- package/adminWww/remoteEntry-eos-9.0.25.js +0 -12
package/ui/www/app.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/app.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:18104cb2b08b3c23c36643230efeb9f8a940be31f60d25193001491594db06ea
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -3525,11 +3525,54 @@ function render() {
|
|
|
3525
3525
|
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
3526
3526
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
3527
3527
|
*/
|
|
3528
|
+
|
|
3529
|
+
// Bind command ownership to the document's initial configuration. Automatic
|
|
3530
|
+
// telemetry/config refresh must never upgrade an already open control to another LP.
|
|
3531
|
+
let chargingControlSnapshot = null;
|
|
3532
|
+
function rememberChargingControlIdentity(config) {
|
|
3533
|
+
if (chargingControlSnapshot !== null) return;
|
|
3534
|
+
const value = config && config.chargingControlIdentity;
|
|
3535
|
+
chargingControlSnapshot = JSON.parse(JSON.stringify(value && typeof value === 'object' ? value : {}));
|
|
3536
|
+
}
|
|
3537
|
+
async function chargingControlFetch(url, options = {}) {
|
|
3538
|
+
let request = options;
|
|
3539
|
+
if (url === '/api/set' && typeof options.body === 'string') {
|
|
3540
|
+
const body = JSON.parse(options.body);
|
|
3541
|
+
if (body.scope === 'ems' || body.scope === 'evcs' || (body.scope === 'settings' && /^evcs/.test(String(body.key || '')))) {
|
|
3542
|
+
const key = String(body.key || '');
|
|
3543
|
+
const match = key.match(/^(?:evcs\.|chargingManagement\.wallboxes\.lp)([1-9]\d*)\./)
|
|
3544
|
+
|| (body.scope === 'evcs' && key.match(/^([1-9]\d*)\./));
|
|
3545
|
+
const metadata = chargingControlSnapshot;
|
|
3546
|
+
if (match && typeof metadata?.slots?.['lp' + match[1]] === 'string') body.expectedChargingIdentity = metadata.slots['lp' + match[1]];
|
|
3547
|
+
else if (!match && typeof metadata?.revision === 'string') body.expectedChargingLayoutRevision = metadata.revision;
|
|
3548
|
+
request = { ...options, body: JSON.stringify(body) };
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
const response = await fetch(url, request);
|
|
3552
|
+
if (url === '/api/set' && response.status === 409) {
|
|
3553
|
+
const data = await response.clone().json().catch(() => null);
|
|
3554
|
+
if (String(data?.error || '').startsWith('EOS_EVCS_IDENTITY_')) {
|
|
3555
|
+
let notice = document.getElementById('nw-charging-identity-notice');
|
|
3556
|
+
if (!notice) {
|
|
3557
|
+
notice = document.createElement('div'); notice.id = 'nw-charging-identity-notice';
|
|
3558
|
+
notice.setAttribute('role', 'alert'); notice.className = 'nw-help';
|
|
3559
|
+
notice.textContent = 'Die Ladepunktzuordnung wurde geändert oder wird aktualisiert. Der Befehl wurde nicht ausgeführt. Bitte die Seite neu laden. ';
|
|
3560
|
+
const reload = document.createElement('button'); reload.type = 'button'; reload.textContent = 'Seite neu laden';
|
|
3561
|
+
reload.addEventListener('click', () => window.location.reload()); notice.appendChild(reload);
|
|
3562
|
+
(document.querySelector('main') || document.body).prepend(notice);
|
|
3563
|
+
}
|
|
3564
|
+
throw new Error('EOS_EVCS_IDENTITY_CHANGED');
|
|
3565
|
+
}
|
|
3566
|
+
}
|
|
3567
|
+
return response;
|
|
3568
|
+
}
|
|
3569
|
+
|
|
3528
3570
|
async function bootstrap() {
|
|
3529
3571
|
let cfg = {};
|
|
3530
3572
|
try {
|
|
3531
3573
|
const cfgRes = await fetch('/config');
|
|
3532
3574
|
cfg = await cfgRes.json();
|
|
3575
|
+
rememberChargingControlIdentity(cfg);
|
|
3533
3576
|
units = cfg.units || units;
|
|
3534
3577
|
|
|
3535
3578
|
// ioBroker-Systemsprache übernehmen: Backend liefert /config.locale aus system.config.common.language.
|
|
@@ -3591,6 +3634,7 @@ async function bootstrap() {
|
|
|
3591
3634
|
}catch(_e){}
|
|
3592
3635
|
} catch (e) {
|
|
3593
3636
|
console.warn('[config]', e);
|
|
3637
|
+
rememberChargingControlIdentity({});
|
|
3594
3638
|
}
|
|
3595
3639
|
// --- Config hot-reload ----------------------------------------------------
|
|
3596
3640
|
// If the App-Center changes "installed" flags, the backend updates installer.configJson.
|
|
@@ -3613,6 +3657,7 @@ let cfgReloadPending = false;
|
|
|
3613
3657
|
*/
|
|
3614
3658
|
const applyConfigSnapshot = (nextCfg) => {
|
|
3615
3659
|
cfg = nextCfg || {};
|
|
3660
|
+
rememberChargingControlIdentity(cfg);
|
|
3616
3661
|
try { window.__nwCfg = cfg || {}; } catch (_e) { window.__nwCfg = {}; }
|
|
3617
3662
|
try { units = cfg.units || units; } catch (_e) {}
|
|
3618
3663
|
|
|
@@ -4707,7 +4752,7 @@ function bindInputValue(el, stateKey) {
|
|
|
4707
4752
|
} catch (_e) {}
|
|
4708
4753
|
|
|
4709
4754
|
try {
|
|
4710
|
-
await
|
|
4755
|
+
await chargingControlFetch('/api/set', {
|
|
4711
4756
|
method: 'POST',
|
|
4712
4757
|
headers: { 'Content-Type': 'application/json' },
|
|
4713
4758
|
body: JSON.stringify({ scope, key, value: val })
|
|
@@ -5384,7 +5429,7 @@ function setupRfidWhitelistUi(){
|
|
|
5384
5429
|
}
|
|
5385
5430
|
const json = JSON.stringify(cleaned);
|
|
5386
5431
|
try {
|
|
5387
|
-
await
|
|
5432
|
+
await chargingControlFetch('/api/set', {
|
|
5388
5433
|
method: 'POST',
|
|
5389
5434
|
headers: { 'Content-Type': 'application/json' },
|
|
5390
5435
|
body: JSON.stringify({ scope: 'rfid', key: 'whitelistJson', value: json })
|
|
@@ -5501,7 +5546,7 @@ function setupRfidLearningUi(){
|
|
|
5501
5546
|
*/
|
|
5502
5547
|
async function setLearningActive(active){
|
|
5503
5548
|
try{
|
|
5504
|
-
await
|
|
5549
|
+
await chargingControlFetch('/api/set', {
|
|
5505
5550
|
method: 'POST',
|
|
5506
5551
|
headers: { 'Content-Type': 'application/json' },
|
|
5507
5552
|
body: JSON.stringify({ scope: 'rfid', key: 'learning.active', value: !!active })
|
|
@@ -6596,7 +6641,7 @@ function initEmsControlModal() {
|
|
|
6596
6641
|
*/
|
|
6597
6642
|
const setSetting = async (key, value) => {
|
|
6598
6643
|
try {
|
|
6599
|
-
await
|
|
6644
|
+
await chargingControlFetch('/api/set', {
|
|
6600
6645
|
method: 'POST',
|
|
6601
6646
|
headers: { 'Content-Type': 'application/json' },
|
|
6602
6647
|
credentials: 'same-origin',
|
|
@@ -6718,7 +6763,7 @@ function initThresholdModal() {
|
|
|
6718
6763
|
*/
|
|
6719
6764
|
const apiSet = async (key, value) => {
|
|
6720
6765
|
try {
|
|
6721
|
-
const resp = await
|
|
6766
|
+
const resp = await chargingControlFetch('/api/set', {
|
|
6722
6767
|
method: 'POST',
|
|
6723
6768
|
headers: { 'Content-Type': 'application/json' },
|
|
6724
6769
|
credentials: 'same-origin',
|
|
@@ -7154,7 +7199,7 @@ function initRelayModal() {
|
|
|
7154
7199
|
*/
|
|
7155
7200
|
const apiSet = async (idx, prop, value) => {
|
|
7156
7201
|
try {
|
|
7157
|
-
const resp = await
|
|
7202
|
+
const resp = await chargingControlFetch('/api/set', {
|
|
7158
7203
|
method: 'POST',
|
|
7159
7204
|
headers: { 'Content-Type': 'application/json' },
|
|
7160
7205
|
credentials: 'same-origin',
|
|
@@ -7496,7 +7541,7 @@ function initBhkwModal() {
|
|
|
7496
7541
|
*/
|
|
7497
7542
|
const apiSet = async (idx, prop, value) => {
|
|
7498
7543
|
try {
|
|
7499
|
-
const resp = await
|
|
7544
|
+
const resp = await chargingControlFetch('/api/set', {
|
|
7500
7545
|
method: 'POST',
|
|
7501
7546
|
headers: { 'Content-Type': 'application/json' },
|
|
7502
7547
|
credentials: 'same-origin',
|
|
@@ -7840,7 +7885,7 @@ function initGeneratorModal() {
|
|
|
7840
7885
|
*/
|
|
7841
7886
|
const apiSet = async (idx, prop, value) => {
|
|
7842
7887
|
try {
|
|
7843
|
-
const resp = await
|
|
7888
|
+
const resp = await chargingControlFetch('/api/set', {
|
|
7844
7889
|
method: 'POST',
|
|
7845
7890
|
headers: { 'Content-Type': 'application/json' },
|
|
7846
7891
|
credentials: 'same-origin',
|
|
@@ -9213,7 +9258,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9213
9258
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
9214
9259
|
*/
|
|
9215
9260
|
const apiSet = async (scope, key, value) => {
|
|
9216
|
-
const r = await
|
|
9261
|
+
const r = await chargingControlFetch('/api/set', {
|
|
9217
9262
|
method: 'POST',
|
|
9218
9263
|
headers: { 'Content-Type': 'application/json' },
|
|
9219
9264
|
body: JSON.stringify({ scope, key, value })
|
|
@@ -9330,7 +9375,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9330
9375
|
const controller = new AbortController();
|
|
9331
9376
|
const timer = setTimeout(() => controller.abort(), 5000);
|
|
9332
9377
|
try{
|
|
9333
|
-
const response = await
|
|
9378
|
+
const response = await chargingControlFetch(url, { ...options, credentials: 'same-origin', signal: controller.signal });
|
|
9334
9379
|
if (!response || !response.ok){
|
|
9335
9380
|
throw new Error(response && (response.status === 401 || response.status === 403) ? 'mode_auth_required' : 'mode_http_failed');
|
|
9336
9381
|
}
|
|
@@ -9641,7 +9686,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9641
9686
|
const scope = modalHasEms ? 'ems' : 'settings';
|
|
9642
9687
|
const key = modalHasEms ? 'evcs.1.stationEnabled' : 'evcsActive';
|
|
9643
9688
|
try{
|
|
9644
|
-
await
|
|
9689
|
+
await chargingControlFetch('/api/set', {method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({scope, key, value: desired})});
|
|
9645
9690
|
}catch(e){}
|
|
9646
9691
|
});
|
|
9647
9692
|
}
|
|
@@ -9655,7 +9700,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9655
9700
|
pendingRegUntil = Date.now() + 2500;
|
|
9656
9701
|
try { scheduleRender(); } catch(_e) {}
|
|
9657
9702
|
try{
|
|
9658
|
-
await
|
|
9703
|
+
await chargingControlFetch('/api/set', {method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({scope:'ems', key:'evcs.1.regEnabled', value: desired})});
|
|
9659
9704
|
}catch(e){}
|
|
9660
9705
|
});
|
|
9661
9706
|
}
|
|
@@ -10623,7 +10668,7 @@ function openFlowQc(kind, idx){
|
|
|
10623
10668
|
pendingSwitch = !!v;
|
|
10624
10669
|
showMsg('Sende…', '');
|
|
10625
10670
|
try {
|
|
10626
|
-
await
|
|
10671
|
+
await chargingControlFetch('/api/set', {
|
|
10627
10672
|
method: 'POST',
|
|
10628
10673
|
headers: { 'Content-Type': 'application/json' },
|
|
10629
10674
|
body: JSON.stringify({ scope: 'flow', key: `${ctx.kind}.${ctx.idx}.switch`, value: !!v })
|
|
@@ -10649,7 +10694,7 @@ function openFlowQc(kind, idx){
|
|
|
10649
10694
|
pendingSetpoint = n;
|
|
10650
10695
|
showMsg('Sende…', '');
|
|
10651
10696
|
try {
|
|
10652
|
-
await
|
|
10697
|
+
await chargingControlFetch('/api/set', {
|
|
10653
10698
|
method: 'POST',
|
|
10654
10699
|
headers: { 'Content-Type': 'application/json' },
|
|
10655
10700
|
body: JSON.stringify({ scope: 'flow', key: `${ctx.kind}.${ctx.idx}.setpoint`, value: n })
|
|
@@ -10673,7 +10718,7 @@ function openFlowQc(kind, idx){
|
|
|
10673
10718
|
pendingReg = !!enable;
|
|
10674
10719
|
showMsg('Sende…', '');
|
|
10675
10720
|
try {
|
|
10676
|
-
await
|
|
10721
|
+
await chargingControlFetch('/api/set', {
|
|
10677
10722
|
method: 'POST',
|
|
10678
10723
|
headers: { 'Content-Type': 'application/json' },
|
|
10679
10724
|
body: JSON.stringify({ scope: 'flow', key: `${ctx.kind}.${ctx.idx}.regEnabled`, value: !!enable })
|
|
@@ -10700,7 +10745,7 @@ function openFlowQc(kind, idx){
|
|
|
10700
10745
|
pendingMode = m;
|
|
10701
10746
|
showMsg('Sende…', '');
|
|
10702
10747
|
try {
|
|
10703
|
-
await
|
|
10748
|
+
await chargingControlFetch('/api/set', {
|
|
10704
10749
|
method: 'POST',
|
|
10705
10750
|
headers: { 'Content-Type': 'application/json' },
|
|
10706
10751
|
body: JSON.stringify({ scope: 'flow', key: `${ctx.kind}.${ctx.idx}.mode`, value: m })
|
|
@@ -10725,7 +10770,7 @@ function openFlowQc(kind, idx){
|
|
|
10725
10770
|
pendingBoost = !!enable;
|
|
10726
10771
|
showMsg(enable ? 'Boost starte…' : 'Boost stoppe…', '');
|
|
10727
10772
|
try {
|
|
10728
|
-
await
|
|
10773
|
+
await chargingControlFetch('/api/set', {
|
|
10729
10774
|
method: 'POST',
|
|
10730
10775
|
headers: { 'Content-Type': 'application/json' },
|
|
10731
10776
|
body: JSON.stringify({ scope: 'flow', key: `${ctx.kind}.${ctx.idx}.boost`, value: !!enable })
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/customer-tariff.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:59173edf76cb8213a391c69d6d1fae03a1c43f0b2c41f2c71be55372bb6d6847
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -63,8 +63,20 @@
|
|
|
63
63
|
return { revision: value.revision, config: value.config, credentialsPresent: { accessToken: flags.accessToken === true, securityToken: flags.securityToken === true },
|
|
64
64
|
providers: choices(value.providers).filter(provider => supported.has(provider.id)), profiles: choices(value.profiles), status: isRecord(value.status) ? value.status : {}, configuredExternally: value.configuredExternally === true };
|
|
65
65
|
}
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
class ConfigurationLoading extends Error {
|
|
67
|
+
constructor() { super('EOS lädt die gespeicherte Tarifanbindung noch. Bitte kurz warten und anschließend erneut laden.'); }
|
|
68
|
+
}
|
|
69
|
+
function retryDelay(signal) {
|
|
70
|
+
return new Promise((resolve, reject) => {
|
|
71
|
+
const abort = () => { window.clearTimeout(timer); signal.removeEventListener('abort', abort); reject(new Error('Laden abgebrochen')); };
|
|
72
|
+
const timer = window.setTimeout(() => { signal.removeEventListener('abort', abort); resolve(); }, 2000);
|
|
73
|
+
signal.addEventListener('abort', abort, { once: true });
|
|
74
|
+
if (signal.aborted)
|
|
75
|
+
abort();
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
async function request(body, signal) {
|
|
79
|
+
const options = { cache: 'no-store', credentials: 'same-origin', signal: signal ? AbortSignal.any([signal, AbortSignal.timeout(15000)]) : AbortSignal.timeout(15000) };
|
|
68
80
|
if (body) {
|
|
69
81
|
options.method = 'PUT';
|
|
70
82
|
options.headers = { 'Content-Type': 'application/json' };
|
|
@@ -77,6 +89,13 @@
|
|
|
77
89
|
throw new Error('Tarifanbindung nicht freigegeben. Bitte Anmeldung und Systemfreigabe prüfen.');
|
|
78
90
|
if (response.status === 409)
|
|
79
91
|
throw new Error('Der Tarif wurde inzwischen geändert. Deine Eingaben bleiben erhalten. Gespeicherten Tarif laden und Änderungen abgleichen.');
|
|
92
|
+
if (response.status === 503) {
|
|
93
|
+
const failure = await response.json();
|
|
94
|
+
if (!body && isRecord(failure) && failure.error === 'EOS_TARIFF_CONFIG_LOADING')
|
|
95
|
+
throw new ConfigurationLoading();
|
|
96
|
+
if (isRecord(failure) && failure.error === 'EOS_TARIFF_CONFIG_UNAVAILABLE')
|
|
97
|
+
throw new Error('Die gespeicherte Tarifanbindung konnte beim Systemstart nicht geladen werden. Bitte den Systemstatus prüfen und erneut laden. Bestehende Einstellungen bleiben gespeichert.');
|
|
98
|
+
}
|
|
80
99
|
if (!response.ok)
|
|
81
100
|
throw new Error('Die Tarifanbindung konnte nicht bestätigt werden. Anbieter, Pflichtfelder und Verbindung prüfen. Es wird nichts automatisch erneut gesendet.');
|
|
82
101
|
return decode(await response.json());
|
|
@@ -115,6 +134,7 @@
|
|
|
115
134
|
let baseline = {};
|
|
116
135
|
let busy = false;
|
|
117
136
|
let dirty = false;
|
|
137
|
+
let loadController = null;
|
|
118
138
|
function show(message, error = false) { status.textContent = message; status.dataset.error = String(error); }
|
|
119
139
|
function setOptions(target, items, selected, allowCurrent = false) {
|
|
120
140
|
target.replaceChildren();
|
|
@@ -280,19 +300,42 @@
|
|
|
280
300
|
}
|
|
281
301
|
body = { expectedRevision: view.revision, config: changes };
|
|
282
302
|
}
|
|
303
|
+
const controller = saving ? null : new AbortController();
|
|
304
|
+
if (controller)
|
|
305
|
+
loadController = controller;
|
|
283
306
|
busy = true;
|
|
284
307
|
controls();
|
|
285
308
|
show(saving ? 'Tarifanbindung wird gespeichert …' : 'Gespeicherte Tarifanbindung wird geladen …');
|
|
286
309
|
try {
|
|
287
|
-
|
|
288
|
-
|
|
310
|
+
for (let attempt = 0; attempt < 6; attempt++) {
|
|
311
|
+
try {
|
|
312
|
+
const next = await request(body, controller?.signal);
|
|
313
|
+
if (controller?.signal.aborted)
|
|
314
|
+
return;
|
|
315
|
+
render(next);
|
|
316
|
+
show(saving ? 'Tarifanbindung gespeichert. Der Preisabruf wird separat geprüft; Anlagenfreigaben bleiben unverändert.' : 'Gespeicherte Tarifanbindung geladen.');
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
catch (error) {
|
|
320
|
+
// Only the initial read waits for hydration. Never repeat a write
|
|
321
|
+
// or replace an existing view/draft with a delayed response.
|
|
322
|
+
if (!(error instanceof ConfigurationLoading) || !controller || controller.signal.aborted || view || dirty || !panel.open || attempt >= 5)
|
|
323
|
+
throw error;
|
|
324
|
+
show('EOS startet. Die gespeicherte Tarifanbindung wird geladen …');
|
|
325
|
+
await retryDelay(controller.signal);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
289
328
|
}
|
|
290
329
|
catch (error) {
|
|
291
|
-
|
|
330
|
+
if (!controller?.signal.aborted)
|
|
331
|
+
show(error instanceof Error ? error.message : 'Tarifanbindung nicht verfügbar.', true);
|
|
292
332
|
}
|
|
293
333
|
finally {
|
|
294
|
-
|
|
295
|
-
|
|
334
|
+
if (!controller || loadController === controller) {
|
|
335
|
+
loadController = null;
|
|
336
|
+
busy = false;
|
|
337
|
+
controls();
|
|
338
|
+
}
|
|
296
339
|
}
|
|
297
340
|
}
|
|
298
341
|
form.addEventListener('input', () => { if (view && !busy) {
|
|
@@ -321,9 +364,22 @@
|
|
|
321
364
|
form.addEventListener('submit', event => { event.preventDefault(); void synchronize(true); });
|
|
322
365
|
reload.addEventListener('click', () => { if (dirty && !window.confirm('Ungespeicherte Tarifänderungen verwerfen und gespeicherten Tarif laden?'))
|
|
323
366
|
return; void synchronize(false); });
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
367
|
+
function cancelRead() {
|
|
368
|
+
if (!loadController)
|
|
369
|
+
return;
|
|
370
|
+
const controller = loadController;
|
|
371
|
+
loadController = null;
|
|
372
|
+
controller.abort();
|
|
373
|
+
busy = false;
|
|
374
|
+
controls();
|
|
375
|
+
}
|
|
376
|
+
panel.addEventListener('toggle', () => {
|
|
377
|
+
if (!panel.open)
|
|
378
|
+
cancelRead();
|
|
379
|
+
else if (!view && !busy)
|
|
380
|
+
void synchronize(false);
|
|
381
|
+
});
|
|
382
|
+
window.addEventListener('pagehide', () => { cancelRead(); credential.value = ''; });
|
|
327
383
|
if (panel.open)
|
|
328
384
|
void synchronize(false);
|
|
329
385
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/dc-station-display.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:8e648c0ccac008de03407a0e2134c5e3cbb33f2a03a99a4002f659da32bca018
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
}
|
|
454
454
|
catch (_e) { }
|
|
455
455
|
}
|
|
456
|
-
async function sendCommand(lp, action, mode, extra = {}) {
|
|
456
|
+
async function sendCommand(lp, action, mode, extra = {}, expectedChargingIdentity) {
|
|
457
457
|
if (!token || busyKey || !lastPayload)
|
|
458
458
|
return;
|
|
459
459
|
const station = lastPayload.station || {};
|
|
@@ -470,7 +470,7 @@
|
|
|
470
470
|
try {
|
|
471
471
|
const data = await fetchJson('/api/display/station/' + encodeURIComponent(token) + '/command', {
|
|
472
472
|
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
473
|
-
body: JSON.stringify(Object.assign({ lp, action, mode }, (extra && typeof extra === 'object') ? extra : {})),
|
|
473
|
+
body: JSON.stringify(Object.assign({ lp, action, mode }, (extra && typeof extra === 'object') ? extra : {}, typeof expectedChargingIdentity === 'string' ? { expectedChargingIdentity } : {})),
|
|
474
474
|
});
|
|
475
475
|
toast(t('commandAccepted'));
|
|
476
476
|
if (data && data.payload) {
|
|
@@ -664,14 +664,18 @@
|
|
|
664
664
|
<section class="nw-lp-section"><header><strong>${escapeHtml(t('connectors'))} (${connectors.length})</strong><div class="nw-status-legend"><span data-tone="charging">● ${escapeHtml(t('charging'))}</span><span data-tone="ready">● ${escapeHtml(t('ready'))}</span><span data-tone="inactive">● ${escapeHtml(t('inactive'))}</span><span data-tone="waiting">● ${escapeHtml(t('waiting'))}</span></div></header><div class="nw-connector-grid ${countClass} ${layoutClass}">${connectors.map((c) => renderConnector(c, station)).join('') || `<section class="nw-display-status"><h1>${escapeHtml(t('unavailable'))}</h1><p>${escapeHtml(t('noConnectors'))}</p></section>`}</div></section>
|
|
665
665
|
<section class="nw-insights-grid">${renderDecisionPanel(viewPayload)}${renderWarningsPanel(viewPayload, opts)}</section>
|
|
666
666
|
<footer class="nw-display-footer"><span>NexoWatt EOS · Energy Operation System</span><span>${escapeHtml(display.apiVersion || '0.8.201')}</span><span>${escapeHtml(t('directHardwareWrite'))}</span></footer>`;
|
|
667
|
-
app.querySelectorAll('[data-command]').forEach((btn) =>
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
667
|
+
app.querySelectorAll('[data-command]').forEach((btn) => {
|
|
668
|
+
// Capture the token rendered with this exact button, not a newer poll.
|
|
669
|
+
const expectedChargingIdentity = payload.chargingControlIdentity?.slots?.[String(btn.getAttribute('data-lp'))];
|
|
670
|
+
btn.addEventListener('click', () => {
|
|
671
|
+
const extra = {};
|
|
672
|
+
if (btn.hasAttribute('data-value'))
|
|
673
|
+
extra.value = btn.getAttribute('data-value') === 'true';
|
|
674
|
+
if (btn.hasAttribute('data-enabled'))
|
|
675
|
+
extra.enabled = btn.getAttribute('data-enabled') === 'true';
|
|
676
|
+
sendCommand(btn.getAttribute('data-lp'), btn.getAttribute('data-action'), btn.getAttribute('data-mode'), extra, expectedChargingIdentity);
|
|
677
|
+
});
|
|
678
|
+
});
|
|
675
679
|
app.querySelectorAll('[data-lang]').forEach((btn) => btn.addEventListener('click', () => { manualLanguage = String(btn.getAttribute('data-lang') || '').toLowerCase(); document.documentElement.lang = manualLanguage || 'de'; render(lastPayload || payload, opts); }));
|
|
676
680
|
}
|
|
677
681
|
token = getToken();
|
package/ui/www/ems-apps.js
CHANGED
|
@@ -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:
|
|
10
|
+
* Quell-Hash: sha256:be3391975625831775bbcb6a9f49c7ec980cfc1aa8bc534389b9d6977eea48a0
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -1027,6 +1027,9 @@
|
|
|
1027
1027
|
|
|
1028
1028
|
let currentConfig = null;
|
|
1029
1029
|
let configurationRevision = null;
|
|
1030
|
+
// Nur eine bewusste Löschaktion darf den Schutz vor leerem EVCS-Payload öffnen.
|
|
1031
|
+
// Die Freigabe gehört zum aktuellen Entwurf, niemals zur gespeicherten Konfiguration.
|
|
1032
|
+
let evcsExplicitEmpty = false;
|
|
1030
1033
|
// CAS stammt ausschließlich aus einem vollständig geladenen Gesamtstand.
|
|
1031
1034
|
// Eine Änderungsmeldung erhöht nur die beobachtete Version, niemals den Save-Token.
|
|
1032
1035
|
let dynamicGridLoadedVersion = null;
|
|
@@ -1676,10 +1679,10 @@ function _collectFlowPowerDpIsWFromUI() {
|
|
|
1676
1679
|
|
|
1677
1680
|
let appCenterConfigDirty = false;
|
|
1678
1681
|
let appCenterMutationBusy = false;
|
|
1679
|
-
/**
|
|
1682
|
+
/** Laden, Gesamt-Save und Import ersetzen die sichtbaren Eingaben. Während
|
|
1680
1683
|
* dieses Requests verhindert inert neue Eingaben, auch im eingebetteten Formular. */
|
|
1681
1684
|
function beginAppCenterMutation() {
|
|
1682
|
-
if (appCenterMutationBusy) throw new Error('Speichern oder Import läuft bereits. Bitte den Abschluss abwarten.');
|
|
1685
|
+
if (appCenterMutationBusy) throw new Error('Laden, Speichern oder Import läuft bereits. Bitte den Abschluss abwarten.');
|
|
1683
1686
|
appCenterMutationBusy = true;
|
|
1684
1687
|
closeDpModal();
|
|
1685
1688
|
const main = document.querySelector('main');
|
|
@@ -10919,6 +10922,25 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
10919
10922
|
actions.appendChild(btnUp);
|
|
10920
10923
|
actions.appendChild(btnDown);
|
|
10921
10924
|
|
|
10925
|
+
const btnRemove = document.createElement('button');
|
|
10926
|
+
btnRemove.type = 'button';
|
|
10927
|
+
btnRemove.className = 'nw-config-btn nw-config-btn--ghost';
|
|
10928
|
+
btnRemove.textContent = 'Ladepunkt entfernen';
|
|
10929
|
+
btnRemove.dataset.evcsRemove = String(i);
|
|
10930
|
+
btnRemove.title = 'Diesen Ladepunkt beim Speichern aus der EMS-Zuordnung entfernen';
|
|
10931
|
+
btnRemove.addEventListener('click', () => {
|
|
10932
|
+
if (appCenterMutationBusy) return;
|
|
10933
|
+
const rows = _ensureSettingsConfig().evcsList;
|
|
10934
|
+
if (!Array.isArray(rows) || rows[i - 1] !== rowCfg) return;
|
|
10935
|
+
rows.splice(i - 1, 1);
|
|
10936
|
+
sc.evcsCount = rows.length;
|
|
10937
|
+
evcsExplicitEmpty = rows.length === 0;
|
|
10938
|
+
buildEvcsUI();
|
|
10939
|
+
setDirty();
|
|
10940
|
+
setStatus('Ladepunkt im Entwurf entfernt. Mit „Speichern“ wird die EMS-Zuordnung gelöscht; „Neu laden“ verwirft die Änderung.', 'warn');
|
|
10941
|
+
});
|
|
10942
|
+
actions.appendChild(btnRemove);
|
|
10943
|
+
|
|
10922
10944
|
top.appendChild(title);
|
|
10923
10945
|
top.appendChild(actions);
|
|
10924
10946
|
header.appendChild(top);
|
|
@@ -11670,6 +11692,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
11670
11692
|
*/
|
|
11671
11693
|
function collectSettingsConfigFromUI() {
|
|
11672
11694
|
const out = deepMerge({}, (currentConfig && currentConfig.settingsConfig) ? currentConfig.settingsConfig : {});
|
|
11695
|
+
delete out.__allowEmptyEvcsList;
|
|
11696
|
+
delete out.__explicitDeleteAll;
|
|
11673
11697
|
const count = _clampInt(els.evcsCount ? els.evcsCount.value : out.evcsCount, 0, _maxEvcsCount(), 0);
|
|
11674
11698
|
out.evcsCount = count;
|
|
11675
11699
|
|
|
@@ -11679,6 +11703,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
11679
11703
|
}
|
|
11680
11704
|
// evcsList is maintained live via _updateEvcsField. Still ensure correct length.
|
|
11681
11705
|
out.evcsList = _ensureEvcsList(count);
|
|
11706
|
+
if (evcsExplicitEmpty && count === 0) out.__allowEmptyEvcsList = true;
|
|
11682
11707
|
if (els.evcsGlobalStorageAssistCustomerAllowed) {
|
|
11683
11708
|
const activeCount = out.evcsList.filter((row) => row && row.enabled !== false).length;
|
|
11684
11709
|
out.evcsGlobalStorageAssistCustomerAllowed = activeCount >= 2 && !!els.evcsGlobalStorageAssistCustomerAllowed.checked;
|
|
@@ -11701,6 +11726,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
11701
11726
|
const incomingPartnerVersion = dynamicGridVersion(cfg?.partnerIntegrations?.configVersion);
|
|
11702
11727
|
if (incomingPartnerVersion && incomingPartnerVersion < partnerObservedVersion) throw new Error(partnerReloadNotice);
|
|
11703
11728
|
currentConfig = cfg || {};
|
|
11729
|
+
evcsExplicitEmpty = false;
|
|
11704
11730
|
partnerLoadedVersion = incomingPartnerVersion;
|
|
11705
11731
|
partnerObservedVersion = Math.max(partnerObservedVersion, partnerLoadedVersion || 0);
|
|
11706
11732
|
for (const frame of partnerFrames()) {
|
|
@@ -13398,9 +13424,10 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
13398
13424
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
13399
13425
|
*/
|
|
13400
13426
|
async function loadConfig() {
|
|
13427
|
+
const endMutation = beginAppCenterMutation();
|
|
13428
|
+
try {
|
|
13401
13429
|
setStatus('Lade Konfiguration…');
|
|
13402
13430
|
const data = await fetchJson('/api/installer/config?t=' + Date.now(), { cache: 'no-store' });
|
|
13403
|
-
configurationRevision = typeof data.configurationRevision === 'string' ? data.configurationRevision : null;
|
|
13404
13431
|
const cfg = (data && data.config && typeof data.config === 'object') ? data.config : {};
|
|
13405
13432
|
|
|
13406
13433
|
// Runtime-Fallback: Die Lizenzseite nutzt /api/license/info und kann eine Lizenz sofort
|
|
@@ -13421,9 +13448,11 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
13421
13448
|
|
|
13422
13449
|
await hydrateStorageFarmConfigFromRuntimeState(cfg);
|
|
13423
13450
|
applyConfigToUI(cfg);
|
|
13451
|
+
configurationRevision = typeof data.configurationRevision === 'string' ? data.configurationRevision : null;
|
|
13424
13452
|
clearDirty();
|
|
13425
13453
|
scheduleValidation(300);
|
|
13426
13454
|
setStatus('Konfiguration geladen.', 'ok');
|
|
13455
|
+
} finally { endMutation(); }
|
|
13427
13456
|
}
|
|
13428
13457
|
/**
|
|
13429
13458
|
* Code-Teil: collectPatchFromUI
|
|
@@ -14403,8 +14432,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
14403
14432
|
}
|
|
14404
14433
|
const payload = { patch, restartEms: true, expectedDynamicGridConfigVersion, expectedConfigurationRevision: configurationRevision };
|
|
14405
14434
|
const data = await fetchJson('/api/installer/config', { method: 'POST', body: JSON.stringify(payload) });
|
|
14406
|
-
configurationRevision = data.configurationRevision;
|
|
14407
14435
|
applyConfigToUI(data.config || {});
|
|
14436
|
+
configurationRevision = data.configurationRevision;
|
|
14408
14437
|
clearDirty();
|
|
14409
14438
|
setStatus('Gespeichert. EMS wurde neu gestartet.', 'ok');
|
|
14410
14439
|
} finally { endMutation(); }
|
|
@@ -16939,9 +16968,14 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
16939
16968
|
if (els.evcsCount) {
|
|
16940
16969
|
// Ereignis-Kommentar: Bindet das UI-Ereignis 'change' an els.evcsCount. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
|
|
16941
16970
|
els.evcsCount.addEventListener('change', () => {
|
|
16971
|
+
if (appCenterMutationBusy) return;
|
|
16942
16972
|
const sc = _ensureSettingsConfig();
|
|
16943
|
-
|
|
16973
|
+
const nextCount = _clampInt(els.evcsCount.value, 0, _maxEvcsCount(), 0);
|
|
16974
|
+
if (nextCount === 0 && Array.isArray(sc.evcsList) && sc.evcsList.length > 0) evcsExplicitEmpty = true;
|
|
16975
|
+
if (nextCount > 0) evcsExplicitEmpty = false;
|
|
16976
|
+
sc.evcsCount = nextCount;
|
|
16944
16977
|
buildEvcsUI();
|
|
16978
|
+
setDirty();
|
|
16945
16979
|
});
|
|
16946
16980
|
}
|
|
16947
16981
|
if (els.evcsMaxPowerKw) {
|