iobroker.eos-admin 9.0.17 → 9.0.19
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 +11 -14
- package/README.md +7 -3
- package/START_HIER_9.0.18.md +47 -0
- package/START_HIER_9.0.19.md +52 -0
- package/adminWww/.vite/manifest.json +114 -114
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13759 -13759
- package/adminWww/assets/{AdapterUpdateDialog-Cpo3dAfY.js → AdapterUpdateDialog-JOf2z4Vg.js} +1 -1
- package/adminWww/assets/{Adapters-n2ukPDdC.js → Adapters-C9fcSdWm.js} +1 -1
- package/adminWww/assets/{ConfigManager-BVZ6_Ebo.js → ConfigManager-BeeLlT6D.js} +1 -1
- package/adminWww/assets/{Enums-CQ6yHG2W.js → Enums-FqnXWl8U.js} +1 -1
- package/adminWww/assets/{Fields-CaJqzoW-.js → Fields-DMgrt5Pi.js} +1 -1
- package/adminWww/assets/{Files-DfvpKGa3.js → Files-CIHtt12g.js} +1 -1
- package/adminWww/assets/{Hosts-3xLBsdG6.js → Hosts-fPLBzvTy.js} +1 -1
- package/adminWww/assets/{Instances-B7hKEhyw.js → Instances-4XaVQlrT.js} +1 -1
- package/adminWww/assets/{Intro-BV4kYZdT.js → Intro-5TKriiLO.js} +1 -1
- package/adminWww/assets/{Logs-DpL9eY69.js → Logs-33zcIds-.js} +1 -1
- package/adminWww/assets/{Objects-dN06jhQk.js → Objects-CNQPVbNG.js} +1 -1
- package/adminWww/assets/{Overview-Lip63_ej.js → Overview-BskXGOc8.js} +1 -1
- package/adminWww/assets/{State-BSO2X_xN.js → State-C8SJ_Iqo.js} +1 -1
- package/adminWww/assets/{UsedResources-DvqzszKI.js → UsedResources-CgqRa9ei.js} +1 -1
- package/adminWww/assets/{Users-Csqd1xA-.js → Users-0JVYWR9u.js} +1 -1
- package/adminWww/assets/{bootstrap-C3HM8kNL.js → bootstrap-D16lu6rd.js} +3 -3
- package/adminWww/assets/{hostInit-DdxBUeXQ.js → hostInit-C8YZJuzi.js} +1 -1
- package/adminWww/assets/{icons-material-D1Tb_725.js → icons-material-CiNJ_6Ur.js} +1 -1
- package/adminWww/assets/{index-BOujTMyH.js → index-DA9Sphgh.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-BZyrUVAo.js → installSVGRenderer-DPdkRa_d.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-3418586b.js → mf-entry-bootstrap-0-a7ab91de.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.17.js → remoteEntry-eos-9.0.19.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosCookieNamespace.js +12 -2
- package/build/lib/eosCookieNamespace.js.map +1 -1
- package/build/lib/eosDeviceEmsPlan.js +1147 -0
- package/build/lib/eosDeviceEmsPlan.js.map +1 -0
- package/build/lib/eosDeviceEmsService.js +473 -0
- package/build/lib/eosDeviceEmsService.js.map +1 -0
- package/build/lib/eosModuleHost.js +227 -51
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +1 -1
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/web.js +31 -0
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.18/ALIAS_V1_COVERAGE.json +5056 -0
- package/docs/reports/unified-9.0.18/ALIAS_V1_VERTRAG.md +257 -0
- package/docs/reports/unified-9.0.18/ANFORDERUNGEN.md +55 -0
- package/docs/reports/unified-9.0.18/CUSTOMER_TARIFF_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.18/GERAETE_EMS_EINRICHTUNG.md +86 -0
- package/docs/reports/unified-9.0.18/INSTALLER_LIFECYCLE_REVIEW.md +29 -0
- package/docs/reports/unified-9.0.18/KUNDENTARIF_EINRICHTUNG.md +27 -0
- package/docs/reports/unified-9.0.18/PRUEFBERICHT.md +87 -0
- package/docs/reports/unified-9.0.18/UNABHAENGIGER_REVIEW.md +63 -0
- package/docs/reports/unified-9.0.18/raw/INDEX.json +331 -0
- package/docs/reports/unified-9.0.18/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.18/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.18/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.18/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.18/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.18/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.18/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.18/raw/lint-final.log +5 -0
- package/docs/reports/unified-9.0.18/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.18/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/node22-tests-final.log +9859 -0
- package/docs/reports/unified-9.0.18/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.18/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.18/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.18/raw/node24-tests-final.log +1663 -0
- package/docs/reports/unified-9.0.18/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.18/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.18/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.18/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.18/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.18/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.18/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.18/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-runtime-sync.log +6 -0
- package/docs/reports/unified-9.0.18/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.18/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-sbom-final.log +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.18/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.18/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.18/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/ALIAS_MESSWERTFRISCHE.md +31 -0
- package/docs/reports/unified-9.0.19/COMMISSIONING_PLAN_REVIEW.md +56 -0
- package/docs/reports/unified-9.0.19/EMS_ABSCHLUSSREVIEW.md +43 -0
- package/docs/reports/unified-9.0.19/EMS_KATEGORIEN_ABDECKUNG.md +66 -0
- package/docs/reports/unified-9.0.19/EMS_VERGLEICH_UND_KOPPLUNG.md +25 -0
- package/docs/reports/unified-9.0.19/EVCS_STATE_OBJECTS.md +47 -0
- package/docs/reports/unified-9.0.19/GERAETE_EMS_EINRICHTUNG.md +100 -0
- package/docs/reports/unified-9.0.19/GERAETE_STARTAUSFALL.md +37 -0
- package/docs/reports/unified-9.0.19/INSTALLER_LIFECYCLE_REVIEW.md +59 -0
- package/docs/reports/unified-9.0.19/LEGACY_REGRESSION_REVIEW.md +42 -0
- package/docs/reports/unified-9.0.19/MODBUS_AUTHORIZATION_READS.md +25 -0
- package/docs/reports/unified-9.0.19/PRUEFBERICHT.md +56 -0
- package/docs/reports/unified-9.0.19/RUNTIME_START_UEBERNAHME.md +33 -0
- package/docs/reports/unified-9.0.19/SMA_RECEIVER_LIFECYCLE.md +42 -0
- package/docs/reports/unified-9.0.19/STATIC_REVIEW_DE.md +11 -0
- package/docs/reports/unified-9.0.19/TARIFF_PRICE_VALUES_REVIEW.md +31 -0
- package/docs/reports/unified-9.0.19/TARIF_VIERTELSTUNDEN_RUNTIME.md +17 -0
- package/docs/reports/unified-9.0.19/UNABHAENGIGER_REVIEW.md +49 -0
- package/docs/reports/unified-9.0.19/raw/INDEX.json +751 -0
- package/docs/reports/unified-9.0.19/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.19/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.19/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.19/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.log +0 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.log +0 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-build.log +5 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-host-final.log +70 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-lease-918-before.log +26 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-lease-after.log +9 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-after.log +11 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-before.log +28 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-web-pipeline.log +22 -0
- package/docs/reports/unified-9.0.19/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.19/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.19/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.log +539 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.log +2 -0
- package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-history-http.log +39 -0
- package/docs/reports/unified-9.0.19/raw/legacy-history-http.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.log +30 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.log +2 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.log +203 -0
- package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.log +18 -0
- package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.log +16 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.log +2 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-test-loader.cjs +47 -0
- package/docs/reports/unified-9.0.19/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.19/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.19/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/node22-tests-final.log +10719 -0
- package/docs/reports/unified-9.0.19/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.19/raw/node24-tests-final.log +1805 -0
- package/docs/reports/unified-9.0.19/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.19/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.19/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.log +11 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.log +68 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.19/raw/ui-security-final.result.json +14 -0
- package/io-package.json +12 -12
- package/modules/devices/admin/alias-contract-v1.json +189 -0
- package/modules/devices/admin/ems-assignment.d.ts +16 -0
- package/modules/devices/admin/ems-assignment.js +356 -0
- package/modules/devices/admin/host-bridge.js +76 -4
- package/modules/devices/admin/index.html +40 -1
- package/modules/devices/admin/index_m.js +158 -2
- package/modules/devices/admin/style.css +32 -4
- package/modules/devices/checks/emsAssignment.check.js +132 -0
- package/modules/devices/contracts.d.ts +1 -1
- package/modules/devices/eslint.hosted.config.mjs +1 -1
- package/modules/devices/index.js +64 -16
- package/modules/devices/lib/alias-contract-v1.json +189 -0
- package/modules/devices/lib/aliasContract.js +7 -1
- package/modules/devices/lib/device-alias-semantics-v1.json +1605 -0
- package/modules/devices/lib/deviceAliasFreshness.js +65 -0
- package/modules/devices/lib/deviceAliasSemantics.js +109 -0
- package/modules/devices/lib/deviceRuntime.js +204 -127
- package/modules/devices/lib/drivers/modbus.js +18 -3
- package/modules/devices/lib/drivers/speedwire.js +42 -22
- package/modules/devices/test/aliasContractV1.test.js +1 -1
- package/modules/devices/test/deviceAliasFreshness.test.js +149 -0
- package/modules/devices/test/deviceAliasSemantics.test.js +163 -0
- package/modules/devices/test/emsAssignmentUi.test.js +298 -0
- package/modules/devices/test/modbusAuthorizationReads.test.js +112 -0
- package/modules/devices/test/runtimeLiveness.test.js +1 -1
- package/modules/devices/test/speedwireLifecycle.test.js +118 -0
- package/modules/devices/tsconfig.alias-semantics.json +17 -0
- package/modules/devices/tsconfig.ems-ui.json +9 -0
- package/modules/devices/tsconfig.hosted.json +1 -1
- package/package.json +11 -7
- package/release-manifests/unified/build-environment.cdx.json +1483 -7370
- package/release-manifests/unified/files.json +392 -121
- package/release-manifests/unified/frontend.cdx.json +2688 -5952
- package/release-manifests/unified/installer.cdx.json +2053 -821
- package/release-manifests/unified/obsolete-admin-assets.json +172 -6
- package/release-manifests/unified/runtime.cdx.json +40 -3283
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-check.cjs +1 -1
- package/tools/eos-release-manifest.cjs +5 -5
- package/ui/docs/security/eslint-reviewed-findings.json +32 -18
- package/ui/ems/datapoints.js +22 -1
- package/ui/ems/engine.js +54 -7
- package/ui/ems/module-manager.js +44 -21
- package/ui/ems/modules/core-limits.js +5 -3
- package/ui/ems/modules/energy-wallet.js +31 -32
- package/ui/ems/modules/storage-control.js +5 -4
- package/ui/ems/modules/tarif-vis.js +36 -24
- package/ui/ems/modules/tariff-provider.js +259 -59
- package/ui/ems/services/tariff-provider-registry.js +11 -8
- package/ui/io-package.json +5 -1
- package/ui/lib/customer-tariff.js +245 -0
- package/ui/lib/installer-lifecycle.js +220 -0
- package/ui/lib/storage-farm-overview.js +115 -0
- package/ui/lib/tariff-price.js +115 -0
- package/ui/main.js +400 -163
- package/ui/package.json +14 -4
- package/ui/www/app.js +47 -134
- package/ui/www/customer-tariff.css +21 -0
- package/ui/www/customer-tariff.js +333 -0
- package/ui/www/ems-apps.html +2 -0
- package/ui/www/ems-apps.js +29 -7
- package/ui/www/index.html +2 -0
- package/ui/www/licenses/smarthome-markdown-components.json +156 -156
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/power-measurements.js +62 -0
- package/ui/www/settings.html +47 -0
- package/ui/www/storagefarm-summary.css +17 -0
- package/ui/www/storagefarm-summary.js +136 -0
- package/ui/www/storagefarm.html +16 -1
- package/ui/www/storagefarm.js +10 -22
- package/ui/www/tariff-display.js +161 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026 NexoWatt. All rights reserved.
|
|
3
|
+
* Confidential and Proprietary.
|
|
4
|
+
* Use, modification or distribution without express written permission is prohibited.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
|
+
*
|
|
9
|
+
* Quelle: src-ts/runtime-executables/www/customer-tariff.ts
|
|
10
|
+
* Quell-Hash: sha256:dab28ef2897dc9e0b884e797fc84e74fce129aabd578c09a08e4e1b461b68d59
|
|
11
|
+
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
|
+
*
|
|
13
|
+
* Zweck:
|
|
14
|
+
* Diese JavaScript-Datei ist das ausführbare Build-Artefakt für www/customer-tariff.js.
|
|
15
|
+
* Die fachliche Bearbeitung erfolgt ab 0.7.131 in der TypeScript-Quelle.
|
|
16
|
+
* Ab 0.7.132 sind doppelte Legacy-JS-Bäume wie .nwcore entfernt.
|
|
17
|
+
*
|
|
18
|
+
* Pflege-Regel:
|
|
19
|
+
* 1. Änderung zuerst in src-ts/runtime-executables/ vornehmen.
|
|
20
|
+
* 2. npm run sync:ts-runtime-executables ausführen.
|
|
21
|
+
* 3. npm run test:runtime-executables prüfen.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* NexoWatt Quellcode-Erklärung (DE)
|
|
25
|
+
* Aufgabe: Richtet den gemeinsamen Anlagentarif in den Kundeneinstellungen ein.
|
|
26
|
+
* Daten und Wirkung: Schreibt ausschließlich geänderte Tarifparameter über die
|
|
27
|
+
* dedizierte Kunden-API; niemals eine vollständige App-Center-Konfiguration.
|
|
28
|
+
* auth.ts setzt Sitzung und CSRF. Der Server prüft Rechte, Lizenz, Preiszuordnung,
|
|
29
|
+
* Revision und Quellen. Token werden nicht angezeigt oder lokal gespeichert.
|
|
30
|
+
* Bei Änderungen: Quellwechsel, Pflichtfelder, Secret-Erhalt, Konflikte und
|
|
31
|
+
* unveränderte Geräteeinstellungen prüfen. Kein automatischer Schreibretry.
|
|
32
|
+
*/
|
|
33
|
+
(() => {
|
|
34
|
+
'use strict';
|
|
35
|
+
const endpoint = '/api/customer/tariff-provider';
|
|
36
|
+
const installerSelection = '__installer__';
|
|
37
|
+
const supported = new Set(['manual-dp', 'tibber', 'energyzero', 'entsoe', 'market-profile']);
|
|
38
|
+
const formulaFields = [
|
|
39
|
+
['marketMultiplier', 'customerTariffMultiplier', 1], ['supplierMarkupEurPerKwh', 'customerTariffMarkup', 0],
|
|
40
|
+
['gridVariableEurPerKwh', 'customerTariffGrid', 0], ['taxEurPerKwh', 'customerTariffTax', 0],
|
|
41
|
+
['otherVariableEurPerKwh', 'customerTariffOther', 0], ['vatPct', 'customerTariffVat', 0],
|
|
42
|
+
];
|
|
43
|
+
const isRecord = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
44
|
+
const ownValue = (value, key) => Object.hasOwn(value, key) ? Reflect.get(value, key) : undefined;
|
|
45
|
+
const text = (value, fallback = '') => typeof value === 'string' ? value : fallback;
|
|
46
|
+
function choices(value) {
|
|
47
|
+
if (!Array.isArray(value))
|
|
48
|
+
return [];
|
|
49
|
+
return value.slice(0, 64).flatMap((item) => {
|
|
50
|
+
if (!isRecord(item) || typeof item.id !== 'string' || item.id.length > 80 || typeof item.name !== 'string')
|
|
51
|
+
return [];
|
|
52
|
+
const countries = Array.isArray(item.countries) ? item.countries.filter((country) => typeof country === 'string')
|
|
53
|
+
: text(item.country, 'DE/NL').split('/');
|
|
54
|
+
return [{ id: item.id, name: item.name.slice(0, 160), countries }];
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function decode(value) {
|
|
58
|
+
if (!isRecord(value) || value.ok !== true || value.scope !== 'system' || typeof value.revision !== 'string'
|
|
59
|
+
|| value.revision.length > 160 || !value.revision || !isRecord(value.config))
|
|
60
|
+
throw new Error('Die gespeicherte Tarifanbindung wurde nicht bestätigt. Bitte neu laden.');
|
|
61
|
+
const flags = isRecord(value.credentialsPresent) ? value.credentialsPresent : {};
|
|
62
|
+
return { revision: value.revision, config: value.config, credentialsPresent: { accessToken: flags.accessToken === true, securityToken: flags.securityToken === true },
|
|
63
|
+
providers: choices(value.providers).filter(provider => supported.has(provider.id)), profiles: choices(value.profiles), status: isRecord(value.status) ? value.status : {}, configuredExternally: value.configuredExternally === true };
|
|
64
|
+
}
|
|
65
|
+
async function request(body) {
|
|
66
|
+
const options = { cache: 'no-store', credentials: 'same-origin', signal: AbortSignal.timeout(15000) };
|
|
67
|
+
if (body) {
|
|
68
|
+
options.method = 'PUT';
|
|
69
|
+
options.headers = { 'Content-Type': 'application/json' };
|
|
70
|
+
options.body = JSON.stringify(body);
|
|
71
|
+
}
|
|
72
|
+
const response = await fetch(endpoint, options);
|
|
73
|
+
if (response.status === 401)
|
|
74
|
+
throw new Error('Sitzung abgelaufen. Bitte erneut bei EOS anmelden. Deine Eingaben bleiben im Formular.');
|
|
75
|
+
if (response.status === 403)
|
|
76
|
+
throw new Error('Tarifanbindung nicht freigegeben. Bitte Anmeldung und Systemfreigabe prüfen.');
|
|
77
|
+
if (response.status === 409)
|
|
78
|
+
throw new Error('Der Tarif wurde inzwischen geändert. Deine Eingaben bleiben erhalten. Gespeicherten Tarif laden und Änderungen abgleichen.');
|
|
79
|
+
if (!response.ok)
|
|
80
|
+
throw new Error('Die Tarifanbindung konnte nicht bestätigt werden. Anbieter, Pflichtfelder und Verbindung prüfen. Es wird nichts automatisch erneut gesendet.');
|
|
81
|
+
return decode(await response.json());
|
|
82
|
+
}
|
|
83
|
+
function initialize() {
|
|
84
|
+
const panelNode = document.getElementById('customerTariffPanel');
|
|
85
|
+
const formNode = document.getElementById('customerTariffForm');
|
|
86
|
+
if (!(panelNode instanceof HTMLDetailsElement) || !(formNode instanceof HTMLFormElement))
|
|
87
|
+
return;
|
|
88
|
+
const panel = panelNode;
|
|
89
|
+
const form = formNode;
|
|
90
|
+
const input = (id) => { const value = document.getElementById(id); if (!(value instanceof HTMLInputElement))
|
|
91
|
+
throw new Error('Tarif-Eingabefeld fehlt'); return value; };
|
|
92
|
+
const select = (id) => { const value = document.getElementById(id); if (!(value instanceof HTMLSelectElement))
|
|
93
|
+
throw new Error('Tarif-Auswahl fehlt'); return value; };
|
|
94
|
+
const element = (id) => { const value = document.getElementById(id); if (!(value instanceof HTMLElement))
|
|
95
|
+
throw new Error('Tarif-Anzeige fehlt'); return value; };
|
|
96
|
+
const fieldsetNode = document.getElementById('customerTariffFields');
|
|
97
|
+
const saveNode = document.getElementById('customerTariffSave');
|
|
98
|
+
const reloadNode = document.getElementById('customerTariffReload');
|
|
99
|
+
if (!(fieldsetNode instanceof HTMLFieldSetElement) || !(saveNode instanceof HTMLButtonElement) || !(reloadNode instanceof HTMLButtonElement))
|
|
100
|
+
return;
|
|
101
|
+
const fieldset = fieldsetNode;
|
|
102
|
+
const save = saveNode;
|
|
103
|
+
const reload = reloadNode;
|
|
104
|
+
const country = select('customerTariffCountry');
|
|
105
|
+
const provider = select('customerTariffProvider');
|
|
106
|
+
const source = select('customerTariffSource');
|
|
107
|
+
const profile = select('customerTariffProfile');
|
|
108
|
+
const credential = input('customerTariffCredential');
|
|
109
|
+
const enabled = input('customerTariffEnabled');
|
|
110
|
+
const use = input('customerTariffUse');
|
|
111
|
+
const home = input('customerTariffHome');
|
|
112
|
+
const status = element('customerTariffStatus');
|
|
113
|
+
let view = null;
|
|
114
|
+
let baseline = {};
|
|
115
|
+
let busy = false;
|
|
116
|
+
let dirty = false;
|
|
117
|
+
function show(message, error = false) { status.textContent = message; status.dataset.error = String(error); }
|
|
118
|
+
function setOptions(target, items, selected, allowCurrent = false) {
|
|
119
|
+
target.replaceChildren();
|
|
120
|
+
const placeholder = document.createElement('option');
|
|
121
|
+
placeholder.value = '';
|
|
122
|
+
placeholder.textContent = 'Bitte auswählen';
|
|
123
|
+
target.appendChild(placeholder);
|
|
124
|
+
for (const item of items) {
|
|
125
|
+
const option = document.createElement('option');
|
|
126
|
+
option.value = item.id;
|
|
127
|
+
option.textContent = item.name;
|
|
128
|
+
target.appendChild(option);
|
|
129
|
+
}
|
|
130
|
+
if (allowCurrent && selected && !items.some(item => item.id === selected)) {
|
|
131
|
+
const option = document.createElement('option');
|
|
132
|
+
option.value = selected;
|
|
133
|
+
option.textContent = supported.has(selected) ? 'Aktuelle Tarifquelle · im gewählten Land nicht verfügbar' : 'Vorhandener Tarif · vom Installateur eingerichtet';
|
|
134
|
+
target.appendChild(option);
|
|
135
|
+
}
|
|
136
|
+
target.value = items.some(item => item.id === selected) || allowCurrent ? selected : '';
|
|
137
|
+
}
|
|
138
|
+
function providerChoices() {
|
|
139
|
+
if (!view)
|
|
140
|
+
return;
|
|
141
|
+
setOptions(provider, view.providers.filter(item => item.countries.includes(country.value)), provider.value || (view.configuredExternally ? installerSelection : text(view.config.providerId)), true);
|
|
142
|
+
setOptions(profile, view.profiles.filter(item => item.countries.includes(country.value)), profile.value || text(view.config.providerProfileId));
|
|
143
|
+
setOptions(source, view.providers.filter(item => ['entsoe', 'energyzero'].includes(item.id) && item.countries.includes(country.value)), source.value || text(view.config.sourceId));
|
|
144
|
+
}
|
|
145
|
+
function secretKey() {
|
|
146
|
+
if (provider.value === 'tibber')
|
|
147
|
+
return 'accessToken';
|
|
148
|
+
return provider.value === 'entsoe' || (provider.value === 'market-profile' && source.value === 'entsoe') ? 'securityToken' : '';
|
|
149
|
+
}
|
|
150
|
+
function mayKeepSecret(key) {
|
|
151
|
+
if (!view || view.configuredExternally)
|
|
152
|
+
return false;
|
|
153
|
+
const previousSource = view.config.providerId === 'market-profile' ? view.config.sourceId : view.config.providerId;
|
|
154
|
+
const nextSource = provider.value === 'market-profile' ? source.value : provider.value;
|
|
155
|
+
const present = key === 'accessToken' ? view.credentialsPresent.accessToken : view.credentialsPresent.securityToken;
|
|
156
|
+
return provider.value === view.config.providerId && previousSource === nextSource && present;
|
|
157
|
+
}
|
|
158
|
+
function visibility() {
|
|
159
|
+
const kind = provider.value;
|
|
160
|
+
const external = !!kind && !supported.has(kind);
|
|
161
|
+
const market = kind === 'market-profile';
|
|
162
|
+
element('customerTariffProfileField').hidden = !market;
|
|
163
|
+
element('customerTariffSourceField').hidden = !market;
|
|
164
|
+
element('customerTariffHomeField').hidden = kind !== 'tibber';
|
|
165
|
+
const hasFormula = market || kind === 'entsoe';
|
|
166
|
+
element('customerTariffFormula').hidden = !hasFormula;
|
|
167
|
+
for (const [, id] of formulaFields)
|
|
168
|
+
input(id).disabled = !hasFormula;
|
|
169
|
+
input('customerTariffIncludesVat').disabled = !hasFormula;
|
|
170
|
+
enabled.disabled = external || kind === 'manual-dp';
|
|
171
|
+
use.disabled = external || kind === 'manual-dp';
|
|
172
|
+
const key = secretKey();
|
|
173
|
+
element('customerTariffCredentialField').hidden = !key;
|
|
174
|
+
credential.disabled = !key;
|
|
175
|
+
element('customerTariffCredentialLabel').textContent = key === 'accessToken' ? 'Tibber Access Token' : 'ENTSO-E Security Token';
|
|
176
|
+
element('customerTariffCredentialHint').textContent = key && mayKeepSecret(key)
|
|
177
|
+
? 'Zugangsschlüssel gespeichert. Leer lassen, um ihn zu behalten; für einen Austausch einen neuen eingeben.'
|
|
178
|
+
: 'Für die neu gewählte Tarifquelle den passenden Zugangsschlüssel eingeben. Gespeicherte Schlüssel anderer Quellen werden nicht übernommen.';
|
|
179
|
+
element('customerTariffProviderHint').textContent = external ? 'Diese Anbindung wurde vom Installateur eingerichtet und bleibt erhalten. Für einen Anbieterwechsel eine unterstützte Tarifquelle auswählen.'
|
|
180
|
+
: market ? 'Anbieterprofile berechnen Preise aus einer Marktpreisquelle und deinen Vertragsbestandteilen. Sie sind keine direkte Anmeldung beim gewählten Stromanbieter.'
|
|
181
|
+
: kind === 'manual-dp' ? 'Die vorhandenen, vom Installateur zugeordneten Preis-Datenpunkte bleiben erhalten.'
|
|
182
|
+
: kind === 'entsoe' ? 'ENTSO-E liefert Börsenpreise. Ergänze die vereinbarten Preisbestandteile, um deinen Vertragspreis abzubilden.'
|
|
183
|
+
: kind === 'energyzero' ? 'EnergyZero liefert eine öffentliche Preiszeitreihe für die Niederlande. Prüfe die Übereinstimmung mit deinem Stromvertrag.'
|
|
184
|
+
: kind === 'tibber' ? 'Verbinde dein Tibber-Konto mit deinem persönlichen Token. Bei mehreren Haushalten die passende Home-ID eintragen.'
|
|
185
|
+
: 'Wähle die Preisquelle für deinen Stromtarif.';
|
|
186
|
+
}
|
|
187
|
+
function values() {
|
|
188
|
+
const formula = { priceIncludesVat: input('customerTariffIncludesVat').checked };
|
|
189
|
+
for (const [key, id] of formulaFields)
|
|
190
|
+
Reflect.set(formula, key, Number(input(id).value));
|
|
191
|
+
return { enabled: enabled.checked, providerId: provider.value, sourceId: source.value, providerProfileId: profile.value,
|
|
192
|
+
country: country.value, homeId: home.value.trim(), useForTariff: use.checked, formula };
|
|
193
|
+
}
|
|
194
|
+
function patch() {
|
|
195
|
+
const current = values();
|
|
196
|
+
const result = {};
|
|
197
|
+
for (const [key, value] of Object.entries(current)) {
|
|
198
|
+
if (['sourceId', 'providerProfileId'].includes(key) && provider.value !== 'market-profile')
|
|
199
|
+
continue;
|
|
200
|
+
if (key === 'homeId' && provider.value !== 'tibber')
|
|
201
|
+
continue;
|
|
202
|
+
if (key === 'formula' && !['entsoe', 'market-profile'].includes(provider.value))
|
|
203
|
+
continue;
|
|
204
|
+
if (key === 'formula') {
|
|
205
|
+
const delta = {};
|
|
206
|
+
const oldFormula = isRecord(baseline.formula) ? baseline.formula : {};
|
|
207
|
+
for (const [field, next] of Object.entries(isRecord(value) ? value : {}))
|
|
208
|
+
if (next !== ownValue(oldFormula, field))
|
|
209
|
+
Reflect.set(delta, field, next);
|
|
210
|
+
if (Object.keys(delta).length)
|
|
211
|
+
result.formula = delta;
|
|
212
|
+
}
|
|
213
|
+
else if (value !== ownValue(baseline, key))
|
|
214
|
+
Reflect.set(result, key, value);
|
|
215
|
+
}
|
|
216
|
+
const key = secretKey();
|
|
217
|
+
if (key && credential.value.trim())
|
|
218
|
+
result.credentials = key === 'accessToken'
|
|
219
|
+
? { accessToken: credential.value.trim() } : { securityToken: credential.value.trim() };
|
|
220
|
+
return result;
|
|
221
|
+
}
|
|
222
|
+
function controls() { fieldset.disabled = busy || !view; save.disabled = busy || !view || !dirty; reload.disabled = busy; }
|
|
223
|
+
function render(next) {
|
|
224
|
+
view = next;
|
|
225
|
+
const config = next.config;
|
|
226
|
+
const formula = isRecord(config.formula) ? config.formula : {};
|
|
227
|
+
country.value = config.country === 'NL' ? 'NL' : 'DE';
|
|
228
|
+
provider.value = '';
|
|
229
|
+
profile.value = '';
|
|
230
|
+
source.value = '';
|
|
231
|
+
providerChoices();
|
|
232
|
+
enabled.checked = config.enabled === true;
|
|
233
|
+
use.checked = config.useForTariff === true;
|
|
234
|
+
home.value = text(config.homeId);
|
|
235
|
+
for (const [key, id, fallback] of formulaFields) {
|
|
236
|
+
const value = ownValue(formula, key);
|
|
237
|
+
input(id).value = String(typeof value === 'number' && Number.isFinite(value) ? value : fallback);
|
|
238
|
+
}
|
|
239
|
+
input('customerTariffIncludesVat').checked = formula.priceIncludesVat === true;
|
|
240
|
+
credential.value = '';
|
|
241
|
+
visibility();
|
|
242
|
+
baseline = values();
|
|
243
|
+
dirty = false;
|
|
244
|
+
const lastUpdate = typeof next.status.lastUpdate === 'number' ? next.status.lastUpdate : 0;
|
|
245
|
+
const updated = lastUpdate > 0 && Number.isFinite(new Date(lastUpdate).getTime()) ? new Date(lastUpdate).toLocaleString('de-DE') : '';
|
|
246
|
+
const state = next.status.state;
|
|
247
|
+
element('customerTariffFetchStatus').textContent = state === 'ready' ? `Preisabruf erfolgreich${updated ? ` · zuletzt ${updated}` : ''}.`
|
|
248
|
+
: state === 'error' ? 'Preisabruf derzeit nicht bestätigt. Zugang und Tarifquelle prüfen.'
|
|
249
|
+
: state === 'pending' ? 'Preisabruf wird vorbereitet.' : state === 'disabled' || !enabled.checked ? 'Direkter Preisabruf ist ausgeschaltet.'
|
|
250
|
+
: 'Preisabruf noch nicht bestätigt. Gespeicherte Tarifanbindung und aktueller Abrufstatus sind getrennte Ergebnisse.';
|
|
251
|
+
}
|
|
252
|
+
async function synchronize(saving) {
|
|
253
|
+
if (busy || (saving && !view))
|
|
254
|
+
return;
|
|
255
|
+
let body;
|
|
256
|
+
if (saving && view) {
|
|
257
|
+
if (!form.reportValidity())
|
|
258
|
+
return;
|
|
259
|
+
const kind = provider.value;
|
|
260
|
+
if (!supported.has(kind) || !view.providers.some(item => item.id === kind && item.countries.includes(country.value))) {
|
|
261
|
+
show('Bitte eine unterstützte Tarifquelle für das gewählte Land auswählen.', true);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
if (kind === 'market-profile' && (!source.value || !profile.value)) {
|
|
265
|
+
show('Bitte Anbieterprofil und Marktpreisquelle auswählen.', true);
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
const key = secretKey();
|
|
269
|
+
if (enabled.checked && key && !credential.value.trim() && !mayKeepSecret(key)) {
|
|
270
|
+
show('Bitte den passenden Zugangsschlüssel für die gewählte Tarifquelle eintragen.', true);
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
const changes = patch();
|
|
274
|
+
if (!Object.keys(changes).length) {
|
|
275
|
+
dirty = false;
|
|
276
|
+
controls();
|
|
277
|
+
show('Keine Änderungen zu speichern.');
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
body = { expectedRevision: view.revision, config: changes };
|
|
281
|
+
}
|
|
282
|
+
busy = true;
|
|
283
|
+
controls();
|
|
284
|
+
show(saving ? 'Tarifanbindung wird gespeichert …' : 'Gespeicherte Tarifanbindung wird geladen …');
|
|
285
|
+
try {
|
|
286
|
+
render(await request(body));
|
|
287
|
+
show(saving ? 'Tarifanbindung gespeichert. Der Preisabruf wird separat geprüft; Anlagenfreigaben bleiben unverändert.' : 'Gespeicherte Tarifanbindung geladen.');
|
|
288
|
+
}
|
|
289
|
+
catch (error) {
|
|
290
|
+
show(error instanceof Error ? error.message : 'Tarifanbindung nicht verfügbar.', true);
|
|
291
|
+
}
|
|
292
|
+
finally {
|
|
293
|
+
busy = false;
|
|
294
|
+
controls();
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
form.addEventListener('input', () => { if (view && !busy) {
|
|
298
|
+
dirty = Object.keys(patch()).length > 0;
|
|
299
|
+
controls();
|
|
300
|
+
show('Ungespeicherte Tarifänderungen.');
|
|
301
|
+
} });
|
|
302
|
+
form.addEventListener('change', event => {
|
|
303
|
+
if (event.target === provider || event.target === source)
|
|
304
|
+
credential.value = '';
|
|
305
|
+
if (event.target === provider && provider.value === 'manual-dp') {
|
|
306
|
+
enabled.checked = false;
|
|
307
|
+
use.checked = false;
|
|
308
|
+
}
|
|
309
|
+
if (event.target === country) {
|
|
310
|
+
credential.value = '';
|
|
311
|
+
providerChoices();
|
|
312
|
+
}
|
|
313
|
+
visibility();
|
|
314
|
+
if (view && !busy) {
|
|
315
|
+
dirty = Object.keys(patch()).length > 0;
|
|
316
|
+
controls();
|
|
317
|
+
show('Ungespeicherte Tarifänderungen.');
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
form.addEventListener('submit', event => { event.preventDefault(); void synchronize(true); });
|
|
321
|
+
reload.addEventListener('click', () => { if (dirty && !window.confirm('Ungespeicherte Tarifänderungen verwerfen und gespeicherten Tarif laden?'))
|
|
322
|
+
return; void synchronize(false); });
|
|
323
|
+
panel.addEventListener('toggle', () => { if (panel.open && !view && !busy)
|
|
324
|
+
void synchronize(false); });
|
|
325
|
+
window.addEventListener('pagehide', () => { credential.value = ''; });
|
|
326
|
+
if (panel.open)
|
|
327
|
+
void synchronize(false);
|
|
328
|
+
}
|
|
329
|
+
if (document.readyState === 'loading')
|
|
330
|
+
document.addEventListener('DOMContentLoaded', initialize, { once: true });
|
|
331
|
+
else
|
|
332
|
+
initialize();
|
|
333
|
+
})();
|
package/ui/www/ems-apps.html
CHANGED
|
@@ -1117,6 +1117,7 @@
|
|
|
1117
1117
|
<section class="nw-config-section">
|
|
1118
1118
|
<div class="nw-config-section__head">
|
|
1119
1119
|
<h2 class="nw-config-section__title">Speicherfarm</h2>
|
|
1120
|
+
<a class="nw-btn" href="storagefarm.html" id="storageFarmOverviewLink">Farm-Gesamtübersicht öffnen</a>
|
|
1120
1121
|
</div>
|
|
1121
1122
|
<div class="nw-config-section__subtitle" style="margin:0 0 10px 0;opacity:.85;">
|
|
1122
1123
|
Mehrere Speichersysteme als gemeinsamer Pool oder in Gruppen betreiben. SoC wird aggregiert, Sollleistung wird verteilt.
|
|
@@ -2345,6 +2346,7 @@
|
|
|
2345
2346
|
<script src="/static/operating-strategies-rule-builder.js"></script>
|
|
2346
2347
|
<script src="/static/operating-strategies-appcenter.js"></script>
|
|
2347
2348
|
<script src="/static/evcs-electrical-limits.js"></script>
|
|
2349
|
+
<script src="/static/power-measurements.js"></script>
|
|
2348
2350
|
<script src="/static/ems-apps.js"></script>
|
|
2349
2351
|
<script src="/static/charging-diagnostics-appcenter.js"></script>
|
|
2350
2352
|
|
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:8c14de191f83d20f1c35f1b706e2d5787b015984587dc42ad707d62f33de338e
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -1026,6 +1026,7 @@
|
|
|
1026
1026
|
];
|
|
1027
1027
|
|
|
1028
1028
|
let currentConfig = null;
|
|
1029
|
+
let configurationRevision = null;
|
|
1029
1030
|
// CAS stammt ausschließlich aus einem vollständig geladenen Gesamtstand.
|
|
1030
1031
|
// Eine Änderungsmeldung erhöht nur die beobachtete Version, niemals den Save-Token.
|
|
1031
1032
|
let dynamicGridLoadedVersion = null;
|
|
@@ -1403,7 +1404,7 @@
|
|
|
1403
1404
|
// Darum werden leere editierbare Felder angelegt, damit der Installateur
|
|
1404
1405
|
// die Speicher direkt wieder anbinden kann, statt bei "Noch keine Speicher"
|
|
1405
1406
|
// festzuhängen.
|
|
1406
|
-
socId: '', signedPowerId: '', chargePowerId: '', dischargePowerId: '', pvPowerId: '',
|
|
1407
|
+
socId: '', signedPowerId: '', batteryFlowPowerId: '', chargePowerId: '', dischargePowerId: '', pvPowerId: '',
|
|
1407
1408
|
vendorProfile: 'generic', feneconControlMode: 'auto',
|
|
1408
1409
|
feneconGridSetpointId: '', feneconEssActualPowerId: '', feneconNvpPowerId: '', feneconConsumptionTotalId: '', feneconMinPowerId: '', feneconMaxPowerId: '',
|
|
1409
1410
|
feneconActualSetpointId: '', feneconPvDcId: '', feneconPvAcId: '', feneconPvTotalId: '',
|
|
@@ -1483,6 +1484,7 @@
|
|
|
1483
1484
|
feneconControlMode,
|
|
1484
1485
|
socId: textFrom('socId', 'socObjectId', 'socDp', 'storageSocId', 'storageSoc'),
|
|
1485
1486
|
signedPowerId: textFrom('signedPowerId', 'batteryPowerObjectId', 'signedPowerDp', 'powerObjectId', 'powerId', 'batteryPower'),
|
|
1487
|
+
batteryFlowPowerId: textFrom('batteryFlowPowerId'),
|
|
1486
1488
|
chargePowerId: textFrom('chargePowerId', 'batteryChargePowerObjectId', 'chargePowerDp', 'chargeDp', 'storageChargePower'),
|
|
1487
1489
|
dischargePowerId: textFrom('dischargePowerId', 'batteryDischargePowerObjectId', 'dischargePowerDp', 'dischargeDp', 'storageDischargePower'),
|
|
1488
1490
|
pvPowerId: textFrom('pvPowerId', 'pvPowerObjectId', 'pvPowerDp', 'storagePvPowerId'),
|
|
@@ -1750,6 +1752,12 @@ function _collectFlowPowerDpIsWFromUI() {
|
|
|
1750
1752
|
if (data && data.startup && typeof data.message === 'string' && /^EOS_[A-Z0-9_]{1,91}$/.test(String(err))) {
|
|
1751
1753
|
throw new Error(data.message.slice(0, 512) + ' (' + String(err) + ')');
|
|
1752
1754
|
}
|
|
1755
|
+
if (err === 'EOS_INSTALLER_CONFIG_CHANGED') {
|
|
1756
|
+
throw new Error('Die EMS-Zuordnung wurde inzwischen geändert. Deine Eingaben bleiben erhalten. Bitte den aktuellen Stand über „Neu laden“ laden und die Änderungen vor erneutem Speichern vergleichen.');
|
|
1757
|
+
}
|
|
1758
|
+
if (['EOS_EMS_OBJECT_PROVISION_FAILED', 'EOS_EMS_APPLY_FAILED'].includes(err) && typeof data.message === 'string') {
|
|
1759
|
+
throw new Error(data.message.slice(0, 500));
|
|
1760
|
+
}
|
|
1753
1761
|
throw new Error(err === 'DYNAMIC_GRID_VERSION_CONFLICT' ? dynamicGridReloadNotice : err);
|
|
1754
1762
|
}
|
|
1755
1763
|
|
|
@@ -1846,6 +1854,13 @@ function _collectFlowPowerDpIsWFromUI() {
|
|
|
1846
1854
|
continue;
|
|
1847
1855
|
}
|
|
1848
1856
|
|
|
1857
|
+
const expectPower = inp.dataset.dpPower === '1' || /powerId|setPowerWId|budgetPowerId|gridPowerId|pvSurplusPowerId|PowerObjectId|PowerWriteId|PowerReadId/i.test(inp.id);
|
|
1858
|
+
const powerIssue = expectPower ? window.NexoWattPowerMeasurements?.validatePowerReference(info) : null;
|
|
1859
|
+
if (powerIssue) {
|
|
1860
|
+
_setBadge(inp.id, powerIssue.kind, powerIssue.text);
|
|
1861
|
+
continue;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1849
1864
|
if (info.statePresent !== true) {
|
|
1850
1865
|
_setBadge(inp.id, 'warn', 'keine Daten');
|
|
1851
1866
|
continue;
|
|
@@ -3610,6 +3625,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
3610
3625
|
input.placeholder = field.placeholder || '';
|
|
3611
3626
|
input.value = valueOrEmpty(getter(field.key));
|
|
3612
3627
|
input.id = inputId;
|
|
3628
|
+
if (field.power) input.dataset.dpPower = '1';
|
|
3613
3629
|
input.autocomplete = 'off';
|
|
3614
3630
|
input.spellcheck = false;
|
|
3615
3631
|
input.title = String(input.value || '').trim();
|
|
@@ -4034,6 +4050,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
4034
4050
|
dpInput.placeholder = 'Datenpunkt (W/kW) (optional)';
|
|
4035
4051
|
dpInput.value = valueOrEmpty(dps[dpKey]);
|
|
4036
4052
|
dpInput.dataset.dpInput = '1';
|
|
4053
|
+
dpInput.dataset.dpPower = '1';
|
|
4037
4054
|
// Ereignis-Kommentar: Bindet das UI-Ereignis 'change' an dpInput. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
|
|
4038
4055
|
dpInput.addEventListener('change', () => {
|
|
4039
4056
|
currentConfig.datapoints = currentConfig.datapoints || {};
|
|
@@ -9964,8 +9981,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
9964
9981
|
grid.appendChild(mkDpField('FENECON gesamte PV (W)', `sf_${idx}_feneconPvTotalId`, s.feneconPvTotalId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].feneconPvTotalId = v; }, 'ProductionActivePower · typ. 327'));
|
|
9965
9982
|
}
|
|
9966
9983
|
|
|
9967
|
-
grid.appendChild(mkDpField('PV-/WR-Leistung (W)', `sf_${idx}_pvPowerId`, s.pvPowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].pvPowerId = v; }, '
|
|
9968
|
-
grid.appendChild(mkGridHelp('PV-/WR-Leistung passend zur Kopplung zuordnen. Derselbe Wechselrichter-DP wird in der Farm nur einmal gezählt. Bei vorhandener Anlagen-PV werden AC-/unbekannte Farmwerte nicht doppelt addiert; DC-/Hybrid-PV wird nur ergänzt, wenn sie noch nicht enthalten ist.'));
|
|
9984
|
+
grid.appendChild(mkDpField('PV-/WR-Leistung – Messwert-Datenpunkt (W)', `sf_${idx}_pvPowerId`, s.pvPowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].pvPowerId = v; }, 'Datenpunkt auswählen · keine feste Wattzahl eingeben'));
|
|
9985
|
+
grid.appendChild(mkGridHelp('Hier den Datenpunkt der gemessenen PV-/WR-Leistung passend zur Kopplung zuordnen, nicht die Nennleistung als Zahl. Derselbe Wechselrichter-DP wird in der Farm nur einmal gezählt. Bei vorhandener Anlagen-PV werden AC-/unbekannte Farmwerte nicht doppelt addiert; DC-/Hybrid-PV wird nur ergänzt, wenn sie noch nicht enthalten ist.'));
|
|
9969
9986
|
|
|
9970
9987
|
// Istwerte (Messwerte)
|
|
9971
9988
|
grid.appendChild(mkGridDivider('Istwerte (Messwerte)'));
|
|
@@ -9976,6 +9993,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
9976
9993
|
|
|
9977
9994
|
grid.appendChild(mkDpField('SoC (%)', `sf_${idx}_socId`, s.socId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].socId = v; }, 'SoC‑Datenpunkt'));
|
|
9978
9995
|
grid.appendChild(mkDpField('Istleistung Signed (W)', `sf_${idx}_signedPowerId`, s.signedPowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].signedPowerId = v; }, '(-) laden / (+) entladen'));
|
|
9996
|
+
grid.appendChild(mkDpField('Batterieanteil für Energiefluss (W)', `sf_${idx}_batteryFlowPowerId`, s.batteryFlowPowerId, (v) => { const row = _ensureStorageFarmCfg().storages.at(i); if (row) row.batteryFlowPowerId = v; }, 'Optional: echter Batterieanteil ohne DC-PV, z. B. FENECON 415; Regler-Istleistung bleibt getrennt.'));
|
|
9979
9997
|
grid.appendChild(mkDpField('Ist Ladeleistung (W)', `sf_${idx}_chargePowerId`, s.chargePowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].chargePowerId = v; }, 'Messwert (optional)'));
|
|
9980
9998
|
grid.appendChild(mkDpField('Ist Entladeleistung (W)', `sf_${idx}_dischargePowerId`, s.dischargePowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].dischargePowerId = v; }, 'Messwert (optional)'));
|
|
9981
9999
|
|
|
@@ -10050,6 +10068,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
10050
10068
|
feneconApiTimeoutSec: 60,
|
|
10051
10069
|
socId: '',
|
|
10052
10070
|
signedPowerId: '',
|
|
10071
|
+
batteryFlowPowerId: '',
|
|
10053
10072
|
chargePowerId: '',
|
|
10054
10073
|
dischargePowerId: '',
|
|
10055
10074
|
pvPowerId: '',
|
|
@@ -13334,6 +13353,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
13334
13353
|
async function loadConfig() {
|
|
13335
13354
|
setStatus('Lade Konfiguration…');
|
|
13336
13355
|
const data = await fetchJson('/api/installer/config?t=' + Date.now(), { cache: 'no-store' });
|
|
13356
|
+
configurationRevision = typeof data.configurationRevision === 'string' ? data.configurationRevision : null;
|
|
13337
13357
|
const cfg = (data && data.config && typeof data.config === 'object') ? data.config : {};
|
|
13338
13358
|
|
|
13339
13359
|
// Runtime-Fallback: Die Lizenzseite nutzt /api/license/info und kann eine Lizenz sofort
|
|
@@ -14334,8 +14354,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
14334
14354
|
if (storageCount > _maxStorageCount()) {
|
|
14335
14355
|
throw new Error(`Diese Lizenz erlaubt maximal ${_maxStorageCount()} Speichersysteme; konfiguriert sind ${storageCount}. Bitte die Speicherzuordnung anpassen.`);
|
|
14336
14356
|
}
|
|
14337
|
-
const payload = { patch, restartEms: true, expectedDynamicGridConfigVersion };
|
|
14357
|
+
const payload = { patch, restartEms: true, expectedDynamicGridConfigVersion, expectedConfigurationRevision: configurationRevision };
|
|
14338
14358
|
const data = await fetchJson('/api/installer/config', { method: 'POST', body: JSON.stringify(payload) });
|
|
14359
|
+
configurationRevision = data.configurationRevision;
|
|
14339
14360
|
applyConfigToUI(data.config || {});
|
|
14340
14361
|
clearDirty();
|
|
14341
14362
|
setStatus('Gespeichert. EMS wurde neu gestartet.', 'ok');
|
|
@@ -14390,7 +14411,8 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
14390
14411
|
});
|
|
14391
14412
|
// Der M0-Verweis der eigenen Netzanschluss-App darf direkt die bestehende Zuordnung öffnen.
|
|
14392
14413
|
const requestedTab = new URLSearchParams(window.location.search || '').get('tab');
|
|
14393
|
-
|
|
14414
|
+
const linkedTabs = new Set(['apps', 'mapping', 'flow', 'evcs', 'storageconfig', 'storagefarm']);
|
|
14415
|
+
_showTab(linkedTabs.has(requestedTab) && btns.some(btn => btn.getAttribute('data-tab') === requestedTab) ? requestedTab : 'apps');
|
|
14394
14416
|
}
|
|
14395
14417
|
|
|
14396
14418
|
// Unter-Reiter im Energiefluss-Tab (Basis/Verbraucher/Erzeuger/Optionen)
|
|
@@ -17046,7 +17068,7 @@ if (els.ocppAutoDetect) {
|
|
|
17046
17068
|
const expectedDynamicGridConfigVersion = requireDynamicGridSaveVersion();
|
|
17047
17069
|
const endMutation = beginAppCenterMutation();
|
|
17048
17070
|
try {
|
|
17049
|
-
const payload = { backup: obj, restartEms: true, mode: 'replace', expectedDynamicGridConfigVersion };
|
|
17071
|
+
const payload = { backup: obj, restartEms: true, mode: 'replace', expectedDynamicGridConfigVersion, expectedConfigurationRevision: configurationRevision };
|
|
17050
17072
|
await fetchJson('/api/installer/backup/import', { method: 'POST', body: JSON.stringify(payload) });
|
|
17051
17073
|
setBackupStatus('Import erfolgreich. Konfiguration wurde übernommen (EMS neu gestartet).', 'ok');
|
|
17052
17074
|
await loadConfig();
|
package/ui/www/index.html
CHANGED
|
@@ -997,6 +997,8 @@
|
|
|
997
997
|
|
|
998
998
|
</main>
|
|
999
999
|
<script src="/static/dashboard-lp-status.js"></script>
|
|
1000
|
+
<script src="/static/power-measurements.js"></script>
|
|
1001
|
+
<script src="/static/tariff-display.js"></script>
|
|
1000
1002
|
<script src="/static/app.js"></script>
|
|
1001
1003
|
|
|
1002
1004
|
<!-- Kundeneinstellungen liegen ausschließlich in settings.html. -->
|