iobroker.eos-admin 9.0.21 → 9.0.25
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 +17 -11
- package/README.md +37 -9
- package/START_HIER_9.0.21.md +53 -0
- package/START_HIER_9.0.22.md +48 -0
- package/START_HIER_9.0.23.md +47 -0
- package/START_HIER_9.0.24.md +70 -0
- package/START_HIER_9.0.25.md +60 -0
- package/adminWww/.vite/manifest.json +55 -55
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13760 -13760
- package/adminWww/assets/{AdapterUpdateDialog-Dxl_b7Op.js → AdapterUpdateDialog-CLDpmxDx.js} +1 -1
- package/adminWww/assets/{Adapters-CVKKhXmI.js → Adapters-BCGeX2v7.js} +1 -1
- package/adminWww/assets/{ConfigManager-Bf6nTAkL.js → ConfigManager-B_sJf5_w.js} +1 -1
- package/adminWww/assets/{Enums-CJHVJY7t.js → Enums-D3n1pOtc.js} +1 -1
- package/adminWww/assets/{Fields-DWHbZKvm.js → Fields-Bdx5gPoT.js} +1 -1
- package/adminWww/assets/{Files-a6owMTXA.js → Files-BPK84lYU.js} +1 -1
- package/adminWww/assets/{Hosts-LtEMeXpV.js → Hosts--Jr6oLf2.js} +1 -1
- package/adminWww/assets/{Instances-DhChziA1.js → Instances-DxTOzFus.js} +1 -1
- package/adminWww/assets/{Intro-Cyq9gVDC.js → Intro-CYBGeZtu.js} +1 -1
- package/adminWww/assets/{Logs-wcramXsg.js → Logs-CVNC-4S8.js} +1 -1
- package/adminWww/assets/{Objects-DINVHd_e.js → Objects-Cqm9Rvym.js} +1 -1
- package/adminWww/assets/{Overview-DK4R41zR.js → Overview-JgjcHwlz.js} +1 -1
- package/adminWww/assets/{State-DcEACXzL.js → State-BV14HSwZ.js} +1 -1
- package/adminWww/assets/{UsedResources-C1LcM0Rb.js → UsedResources-Dz48WzEF.js} +1 -1
- package/adminWww/assets/{Users-DvDdSyDY.js → Users-D19YlRCD.js} +1 -1
- package/adminWww/assets/{bootstrap-Dbj_GbnP.js → bootstrap-a7POLSDr.js} +4 -4
- package/adminWww/assets/{hostInit-BNFIx0-f.js → hostInit-keGjwsZR.js} +1 -1
- package/adminWww/assets/{icons-material-DVbdXNgr.js → icons-material-Omb_HCfb.js} +1 -1
- package/adminWww/assets/{index-CoKP1NSA.js → index-DqPrQK7T.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-CMvku1F1.js → installSVGRenderer-iWfLFoQU.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-ac330bce.js → mf-entry-bootstrap-0-2a856bb6.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.25.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosHistoryBackupScope.js +73 -0
- package/build/lib/eosHistoryBackupScope.js.map +1 -0
- package/build/lib/eosKiosk.js +348 -0
- package/build/lib/eosKiosk.js.map +1 -0
- package/build/lib/eosLegacyMigration.js +24 -3
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLicenseService.js +1 -1
- package/build/lib/eosLicenseService.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +2 -2
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +289 -25
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +71 -8
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +317 -0
- package/build/lib/eosModuleProcess.js.map +1 -0
- package/build/lib/eosModuleProcessProtocol.js +213 -0
- package/build/lib/eosModuleProcessProtocol.js.map +1 -0
- package/build/lib/eosModuleProcessWorker.js +279 -0
- package/build/lib/eosModuleProcessWorker.js.map +1 -0
- package/build/lib/eosPostgresProvisioning.js +189 -0
- package/build/lib/eosPostgresProvisioning.js.map +1 -0
- package/build/lib/eosRuntimeControl.js +224 -0
- package/build/lib/eosRuntimeControl.js.map +1 -0
- package/build/lib/eosRuntimeHealth.js +170 -0
- package/build/lib/eosRuntimeHealth.js.map +1 -0
- package/build/lib/eosUiProcess.js +728 -0
- package/build/lib/eosUiProcess.js.map +1 -0
- package/build/lib/eosUiProcessRpc.js +292 -0
- package/build/lib/eosUiProcessRpc.js.map +1 -0
- package/build/lib/eosUiProcessWorker.js +443 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -0
- package/build/lib/eosUiSecretCodec.js +64 -0
- package/build/lib/eosUiSecretCodec.js.map +1 -0
- package/build/lib/eosUnifiedBoundary.js +28 -4
- package/build/lib/eosUnifiedBoundary.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +32 -1
- package/build/lib/eosUpdateSnapshot.js.map +1 -1
- package/build/lib/web.js +175 -18
- package/build/lib/web.js.map +1 -1
- package/build/main.js +6 -2
- package/build/main.js.map +1 -1
- package/docs/reports/unified-9.0.21/CRA_NACHWEISSTAND.md +159 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_BACKEND_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_UI_REVIEW.md +44 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_WORKER_REVIEW.md +147 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_WORKER_ZWEITPRUEFUNG.md +108 -0
- package/docs/reports/unified-9.0.21/DEVICE_STABILITY_REVIEW.md +50 -0
- package/docs/reports/unified-9.0.21/EMS_STABILITAET.md +41 -0
- package/docs/reports/unified-9.0.21/HISTORY_TARIFF_STABILITY_REVIEW.md +48 -0
- package/docs/reports/unified-9.0.21/MQTT_ZWEITPRUEFUNG_EMS.md +47 -0
- package/docs/reports/unified-9.0.21/PERSISTENZ_STABILITAET.md +76 -0
- package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +64 -0
- package/docs/reports/unified-9.0.21/SECURITY_STABILITY_REVIEW.md +118 -0
- package/docs/reports/unified-9.0.21/UI_SECURITY_GATE_REVIEW.md +62 -0
- package/docs/reports/unified-9.0.21/UPDATE_HTTP_SNAPSHOT_PRUEFUNG.md +46 -0
- package/docs/reports/unified-9.0.21/raw/INDEX.json +1307 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/cra/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-glue/root-glue-focused-node24.tap +34 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/real920-archive-inspection.json +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node22.log +110 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node24.log +24 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-verification.json +54 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/independent-worker-probes.cjs +109 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node22.tap +44 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node24.tap +13 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/receipt.json +89 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/receipt.json +42 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-catch-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node22.log +1968 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node24.log +337 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node22.log +1895 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node24.log +317 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node24.log +327 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node22.log +15 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node22.log +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node24.log +14 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node22.log +74 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node24.log +46 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-drain-test-update.json +206 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-runtime-review.json +150 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-final.json +275 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands.json +134 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node22.log +3 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node24.log +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-command-replay-repro.cjs +38 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-shutdown-repro.cjs +31 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node22.log +322 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node24.log +55 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-evidence.py +23 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-final-evidence.py +20 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-920.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-921.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/source-hashes.json +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/ems/baseline-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/changed-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/engine.patch +38 -0
- package/docs/reports/unified-9.0.21/raw/ems/eslint-delta.json +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/evidence.json +171 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-baseline-node24.log +124 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node22.log +56 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node24.log +15 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-owned-methods.patch +133 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node22.log +460 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node24.log +82 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node22.log +153 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node24.log +39 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-queue-inheritance-before.log +28 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-baseline-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-initial-timing.log +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node22.log +44 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.cjs +23 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.log +119 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node24.log +121 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node22.log +68 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node24.log +17 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-code-delta-inventory.json +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-farm-fingerprint-moves.json +74 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-policy-tests.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node22.log +5 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node24.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-initial.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-main-full-delta.patch +135 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-changes.json +93 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-findings-before.json +3185 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node22.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node24.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-inventory-before.json +28991 -0
- package/docs/reports/unified-9.0.21/raw/ems/update-ui-reviewed-findings.cjs +59 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-influx-sequence-node24.log +12 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-outage-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node22.log +38 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node24.log +36 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-baseline-comparison.json +83 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-scope.cjs +29 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node22.log +438 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node24.log +75 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node22.json +37 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node24.json +66 -0
- package/docs/reports/unified-9.0.21/raw/history/run-checks.py +18 -0
- package/docs/reports/unified-9.0.21/raw/history/source-evidence.json +83 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.log +13274 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.log +2223 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-http-draft-revision-node24.log +50 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-late-commit-overwrite-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-save-lifecycle-node24.log +59 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-backend-types.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-editor-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-eebus-editor-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-final-format-review.json +24 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-http-before.log +177 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-snapshot-before.log +80 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.log +1019 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.log +174 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-eslint-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.log +137 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-typecheck-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-after.log +3 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-before-observation.json +25 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-repro.cjs +7 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.pre-final-format.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/obsolete-assets-920-added.json +94 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.log +49 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/backend-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node22.tap +495 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node24.tap +88 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node22.tap +179 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node24.tap +36 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/results.json +118 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node22.tap +63 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node24.tap +47 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node22.tap +148 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node24.tap +30 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/baseline-ui.log +280 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/browser-preview.test.cjs +170 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/draft-regression.log +214 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/eos-updates-before.ts +171 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/results.json +90 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/source-evidence.json +30 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node22.log +98 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node24.log +22 -0
- package/docs/reports/unified-9.0.22/BACKUP_POSTGRES_FOLLOWUP.md +44 -0
- package/docs/reports/unified-9.0.22/ENERGIEFLUSS_BROWSERPRUEFUNG.md +40 -0
- package/docs/reports/unified-9.0.22/ENERGY_FLOW_BACKEND.md +44 -0
- package/docs/reports/unified-9.0.22/FLOW_TARIFF_INDEPENDENT_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.22/OCPP_STOP_WRITER_REVIEW.md +27 -0
- package/docs/reports/unified-9.0.22/POSTGRESQL_SYSTEM_SETUP.md +34 -0
- package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +85 -0
- package/docs/reports/unified-9.0.22/flow/PRUEFVERMERK.md +42 -0
- package/docs/reports/unified-9.0.22/flow/frontend-cadence-tests.log +37 -0
- package/docs/reports/unified-9.0.22/flow/frontend-source-hashes.json +13 -0
- package/docs/reports/unified-9.0.22/flow/frontend-tests.log +31 -0
- package/docs/reports/unified-9.0.22/postgres-history-review.md +43 -0
- package/docs/reports/unified-9.0.22/postgres-real-review.tap +21 -0
- package/docs/reports/unified-9.0.22/postgres-review-lint.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-unit-api.tap +25 -0
- package/docs/reports/unified-9.0.22/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/eslint-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-after.tap +13 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-before.tap +54 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-test-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/influx-real-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/scope-hashes.json +51 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-before.tap +96 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-flow.tap +12 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/tests-node24.tap +116 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup-scope.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-postgres-setup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/current/admin-build.log +152 -0
- package/docs/reports/unified-9.0.22/raw/current/availability-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/backend-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-repairs.log +60 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-unified.log +1675 -0
- package/docs/reports/unified-9.0.22/raw/current/combined-fixes.log +65 -0
- package/docs/reports/unified-9.0.22/raw/current/control-final.log +25 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.json +244 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.json +63 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/lint-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/lint.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/markdown-build.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/modules-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/pre-ocpp-full.log +2337 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.json +22 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build-final.log +8 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build.log +32 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/safety-envelope-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom-lock-graph.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom.log +6120 -0
- package/docs/reports/unified-9.0.22/raw/current/station-permission-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/storage-feedforward-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck.log +5 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/eslint.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-tests.tap +124 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-tests.tap +26 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/typecheck.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node22.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/environment.json +7 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node22.tap +164 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node24.tap +33 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-runtime.json +11 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.json +49 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/build.log +18 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/environment.json +38 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node22.tap +144 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node24.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/node22-tests-final.log +14086 -0
- package/docs/reports/unified-9.0.22/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/node24-tests-final.log +2356 -0
- package/docs/reports/unified-9.0.22/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node22.tap +72 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node24.tap +70 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/status-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/MODULE_PROCESS_IMPLEMENTATION.md +43 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_ERGEBNIS.json +24 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_PRUEFBERICHT.md +50 -0
- package/docs/reports/unified-9.0.23/OCPP_AUTOMATISCHE_ZUORDNUNG.md +49 -0
- package/docs/reports/unified-9.0.23/OCPP_CM_INTEGRATION.md +31 -0
- package/docs/reports/unified-9.0.23/PROZESSDIAGNOSE.md +35 -0
- package/docs/reports/unified-9.0.23/PRUEFBERICHT.md +75 -0
- package/docs/reports/unified-9.0.23/UI_EMS_PROZESSGRENZE.md +36 -0
- package/docs/reports/unified-9.0.23/UI_PROCESS_INDEPENDENT_FOLLOWUP.md +33 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node22.tap +86 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node24.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.md +39 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-final.tap +27 -0
- package/docs/reports/unified-9.0.23/module-process-static.json +57 -0
- package/docs/reports/unified-9.0.23/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.23/raw/build-backend-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/build-frontend.log +152 -0
- package/docs/reports/unified-9.0.23/raw/build-installer.log +26 -0
- package/docs/reports/unified-9.0.23/raw/build-ui-final.log +7 -0
- package/docs/reports/unified-9.0.23/raw/current/evcs-stop-writer-ocpp043.txt +20 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-tests.txt +28 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-tests.txt +27 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-types.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/eos-production-audit.json +22 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node22.log +75 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node24.log +22 -0
- package/docs/reports/unified-9.0.23/raw/lint-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/node22-tests-final.log +14612 -0
- package/docs/reports/unified-9.0.23/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/node24-tests-final.log +2443 -0
- package/docs/reports/unified-9.0.23/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-auto-discovery.log +21 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-browser.json +55 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-lifecycle-regression.log +48 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-production-audit.json +69 -0
- package/docs/reports/unified-9.0.23/raw/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/discovery-review.tap +21 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node22.tap +118 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node24.tap +112 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/root-typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-build-node24.tap +196 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-node22.tap +200 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node22.tap +92 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node24.tap +90 -0
- package/docs/reports/unified-9.0.23/ui-process-contract-review.md +30 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node22.tap +50 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node24.tap +14 -0
- package/docs/reports/unified-9.0.23/ui-process-followup-hashes.json +13 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node22.tap +30 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node24.tap +11 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node22.tap +48 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node24.tap +46 -0
- package/docs/reports/unified-9.0.24/BACKUP_INTEROP_PRUEFBERICHT.md +48 -0
- package/docs/reports/unified-9.0.24/KIOSK_FRONTEND_BROWSERPRUEFUNG.md +49 -0
- package/docs/reports/unified-9.0.24/KIOSK_UNABHAENGIGER_REVIEW.md +21 -0
- package/docs/reports/unified-9.0.24/OCPP_HOST_MIGRATION.md +41 -0
- package/docs/reports/unified-9.0.24/OCPP_NAMESPACE_REGELPFAD.md +55 -0
- package/docs/reports/unified-9.0.24/OCPP_UNABHAENGIGER_REVIEW.md +37 -0
- package/docs/reports/unified-9.0.24/OCPP_VERWALTUNG.md +33 -0
- package/docs/reports/unified-9.0.24/PRUEFBERICHT.md +54 -0
- package/docs/reports/unified-9.0.24/PUBLISH_OVERLAY_9_0_21.md +23 -0
- package/docs/reports/unified-9.0.24/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ems-independence-node24.tap +9 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node22.tap +175 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node24.tap +35 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node22.tap +132 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node24.tap +27 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-review-node24.tap +13 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-update-snapshot-node24.tap +22 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-source.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-tests.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ocpp-backup-node24.tap +10 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/own-source-hashes.json +12 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/update-snapshot-node24.tap +20 -0
- package/docs/reports/unified-9.0.24/raw/build.log +200 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.stderr.txt +3 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.stderr.txt +2 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node22.txt +253 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node24.txt +52 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-lint.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-lease-registration-before.txt +28 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node22.txt +302 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node24.txt +55 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-native-generic-before.txt +25 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/eos-production-audit.json +77 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node22.log +16 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node24.log +14 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node22.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node24.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node22.log +215 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node24.log +42 -0
- package/docs/reports/unified-9.0.24/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.24/raw/node22-tests-final.log +15517 -0
- package/docs/reports/unified-9.0.24/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/node24-tests-final.log +2595 -0
- package/docs/reports/unified-9.0.24/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node22.tap +105 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node24.tap +24 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node22.tap +818 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node24.tap +140 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-hosted-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-legacy-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-namespace-control.log +49 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node22.tap +278 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node24.tap +52 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance-922-923.json +32 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance.json +19 -0
- package/docs/reports/unified-9.0.24/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.25/MIGRATION_INDEPENDENT_REVIEW.md +74 -0
- package/docs/reports/unified-9.0.25/OCPP_STARTSPERRE_9.0.24.md +60 -0
- package/docs/reports/unified-9.0.25/PRUEFBERICHT.md +78 -0
- package/docs/reports/unified-9.0.25/RUNTIME_CONTROLS_BROWSERPRUEFUNG.md +81 -0
- package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_BACKEND.md +58 -0
- package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_INDEPENDENT_REVIEW.md +66 -0
- package/docs/reports/unified-9.0.25/RUNTIME_LOGIN_RECOVERY.md +32 -0
- package/docs/reports/unified-9.0.25/TARIFF_UPDATE_PERSISTENCE.md +50 -0
- package/docs/reports/unified-9.0.25/UI_CONFIG_COMMIT_ACK.md +51 -0
- package/docs/reports/unified-9.0.25/raw/BUILD_CHECKS.json +49 -0
- package/docs/reports/unified-9.0.25/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.25/raw/SBOM_GENERATION.json +42 -0
- package/docs/reports/unified-9.0.25/raw/build-backend.log +5 -0
- package/docs/reports/unified-9.0.25/raw/build-frontend.log +152 -0
- package/docs/reports/unified-9.0.25/raw/build-installer.log +26 -0
- package/docs/reports/unified-9.0.25/raw/build-modules.log +5 -0
- package/docs/reports/unified-9.0.25/raw/build-ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.25/raw/eos-production-audit.json +77 -0
- package/docs/reports/unified-9.0.25/raw/eos-production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/frontend-sbom.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/installer-sbom.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.25/raw/node22-tests-final.log +15879 -0
- package/docs/reports/unified-9.0.25/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.25/raw/node24-tests-final.log +2653 -0
- package/docs/reports/unified-9.0.25/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node22-final.tap +236 -0
- package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node24-final.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/runtime-control-backend/source-sha256.json +19 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node22.json +70 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node24.json +70 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node22.json +49 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node24.json +49 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node22.log +15 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node24.log +15 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node22.json +32 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node24.json +32 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node22.log +28 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node24.log +10 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/route-regression-node24.log +28 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/source-sha256.json +6 -0
- package/docs/reports/unified-9.0.25/raw/runtime-processes/README.md +41 -0
- package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node22.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node24.tap +13 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node22.tap +232 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node24.tap +43 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node22.tap +68 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node24.tap +17 -0
- package/docs/reports/unified-9.0.25/raw/sbom-lock.log +1 -0
- package/docs/reports/unified-9.0.25/raw/sbom-lock.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node22.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node24.tap +40 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node22.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node24.tap +13 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/commit-ack-sha256.txt +4 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/config-ack-result.json +19 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/generate-921-fixture.cjs +36 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/node22.tap +68 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/node24.tap +64 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/reproduce-config-ack.cjs +55 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/reviewed-sha256.txt +4 -0
- package/docs/reports/unified-9.0.25/raw/typecheck.log +5 -0
- package/docs/unified/EMS_BEDIEN_DATENPUNKTE_9_0_22.md +51 -0
- package/docs/unified/HISTORY_UI_9_0_22.md +75 -0
- package/docs/unified/POSTGRESQL_9_0_22.md +89 -0
- package/io-package.json +20 -22
- package/modules/backup/README.md +10 -0
- package/modules/backup/RECOVERY-9.0.22.md +59 -0
- package/modules/backup/admin/index.html +2 -1
- package/modules/backup/admin/index.js +17 -1
- package/modules/backup/build/config.js +2 -0
- package/modules/backup/build/coverage.js +64 -0
- package/modules/backup/build/creators.js +22 -17
- package/modules/backup/build/databaseTargets.js +42 -0
- package/modules/backup/build/index.js +47 -4
- package/modules/backup/build/influxIntegrity.js +159 -0
- package/modules/backup/build/postgresHistory.js +91 -0
- package/modules/backup/build/preflight.js +3 -8
- package/modules/backup/build/publicTrust.js +46 -0
- package/modules/backup/build/restore-cli.js +72 -1
- package/modules/backup/build/storageRetention.js +26 -0
- package/modules/backup/build/worker.js +18 -1
- package/modules/backup/src/config.ts +2 -0
- package/modules/backup/src/coverage.ts +50 -0
- package/modules/backup/src/creators.ts +20 -17
- package/modules/backup/src/databaseTargets.ts +45 -0
- package/modules/backup/src/index.ts +37 -4
- package/modules/backup/src/influxIntegrity.ts +125 -0
- package/modules/backup/src/postgresHistory.ts +66 -0
- package/modules/backup/src/preflight.ts +3 -10
- package/modules/backup/src/publicTrust.ts +34 -0
- package/modules/backup/src/restore-cli.ts +55 -4
- package/modules/backup/src/storageRetention.ts +20 -0
- package/modules/backup/src/types.ts +5 -0
- package/modules/backup/src/worker.ts +18 -2
- package/modules/backup/test/completeness.test.cjs +193 -0
- package/modules/backup/test/hosted.test.cjs +43 -3
- package/modules/backup/test/influx-real.test.cjs +75 -0
- package/modules/backup/test/lifecycle.test.cjs +7 -5
- package/modules/backup/test/ocpp-coverage.test.cjs +152 -0
- package/modules/devices/admin/index.html +1 -1
- package/modules/eebus/admin/index.html +1 -1
- package/modules/ocpp/LICENSE +21 -0
- package/modules/ocpp/README.md +61 -0
- package/modules/ocpp/admin/config-fields.json +353 -0
- package/modules/ocpp/admin/index.html +52 -0
- package/modules/ocpp/admin/index.js +228 -0
- package/modules/ocpp/admin/style.css +27 -0
- package/modules/ocpp/build/index.js +401 -0
- package/modules/ocpp/build/operationGuard.js +26 -0
- package/modules/ocpp/build/server.js +155 -0
- package/modules/ocpp/eslint.config.mjs +13 -0
- package/modules/ocpp/index.js +3 -0
- package/modules/ocpp/native-defaults.json +44 -0
- package/modules/ocpp/ocpp/common.js +646 -0
- package/modules/ocpp/ocpp/compact.js +332 -0
- package/modules/ocpp/ocpp/configuration.js +364 -0
- package/modules/ocpp/ocpp/eos-contract.js +149 -0
- package/modules/ocpp/ocpp/freshness.d.ts +10 -0
- package/modules/ocpp/ocpp/freshness.js +272 -0
- package/modules/ocpp/ocpp/schemas/NOTICE.md +17 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_0_1_official.json +1 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_1_official.json +1 -0
- package/modules/ocpp/ocpp/server.js +3 -0
- package/modules/ocpp/ocpp/v16.js +213 -0
- package/modules/ocpp/ocpp/v201.js +4 -0
- package/modules/ocpp/ocpp/v21.js +4 -0
- package/modules/ocpp/ocpp/v2base.js +255 -0
- package/modules/ocpp/package.json +11 -0
- package/modules/ocpp/provenance.json +33 -0
- package/modules/ocpp/runtime.d.ts +16 -0
- package/modules/ocpp/runtime.js +3391 -0
- package/modules/ocpp/src/index.ts +463 -0
- package/modules/ocpp/src/operationGuard.ts +29 -0
- package/modules/ocpp/src/server.ts +193 -0
- package/modules/ocpp/test/configuration-runtime.test.js +786 -0
- package/modules/ocpp/test/core.test.js +772 -0
- package/modules/ocpp/test/eos-contract.test.js +67 -0
- package/modules/ocpp/test/hosted.test.cjs +165 -0
- package/modules/ocpp/tsconfig.json +7 -0
- package/modules/ocpp/validation/manifest.json +36 -0
- package/modules/ocpp/validation/node22-tests.log +525 -0
- package/modules/ocpp/validation/node24-tests.log +92 -0
- package/package.json +29 -11
- package/public/eos-migration/index.html +1 -1
- package/public/eos-migration/index.js +2 -2
- package/public/eos-runtime/index.html +36 -0
- package/public/eos-runtime/index.js +249 -0
- package/public/eos-runtime/style.css +27 -0
- package/release-manifests/unified/build-environment.cdx.json +767 -131
- package/release-manifests/unified/files.json +700 -214
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +292 -6
- package/release-manifests/unified/runtime.cdx.json +871 -143
- package/release-manifests/unified/validation.json +15 -15
- package/reports/unified/ocpp-pure-pv-9.0.22/PRUEFVERMERK.md +35 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/auto-pv-phases.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/control-tests.log +11 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/ocpp-stability.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/rc60.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/PRUEFVERMERK.md +44 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/focused-tests.log +37 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/grid-charge-policy.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/status-truth.log +1 -0
- package/tools/eos-release-check.cjs +5 -0
- package/tools/eos-release-manifest.cjs +3 -3
- package/tools/eos-sbom-vendored.cjs +2 -1
- package/tools/system/eos-postgresql-setup.cjs +409 -0
- package/tsconfig.eos-history-backup-scope.json +9 -0
- package/tsconfig.eos-postgres-system.json +15 -0
- package/ui/admin/react/assets/index-wHWXfD_g.js +13 -0
- package/ui/admin/react/index.html +1 -1
- package/ui/ems/consumers/evcs.js +11 -7
- package/ui/ems/datapoints.js +14 -5
- package/ui/ems/engine.js +4 -1
- package/ui/ems/modules/charging-management.js +193 -63
- package/ui/ems/modules/core-limits.js +15 -20
- package/ui/ems/modules/storage-control.js +8 -6
- package/ui/ems/modules/tarif-vis.js +7 -2
- package/ui/ems/modules/tariff-status.js +19 -1
- package/ui/eslint.postgres-history.config.mjs +9 -0
- package/ui/io-package.json +5 -1
- package/ui/lib/ems-control-values.js +64 -0
- package/ui/lib/flow-measurement.js +72 -0
- package/ui/lib/hosted-adapter.js +12 -1
- package/ui/lib/influx-history-runtime.js +66 -24
- package/ui/lib/installer-lifecycle.js +4 -2
- package/ui/lib/ocpp-auto-discovery.js +397 -0
- package/ui/lib/ocpp-limit-feedback.js +166 -0
- package/ui/lib/partner-runtime.js +35 -2
- package/ui/lib/partner-websocket.js +4 -1
- package/ui/lib/postgres-history-config.js +57 -0
- package/ui/lib/postgres-history.js +344 -0
- package/ui/lib/runtime-proxy-html.js +34 -1
- package/ui/lib/smarthome-device-controls.js +4 -1
- package/ui/lib/ui-access-policy.js +39 -6
- package/ui/main.js +392 -222
- package/ui/package.json +1 -1
- package/ui/tsconfig.postgres-history.json +4 -0
- package/ui/www/app.js +106 -152
- package/ui/www/auth.js +36 -10
- package/ui/www/charging-diagnostics-appcenter.js +1 -0
- package/ui/www/customer-tariff.js +1 -0
- package/ui/www/dashboard-lp-status.js +1 -0
- package/ui/www/dc-station-display.js +1 -0
- package/ui/www/ems-apps.js +48 -8
- package/ui/www/energy-origin-appcenter.js +1 -0
- package/ui/www/energy-origin-ledger-view.js +1 -0
- package/ui/www/eos-kiosk-settings.js +174 -0
- package/ui/www/eos-session-idle.js +40 -6
- package/ui/www/eos-updates.js +1 -0
- package/ui/www/index.html +2 -1
- package/ui/www/license.js +1 -0
- package/ui/www/licenses/smarthome-markdown-components.json +157 -157
- package/ui/www/live-display.js +4 -2
- package/ui/www/login.js +25 -9
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/netoperator-appcenter.js +1 -0
- package/ui/www/netoperator.js +1 -0
- package/ui/www/operating-strategies-appcenter.js +1 -0
- package/ui/www/operating-strategies-rule-builder.js +1 -0
- package/ui/www/power-measurements.js +27 -2
- package/ui/www/pwa.js +1 -0
- package/ui/www/runtime-base.js +1 -0
- package/ui/www/settings.html +13 -1
- package/ui/www/smarthome-activation.js +1 -0
- package/ui/www/smarthome-alias-config.js +1 -0
- package/ui/www/smarthome-custom-config.js +1 -0
- package/ui/www/smarthome-custom-views.js +1 -0
- package/ui/www/smarthome-device-categories.js +1 -0
- package/ui/www/smarthome-device-config.js +1 -0
- package/ui/www/smarthome-device-controls.js +1 -0
- package/ui/www/smarthome-feedback.js +1 -0
- package/ui/www/smarthome-layout-editor.js +1 -0
- package/ui/www/smarthome-presentation.js +1 -0
- package/ui/www/smarthome-setup.js +1 -0
- package/ui/www/smarthome-touch.js +1 -0
- package/ui/www/storagefarm-dispatch.js +1 -0
- package/ui/www/storagefarm-summary.js +1 -0
- package/ui/www/tariff-display.js +62 -2
- package/adminWww/remoteEntry-eos-9.0.21.js +0 -12
- package/ui/admin/react/assets/index-BJO3q7oe.js +0 -13
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const test = require('node:test');
|
|
4
|
+
const assert = require('node:assert/strict');
|
|
5
|
+
|
|
6
|
+
const {
|
|
7
|
+
sanitizeStationIdentity,
|
|
8
|
+
heartbeatTimeoutMs,
|
|
9
|
+
activityTimeoutMs,
|
|
10
|
+
deriveConnectionHealth,
|
|
11
|
+
commandTimeoutMs,
|
|
12
|
+
buildTriggerPayload,
|
|
13
|
+
statusImpliesZero,
|
|
14
|
+
chargingStateImpliesZero,
|
|
15
|
+
isActualPowerOrCurrentId,
|
|
16
|
+
dataFreshForEos,
|
|
17
|
+
shouldRepublishCachedState,
|
|
18
|
+
selectCachedStatesForRepublish,
|
|
19
|
+
takeRotatingItems,
|
|
20
|
+
parseDeviceModelValue,
|
|
21
|
+
} = require('../ocpp/freshness');
|
|
22
|
+
const { applyMeterValues, createAutoResponder, normalizeKey } = require('../ocpp/common');
|
|
23
|
+
const {
|
|
24
|
+
measurementDefinition,
|
|
25
|
+
canonicalMeasurand,
|
|
26
|
+
canonicalPhase,
|
|
27
|
+
canonicalUnitForMeasurand,
|
|
28
|
+
aggregatePhaseValues,
|
|
29
|
+
normalizeChargingLimit,
|
|
30
|
+
chargingLimitChanged,
|
|
31
|
+
deterministicInt,
|
|
32
|
+
deterministicChargingProfileIds,
|
|
33
|
+
} = require('../ocpp/compact');
|
|
34
|
+
const {
|
|
35
|
+
RESERVED_CONFIGURATION_KEYS,
|
|
36
|
+
canonicalDeviceModelKey,
|
|
37
|
+
configurationStateKey16,
|
|
38
|
+
configurationStateKey2,
|
|
39
|
+
inferOcpp16Value,
|
|
40
|
+
configurationSensitive,
|
|
41
|
+
redactConfigurationReport,
|
|
42
|
+
configurationRefreshDiagnostic,
|
|
43
|
+
validateConfigurationValue,
|
|
44
|
+
configurationWritable,
|
|
45
|
+
buildConfigurationRefreshCall,
|
|
46
|
+
buildConfigurationWriteCall,
|
|
47
|
+
interpretConfigurationRefreshResponse,
|
|
48
|
+
interpretConfigurationWriteResponse,
|
|
49
|
+
} = require('../ocpp/configuration');
|
|
50
|
+
const { registerHandlers: register16 } = require('../ocpp/v16');
|
|
51
|
+
const { registerHandlers: register201 } = require('../ocpp/v201');
|
|
52
|
+
const { registerHandlers: register21 } = require('../ocpp/v21');
|
|
53
|
+
|
|
54
|
+
test('station identities are deterministic and safe for ioBroker object IDs', () => {
|
|
55
|
+
assert.equal(sanitizeStationIdentity('DC_FAST_01'), 'DC_FAST_01');
|
|
56
|
+
const sanitized = sanitizeStationIdentity('DC.Fast/01 West');
|
|
57
|
+
assert.match(sanitized, /^DC_Fast_01_West_[0-9a-f]{8}$/);
|
|
58
|
+
assert.equal(sanitized, sanitizeStationIdentity('DC.Fast/01 West'));
|
|
59
|
+
assert.equal(/[.\s/]/.test(sanitized), false);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
test('heartbeat timeout applies a bounded safety factor', () => {
|
|
63
|
+
assert.equal(heartbeatTimeoutMs(60, 2.5), 150000);
|
|
64
|
+
assert.equal(heartbeatTimeoutMs(0, 0), 750000);
|
|
65
|
+
assert.equal(heartbeatTimeoutMs(10, 99), 100000);
|
|
66
|
+
assert.equal(activityTimeoutMs(10, 1.2, 90), 90000);
|
|
67
|
+
assert.equal(activityTimeoutMs(300, 2.5, 90), 750000);
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
test('socket, OCPP activity and heartbeat health remain independent', () => {
|
|
71
|
+
const now = 1_000_000;
|
|
72
|
+
const recentMeterValues = deriveConnectionHealth({
|
|
73
|
+
now,
|
|
74
|
+
socketConnected: true,
|
|
75
|
+
connectedAt: now - 500_000,
|
|
76
|
+
lastMessageAt: now - 10_000,
|
|
77
|
+
lastHeartbeatAt: now - 200_000,
|
|
78
|
+
heartbeatIntervalSec: 60,
|
|
79
|
+
heartbeatTimeoutFactor: 2.5,
|
|
80
|
+
activityTimeoutSec: 90,
|
|
81
|
+
});
|
|
82
|
+
assert.equal(recentMeterValues.socketConnected, true);
|
|
83
|
+
assert.equal(recentMeterValues.activityFresh, true);
|
|
84
|
+
assert.equal(recentMeterValues.online, true);
|
|
85
|
+
assert.equal(recentMeterValues.heartbeatAlive, false);
|
|
86
|
+
|
|
87
|
+
const silentButConnected = deriveConnectionHealth({
|
|
88
|
+
now,
|
|
89
|
+
socketConnected: true,
|
|
90
|
+
connectedAt: now - 500_000,
|
|
91
|
+
lastMessageAt: now - 200_000,
|
|
92
|
+
lastHeartbeatAt: now - 200_000,
|
|
93
|
+
heartbeatIntervalSec: 30,
|
|
94
|
+
heartbeatTimeoutFactor: 2.5,
|
|
95
|
+
activityTimeoutSec: 90,
|
|
96
|
+
});
|
|
97
|
+
assert.equal(silentButConnected.socketConnected, true);
|
|
98
|
+
assert.equal(silentButConnected.activityFresh, false);
|
|
99
|
+
assert.equal(silentButConnected.online, false);
|
|
100
|
+
assert.equal(silentButConnected.heartbeatAlive, false);
|
|
101
|
+
|
|
102
|
+
const disconnected = deriveConnectionHealth({
|
|
103
|
+
now,
|
|
104
|
+
socketConnected: false,
|
|
105
|
+
lastMessageAt: now - 1_000,
|
|
106
|
+
lastHeartbeatAt: now - 1_000,
|
|
107
|
+
heartbeatIntervalSec: 60,
|
|
108
|
+
});
|
|
109
|
+
assert.deepEqual(
|
|
110
|
+
{ socketConnected: disconnected.socketConnected, activityFresh: disconnected.activityFresh, online: disconnected.online, heartbeatAlive: disconnected.heartbeatAlive },
|
|
111
|
+
{ socketConnected: false, activityFresh: false, online: false, heartbeatAlive: false },
|
|
112
|
+
);
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
test('OCPP command timeout uses seconds and remains bounded', () => {
|
|
116
|
+
assert.equal(commandTimeoutMs(20), 20000);
|
|
117
|
+
assert.equal(commandTimeoutMs(1), 5000);
|
|
118
|
+
assert.equal(commandTimeoutMs(999), 120000);
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
test('TriggerMessage payloads are protocol-correct', () => {
|
|
122
|
+
assert.deepEqual(buildTriggerPayload('ocpp1.6', 'MeterValues', 2, 3), {
|
|
123
|
+
requestedMessage: 'MeterValues', connectorId: 3,
|
|
124
|
+
});
|
|
125
|
+
assert.deepEqual(buildTriggerPayload('ocpp2.1', 'StatusNotification', 2, 3), {
|
|
126
|
+
requestedMessage: 'StatusNotification', evse: { id: 2, connectorId: 3 },
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
test('compact measurement names replace protocol-direction names and vendor typos', () => {
|
|
131
|
+
assert.equal(measurementDefinition('Power.Active.Import').key, 'powerW');
|
|
132
|
+
assert.equal(measurementDefinition('ActivePowerImport').key, 'powerW');
|
|
133
|
+
assert.equal(measurementDefinition('ActivePowerInport').key, 'powerW');
|
|
134
|
+
assert.equal(canonicalMeasurand('ImportActivePower'), 'Power.Active.Import');
|
|
135
|
+
assert.equal(measurementDefinition('Power.Active.Import', 'L2').key, 'powerWL2');
|
|
136
|
+
assert.equal(measurementDefinition('Power.Active.Import', 'L1-L2').key, 'powerWL1L2');
|
|
137
|
+
assert.equal(measurementDefinition('Current.Import').key, 'currentA');
|
|
138
|
+
assert.equal(measurementDefinition('Energy.Active.Import.Register').kwhKey, 'energyKWh');
|
|
139
|
+
assert.equal(canonicalPhase('L1-N'), 'L1');
|
|
140
|
+
assert.equal(canonicalUnitForMeasurand('ActivePowerImport'), 'W');
|
|
141
|
+
assert.equal(normalizeKey('Power.Active.Import', 'L1-N', 'Cable', 'Transaction.Begin'), 'Power_Active_Import_L1_Cable_Transaction_Begin');
|
|
142
|
+
assert.equal(normalizeKey('Power.Active.Import').includes('.'), false);
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
test('zero and sub-minimum charging limits cannot accidentally interrupt charging', () => {
|
|
146
|
+
const previous = { requestedLimit: 11000, effectiveLimit: 11000, rateUnit: 'W', phases: 3, action: 'set' };
|
|
147
|
+
const held = normalizeChargingLimit(0, 'W', 3, { zeroLimitBehavior: 'keepLast', minimumChargingCurrentA: 6, nominalVoltageV: 230 }, previous);
|
|
148
|
+
assert.equal(held.action, 'hold');
|
|
149
|
+
assert.equal(held.effectiveLimit, 11000);
|
|
150
|
+
assert.match(held.reason, /prevent-unintended-interruption/);
|
|
151
|
+
|
|
152
|
+
const clampedA = normalizeChargingLimit(3, 'A', 3, { minimumChargingCurrentA: 6 }, previous);
|
|
153
|
+
assert.equal(clampedA.effectiveLimit, 6);
|
|
154
|
+
const clampedW = normalizeChargingLimit(1000, 'W', 3, { minimumChargingCurrentA: 6, nominalVoltageV: 230 }, previous);
|
|
155
|
+
assert.equal(clampedW.effectiveLimit, 4140);
|
|
156
|
+
assert.equal(chargingLimitChanged(previous, { ...previous, effectiveLimit: 11050 }, { smartChargingDeadbandW: 100 }), false);
|
|
157
|
+
assert.equal(deterministicInt('station-1', 'profile'), deterministicInt('station-1', 'profile'));
|
|
158
|
+
const idsA = deterministicChargingProfileIds('station-1', 'eos-charge-limit', 'connector-1');
|
|
159
|
+
const idsB = deterministicChargingProfileIds('station-1', 'eos-charge-limit', 'connector-1');
|
|
160
|
+
const idsOtherFunction = deterministicChargingProfileIds('station-1', 'pv-emergency-limit', 'connector-1');
|
|
161
|
+
assert.deepEqual(idsA, idsB);
|
|
162
|
+
assert.notEqual(idsA.chargingProfileId, idsOtherFunction.chargingProfileId);
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
test('safe-zero rules only match states with no energy transfer', () => {
|
|
166
|
+
assert.equal(statusImpliesZero('ocpp1.6', 'Available'), true);
|
|
167
|
+
assert.equal(statusImpliesZero('ocpp1.6', 'SuspendedEVSE'), true);
|
|
168
|
+
assert.equal(statusImpliesZero('ocpp1.6', 'Charging'), false);
|
|
169
|
+
assert.equal(statusImpliesZero('ocpp2.1', 'Available'), true);
|
|
170
|
+
assert.equal(statusImpliesZero('ocpp2.1', 'Occupied'), false);
|
|
171
|
+
assert.equal(chargingStateImpliesZero('SuspendedEV'), true);
|
|
172
|
+
assert.equal(chargingStateImpliesZero('Charging'), false);
|
|
173
|
+
assert.equal(isActualPowerOrCurrentId('station.measurements.powerW'), true);
|
|
174
|
+
assert.equal(isActualPowerOrCurrentId('station.connectors.1_1.currentA'), true);
|
|
175
|
+
assert.equal(isActualPowerOrCurrentId('station.measurements.offeredPowerW'), false);
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
test('EOS freshness requires canonical active-import power or a safe zero', () => {
|
|
179
|
+
assert.equal(dataFreshForEos(true, true, false), true);
|
|
180
|
+
assert.equal(dataFreshForEos(true, false, true), true);
|
|
181
|
+
assert.equal(dataFreshForEos(true, false, false), false);
|
|
182
|
+
assert.equal(dataFreshForEos(false, true, true), false);
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
test('cached telemetry is republished per datapoint and never by unrelated freshness', () => {
|
|
186
|
+
const now = 1_000_000;
|
|
187
|
+
const options = { now, telemetryMaxAgeSec: 90, socMaxAgeSec: 300, safeZero: false };
|
|
188
|
+
assert.equal(shouldRepublishCachedState({ category: 'realtime', updatedAt: now - 20_000 }, options), false);
|
|
189
|
+
assert.equal(shouldRepublishCachedState({ category: 'realtime', updatedAt: now - 91_000 }, options), false);
|
|
190
|
+
assert.equal(shouldRepublishCachedState({ category: 'soc', updatedAt: now - 299_000 }, options), false);
|
|
191
|
+
assert.equal(shouldRepublishCachedState({ category: 'soc', updatedAt: now - 301_000 }, options), false);
|
|
192
|
+
assert.equal(shouldRepublishCachedState({ category: 'safeZero', updatedAt: now - 500_000 }, options), false);
|
|
193
|
+
assert.equal(shouldRepublishCachedState({ category: 'safeZero', updatedAt: now - 500_000 }, { ...options, safeZero: true }), true);
|
|
194
|
+
assert.equal(shouldRepublishCachedState({ category: 'status', updatedAt: 0 }, options), true);
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
test('republish and connector limits rotate fairly instead of starving later entries', () => {
|
|
198
|
+
const now = 1_000_000;
|
|
199
|
+
const cache = new Map(Array.from({ length: 7 }, (_, index) => [
|
|
200
|
+
`station.state${index}`, { category: 'status', updatedAt: now, val: index, ack: true },
|
|
201
|
+
]));
|
|
202
|
+
const first = selectCachedStatesForRepublish(cache.entries(), { now, cursor: 0, limit: 3 });
|
|
203
|
+
const second = selectCachedStatesForRepublish(cache.entries(), { now, cursor: first.nextCursor, limit: 3 });
|
|
204
|
+
const third = selectCachedStatesForRepublish(cache.entries(), { now, cursor: second.nextCursor, limit: 3 });
|
|
205
|
+
assert.deepEqual(first.entries.map(([id]) => id), ['station.state0', 'station.state1', 'station.state2']);
|
|
206
|
+
assert.deepEqual(second.entries.map(([id]) => id), ['station.state3', 'station.state4', 'station.state5']);
|
|
207
|
+
assert.deepEqual(third.entries.map(([id]) => id), ['station.state6', 'station.state0', 'station.state1']);
|
|
208
|
+
|
|
209
|
+
const connectors = ['1:1', '2:1', '3:1', '4:1', '5:1'];
|
|
210
|
+
const connectorsFirst = takeRotatingItems(connectors, 0, 2);
|
|
211
|
+
const connectorsSecond = takeRotatingItems(connectors, connectorsFirst.nextCursor, 2);
|
|
212
|
+
const connectorsThird = takeRotatingItems(connectors, connectorsSecond.nextCursor, 2);
|
|
213
|
+
assert.deepEqual(connectorsFirst.items, ['1:1', '2:1']);
|
|
214
|
+
assert.deepEqual(connectorsSecond.items, ['3:1', '4:1']);
|
|
215
|
+
assert.deepEqual(connectorsThird.items, ['5:1', '1:1']);
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
test('Device Model values are parsed strictly', () => {
|
|
219
|
+
assert.deepEqual(parseDeviceModelValue('true', 'boolean'), { type: 'boolean', val: true });
|
|
220
|
+
assert.deepEqual(parseDeviceModelValue('0', 'boolean'), { type: 'boolean', val: false });
|
|
221
|
+
assert.deepEqual(parseDeviceModelValue('not-boolean', 'boolean'), { type: 'boolean', val: undefined });
|
|
222
|
+
assert.deepEqual(parseDeviceModelValue('12', 'integer'), { type: 'number', val: 12 });
|
|
223
|
+
assert.deepEqual(parseDeviceModelValue('12.5', 'integer'), { type: 'number', val: undefined });
|
|
224
|
+
assert.deepEqual(parseDeviceModelValue('12foo', 'decimal'), { type: 'number', val: undefined });
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
test('configuration datapoint keys stay flat, deterministic and collision-safe', () => {
|
|
228
|
+
assert.equal(configurationStateKey16('HeartbeatInterval'), 'HeartbeatInterval');
|
|
229
|
+
assert.match(configurationStateKey16('status'), /^status_[0-9a-f]{8}$/);
|
|
230
|
+
assert.match(configurationStateKey16('Foo.Bar'), /^Foo_Bar_[0-9a-f]{8}$/);
|
|
231
|
+
assert.equal(RESERVED_CONFIGURATION_KEYS.has('refresh'), true);
|
|
232
|
+
|
|
233
|
+
const component = { name: 'DeviceDataCtrlr', instance: 'Main', evse: { id: 1, connectorId: 2 } };
|
|
234
|
+
const variable = { name: 'ItemsPerMessage', instance: 'NotifyReport' };
|
|
235
|
+
const first = configurationStateKey2(component, variable, 'Actual');
|
|
236
|
+
const second = configurationStateKey2(
|
|
237
|
+
{ ...component, customData: { vendorId: 'ignored' } },
|
|
238
|
+
{ ...variable, customData: { vendorId: 'ignored' } },
|
|
239
|
+
'Actual',
|
|
240
|
+
);
|
|
241
|
+
assert.equal(first, second);
|
|
242
|
+
assert.equal(first.includes('.'), false);
|
|
243
|
+
assert.match(first, /^DeviceDataCtrlr_Main_EVSE1_Connector2_ItemsPerMessage_NotifyReport_Actual_[0-9a-f]{8}$/);
|
|
244
|
+
assert.notEqual(first, configurationStateKey2(component, variable, 'Target'));
|
|
245
|
+
assert.notEqual(first, configurationStateKey2({ ...component, evse: { id: 1, connectorId: 3 } }, variable, 'Actual'));
|
|
246
|
+
assert.equal(
|
|
247
|
+
canonicalDeviceModelKey(component, variable, 'Actual'),
|
|
248
|
+
canonicalDeviceModelKey(
|
|
249
|
+
{ ...component, customData: { vendorId: 'ignored' } },
|
|
250
|
+
{ ...variable, customData: { vendorId: 'ignored' } },
|
|
251
|
+
'Actual',
|
|
252
|
+
),
|
|
253
|
+
);
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
test('OCPP configuration refresh and write calls are protocol-correct', () => {
|
|
257
|
+
assert.deepEqual(buildConfigurationRefreshCall('ocpp1.6', 17), {
|
|
258
|
+
method: 'GetConfiguration', payload: {},
|
|
259
|
+
});
|
|
260
|
+
assert.deepEqual(buildConfigurationRefreshCall('ocpp2.0.1', 17), {
|
|
261
|
+
method: 'GetBaseReport', payload: { requestId: 17, reportBase: 'ConfigurationInventory' },
|
|
262
|
+
});
|
|
263
|
+
assert.deepEqual(buildConfigurationRefreshCall('ocpp2.1', 18), {
|
|
264
|
+
method: 'GetBaseReport', payload: { requestId: 18, reportBase: 'ConfigurationInventory' },
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
const call16 = buildConfigurationWriteCall('ocpp1.6', {
|
|
268
|
+
kind: 'ocpp16', key: 'HeartbeatInterval', dataType: 'integer', readonly: false,
|
|
269
|
+
}, 60);
|
|
270
|
+
assert.deepEqual(call16, {
|
|
271
|
+
method: 'ChangeConfiguration',
|
|
272
|
+
payload: { key: 'HeartbeatInterval', value: '60' },
|
|
273
|
+
valueString: '60',
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
const call21 = buildConfigurationWriteCall('ocpp2.1', {
|
|
277
|
+
kind: 'deviceModel',
|
|
278
|
+
dataType: 'boolean',
|
|
279
|
+
attributeType: 'Actual',
|
|
280
|
+
component: { name: 'AuthCtrlr' },
|
|
281
|
+
variable: { name: 'Enabled' },
|
|
282
|
+
}, true);
|
|
283
|
+
assert.deepEqual(call21, {
|
|
284
|
+
method: 'SetVariables',
|
|
285
|
+
payload: {
|
|
286
|
+
setVariableData: [{
|
|
287
|
+
attributeValue: 'true',
|
|
288
|
+
component: { name: 'AuthCtrlr' },
|
|
289
|
+
variable: { name: 'Enabled' },
|
|
290
|
+
attributeType: 'Actual',
|
|
291
|
+
}],
|
|
292
|
+
},
|
|
293
|
+
valueString: 'true',
|
|
294
|
+
});
|
|
295
|
+
assert.throws(() => buildConfigurationWriteCall('ocpp1.6', {
|
|
296
|
+
kind: 'deviceModel', component: { name: 'AuthCtrlr' }, variable: { name: 'Enabled' }, dataType: 'boolean',
|
|
297
|
+
}, true), /does not belong/);
|
|
298
|
+
assert.throws(() => buildConfigurationWriteCall('ocpp2.0.1', {
|
|
299
|
+
kind: 'deviceModel', component: { name: 'CustomCtrlr' }, variable: { name: 'LongValue' }, dataType: 'string',
|
|
300
|
+
}, 'x'.repeat(1001)), /1000 characters/);
|
|
301
|
+
});
|
|
302
|
+
|
|
303
|
+
test('configuration value validation and write permissions fail safely', () => {
|
|
304
|
+
assert.deepEqual(inferOcpp16Value('true'), { type: 'boolean', val: true, dataType: 'boolean' });
|
|
305
|
+
assert.deepEqual(inferOcpp16Value('60'), { type: 'number', val: 60, dataType: 'integer' });
|
|
306
|
+
assert.deepEqual(inferOcpp16Value('0012'), { type: 'string', val: '0012', dataType: 'string' });
|
|
307
|
+
|
|
308
|
+
assert.equal(configurationWritable({ kind: 'ocpp16', readonly: false }, true), true);
|
|
309
|
+
assert.equal(configurationWritable({ kind: 'ocpp16', readonly: true }, true), false);
|
|
310
|
+
assert.equal(configurationWritable({ kind: 'ocpp16' }, true), false);
|
|
311
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'ReadWrite' }, true), true);
|
|
312
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'WriteOnly' }, true), true);
|
|
313
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'ReadOnly' }, true), false);
|
|
314
|
+
assert.equal(configurationWritable({ kind: 'deviceModel' }, true), false);
|
|
315
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'ReadWrite', constant: true }, true), false);
|
|
316
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'ReadWrite', stale: true }, true), false);
|
|
317
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'ReadWrite', inventoryPending: true }, true), false);
|
|
318
|
+
assert.equal(configurationWritable({ kind: 'deviceModel', mutability: 'ReadWrite' }, false), false);
|
|
319
|
+
|
|
320
|
+
assert.doesNotThrow(() => validateConfigurationValue({ dataType: 'integer', minLimit: 1, maxLimit: 100 }, '60'));
|
|
321
|
+
assert.throws(() => validateConfigurationValue({ dataType: 'integer', minLimit: 1 }, '0'), /minimum/);
|
|
322
|
+
assert.throws(() => validateConfigurationValue({ dataType: 'decimal', maxLimit: 10 }, '10.1'), /maximum/);
|
|
323
|
+
assert.doesNotThrow(() => validateConfigurationValue({ dataType: 'OptionList', valuesList: 'A,B,C' }, 'B'));
|
|
324
|
+
assert.throws(() => validateConfigurationValue({ dataType: 'OptionList', valuesList: 'A,B,C' }, 'D'), /supported values/);
|
|
325
|
+
assert.doesNotThrow(() => validateConfigurationValue({ dataType: 'MemberList', valuesList: 'A,B,C' }, 'A,C'));
|
|
326
|
+
assert.throws(() => validateConfigurationValue({ dataType: 'SequenceList', valuesList: 'A,B,C' }, 'A,D'), /unsupported list member/);
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
test('configuration credentials are treated as write-only and redacted from diagnostics', () => {
|
|
330
|
+
assert.equal(configurationSensitive({ kind: 'ocpp16', key: 'AuthorizationKey' }), true);
|
|
331
|
+
assert.equal(configurationSensitive({
|
|
332
|
+
kind: 'deviceModel', component: { name: 'SecurityCtrlr' }, variable: { name: 'BasicAuthPassword' },
|
|
333
|
+
}), true);
|
|
334
|
+
assert.equal(configurationSensitive({
|
|
335
|
+
kind: 'deviceModel', component: { name: 'SecurityCtrlr' }, variable: { name: 'PasswordComplexity' },
|
|
336
|
+
}), false);
|
|
337
|
+
assert.equal(configurationSensitive({
|
|
338
|
+
kind: 'deviceModel', component: { name: 'AuthCacheCtrlr' }, variable: { name: 'TokenCacheEnabled' },
|
|
339
|
+
}), false);
|
|
340
|
+
|
|
341
|
+
const original = {
|
|
342
|
+
requestId: 9,
|
|
343
|
+
reportData: [
|
|
344
|
+
{
|
|
345
|
+
component: { name: 'SecurityCtrlr' },
|
|
346
|
+
variable: { name: 'BasicAuthPassword' },
|
|
347
|
+
variableAttribute: [{ type: 'Actual', value: 'very-secret-value', mutability: 'WriteOnly' }],
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
component: { name: 'ClockCtrlr' },
|
|
351
|
+
variable: { name: 'TimeOffset' },
|
|
352
|
+
variableAttribute: [{ type: 'Actual', value: '+02:00', mutability: 'ReadWrite' }],
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
};
|
|
356
|
+
const redacted = redactConfigurationReport(original);
|
|
357
|
+
assert.equal(redacted.reportData[0].variableAttribute[0].value, '[redacted]');
|
|
358
|
+
assert.equal(redacted.reportData[1].variableAttribute[0].value, '+02:00');
|
|
359
|
+
assert.equal(original.reportData[0].variableAttribute[0].value, 'very-secret-value', 'redaction must not mutate the received OCPP payload');
|
|
360
|
+
assert.equal(JSON.stringify(redacted).includes('very-secret-value'), false);
|
|
361
|
+
|
|
362
|
+
assert.deepEqual(configurationRefreshDiagnostic('ocpp1.6', {
|
|
363
|
+
configurationKey: [{ key: 'AuthorizationKey', readonly: false, value: 'very-secret-value' }],
|
|
364
|
+
unknownKey: ['UnsupportedKey'],
|
|
365
|
+
}), {
|
|
366
|
+
status: 'Accepted',
|
|
367
|
+
configurationKeyCount: 1,
|
|
368
|
+
unknownKeyCount: 1,
|
|
369
|
+
});
|
|
370
|
+
assert.equal(JSON.stringify(configurationRefreshDiagnostic('ocpp1.6', {
|
|
371
|
+
configurationKey: [{ key: 'AuthorizationKey', readonly: false, value: 'very-secret-value' }],
|
|
372
|
+
})).includes('very-secret-value'), false);
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
test('configuration response status handling accepts only confirmed protocol success', () => {
|
|
376
|
+
assert.deepEqual(interpretConfigurationRefreshResponse('ocpp2.1', { status: 'Accepted' }), {
|
|
377
|
+
accepted: true, reportExpected: true, empty: false, status: 'Accepted',
|
|
378
|
+
});
|
|
379
|
+
assert.deepEqual(interpretConfigurationRefreshResponse('ocpp2.0.1', { status: 'EmptyResultSet' }), {
|
|
380
|
+
accepted: true, reportExpected: false, empty: true, status: 'EmptyResultSet',
|
|
381
|
+
});
|
|
382
|
+
assert.equal(interpretConfigurationRefreshResponse('ocpp2.1', { status: 'Rejected' }).accepted, false);
|
|
383
|
+
|
|
384
|
+
assert.deepEqual(interpretConfigurationWriteResponse('ocpp1.6', { status: 'RebootRequired' }), {
|
|
385
|
+
accepted: true,
|
|
386
|
+
rebootRequired: true,
|
|
387
|
+
status: 'RebootRequired',
|
|
388
|
+
detail: { status: 'RebootRequired' },
|
|
389
|
+
});
|
|
390
|
+
assert.equal(interpretConfigurationWriteResponse('ocpp1.6', { status: 'Rejected' }).accepted, false);
|
|
391
|
+
assert.equal(interpretConfigurationWriteResponse('ocpp2.1', {
|
|
392
|
+
setVariableResult: [{ attributeStatus: 'Accepted' }],
|
|
393
|
+
}).accepted, true);
|
|
394
|
+
assert.equal(interpretConfigurationWriteResponse('ocpp2.0.1', {
|
|
395
|
+
setVariableResult: [{ attributeStatus: 'UnknownVariable' }],
|
|
396
|
+
}).accepted, false);
|
|
397
|
+
});
|
|
398
|
+
|
|
399
|
+
function createMeterContext(options = {}) {
|
|
400
|
+
const connectorDetails = options.connectorDetails !== false;
|
|
401
|
+
const writes = [];
|
|
402
|
+
const phaseCache = new Map();
|
|
403
|
+
const meterNotes = [];
|
|
404
|
+
const socNotes = [];
|
|
405
|
+
const connectorBase = (identity, evseId, connectorId) => `${identity}.connectors.${evseId}_${connectorId}`;
|
|
406
|
+
const ctx = {
|
|
407
|
+
setStateFreshAsync: async (id, val, ack, category) => writes.push({ id, val, ack, category }),
|
|
408
|
+
states: {
|
|
409
|
+
connectorBase,
|
|
410
|
+
ensureConnectorStructure: async (identity, evseId, connectorId) => connectorDetails ? connectorBase(identity, evseId, connectorId) : undefined,
|
|
411
|
+
ensureTextMeasurementState: async (identity, key) => `${identity}.measurements.${key}`,
|
|
412
|
+
ensureMeasurementState: async (identity, key) => `${identity}.measurements.${key}`,
|
|
413
|
+
ensureMetricState: async (identity, evseId, connectorId, key, unit, meta) => {
|
|
414
|
+
if (!connectorDetails) return undefined;
|
|
415
|
+
const compactKey = meta && meta.definition && !meta.definition.extra ? meta.definition.key : `extra_${key}`;
|
|
416
|
+
return `${identity}.connectors.${evseId}_${connectorId}.${compactKey}`;
|
|
417
|
+
},
|
|
418
|
+
ensureAggState: async (identity, key) => `${identity}.measurements.${key}`,
|
|
419
|
+
},
|
|
420
|
+
runtime: {
|
|
421
|
+
recordPhaseMetric(identity, evseId, connectorId, measurand, phase, value, unit, ts) {
|
|
422
|
+
const key = `${identity}|${evseId}|${connectorId}|${canonicalMeasurand(measurand)}`;
|
|
423
|
+
if (!phaseCache.has(key)) phaseCache.set(key, new Map());
|
|
424
|
+
phaseCache.get(key).set(canonicalPhase(phase), { value, unit, ts });
|
|
425
|
+
},
|
|
426
|
+
getPhaseMetricTotal(identity, evseId, connectorId, measurand) {
|
|
427
|
+
const key = `${identity}|${evseId}|${connectorId}|${canonicalMeasurand(measurand)}`;
|
|
428
|
+
const samples = phaseCache.get(key);
|
|
429
|
+
if (!samples || samples.size === 0) return undefined;
|
|
430
|
+
return {
|
|
431
|
+
value: aggregatePhaseValues(measurand, [...samples.values()].map((sample) => sample.value)),
|
|
432
|
+
unit: [...samples.values()][0].unit,
|
|
433
|
+
};
|
|
434
|
+
},
|
|
435
|
+
async noteMeterValue(identity, evseId, connectorId, timestamp, flags) { meterNotes.push({ identity, evseId, connectorId, timestamp, flags }); },
|
|
436
|
+
async noteSoc(identity, timestamp) { socNotes.push({ identity, timestamp }); },
|
|
437
|
+
},
|
|
438
|
+
};
|
|
439
|
+
return { ctx, writes, meterNotes, socNotes };
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
function lastWrite(writes, id) {
|
|
443
|
+
return [...writes].reverse().find((entry) => entry.id === id);
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
test('meter values stay fresh, aggregate phases across messages and mirror Wh to kWh', async () => {
|
|
447
|
+
const { ctx, writes, meterNotes, socNotes } = createMeterContext();
|
|
448
|
+
const station = 'DC_01';
|
|
449
|
+
const timestamp = '2026-08-12T08:00:00.000Z';
|
|
450
|
+
|
|
451
|
+
for (const [phase, power, current] of [['L1', 1000, 4], ['L2', 1200, 5], ['L3', 1300, 6]]) {
|
|
452
|
+
await applyMeterValues(ctx, station, 1, 1, [{ timestamp, sampledValue: [
|
|
453
|
+
{ measurand: 'Power.Active.Import', phase, value: power, unitOfMeasure: { unit: 'W' } },
|
|
454
|
+
{ measurand: 'Current.Import', phase, value: current, unitOfMeasure: { unit: 'A' } },
|
|
455
|
+
] }], 'ocpp2.1');
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
await applyMeterValues(ctx, station, 1, 1, [{ timestamp, sampledValue: [
|
|
459
|
+
{ measurand: 'Energy.Active.Import.Register', value: 12345, unitOfMeasure: { unit: 'Wh' } },
|
|
460
|
+
{ measurand: 'SoC', value: 57, unitOfMeasure: { unit: '%' } },
|
|
461
|
+
] }], 'ocpp2.1');
|
|
462
|
+
|
|
463
|
+
assert.equal(lastWrite(writes, `${station}.measurements.powerW`).val, 3500);
|
|
464
|
+
assert.equal(lastWrite(writes, `${station}.measurements.currentA`).val, 6);
|
|
465
|
+
assert.equal(lastWrite(writes, `${station}.measurements.energyKWh`).val, 12.345);
|
|
466
|
+
assert.equal(lastWrite(writes, `${station}.measurements.socPercent`).val, 57);
|
|
467
|
+
assert.equal(lastWrite(writes, `${station}.connectors.1_1.energyKWh`).val, 12.345);
|
|
468
|
+
assert.equal(meterNotes.length, 4);
|
|
469
|
+
assert.equal(meterNotes.slice(0, 3).every((note) => note.flags.hasPower && note.flags.hasCurrent), true);
|
|
470
|
+
assert.equal(meterNotes[3].flags.hasPower, false);
|
|
471
|
+
assert.equal(meterNotes[3].flags.hasNonZeroActualFlow, false);
|
|
472
|
+
assert.equal(socNotes.length, 1);
|
|
473
|
+
|
|
474
|
+
const before = writes.filter((entry) => entry.id === `${station}.measurements.socPercent`).length;
|
|
475
|
+
await applyMeterValues(ctx, station, 1, 1, [{ timestamp, sampledValue: [{ measurand: 'SoC', value: 57, unitOfMeasure: { unit: '%' } }] }], 'ocpp2.1');
|
|
476
|
+
const after = writes.filter((entry) => entry.id === `${station}.measurements.socPercent`).length;
|
|
477
|
+
assert.equal(after, before + 1, 'unchanged values must still be written to refresh their timestamp');
|
|
478
|
+
assert.equal(meterNotes.length, 5);
|
|
479
|
+
assert.equal(socNotes.length, 2);
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
test('empty or malformed MeterValues do not falsely mark telemetry as fresh', async () => {
|
|
483
|
+
const { ctx, meterNotes } = createMeterContext();
|
|
484
|
+
await applyMeterValues(ctx, 'DC_02', 1, 1, [{ timestamp: '2026-08-12T08:00:00.000Z', sampledValue: [
|
|
485
|
+
{ measurand: 'Power.Active.Import', value: 'not-a-number', unitOfMeasure: { unit: 'W' } },
|
|
486
|
+
] }], 'ocpp2.1');
|
|
487
|
+
assert.equal(meterNotes.length, 0);
|
|
488
|
+
});
|
|
489
|
+
|
|
490
|
+
test('current or reactive power cannot falsely mark EOS active-import power as fresh', async () => {
|
|
491
|
+
const { ctx, meterNotes } = createMeterContext();
|
|
492
|
+
await applyMeterValues(ctx, 'DC_03', 1, 1, [{ timestamp: '2026-08-12T08:00:00.000Z', sampledValue: [
|
|
493
|
+
{ measurand: 'Current.Import', value: 30, unitOfMeasure: { unit: 'A' } },
|
|
494
|
+
{ measurand: 'Power.Reactive.Import', value: 100, unitOfMeasure: { unit: 'var' } },
|
|
495
|
+
] }], 'ocpp2.1');
|
|
496
|
+
assert.equal(meterNotes.length, 1);
|
|
497
|
+
assert.equal(meterNotes[0].flags.hasPower, false);
|
|
498
|
+
assert.equal(meterNotes[0].flags.hasCurrent, true);
|
|
499
|
+
assert.equal(meterNotes[0].flags.hasNonZeroActualFlow, true);
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
test('OCPP SampledValue defaults are mapped to energyWh and energyKWh in all versions', async () => {
|
|
503
|
+
for (const [protocol, station, value] of [
|
|
504
|
+
['ocpp1.6', 'AC_16', 1234], ['ocpp2.0.1', 'DC_201', 2500], ['ocpp2.1', 'DC_21', 2500],
|
|
505
|
+
]) {
|
|
506
|
+
const { ctx, writes, meterNotes } = createMeterContext();
|
|
507
|
+
await applyMeterValues(ctx, station, 1, 1, [{ timestamp: '2026-08-12T08:00:00.000Z', sampledValue: [{ value }] }], protocol);
|
|
508
|
+
assert.equal(lastWrite(writes, `${station}.measurements.energyWh`).val, value);
|
|
509
|
+
assert.equal(lastWrite(writes, `${station}.measurements.energyKWh`).val, value / 1000);
|
|
510
|
+
assert.equal(meterNotes.length, 1);
|
|
511
|
+
assert.equal(meterNotes[0].flags.hasPower, false);
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
|
|
515
|
+
test('explicit power and current measurands infer the correct unit when the station omits it', async () => {
|
|
516
|
+
const { ctx, writes } = createMeterContext({ connectorDetails: false });
|
|
517
|
+
await applyMeterValues(ctx, 'UNITLESS_01', 1, 1, [{ timestamp: '2026-08-12T08:00:00.000Z', sampledValue: [
|
|
518
|
+
{ measurand: 'ActivePowerInport', value: 7200 },
|
|
519
|
+
{ measurand: 'Current.Import', value: 10.5 },
|
|
520
|
+
] }], 'ocpp2.1');
|
|
521
|
+
assert.equal(lastWrite(writes, 'UNITLESS_01.measurements.powerW').val, 7200);
|
|
522
|
+
assert.equal(lastWrite(writes, 'UNITLESS_01.measurements.currentA').val, 10.5);
|
|
523
|
+
assert.equal(writes.some((entry) => entry.id.includes('energyWh') && entry.val === 7200), false);
|
|
524
|
+
});
|
|
525
|
+
|
|
526
|
+
test('phase current is the limiting phase value while phase power is summed', () => {
|
|
527
|
+
assert.equal(aggregatePhaseValues('Current.Import', [16, 15.5, 14]), 16);
|
|
528
|
+
assert.equal(aggregatePhaseValues('Power.Active.Import', [3500, 3400, 3300]), 10200);
|
|
529
|
+
});
|
|
530
|
+
|
|
531
|
+
test('connector detail folders can be disabled without losing station measurements', async () => {
|
|
532
|
+
const { ctx, writes } = createMeterContext({ connectorDetails: false });
|
|
533
|
+
await applyMeterValues(ctx, 'COMPACT_01', 1, 1, [{ timestamp: '2026-08-12T08:00:00.000Z', sampledValue: [
|
|
534
|
+
{ measurand: 'Power.Active.Import', value: 11000, unitOfMeasure: { unit: 'W' } },
|
|
535
|
+
{ measurand: 'Energy.Active.Import.Register', value: 25000, unitOfMeasure: { unit: 'Wh' } },
|
|
536
|
+
] }], 'ocpp2.1');
|
|
537
|
+
assert.equal(lastWrite(writes, 'COMPACT_01.measurements.powerW').val, 11000);
|
|
538
|
+
assert.equal(lastWrite(writes, 'COMPACT_01.measurements.energyKWh').val, 25);
|
|
539
|
+
assert.equal(writes.some((entry) => entry.id.includes('.connectors.')), false);
|
|
540
|
+
});
|
|
541
|
+
|
|
542
|
+
test('schema fallback responses fail closed instead of reporting unsupported work as accepted', () => {
|
|
543
|
+
const auto201 = createAutoResponder('ocpp2.0.1');
|
|
544
|
+
const auto21 = createAutoResponder('ocpp2.1');
|
|
545
|
+
assert.equal(auto201('TriggerMessage', { preferFailure: true }).status, 'NotImplemented');
|
|
546
|
+
assert.equal(auto21('RequestStartTransaction', { preferFailure: true }).status, 'Rejected');
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
class FakeClient {
|
|
550
|
+
constructor(protocol) {
|
|
551
|
+
this.protocol = protocol;
|
|
552
|
+
this.identity = 'station';
|
|
553
|
+
this.stateIdentity = 'station';
|
|
554
|
+
this.handlers = new Map();
|
|
555
|
+
this.wildcard = undefined;
|
|
556
|
+
}
|
|
557
|
+
handle(method, handler) {
|
|
558
|
+
if (typeof method === 'function') this.wildcard = method;
|
|
559
|
+
else this.handlers.set(method, handler);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function createDeferredQueue() {
|
|
564
|
+
let tail = Promise.resolve();
|
|
565
|
+
const labels = [];
|
|
566
|
+
return {
|
|
567
|
+
labels,
|
|
568
|
+
defer(identity, label, task) {
|
|
569
|
+
labels.push({ identity, label });
|
|
570
|
+
tail = tail.then(task);
|
|
571
|
+
return true;
|
|
572
|
+
},
|
|
573
|
+
async flush() { await tail; },
|
|
574
|
+
};
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
function registrationContext() {
|
|
578
|
+
return {
|
|
579
|
+
config: { heartbeatIntervalSec: 300 },
|
|
580
|
+
log: { debug() {}, warn() {} },
|
|
581
|
+
states: {}, runtime: {}, dp: {}, dm: {},
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
test('all supported protocol versions register critical telemetry handlers and a catch-all', () => {
|
|
586
|
+
const clients = [
|
|
587
|
+
['ocpp1.6', register16, ['BootNotification', 'Heartbeat', 'StatusNotification', 'MeterValues', 'StartTransaction', 'StopTransaction']],
|
|
588
|
+
['ocpp2.0.1', register201, ['BootNotification', 'Heartbeat', 'StatusNotification', 'MeterValues', 'TransactionEvent', 'NotifyEVChargingNeeds', 'NotifyReport']],
|
|
589
|
+
['ocpp2.1', register21, ['BootNotification', 'Heartbeat', 'StatusNotification', 'MeterValues', 'TransactionEvent', 'NotifyEVChargingNeeds', 'NotifyReport']],
|
|
590
|
+
];
|
|
591
|
+
for (const [protocol, register, expected] of clients) {
|
|
592
|
+
const client = new FakeClient(protocol);
|
|
593
|
+
register(client, registrationContext());
|
|
594
|
+
for (const method of expected) assert.equal(client.handlers.has(method), true, `${protocol} missing ${method}`);
|
|
595
|
+
assert.equal(typeof client.wildcard, 'function', `${protocol} missing catch-all handler`);
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
|
|
599
|
+
test('OCPP acknowledgements are returned before datapoint processing runs', async () => {
|
|
600
|
+
const client = new FakeClient('ocpp2.1');
|
|
601
|
+
const pending = [];
|
|
602
|
+
const writes = [];
|
|
603
|
+
const ctx = {
|
|
604
|
+
config: { heartbeatIntervalSec: 300 },
|
|
605
|
+
log: { debug() {}, warn() {} },
|
|
606
|
+
defer(identity, label, task) { pending.push({ identity, label, task }); return true; },
|
|
607
|
+
setStateFreshAsync: async (...args) => writes.push(args),
|
|
608
|
+
states: {
|
|
609
|
+
connectorBase: () => 'station.connectors.1_1',
|
|
610
|
+
ensureConnectorStructure: async () => undefined,
|
|
611
|
+
ensureTextMeasurementState: async () => 'station.measurements.lastUpdate',
|
|
612
|
+
ensureMeasurementState: async (identity, key) => `${identity}.measurements.${key}`,
|
|
613
|
+
ensureMetricState: async () => undefined,
|
|
614
|
+
},
|
|
615
|
+
runtime: { noteMessage() {}, noteMeterValue() {} },
|
|
616
|
+
dp: { async capture() {} }, dm: {},
|
|
617
|
+
};
|
|
618
|
+
register21(client, ctx);
|
|
619
|
+
const response = await client.handlers.get('MeterValues')({ params: {
|
|
620
|
+
evseId: 1, connectorId: 1,
|
|
621
|
+
meterValue: [{ sampledValue: [{ measurand: 'Power.Active.Import', value: 11000, unitOfMeasure: { unit: 'W' } }] }],
|
|
622
|
+
} });
|
|
623
|
+
assert.deepEqual(response, {});
|
|
624
|
+
assert.equal(writes.length, 0, 'no ioBroker write may block the OCPP CALLRESULT');
|
|
625
|
+
assert.equal(pending.some((item) => item.label === 'MeterValues'), true);
|
|
626
|
+
for (const item of pending) await item.task();
|
|
627
|
+
assert.equal(writes.some((args) => args[0] === 'station.measurements.powerW'), true);
|
|
628
|
+
});
|
|
629
|
+
|
|
630
|
+
test('NotifyReport is acknowledged immediately but its configuration inventory is never marked droppable', async () => {
|
|
631
|
+
for (const [protocol, register] of [['ocpp2.0.1', register201], ['ocpp2.1', register21]]) {
|
|
632
|
+
const client = new FakeClient(protocol);
|
|
633
|
+
const pending = [];
|
|
634
|
+
const reports = [];
|
|
635
|
+
const captures = [];
|
|
636
|
+
const ctx = {
|
|
637
|
+
config: { heartbeatIntervalSec: 300, captureRawMessages: true },
|
|
638
|
+
log: { debug() {}, warn() {} },
|
|
639
|
+
defer(identity, label, task, options) {
|
|
640
|
+
pending.push({ identity, label, task, options: options || {} });
|
|
641
|
+
return true;
|
|
642
|
+
},
|
|
643
|
+
states: {},
|
|
644
|
+
runtime: { noteMessage() {} },
|
|
645
|
+
dp: { async capture(...args) { captures.push(args); } },
|
|
646
|
+
dm: { async ingestNotifyReport(...args) { reports.push(args); } },
|
|
647
|
+
};
|
|
648
|
+
register(client, ctx);
|
|
649
|
+
const payload = { requestId: 7, seqNo: 0, generatedAt: '2026-08-12T18:00:00.000Z', reportData: [] };
|
|
650
|
+
const response = await client.handlers.get('NotifyReport')({ params: payload });
|
|
651
|
+
assert.deepEqual(response, {});
|
|
652
|
+
assert.equal(reports.length, 0, `${protocol} must acknowledge before inventory processing`);
|
|
653
|
+
const deferred = pending.find((item) => item.label === 'NotifyReport');
|
|
654
|
+
assert.ok(deferred, `${protocol} did not queue NotifyReport`);
|
|
655
|
+
assert.notEqual(deferred.options.droppable, true, `${protocol} configuration inventory must not be dropped`);
|
|
656
|
+
assert.equal(pending.some((item) => item.label === 'capture:NotifyReport'), false, `${protocol} must not persist unredacted configuration reports`);
|
|
657
|
+
await deferred.task();
|
|
658
|
+
assert.deepEqual(reports, [['station', protocol, payload]]);
|
|
659
|
+
assert.equal(captures.length, 0);
|
|
660
|
+
}
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
test('OCPP 1.6 keeps concurrent transactions mapped to their original connector', async () => {
|
|
664
|
+
const client = new FakeClient('ocpp1.6');
|
|
665
|
+
const events = [];
|
|
666
|
+
const writes = [];
|
|
667
|
+
const queue = createDeferredQueue();
|
|
668
|
+
const ctx = {
|
|
669
|
+
config: { heartbeatIntervalSec: 300 }, log: { debug() {}, warn() {} }, defer: queue.defer,
|
|
670
|
+
setStateFreshAsync: async (id, val, ack, category) => writes.push({ id, val, ack, category }),
|
|
671
|
+
states: {
|
|
672
|
+
async pushTransactionEvent(identity, event) { events.push({ identity, ...event }); },
|
|
673
|
+
connectorBase: (identity, evseId, connectorId) => `${identity}.connectors.${evseId}_${connectorId}`,
|
|
674
|
+
ensureConnectorStructure: async (identity, evseId, connectorId) => `${identity}.connectors.${evseId}_${connectorId}`,
|
|
675
|
+
},
|
|
676
|
+
runtime: { noteMessage() {} }, dp: { async capture() {} },
|
|
677
|
+
};
|
|
678
|
+
register16(client, ctx);
|
|
679
|
+
|
|
680
|
+
const first = await client.handlers.get('StartTransaction')({ params: { connectorId: 1, idTag: 'RFID-1', meterStart: 1000, timestamp: '2026-08-12T08:00:00.000Z' } });
|
|
681
|
+
const second = await client.handlers.get('StartTransaction')({ params: { connectorId: 2, idTag: 'RFID-2', meterStart: 2000, timestamp: '2026-08-12T08:01:00.000Z' } });
|
|
682
|
+
assert.notEqual(first.transactionId, second.transactionId);
|
|
683
|
+
assert.equal(client._transactions.size, 2);
|
|
684
|
+
|
|
685
|
+
await client.handlers.get('StopTransaction')({ params: { transactionId: first.transactionId, meterStop: 1500, reason: 'Local' } });
|
|
686
|
+
assert.equal(client._transactions.has(String(first.transactionId)), false);
|
|
687
|
+
assert.equal(client._transactions.has(String(second.transactionId)), true);
|
|
688
|
+
await queue.flush();
|
|
689
|
+
|
|
690
|
+
const stop = events.find((event) => event.type === 'Stop');
|
|
691
|
+
assert.equal(stop.connectorId, 1);
|
|
692
|
+
assert.equal(stop.idTag, 'RFID-1');
|
|
693
|
+
assert.equal(lastWrite(writes, 'station.connectors.1_1.energyKWh').val, 1);
|
|
694
|
+
assert.equal(lastWrite(writes, 'station.connectors.1_2.energyKWh').val, 2);
|
|
695
|
+
});
|
|
696
|
+
|
|
697
|
+
test('status side effects run in order and are awaited inside the deferred task', async () => {
|
|
698
|
+
const client = new FakeClient('ocpp2.1');
|
|
699
|
+
const pending = [];
|
|
700
|
+
const order = [];
|
|
701
|
+
let releaseStatus;
|
|
702
|
+
const statusGate = new Promise((resolve) => { releaseStatus = resolve; });
|
|
703
|
+
const ctx = {
|
|
704
|
+
config: { heartbeatIntervalSec: 300, captureRawMessages: false },
|
|
705
|
+
log: { debug() {}, warn() {} },
|
|
706
|
+
defer(identity, label, task) { pending.push({ identity, label, task }); return true; },
|
|
707
|
+
states: {
|
|
708
|
+
async upsertEvseState() { order.push('state'); },
|
|
709
|
+
},
|
|
710
|
+
runtime: {
|
|
711
|
+
noteMessage() {},
|
|
712
|
+
async noteStatus() {
|
|
713
|
+
order.push('status-start');
|
|
714
|
+
await statusGate;
|
|
715
|
+
order.push('status-end');
|
|
716
|
+
},
|
|
717
|
+
},
|
|
718
|
+
dp: {}, dm: {},
|
|
719
|
+
};
|
|
720
|
+
register21(client, ctx);
|
|
721
|
+
const response = await client.handlers.get('StatusNotification')({ params: {
|
|
722
|
+
evseId: 1, connectorId: 1, connectorStatus: 'Available', timestamp: '2026-08-12T08:00:00.000Z',
|
|
723
|
+
} });
|
|
724
|
+
assert.deepEqual(response, {});
|
|
725
|
+
assert.deepEqual(order, [], 'CALLRESULT must be returned before ioBroker status processing');
|
|
726
|
+
const deferred = pending.find((item) => item.label === 'StatusNotification');
|
|
727
|
+
assert.ok(deferred);
|
|
728
|
+
const running = deferred.task();
|
|
729
|
+
await new Promise((resolve) => setImmediate(resolve));
|
|
730
|
+
assert.deepEqual(order, ['state', 'status-start']);
|
|
731
|
+
releaseStatus();
|
|
732
|
+
await running;
|
|
733
|
+
assert.deepEqual(order, ['state', 'status-start', 'status-end']);
|
|
734
|
+
});
|
|
735
|
+
|
|
736
|
+
test('NotifyEVChargingNeeds maps DC SoC into the compact vehicle and measurement tree', async () => {
|
|
737
|
+
const client = new FakeClient('ocpp2.1');
|
|
738
|
+
const writes = [];
|
|
739
|
+
const socNotes = [];
|
|
740
|
+
const ensured = [];
|
|
741
|
+
const queue = createDeferredQueue();
|
|
742
|
+
const ctx = {
|
|
743
|
+
config: { heartbeatIntervalSec: 300 }, log: { debug() {}, warn() {} }, defer: queue.defer,
|
|
744
|
+
setStateFreshAsync: async (id, val, ack, category) => writes.push({ id, val, ack, category }),
|
|
745
|
+
states: {
|
|
746
|
+
ensureStructure: async (...args) => ensured.push(args),
|
|
747
|
+
ensureMeasurementState: async (identity, key) => `${identity}.measurements.${key}`,
|
|
748
|
+
ensureAggState: async (identity, key) => `${identity}.measurements.${key}`,
|
|
749
|
+
},
|
|
750
|
+
runtime: { noteMessage() {}, noteSoc(identity, timestamp) { socNotes.push({ identity, timestamp }); } },
|
|
751
|
+
dp: { async capture() {} }, dm: {},
|
|
752
|
+
};
|
|
753
|
+
register21(client, ctx);
|
|
754
|
+
|
|
755
|
+
const response = await client.handlers.get('NotifyEVChargingNeeds')({ params: {
|
|
756
|
+
evseId: 2, maxScheduleTuples: 8, timestamp: '2099-01-01T00:00:00.000Z',
|
|
757
|
+
chargingNeeds: {
|
|
758
|
+
requestedEnergyTransfer: 'DC', departureTime: '2026-08-12T12:00:00.000Z',
|
|
759
|
+
dcChargingParameters: { stateOfCharge: '62', fullSoC: 100, bulkSoC: 80, energyAmount: 25000, evEnergyCapacity: 80000, evMaxPower: 120000, evMaxCurrent: 300, evMaxVoltage: 920 },
|
|
760
|
+
v2xChargingParameters: { targetSoC: 85 },
|
|
761
|
+
},
|
|
762
|
+
} });
|
|
763
|
+
assert.deepEqual(response, { status: 'Accepted' });
|
|
764
|
+
assert.equal(writes.length, 0, 'the protocol response is not delayed by state writes');
|
|
765
|
+
await queue.flush();
|
|
766
|
+
assert.deepEqual(ensured, [['station', 2, 1]]);
|
|
767
|
+
assert.equal(lastWrite(writes, 'station.vehicle.socPercent').val, 62);
|
|
768
|
+
assert.equal(lastWrite(writes, 'station.vehicle.targetSocPercent').val, 85);
|
|
769
|
+
assert.equal(lastWrite(writes, 'station.vehicle.energyRequestWh').val, 25000);
|
|
770
|
+
assert.equal(lastWrite(writes, 'station.measurements.socPercent').val, 62);
|
|
771
|
+
assert.equal(socNotes.length, 1);
|
|
772
|
+
});
|