iobroker.eos-admin 9.0.19 → 9.0.21
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 +4 -4
- package/README.md +7 -3
- package/START_HIER_9.0.20.md +65 -0
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +110 -109
- package/adminWww/assets/{AdapterUpdateDialog-JOf2z4Vg.js → AdapterUpdateDialog-Dxl_b7Op.js} +1 -1
- package/adminWww/assets/{Adapters-C9fcSdWm.js → Adapters-CVKKhXmI.js} +1 -1
- package/adminWww/assets/{ConfigManager-BeeLlT6D.js → ConfigManager-Bf6nTAkL.js} +1 -1
- package/adminWww/assets/{Enums-FqnXWl8U.js → Enums-CJHVJY7t.js} +1 -1
- package/adminWww/assets/{Fields-DMgrt5Pi.js → Fields-DWHbZKvm.js} +1 -1
- package/adminWww/assets/{Files-CIHtt12g.js → Files-a6owMTXA.js} +1 -1
- package/adminWww/assets/{Hosts-fPLBzvTy.js → Hosts-LtEMeXpV.js} +1 -1
- package/adminWww/assets/{Instances-4XaVQlrT.js → Instances-DhChziA1.js} +1 -1
- package/adminWww/assets/{Intro-5TKriiLO.js → Intro-Cyq9gVDC.js} +1 -1
- package/adminWww/assets/{Logs-33zcIds-.js → Logs-wcramXsg.js} +1 -1
- package/adminWww/assets/{Objects-CNQPVbNG.js → Objects-DINVHd_e.js} +1 -1
- package/adminWww/assets/{Overview-BskXGOc8.js → Overview-DK4R41zR.js} +1 -1
- package/adminWww/assets/{State-C8SJ_Iqo.js → State-DcEACXzL.js} +1 -1
- package/adminWww/assets/{UsedResources-CgqRa9ei.js → UsedResources-C1LcM0Rb.js} +1 -1
- package/adminWww/assets/{Users-0JVYWR9u.js → Users-DvDdSyDY.js} +1 -1
- package/adminWww/assets/{bootstrap-D16lu6rd.js → bootstrap-Dbj_GbnP.js} +3 -3
- package/adminWww/assets/{hostInit-C8YZJuzi.js → hostInit-BNFIx0-f.js} +1 -1
- package/adminWww/assets/icons/nexowatt-180.png +0 -0
- package/adminWww/assets/{icons-material-CiNJ_6Ur.js → icons-material-DVbdXNgr.js} +1 -1
- package/adminWww/assets/{index-DA9Sphgh.js → index-CoKP1NSA.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-DPdkRa_d.js → installSVGRenderer-CMvku1F1.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-a7ab91de.js → mf-entry-bootstrap-0-ac330bce.js} +2 -2
- package/adminWww/index.html +24 -24
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/{remoteEntry-eos-9.0.19.js → remoteEntry-eos-9.0.21.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosCustomerUpdateHttp.js +203 -0
- package/build/lib/eosCustomerUpdateHttp.js.map +1 -0
- package/build/lib/eosCustomerUpdateTransport.js +472 -0
- package/build/lib/eosCustomerUpdateTransport.js.map +1 -0
- package/build/lib/eosCustomerUpdateWorker.js +567 -0
- package/build/lib/eosCustomerUpdateWorker.js.map +1 -0
- package/build/lib/eosCustomerUpdates.js +631 -0
- package/build/lib/eosCustomerUpdates.js.map +1 -0
- package/build/lib/eosDeviceEmsPlan.js +18 -5
- package/build/lib/eosDeviceEmsPlan.js.map +1 -1
- package/build/lib/eosDeviceEmsService.js +52 -2
- package/build/lib/eosDeviceEmsService.js.map +1 -1
- package/build/lib/eosLegacyMigration.js +26 -1
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +12 -1
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +81 -26
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +8 -2
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosStateSubscriptions.js +59 -2
- package/build/lib/eosStateSubscriptions.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +290 -0
- package/build/lib/eosUpdateSnapshot.js.map +1 -0
- package/build/lib/eosUploadGuard.js +124 -81
- package/build/lib/eosUploadGuard.js.map +1 -1
- package/build/lib/web.js +83 -0
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.20/ANFORDERUNGEN_UND_INBETRIEBNAHME.md +159 -0
- package/docs/reports/unified-9.0.20/DEVICE_COMMAND_DELIVERY_REVIEW.md +82 -0
- package/docs/reports/unified-9.0.20/DEVICE_LIFECYCLE_REVIEW.md +46 -0
- package/docs/reports/unified-9.0.20/DEVICE_PLAN_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.20/DEVICE_POWER_CAPABILITY_REVIEW.md +25 -0
- package/docs/reports/unified-9.0.20/FARM_CONTROLLER_REVIEW.md +27 -0
- package/docs/reports/unified-9.0.20/FARM_DIAGNOSE_UI.md +81 -0
- package/docs/reports/unified-9.0.20/FARM_DISPATCH_REVIEW.md +47 -0
- package/docs/reports/unified-9.0.20/HISTORY_REVIEW.md +68 -0
- package/docs/reports/unified-9.0.20/INFLUXDB2_INSTALLER_UI.md +39 -0
- package/docs/reports/unified-9.0.20/INFLUX_CREDENTIAL_NETWORK_REVIEW.md +38 -0
- package/docs/reports/unified-9.0.20/INFLUX_DIRECT_UNABHAENGIGE_PRUEFUNG.md +64 -0
- package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_INTEGRATION_REVIEW.md +53 -0
- package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_UNABHAENGIGE_PRUEFUNG.md +34 -0
- package/docs/reports/unified-9.0.20/INFLUX_TRANSPORT_ABSCHLUSSPRUEFUNG.md +55 -0
- package/docs/reports/unified-9.0.20/LOGIN_WEBAPP_LOGO.md +29 -0
- package/docs/reports/unified-9.0.20/MIGRATION_REVIEW.md +35 -0
- package/docs/reports/unified-9.0.20/PRUEFBERICHT.md +54 -0
- package/docs/reports/unified-9.0.20/PWA_ANONYMOUS_HTTPS_REVIEW.md +28 -0
- package/docs/reports/unified-9.0.20/PWA_ICON_UNABHAENGIGE_PRUEFUNG.md +60 -0
- package/docs/reports/unified-9.0.20/SERIAL_LIFECYCLE_REVIEW.md +37 -0
- package/docs/reports/unified-9.0.20/SOLAX_READBACK_REVIEW.md +43 -0
- package/docs/reports/unified-9.0.20/SOLAX_READBACK_UNABHAENGIGE_PRUEFUNG.md +34 -0
- package/docs/reports/unified-9.0.20/STATIC_REVIEW_DE.md +175 -0
- package/docs/reports/unified-9.0.20/STORAGE_COMMAND_ACK_REVIEW.md +36 -0
- package/docs/reports/unified-9.0.20/TARIFF_REPORT_REVIEW.md +29 -0
- package/docs/reports/unified-9.0.20/VISUALISIERUNG.md +64 -0
- package/docs/reports/unified-9.0.20/history-setup-navigation-proxy.txt +26 -0
- package/docs/reports/unified-9.0.20/history-setup-navigation-ssr.txt +7 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-lint.txt +0 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-node22.txt +102 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-node24.txt +23 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-security.txt +0 -0
- package/docs/reports/unified-9.0.20/history-setup-ui-typecheck.txt +0 -0
- package/docs/reports/unified-9.0.20/login-pwa-branding-hashes.txt +9 -0
- package/docs/reports/unified-9.0.20/login-pwa-branding-node22.txt +42 -0
- package/docs/reports/unified-9.0.20/login-pwa-branding-node24.txt +13 -0
- package/docs/reports/unified-9.0.20/raw/INDEX.json +1913 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node22.log +16 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node24.log +14 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-after.json +1 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-before.json +1 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/modbus-stop-backoff.cjs +22 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-control-review.log +29 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.log +325 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-review.log +278 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.log +58 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-review.log +51 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-gaps-before.log +64 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-negative-before.log +46 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/chart-gaps-before.log +127 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-after.log +67 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-before.log +61 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-js.log +0 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-ts.log +0 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node22.log +442 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node24.log +78 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/fix.py +73 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-eslint-final.json +7 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node22.log +279 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node24.log +52 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node22.log +223 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node24.log +43 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-own-cache.log +17 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/negative-pricing-before.log +96 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-after.log +66 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-repro.log +8 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-after.log +17 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-repro.log +8 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/history/repro.cjs +39 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/chromium-probe.log +3 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/patch-live.py +101 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.cjs +26 -0
- package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.log +36 -0
- package/docs/reports/unified-9.0.20/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.20/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.20/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.20/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.result.json +20 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.tap +721 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.result.json +20 -0
- package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.tap +127 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-evidence.json +69 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-failed-init-drain-919-before.log +14 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-final-node22.log +882 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-final-node24.log +149 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-planner-919-before.log +70 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-retained-readiness-before.log +34 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-runtime-retry-919-before.log +46 -0
- package/docs/reports/unified-9.0.20/raw/commissioning-types-node24.log +0 -0
- package/docs/reports/unified-9.0.20/raw/device-farm-protocol/DEVICE_FARM_READONLY_REVIEW.md +66 -0
- package/docs/reports/unified-9.0.20/raw/device-farm-protocol/run-readback-tests.cjs +13 -0
- package/docs/reports/unified-9.0.20/raw/device-farm-protocol/solax-control-chain.test.cjs +58 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node22.log +16 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node24.log +14 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-evidence.json +55 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-after.json +1 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-before.json +1 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-modbus-stop-backoff.cjs +22 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-control-review.log +29 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.log +325 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-review.log +278 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.json +18 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.log +58 -0
- package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-review.log +51 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.log +0 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.log +0 -0
- package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node22.log +110 -0
- package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node24.log +24 -0
- package/docs/reports/unified-9.0.20/raw/farm-controller/evidence.json +33 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-lint.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node22.txt +113 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node24.txt +26 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-security.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-typecheck.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/allocator-baseline.jsonl +6 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-before.log +138 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-delta.patch +77 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-lint.json +7 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.log +64 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.log +18 -0
- package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/final-ui-independent-review.json +194 -0
- package/docs/reports/unified-9.0.20/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.20/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.json +35 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.json +31 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-before.json +31 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/parser-reproducer.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.result.json +18 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.tap +34 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.result.json +18 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.tap +11 -0
- package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/node22-focused.log +165 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/node24-focused.log +35 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/review-receipt.json +57 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-after.log +1 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-before.log +1 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/split-response.cjs +16 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race-generation-guard.log +1 -0
- package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race.cjs +13 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/eslint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/node22.log +112 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/node24.log +24 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct/typecheck.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/hosted-module-history.test.cjs +85 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.log +100 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.log +21 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-after.test.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-loss-before.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/security-scan.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-direct-review/transport-extra.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.log +227 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.result.json +11 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.log +44 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.result.json +11 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node22.log +112 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node22.result.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node24.log +23 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/node24.result.json +12 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/runtime-after.test.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-independent/transport-extra.test.cjs +9 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/evidence.json +24 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node22.log +326 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node24.log +59 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node22.log +62 -0
- package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node24.log +16 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.log +112 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.log +106 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-security/source-sha256.json +5 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.log +124 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.log +26 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-final.json +285 -0
- package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-intermediate.json +285 -0
- package/docs/reports/unified-9.0.20/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.20/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/isolation/INDEX.json +332 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.log +6 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.log +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.log +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.log +296 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.log +56 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.log +54 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.log +332 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.log +62 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.log +342 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.log +72 -0
- package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.log +482 -0
- package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.result.json +19 -0
- package/docs/reports/unified-9.0.20/raw/isolation/isolation-node24.log +87 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.log +330 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.log +72 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.log +60 -0
- package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/isolation/repro-migration-start-budget.cjs +49 -0
- package/docs/reports/unified-9.0.20/raw/isolation/repro-serial-release.cjs +21 -0
- package/docs/reports/unified-9.0.20/raw/isolation/repro-sunspec-discovery.cjs +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.log +1 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.log +32 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.log +11 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.log +0 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.result.json +28 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.log +2 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.result.json +26 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.result.json +18 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.log +344 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.log +62 -0
- package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.result.json +17 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.log +3 -0
- package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.result.json +15 -0
- package/docs/reports/unified-9.0.20/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-919.log +70 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-920.log +71 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/diff.json +82 -0
- package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/receipt.json +48 -0
- package/docs/reports/unified-9.0.20/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.20/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-before-cache-boundary-fix.json +112 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-before-capability-ack.json +103 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-before-farm-diagnostics.json +102 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review-final.json +103 -0
- package/docs/reports/unified-9.0.20/raw/main-individual-review.json +93 -0
- package/docs/reports/unified-9.0.20/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.20/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/node22-tests-final.log +12471 -0
- package/docs/reports/unified-9.0.20/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.20/raw/node24-tests-final.log +2093 -0
- package/docs/reports/unified-9.0.20/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/evidence.json +69 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-existing-regressions-node24.log +94 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-lint.log +0 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node22.log +304 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node24.log +56 -0
- package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-typecheck.log +0 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/evidence.json +45 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node22-build.log +21 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node22-source.log +23 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node24-build.log +11 -0
- package/docs/reports/unified-9.0.20/raw/pwa-https/node24-source.log +11 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-boundaries.test.cjs +45 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-receipt.json +71 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v22.23.4.tap +34 -0
- package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v24.22.3.tap +11 -0
- package/docs/reports/unified-9.0.20/raw/pwa-ui-independent-review-final.json +348 -0
- package/docs/reports/unified-9.0.20/raw/repro-failed-init-drain-before.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/repro-profile-replacement-after-unmapped.cjs +15 -0
- package/docs/reports/unified-9.0.20/raw/repro-runtime-retry-before.cjs +18 -0
- package/docs/reports/unified-9.0.20/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.20/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node22.json +30 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node22.log +542 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node24.json +30 -0
- package/docs/reports/unified-9.0.20/raw/solax-readback-node24.log +97 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-before.log +147 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-evidence.json +48 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-final-node22.log +151 -0
- package/docs/reports/unified-9.0.20/raw/tariff-report-final-node24.log +32 -0
- package/docs/reports/unified-9.0.20/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.20/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.20/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/visuals-baseline-919.txt +36 -0
- package/docs/reports/unified-9.0.20/raw/visuals-browser-limit.txt +3 -0
- package/docs/reports/unified-9.0.20/raw/visuals-lint.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/visuals-node22.txt +258 -0
- package/docs/reports/unified-9.0.20/raw/visuals-node24.txt +51 -0
- package/docs/reports/unified-9.0.20/raw/visuals-security.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/visuals-typecheck.txt +0 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.log +19 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.result.json +16 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.log +31 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.result.json +14 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.result.json +13 -0
- package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.tap +10 -0
- package/io-package.json +12 -12
- package/modules/backup/admin/index.js +4 -1
- package/modules/devices/admin/host-bridge.js +5 -1
- package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
- package/modules/devices/lib/deviceAliasFreshness.js +1 -0
- package/modules/devices/lib/deviceAliasSemantics.js +13 -3
- package/modules/devices/lib/deviceRuntime.js +106 -12
- package/modules/devices/lib/drivers/modbus.js +90 -21
- package/modules/devices/lib/drivers/modbusAsciiBus.js +47 -31
- package/modules/devices/lib/drivers/modbusRtuBus.js +33 -9
- package/modules/devices/lib/drivers/modbusSerialLease.js +29 -0
- package/modules/devices/lib/drivers/mqtt.js +204 -82
- package/modules/devices/lib/drivers/mqttPendingOperations.js +119 -0
- package/modules/devices/lib/modbusReadEvidence.js +29 -0
- package/modules/devices/test/deviceAliasFreshness.test.js +7 -2
- package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
- package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
- package/modules/devices/test/mqttCommandLifecycle.test.js +255 -0
- package/modules/devices/test/mqttResourceBounds.test.js +98 -0
- package/modules/devices/test/mqttRuntimeSession.test.js +109 -0
- package/modules/devices/test/serialOperationGate.test.js +3 -3
- package/modules/devices/test/solaxReadbackContext.test.js +472 -0
- package/modules/devices/tsconfig.alias-semantics.json +1 -1
- package/modules/devices/tsconfig.mqtt-lifecycle.json +20 -0
- package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
- package/modules/eebus/admin/index.js +6 -3
- package/package.json +9 -7
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +848 -169
- 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 +154 -6
- package/release-manifests/unified/runtime.cdx.json +25 -25
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-check.cjs +2 -2
- package/tools/eos-release-manifest.cjs +3 -3
- package/ui/admin/react/assets/index-BJO3q7oe.js +13 -0
- package/ui/admin/react/assets/{index-CuquHlsY.css → index-ofLP_Y7y.css} +1 -1
- package/ui/admin/react/index.html +2 -2
- package/ui/docs/security/eslint-reviewed-findings.json +91 -35
- package/ui/ems/engine.js +14 -3
- package/ui/ems/modules/energy-wallet.js +9 -3
- package/ui/ems/modules/storage-control.js +60 -19
- package/ui/ems/modules/tariff-provider.js +34 -10
- package/ui/ems/services/tariff-provider-registry.js +18 -8
- package/ui/io-package.json +1 -1
- package/ui/lib/influx-config.js +204 -0
- package/ui/lib/influx-direct.js +527 -0
- package/ui/lib/influx-history-runtime.js +326 -0
- package/ui/lib/influx-network-policy.js +112 -0
- package/ui/lib/ui-access-policy.js +2 -2
- package/ui/main.js +614 -255
- package/ui/package.json +12 -6
- package/ui/www/app.js +152 -203
- package/ui/www/ems-apps.html +2 -1
- package/ui/www/ems-apps.js +8 -1
- package/ui/www/energy-ledger.html +1 -1
- package/ui/www/eos-updates.css +15 -0
- package/ui/www/eos-updates.js +351 -0
- package/ui/www/evcs.html +1 -1
- package/ui/www/history.html +1 -1
- package/ui/www/history.js +114 -74
- package/ui/www/index.html +4 -1
- package/ui/www/live-display.js +115 -0
- package/ui/www/logic.html +1 -1
- package/ui/www/login.css +1 -0
- package/ui/www/login.html +2 -1
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/settings.html +36 -1
- package/ui/www/simulation.html +1 -1
- package/ui/www/smarthome-config.html +1 -1
- package/ui/www/smarthome.html +1 -1
- package/ui/www/storagefarm-dispatch.js +287 -0
- package/ui/www/storagefarm-summary.css +15 -0
- package/ui/www/storagefarm.html +15 -1
- package/ui/www/storagefarm.js +8 -26
- package/ui/www/tariff-report.js +43 -25
- package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/ems/modules/storage-control.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:2b2fc6d9dc48f7d669636c365bf7645ffa4d9b68c7e706f6df02ebc4a412a1e2
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -9039,7 +9039,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9039
9039
|
], { familyChanged: true });
|
|
9040
9040
|
this._feneconGridReleasedDirectTarget = release.ok === true;
|
|
9041
9041
|
await this._setIfChanged('speicher.regelung.feneconGridReleaseStatus', release.ok
|
|
9042
|
-
? ('
|
|
9042
|
+
? ((release.pending ? 'Nullvorgaben angefordert; Treiberquittierung ausstehend' : 'Nullvorgaben vom Treiber bestätigt') + (reason ? ': ' + String(reason) : ''))
|
|
9043
9043
|
: ('Freigabe fehlgeschlagen' + (reason ? ': ' + String(reason) : '')));
|
|
9044
9044
|
return release;
|
|
9045
9045
|
}
|
|
@@ -9068,7 +9068,9 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9068
9068
|
const verify = await this._verifyStorageCommandDatapoints([
|
|
9069
9069
|
{ key: 'st.feneconGridSetpointW', entry, type: 'number', value: valueW, role: 'fenecon-fems-grid-target' },
|
|
9070
9070
|
], { attempts: 3, delayMs: 30 });
|
|
9071
|
-
const ok = writeResult !== false && (!verify.supported || verify.ok === true);
|
|
9071
|
+
const ok = writeResult !== false && (!verify.supported || verify.ok === true || verify.pending === true);
|
|
9072
|
+
const confirmationStatus = verify.pending ? 'pending-ack'
|
|
9073
|
+
: (verify.ok && verify.supported ? 'driver-acknowledged' : 'submitted-unverified');
|
|
9072
9074
|
if (ok) {
|
|
9073
9075
|
// Ein idempotent übersprungener Write (`null`) bestätigt den aktuellen
|
|
9074
9076
|
// DP-Wert, startet den FEMS-API-Watchdog aber nicht neu. Nur ein real
|
|
@@ -9087,7 +9089,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9087
9089
|
await this._setIfChanged('speicher.regelung.feneconGridSchreibOk', ok);
|
|
9088
9090
|
await this._setIfChanged(
|
|
9089
9091
|
'speicher.regelung.feneconGridSchreibStatus',
|
|
9090
|
-
ok ?
|
|
9092
|
+
ok ? confirmationStatus : (verify && verify.status ? String(verify.status) : 'write-failed'),
|
|
9091
9093
|
);
|
|
9092
9094
|
await this._setIfChanged('speicher.regelung.feneconGridTargetObjId', objectId);
|
|
9093
9095
|
await this._setIfChanged('speicher.regelung.feneconGridLastWriteRaw', valueW);
|
|
@@ -9095,7 +9097,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9095
9097
|
ok,
|
|
9096
9098
|
wrote: writeResult === true,
|
|
9097
9099
|
skipped: writeResult === null,
|
|
9098
|
-
status: ok ?
|
|
9100
|
+
status: ok ? confirmationStatus : 'write-failed',
|
|
9099
9101
|
objectId,
|
|
9100
9102
|
valueW,
|
|
9101
9103
|
verify,
|
|
@@ -9182,6 +9184,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9182
9184
|
reason: '',
|
|
9183
9185
|
ts: Number.isFinite(Number(state.ts)) ? Number(state.ts) : null,
|
|
9184
9186
|
ack: typeof state.ack === 'boolean' ? state.ack : null,
|
|
9187
|
+
q: state.q,
|
|
9185
9188
|
};
|
|
9186
9189
|
} catch (error) {
|
|
9187
9190
|
return {
|
|
@@ -9243,7 +9246,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9243
9246
|
} else {
|
|
9244
9247
|
const actualNumber = typeof actual === 'number'
|
|
9245
9248
|
? actual
|
|
9246
|
-
:
|
|
9249
|
+
: (typeof actual === 'string' && actual.trim() ? Number(actual.trim().replace(',', '.')) : Number.NaN);
|
|
9247
9250
|
const expectedNumber = Number(expected.raw);
|
|
9248
9251
|
const tolerance = Math.max(0.000001, Math.abs(expectedNumber) * 0.000001);
|
|
9249
9252
|
ok = Number.isFinite(actualNumber) && Number.isFinite(expectedNumber)
|
|
@@ -9252,6 +9255,19 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9252
9255
|
actual = Number.isFinite(actualNumber) ? actualNumber : current.raw;
|
|
9253
9256
|
}
|
|
9254
9257
|
|
|
9258
|
+
const matches = ok;
|
|
9259
|
+
// Record dispatch start, not the registry's completion time:
|
|
9260
|
+
// a real driver ack may arrive before writeNumber resolves.
|
|
9261
|
+
const previousWrite = this._storageCommandRequests instanceof Map
|
|
9262
|
+
? this._storageCommandRequests.get(String(item.key)) : null;
|
|
9263
|
+
const notBeforeTs = previousWrite && previousWrite.objectId === item.objectId && Number.isFinite(previousWrite.ts) ? previousWrite.ts : 0;
|
|
9264
|
+
const qualityOk = current.q === undefined || current.q === 0;
|
|
9265
|
+
const currentAck = Number.isFinite(current.ts) && current.ts > 0
|
|
9266
|
+
&& current.ts >= notBeforeTs && current.ts <= Date.now() + 1000;
|
|
9267
|
+
ok = matches && qualityOk && current.ack === true && currentAck;
|
|
9268
|
+
const pending = matches && qualityOk && !ok;
|
|
9269
|
+
if (matches && !qualityOk) reason = 'quality-invalid';
|
|
9270
|
+
else if (pending) reason = current.ack === true ? 'ack-not-current' : 'ack-not-received';
|
|
9255
9271
|
finalRows.push({
|
|
9256
9272
|
key: String(item.key || ''),
|
|
9257
9273
|
objectId: item.objectId,
|
|
@@ -9262,22 +9278,28 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9262
9278
|
actualRaw: actual,
|
|
9263
9279
|
supported: current.supported === true,
|
|
9264
9280
|
ok,
|
|
9281
|
+
pending,
|
|
9282
|
+
confirmationLevel: ok ? 'driver-acknowledged' : (pending ? 'requested' : 'none'),
|
|
9265
9283
|
reason,
|
|
9266
9284
|
ts: current.ts || null,
|
|
9267
9285
|
ack: current.ack,
|
|
9286
|
+
q: current.q === undefined ? null : current.q,
|
|
9268
9287
|
});
|
|
9269
9288
|
}
|
|
9270
9289
|
|
|
9271
9290
|
const supportedRows = finalRows.filter((row) => row.supported);
|
|
9272
9291
|
const supportedMismatches = supportedRows.filter((row) => !row.ok);
|
|
9273
|
-
if (!supportedMismatches.length) {
|
|
9292
|
+
if (!supportedMismatches.length || supportedMismatches.every(row => row.pending === true)) {
|
|
9274
9293
|
const unsupportedRows = finalRows.filter((row) => !row.supported);
|
|
9294
|
+
const pending = supportedMismatches.length > 0 || (supportedRows.length > 0 && unsupportedRows.length > 0);
|
|
9275
9295
|
return {
|
|
9276
9296
|
supported: supportedRows.length > 0,
|
|
9277
|
-
ok:
|
|
9297
|
+
ok: !pending,
|
|
9298
|
+
pending,
|
|
9299
|
+
confirmationLevel: pending ? 'requested' : (supportedRows.length ? 'driver-acknowledged' : 'none'),
|
|
9278
9300
|
status: supportedRows.length === 0
|
|
9279
9301
|
? 'unavailable'
|
|
9280
|
-
: (unsupportedRows.length ? 'partial-
|
|
9302
|
+
: (pending ? 'pending-ack' : (unsupportedRows.length ? 'partial-driver-acknowledged' : 'driver-acknowledged')),
|
|
9281
9303
|
rows: finalRows,
|
|
9282
9304
|
attempts: attempt,
|
|
9283
9305
|
};
|
|
@@ -9290,6 +9312,8 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9290
9312
|
return {
|
|
9291
9313
|
supported: supportedRows.length > 0,
|
|
9292
9314
|
ok: supportedRows.every((row) => row.ok),
|
|
9315
|
+
pending: false,
|
|
9316
|
+
confirmationLevel: 'none',
|
|
9293
9317
|
status: unsupportedRows.length ? 'partial-mismatch' : 'mismatch',
|
|
9294
9318
|
rows: finalRows,
|
|
9295
9319
|
attempts,
|
|
@@ -9309,9 +9333,17 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9309
9333
|
this._clearStorageCommandWriteCache(entry);
|
|
9310
9334
|
} else {
|
|
9311
9335
|
const pre = await this._verifyStorageCommandDatapoints([{ key, entry, type: 'number', value }], { attempts: 1, delayMs: 0 });
|
|
9312
|
-
if (pre.supported && !pre.ok) this._clearStorageCommandWriteCache(entry);
|
|
9336
|
+
if (pre.supported && !pre.ok && !pre.pending) this._clearStorageCommandWriteCache(entry);
|
|
9313
9337
|
}
|
|
9314
|
-
|
|
9338
|
+
const startedAt = Date.now();
|
|
9339
|
+
const result = await this.dp.writeNumber(key, value, false);
|
|
9340
|
+
if (result === true) {
|
|
9341
|
+
if (!(this._storageCommandRequests instanceof Map)) this._storageCommandRequests = new Map();
|
|
9342
|
+
// Keys are the fixed storage command roles, not an accumulating
|
|
9343
|
+
// history of object IDs across mapping/configuration changes.
|
|
9344
|
+
this._storageCommandRequests.set(String(key), { objectId: String(entry.objectId), ts: startedAt });
|
|
9345
|
+
}
|
|
9346
|
+
return result;
|
|
9315
9347
|
}
|
|
9316
9348
|
|
|
9317
9349
|
async _writeStorageCommandBoolean(key, value, options = {}) {
|
|
@@ -9321,9 +9353,15 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9321
9353
|
this._clearStorageCommandWriteCache(entry);
|
|
9322
9354
|
} else {
|
|
9323
9355
|
const pre = await this._verifyStorageCommandDatapoints([{ key, entry, type: 'boolean', value }], { attempts: 1, delayMs: 0 });
|
|
9324
|
-
if (pre.supported && !pre.ok) this._clearStorageCommandWriteCache(entry);
|
|
9356
|
+
if (pre.supported && !pre.ok && !pre.pending) this._clearStorageCommandWriteCache(entry);
|
|
9357
|
+
}
|
|
9358
|
+
const startedAt = Date.now();
|
|
9359
|
+
const result = await this.dp.writeBoolean(key, value, false);
|
|
9360
|
+
if (result === true) {
|
|
9361
|
+
if (!(this._storageCommandRequests instanceof Map)) this._storageCommandRequests = new Map();
|
|
9362
|
+
this._storageCommandRequests.set(String(key), { objectId: String(entry.objectId), ts: startedAt });
|
|
9325
9363
|
}
|
|
9326
|
-
return
|
|
9364
|
+
return result;
|
|
9327
9365
|
}
|
|
9328
9366
|
|
|
9329
9367
|
async _ensureStorageAlternativeTargetsNeutral(entries = [], options = {}) {
|
|
@@ -9343,8 +9381,8 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9343
9381
|
for (const item of items) {
|
|
9344
9382
|
const expectation = { key: item.key, entry: item.entry, type: 'number', value: 0 };
|
|
9345
9383
|
const before = await this._verifyStorageCommandDatapoints([expectation], { attempts: 1, delayMs: 0 });
|
|
9346
|
-
if (before.supported && before.ok) {
|
|
9347
|
-
rows.push({ key: item.key, objectId: item.entry.objectId, action: 'already-neutral', readback: before });
|
|
9384
|
+
if (before.supported && (before.ok || before.pending)) {
|
|
9385
|
+
rows.push({ key: item.key, objectId: item.entry.objectId, action: before.pending ? 'neutral-requested' : 'already-neutral', readback: before });
|
|
9348
9386
|
continue;
|
|
9349
9387
|
}
|
|
9350
9388
|
if (!before.supported && !familyChanged) {
|
|
@@ -9359,7 +9397,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9359
9397
|
writeResult = false;
|
|
9360
9398
|
}
|
|
9361
9399
|
const after = await this._verifyStorageCommandDatapoints([expectation], { attempts: 2, delayMs: 20 });
|
|
9362
|
-
const rowOk = writeResult !== false && (!after.supported || after.ok);
|
|
9400
|
+
const rowOk = writeResult !== false && (!after.supported || after.ok || after.pending);
|
|
9363
9401
|
if (!rowOk) ok = false;
|
|
9364
9402
|
rows.push({
|
|
9365
9403
|
key: item.key,
|
|
@@ -9370,7 +9408,8 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9370
9408
|
readback: after,
|
|
9371
9409
|
});
|
|
9372
9410
|
}
|
|
9373
|
-
|
|
9411
|
+
const pending = rows.some(row => row.readback && row.readback.pending === true);
|
|
9412
|
+
return { ok, pending, status: ok ? (pending ? 'neutral-requested' : 'neutral') : 'release-failed', rows };
|
|
9374
9413
|
}
|
|
9375
9414
|
|
|
9376
9415
|
/**
|
|
@@ -9925,6 +9964,8 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
9925
9964
|
commandReadback = {
|
|
9926
9965
|
supported: farmReadbackSupported,
|
|
9927
9966
|
ok: farmReadbackOk,
|
|
9967
|
+
pending: !!(farmDispatchResult && farmDispatchResult.commandDpReadbackPending),
|
|
9968
|
+
confirmationLevel: String((farmDispatchResult && farmDispatchResult.commandConfirmationLevel) || 'none'),
|
|
9928
9969
|
status: String((farmDispatchResult && farmDispatchResult.commandDpReadbackStatus) || (farmReadbackSupported ? (farmReadbackOk ? 'confirmed' : 'mismatch') : 'farm-dispatch')),
|
|
9929
9970
|
rows: farmDispatchResult && Array.isArray(farmDispatchResult.commandDpReadbackRows)
|
|
9930
9971
|
? farmDispatchResult.commandDpReadbackRows
|
|
@@ -10309,7 +10350,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
10309
10350
|
}
|
|
10310
10351
|
|
|
10311
10352
|
commandReadback = await this._verifyStorageCommandDatapoints(commandExpectations, { attempts: 3, delayMs: 30 });
|
|
10312
|
-
if (commandReadback.supported && !commandReadback.ok) {
|
|
10353
|
+
if (commandReadback.supported && !commandReadback.ok && !commandReadback.pending) {
|
|
10313
10354
|
const rawStatus = commandReadback.status;
|
|
10314
10355
|
commandFailureStatus = classifyCommandReadbackFailure(commandReadback.rows);
|
|
10315
10356
|
commandReadback = { ...commandReadback, rawStatus, status: commandFailureStatus };
|
|
@@ -10593,7 +10634,7 @@ const _prevRampW = (typeof this._lastTargetW === 'number' && Number.isFinite(thi
|
|
|
10593
10634
|
await mk('speicher.regelung.dispatcherJson', 'Dispatcher Details (JSON)', 'string', 'text', '');
|
|
10594
10635
|
|
|
10595
10636
|
await mk('speicher.regelung.sollW', 'Angeforderte Sollleistung Speicher (W)', 'number', 'value.power', 0);
|
|
10596
|
-
await mk('speicher.regelung.acceptedSollW', '
|
|
10637
|
+
await mk('speicher.regelung.acceptedSollW', 'An Schreibpfad übergebene Speicher-Sollleistung (W)', 'number', 'value.power', 0);
|
|
10597
10638
|
await mk('speicher.regelung.commandEffective', 'Mindestens ein wirksamer Speicherbefehl akzeptiert', 'boolean', 'indicator', false);
|
|
10598
10639
|
await mk('speicher.regelung.safetyRequestedW', 'Sollwert vor finaler SafetyEnvelope-Prüfung', 'number', 'value.power', 0);
|
|
10599
10640
|
await mk('speicher.regelung.safetyAllowedW', 'Final durch SafetyEnvelope freigegebener Sollwert', 'number', 'value.power', 0);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/ems/modules/tariff-provider.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:361637f67d401c2018f9440564391b01cf5df34f1fccd2377ba7b057adc38642
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/**
|
|
24
24
|
* NexoWatt Quellcode-Erklärung (DE)
|
|
25
25
|
* Aufgabe: Lädt Tarifdaten über die registrierten Anbieter und stellt sie der weiteren Tarifverarbeitung bereit.
|
|
26
|
-
* Daten und Wirkung: Liest HTTPS-Tarife mit höchstens 5 s Gesamtabrufbudget. Erst vollständig validierte Intervalle aktualisieren Preis-States und Erfolgszeit. Bei Fehlern verbleibt der letzte gültige Stand bis zur konfigurierten Frischegrenze; danach werden Preise null und Kurven leer.
|
|
26
|
+
* Daten und Wirkung: Liest HTTPS-Tarife außerhalb des lokalen Regelticks mit höchstens einem Abruf und 5 s Gesamtabrufbudget; Stop und Quellwechsel brechen den Abruf ab. Auch ein leerer Cache hält nach Fehlern den geplanten Wiederholabstand ein. Erst vollständig validierte Intervalle aktualisieren Preis-States und Erfolgszeit. Bei Fehlern verbleibt der letzte gültige Stand bis zur konfigurierten Frischegrenze; danach werden Preise null und Kurven leer.
|
|
27
27
|
* Bei Änderungen: Einheiten, Vorzeichen, Gültigkeit und Aufrufer mitprüfen; Kommentare und docs:build nach fachlichen Änderungen aktualisieren.
|
|
28
28
|
* Verknüpfungen: docs/quellcode/src-ts/runtime-executables/ems/modules/tariff-provider.md
|
|
29
29
|
* Einstieg: docs/QUELLCODE_WEGWEISER_DE.md; Pflege: docs/DOKUMENTATIONSSTANDARD_DE.md
|
|
@@ -85,6 +85,7 @@ class TariffProviderModule extends BaseModule {
|
|
|
85
85
|
this._lastPublishedFresh = null;
|
|
86
86
|
this._lastPublishedSuccessMs = null;
|
|
87
87
|
this._fetchPromise = null;
|
|
88
|
+
this._fetchAbort = null;
|
|
88
89
|
this._lastError = '';
|
|
89
90
|
this._consecutiveErrors = 0;
|
|
90
91
|
this._effectiveRefreshMinutes = 0;
|
|
@@ -166,6 +167,7 @@ class TariffProviderModule extends BaseModule {
|
|
|
166
167
|
this._invalidationPending = true;
|
|
167
168
|
this._fencePriceReaders();
|
|
168
169
|
const generation = ++this._generation;
|
|
170
|
+
this._fetchAbort?.abort();
|
|
169
171
|
this._intervals = [];
|
|
170
172
|
this._lastFetchMs = 0;
|
|
171
173
|
this._lastSuccessMs = 0;
|
|
@@ -375,7 +377,8 @@ class TariffProviderModule extends BaseModule {
|
|
|
375
377
|
const staleAge = this._lastSuccessMs ? nowMs - this._lastSuccessMs : Number.POSITIVE_INFINITY;
|
|
376
378
|
const fresh = cfg.enabled && cfg.providerId !== 'manual-dp' && this._lastSuccessMs > 0
|
|
377
379
|
&& staleAge <= cfg.maxStaleMinutes * 60 * 1000 && Number.isFinite(ca.current);
|
|
378
|
-
const status = statusOverride || (
|
|
380
|
+
const status = statusOverride || (this._lastError ? (this._intervals.length ? 'degraded' : 'error')
|
|
381
|
+
: fresh ? 'ok' : (this._intervals.length ? 'stale' : 'waiting'));
|
|
379
382
|
const quality = this._intervals[0] ? String(this._intervals[0].quality || 'unknown') : 'missing';
|
|
380
383
|
// Never refresh the tariff-control datapoints with stale provider data.
|
|
381
384
|
// tariff-vis uses state timestamps as its safety/freshness contract; writing
|
|
@@ -455,11 +458,11 @@ class TariffProviderModule extends BaseModule {
|
|
|
455
458
|
/** Die Registry validiert alle Intervalle vor der Übernahme. Abruffehler
|
|
456
459
|
* behalten den letzten gültigen Stand und dessen Erfolgszeit; _publish
|
|
457
460
|
* setzt nach Ablauf der vorhandenen Frischegrenze die Preise auf null. */
|
|
458
|
-
async _refresh(cfg, nowMs, generation = this._generation) {
|
|
461
|
+
async _refresh(cfg, nowMs, generation = this._generation, signal) {
|
|
459
462
|
if (!this._isCurrent(generation)) return;
|
|
460
463
|
this._lastFetchMs = nowMs;
|
|
461
464
|
try {
|
|
462
|
-
const result = await fetchProvider(cfg);
|
|
465
|
+
const result = await fetchProvider(cfg, signal);
|
|
463
466
|
if (!this._isCurrent(generation)) return;
|
|
464
467
|
const intervals = Array.isArray(result && result.intervals) ? result.intervals : [];
|
|
465
468
|
if (!intervals.length) throw new Error('provider_returned_no_intervals');
|
|
@@ -517,13 +520,33 @@ class TariffProviderModule extends BaseModule {
|
|
|
517
520
|
|
|
518
521
|
await this._setTariffSettings(cfg, generation);
|
|
519
522
|
if (!this._isCurrent(generation)) return;
|
|
520
|
-
if (!this._fetchPromise && (!this._lastFetchMs || nowMs >= this._nextFetchMs
|
|
521
|
-
|
|
522
|
-
|
|
523
|
+
if (!this._fetchPromise && (!this._lastFetchMs || nowMs >= this._nextFetchMs)) {
|
|
524
|
+
// Remote tariff I/O must not hold the local regulation cycle. Keep
|
|
525
|
+
// one bounded request; an empty cache after failure still observes
|
|
526
|
+
// the existing backoff. Configuration changes reset the schedule.
|
|
527
|
+
const abort = new AbortController();
|
|
528
|
+
this._fetchAbort = abort;
|
|
529
|
+
const operation = this._refresh(cfg, nowMs, generation, abort.signal).catch(() => {
|
|
530
|
+
if (this._stopped || this.adapter?._nwShuttingDown) return;
|
|
531
|
+
// A failed publication starts invalidation, which deliberately
|
|
532
|
+
// advances the generation. Keep that failed clearing visible;
|
|
533
|
+
// unrelated completed generations still cannot change status.
|
|
534
|
+
if (!this._isCurrent(generation) && !this._invalidationPending) return;
|
|
535
|
+
// _refresh handles provider failures. A rejected publication or
|
|
536
|
+
// clearing remains fenced and is retried by the next local tick.
|
|
537
|
+
this._lastError = 'TARIFF_STATE_WRITE_FAILED';
|
|
538
|
+
this._invalidationPending = true;
|
|
539
|
+
this._fencePriceReaders();
|
|
540
|
+
this.adapter._tariffProviderSnapshot = { ...this.adapter._tariffProviderSnapshot,
|
|
541
|
+
status: 'error', fresh: false, error: this._lastError };
|
|
542
|
+
this.adapter?.log?.warn?.('[TariffProvider] TARIFF_STATE_WRITE_FAILED');
|
|
543
|
+
}).finally(() => {
|
|
544
|
+
if (this._fetchPromise === operation) {
|
|
545
|
+
this._fetchPromise = null;
|
|
546
|
+
this._fetchAbort = null;
|
|
547
|
+
}
|
|
523
548
|
});
|
|
524
549
|
this._fetchPromise = operation;
|
|
525
|
-
await this._fetchPromise;
|
|
526
|
-
await this._publicationTail;
|
|
527
550
|
return;
|
|
528
551
|
}
|
|
529
552
|
await this._publish(cfg, nowMs, '', generation);
|
|
@@ -533,6 +556,7 @@ class TariffProviderModule extends BaseModule {
|
|
|
533
556
|
stop() {
|
|
534
557
|
this._stopped = true;
|
|
535
558
|
this._generation++;
|
|
559
|
+
this._fetchAbort?.abort();
|
|
536
560
|
this._intervals = [];
|
|
537
561
|
this._lastSuccessMs = 0;
|
|
538
562
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/ems/services/tariff-provider-registry.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:ec084b73b68e40694711b32e56424a073f187912959dfca649d0962bebb19f5f
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/**
|
|
24
24
|
* NexoWatt Quellcode-Erklärung (DE)
|
|
25
25
|
* Aufgabe: Registriert unterstützte Tarifquellen und deren Aufruf-/Normalisierungsschnittstellen.
|
|
26
|
-
* Daten und Wirkung: Optional konfigurierte Provider liefern EUR/kWh-Zeitreihen; Tarifregelung behält ihre vorhandene Frische-/Ausfallbehandlung. HTTPS-Gesamtabrufe einschließlich OAuth, DNS und Antwortkörper sind auf höchstens 5 s, 64 KiB Request und 2 MiB dekodierte Antwort begrenzt. Keine Redirects. Eine fehlerhafte Preiszeile verwirft die gesamte Antwort vor der Übergabe an ioBroker.
|
|
26
|
+
* Daten und Wirkung: Optional konfigurierte Provider liefern EUR/kWh-Zeitreihen; Tarifregelung behält ihre vorhandene Frische-/Ausfallbehandlung. HTTPS-Gesamtabrufe einschließlich OAuth, DNS und Antwortkörper sind auf höchstens 5 s, 64 KiB Request und 2 MiB dekodierte Antwort begrenzt. Keine Redirects. Ein Lebenszyklus-Abbruch beendet den aktiven Transport und entfernt den Abbruchlistener. Eine fehlerhafte Preiszeile verwirft die gesamte Antwort vor der Übergabe an ioBroker.
|
|
27
27
|
* Bei Änderungen: Einheiten, Vorzeichen, Frische und Aufrufer mitprüfen; Netzwerkvertrag mit scripts/verify-cra-tariff.cjs testen. Anbieter-Fehlertexte nicht protokollieren; keine Zugangsdaten in Fehlermeldungen übernehmen. docs:build nach fachlichen Änderungen aktualisieren.
|
|
28
28
|
* Verknüpfungen: docs/quellcode/src-ts/runtime-executables/ems/services/tariff-provider-registry.md
|
|
29
29
|
* Einstieg: docs/QUELLCODE_WEGWEISER_DE.md; Pflege: docs/DOKUMENTATIONSSTANDARD_DE.md
|
|
@@ -535,20 +535,30 @@ const MAX_PROVIDER_TIMEOUT_MS = 5000;
|
|
|
535
535
|
* Fristen bleiben möglich; lange/ungültige Werte erhöhen niemals das Maximum.
|
|
536
536
|
* Nach dem Parsing wird die monotone Frist erneut geprüft. Node.js-Timer sind
|
|
537
537
|
* keine Echtzeitgarantie bei blockiertem Betriebssystem/Event-Loop. */
|
|
538
|
-
function withTimeout(timeoutMs, fn) {
|
|
538
|
+
function withTimeout(timeoutMs, fn, parentSignal) {
|
|
539
539
|
const requested = Number(timeoutMs);
|
|
540
540
|
const budget = Number.isFinite(requested) && requested > 0 ? Math.min(MAX_PROVIDER_TIMEOUT_MS, requested) : MAX_PROVIDER_TIMEOUT_MS;
|
|
541
541
|
const deadline = performance.now() + budget;
|
|
542
542
|
const ctrl = new AbortController();
|
|
543
543
|
let timer;
|
|
544
|
+
let cancel;
|
|
544
545
|
const timeout = new Promise((_resolve, reject) => {
|
|
545
546
|
timer = setTimeout(() => { ctrl.abort(); reject(new Error('provider_timeout')); }, budget);
|
|
547
|
+
cancel = () => { ctrl.abort(); reject(new Error('provider_cancelled')); };
|
|
548
|
+
if (parentSignal?.aborted) cancel();
|
|
549
|
+
else parentSignal?.addEventListener('abort', cancel, { once: true });
|
|
546
550
|
});
|
|
547
|
-
const operation = Promise.resolve().then(() =>
|
|
551
|
+
const operation = Promise.resolve().then(() => {
|
|
552
|
+
if (ctrl.signal.aborted) throw new Error('provider_cancelled');
|
|
553
|
+
return fn(ctrl.signal);
|
|
554
|
+
}).then(result => {
|
|
548
555
|
if (ctrl.signal.aborted || performance.now() >= deadline) { ctrl.abort(); throw new Error('provider_timeout'); }
|
|
549
556
|
return result;
|
|
550
557
|
});
|
|
551
|
-
return Promise.race([operation, timeout]).finally(() =>
|
|
558
|
+
return Promise.race([operation, timeout]).finally(() => {
|
|
559
|
+
clearTimeout(timer);
|
|
560
|
+
parentSignal?.removeEventListener('abort', cancel);
|
|
561
|
+
});
|
|
552
562
|
}
|
|
553
563
|
|
|
554
564
|
/** Jeder externe Tarifabruf verlangt HTTPS mit der Node.js-Standardprüfung des
|
|
@@ -772,7 +782,7 @@ async function fetchOstrom(config = {}, signal) {
|
|
|
772
782
|
/** Öffentlicher Abrufvertrag: erst die gesamte validierte Antwort zurückgeben;
|
|
773
783
|
* nie States schreiben. Alle Fehler sind feste Codes ohne URLs/Token/Antworttext.
|
|
774
784
|
* Tarifmodul und Installer-API fangen diese Rejection bereits asynchron ab. */
|
|
775
|
-
async function fetchProvider(config = {}) {
|
|
785
|
+
async function fetchProvider(config = {}, signal) {
|
|
776
786
|
return withTimeout(config.timeoutMs, async signal => {
|
|
777
787
|
let providerId = String(config.providerId || 'manual-dp');
|
|
778
788
|
if (providerId === 'market-profile') providerId = String(config.sourceId || (config.country === 'NL' ? 'energyzero' : 'entsoe'));
|
|
@@ -783,9 +793,9 @@ async function fetchProvider(config = {}) {
|
|
|
783
793
|
if (providerId === 'ostrom') return fetchOstrom(resolvedConfig, signal);
|
|
784
794
|
if (providerId === 'custom-rest') return fetchCustomRest(resolvedConfig, '', signal);
|
|
785
795
|
throw new Error(providerId === 'manual-dp' ? 'manual_dp_has_no_fetch' : 'unknown_provider');
|
|
786
|
-
}).catch(error => {
|
|
796
|
+
}, signal).catch(error => {
|
|
787
797
|
const message = String(error && error.message || '');
|
|
788
|
-
if (/^(?:provider_(?:timeout|https_required|url_invalid|request_too_large|response_too_large|request_failed|prices_invalid|http_\d{3})|invalid_json_response|tibber_(?:token_missing|graphql_error|invalid_response|no_homes|home_invalid|no_price_info)|energyzero_no_prices|entsoe_(?:token_missing|invalid_response|no_prices)|oauth_(?:credentials_missing|token_invalid)|custom_rest_(?:url_missing|no_prices)|manual_dp_has_no_fetch|unknown_provider)$/.test(message)) throw error;
|
|
798
|
+
if (/^(?:provider_(?:timeout|cancelled|https_required|url_invalid|request_too_large|response_too_large|request_failed|prices_invalid|http_\d{3})|invalid_json_response|tibber_(?:token_missing|graphql_error|invalid_response|no_homes|home_invalid|no_price_info)|energyzero_no_prices|entsoe_(?:token_missing|invalid_response|no_prices)|oauth_(?:credentials_missing|token_invalid)|custom_rest_(?:url_missing|no_prices)|manual_dp_has_no_fetch|unknown_provider)$/.test(message)) throw error;
|
|
789
799
|
throw new Error('provider_request_failed');
|
|
790
800
|
});
|
|
791
801
|
}
|
package/ui/io-package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "nexowatt-ui",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.21",
|
|
5
5
|
"news": {
|
|
6
6
|
"9.0.18": {
|
|
7
7
|
"en": "Automatic supported-device commissioning and explicit EMS/energy-flow roles. Existing mappings and data points are preserved; new control targets require commissioning.",
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2026 NexoWatt. All rights reserved.
|
|
3
|
+
* Confidential and Proprietary.
|
|
4
|
+
* Use, modification or distribution without express written permission is prohibited.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
|
+
*
|
|
9
|
+
* Quelle: src-ts/runtime-executables/lib/influx-config.ts
|
|
10
|
+
* Quell-Hash: sha256:f729bc8db4b96d8a3174ada1e38f6d9efbe1c5dc32a79ce608873348027ffad5
|
|
11
|
+
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
|
+
*
|
|
13
|
+
* Zweck:
|
|
14
|
+
* Diese JavaScript-Datei ist das ausführbare Build-Artefakt für lib/influx-config.js.
|
|
15
|
+
* Die fachliche Bearbeitung erfolgt ab 0.7.131 in der TypeScript-Quelle.
|
|
16
|
+
* Ab 0.7.132 sind doppelte Legacy-JS-Bäume wie .nwcore entfernt.
|
|
17
|
+
*
|
|
18
|
+
* Pflege-Regel:
|
|
19
|
+
* 1. Änderung zuerst in src-ts/runtime-executables/ vornehmen.
|
|
20
|
+
* 2. npm run sync:ts-runtime-executables ausführen.
|
|
21
|
+
* 3. npm run test:runtime-executables prüfen.
|
|
22
|
+
*/
|
|
23
|
+
"use strict";
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.prepareInfluxHistoryChange = prepareInfluxHistoryChange;
|
|
26
|
+
exports.redactInfluxHistoryConfig = redactInfluxHistoryConfig;
|
|
27
|
+
exports.protectInfluxHistoryConfig = protectInfluxHistoryConfig;
|
|
28
|
+
exports.restoreInfluxHistoryConfig = restoreInfluxHistoryConfig;
|
|
29
|
+
/**
|
|
30
|
+
* NexoWatt Quellcode-Erklärung (DE)
|
|
31
|
+
* Aufgabe: Prüft und schützt die direkte InfluxDB-2-Konfiguration bei Speicherung, Abruf und Wiederherstellung.
|
|
32
|
+
* Daten und Wirkung: Validiert feste Felder und Netzadresse, schützt den Token mit vorhandener ioBroker-Kryptografie und blendet Zugangsdaten in öffentlichen Antworten aus.
|
|
33
|
+
* Bei Änderungen: Zielwechsel, leere Tokenfelder, falsche Wiederherstellungsschlüssel und den Erhalt der übrigen Geräte-/EMS-Konfiguration gemeinsam testen.
|
|
34
|
+
*/
|
|
35
|
+
/** Narrow history credential boundary. Runtime uses a plaintext token only in
|
|
36
|
+
* memory. State/backup writes store a purpose-bound encrypted envelope; every
|
|
37
|
+
* browser/export view removes both forms. Unrelated saved settings are preserved. */
|
|
38
|
+
const influx_direct_1 = require("./influx-direct");
|
|
39
|
+
const influx_network_policy_1 = require("./influx-network-policy");
|
|
40
|
+
function record(value) { return !!value && typeof value === 'object' && !Array.isArray(value); }
|
|
41
|
+
function failure(code) { return Object.assign(new Error(code), { code }); }
|
|
42
|
+
function keys(value, allowed) {
|
|
43
|
+
if (Object.keys(value).some(key => !allowed.includes(key)))
|
|
44
|
+
throw failure('EOS_INFLUX_CONFIG_INVALID');
|
|
45
|
+
}
|
|
46
|
+
function cloneRoot(root) {
|
|
47
|
+
if (!record(root))
|
|
48
|
+
return {};
|
|
49
|
+
const history = record(root.history) ? { ...root.history } : undefined;
|
|
50
|
+
if (history && record(history.influxdb2))
|
|
51
|
+
history.influxdb2 = { ...history.influxdb2 };
|
|
52
|
+
return { ...root, ...(history ? { history } : {}) };
|
|
53
|
+
}
|
|
54
|
+
function tokenValue(value) {
|
|
55
|
+
if (typeof value !== 'string' || !value || value.length > 8192 || !/^[!-~]+$/.test(value))
|
|
56
|
+
throw failure('EOS_INFLUX_TOKEN_INVALID');
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
function tokenPresent(config) { return (typeof config.token === 'string' && !!config.token) || record(config.tokenEncrypted); }
|
|
60
|
+
/** Only the dedicated installer API accepts new connection values. Blank token
|
|
61
|
+
* preserves the old value only on the same normalized origin, never another host. */
|
|
62
|
+
function prepareInfluxHistoryChange(previous, incoming) {
|
|
63
|
+
if (!record(incoming))
|
|
64
|
+
throw failure('EOS_INFLUX_CONFIG_INVALID');
|
|
65
|
+
keys(incoming, ['provider', 'instance', 'influxdb2']);
|
|
66
|
+
const oldHistory = record(previous) ? previous : {};
|
|
67
|
+
const provider = incoming.provider === undefined ? (oldHistory.provider ?? 'adapter') : incoming.provider;
|
|
68
|
+
if (provider !== 'adapter' && provider !== 'influxdb2')
|
|
69
|
+
throw failure('EOS_INFLUX_PROVIDER_INVALID');
|
|
70
|
+
if (incoming.instance !== undefined && (typeof incoming.instance !== 'string' ||
|
|
71
|
+
(incoming.instance !== '' && !/^[a-z][a-z0-9_-]{0,63}\.\d{1,6}$/.test(incoming.instance))))
|
|
72
|
+
throw failure('EOS_INFLUX_CONFIG_INVALID');
|
|
73
|
+
const nextHistory = { ...oldHistory, ...(incoming.instance !== undefined ? { instance: incoming.instance } : {}), provider };
|
|
74
|
+
const oldConnection = record(oldHistory.influxdb2) ? oldHistory.influxdb2 : {};
|
|
75
|
+
if (incoming.influxdb2 === undefined && provider === 'adapter')
|
|
76
|
+
return nextHistory;
|
|
77
|
+
if (incoming.influxdb2 !== undefined && !record(incoming.influxdb2))
|
|
78
|
+
throw failure('EOS_INFLUX_CONFIG_INVALID');
|
|
79
|
+
const candidate = record(incoming.influxdb2) ? incoming.influxdb2 : {};
|
|
80
|
+
keys(candidate, ['url', 'organization', 'bucket', 'token', 'caCertificate', 'clearCaCertificate']);
|
|
81
|
+
if ((candidate.url !== undefined && typeof candidate.url !== 'string') ||
|
|
82
|
+
(candidate.organization !== undefined && typeof candidate.organization !== 'string') ||
|
|
83
|
+
(candidate.bucket !== undefined && typeof candidate.bucket !== 'string'))
|
|
84
|
+
throw failure('EOS_INFLUX_CONFIG_INVALID');
|
|
85
|
+
if (candidate.clearCaCertificate !== undefined && typeof candidate.clearCaCertificate !== 'boolean')
|
|
86
|
+
throw failure('EOS_INFLUX_CONFIG_INVALID');
|
|
87
|
+
if (candidate.token !== undefined && typeof candidate.token !== 'string')
|
|
88
|
+
throw failure('EOS_INFLUX_TOKEN_INVALID');
|
|
89
|
+
if (candidate.caCertificate !== undefined && typeof candidate.caCertificate !== 'string')
|
|
90
|
+
throw failure('EOS_INFLUX_CA_INVALID');
|
|
91
|
+
const url = (0, influx_network_policy_1.validateInfluxUrl)(candidate.url ?? oldConnection.url);
|
|
92
|
+
const providedToken = typeof candidate.token === 'string' ? candidate.token.trim() : '';
|
|
93
|
+
if (!providedToken && tokenPresent(oldConnection)) {
|
|
94
|
+
let oldOrigin = '';
|
|
95
|
+
try {
|
|
96
|
+
oldOrigin = (0, influx_network_policy_1.validateInfluxUrl)(oldConnection.url).origin;
|
|
97
|
+
}
|
|
98
|
+
catch { /* Invalid old destination cannot authorize secret reuse. */ }
|
|
99
|
+
if (url.origin !== oldOrigin)
|
|
100
|
+
throw failure('EOS_INFLUX_NEW_DESTINATION_REQUIRES_TOKEN');
|
|
101
|
+
}
|
|
102
|
+
const rawCa = candidate.clearCaCertificate === true ? '' : candidate.caCertificate || oldConnection.caCertificate || '';
|
|
103
|
+
const config = {
|
|
104
|
+
url: url.href,
|
|
105
|
+
organization: candidate.organization ?? oldConnection.organization,
|
|
106
|
+
bucket: candidate.bucket ?? oldConnection.bucket,
|
|
107
|
+
token: tokenValue(providedToken || oldConnection.token),
|
|
108
|
+
...(rawCa ? { caCertificate: rawCa } : {}),
|
|
109
|
+
};
|
|
110
|
+
const result = { ...nextHistory, influxdb2: (0, influx_direct_1.validateInfluxDirectConfig)(config) };
|
|
111
|
+
delete result.credentialError;
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
/** Whole-root view for /config, installer reads and JSON exports; never mutates runtime. */
|
|
115
|
+
function redactInfluxHistoryConfig(root) {
|
|
116
|
+
const copy = cloneRoot(root);
|
|
117
|
+
if (record(copy.history) && record(copy.history.influxdb2)) {
|
|
118
|
+
const connection = copy.history.influxdb2;
|
|
119
|
+
connection.hasToken = tokenPresent(connection);
|
|
120
|
+
connection.hasCaCertificate = typeof connection.caCertificate === 'string' && !!connection.caCertificate;
|
|
121
|
+
delete connection.token;
|
|
122
|
+
delete connection.tokenEncrypted;
|
|
123
|
+
delete connection.caCertificate;
|
|
124
|
+
}
|
|
125
|
+
return copy;
|
|
126
|
+
}
|
|
127
|
+
/** No silent plaintext fallback if ioBroker crypto/system secret is unavailable. */
|
|
128
|
+
function protectInfluxHistoryConfig(root, codec) {
|
|
129
|
+
const copy = cloneRoot(root);
|
|
130
|
+
if (!record(copy.history) || !record(copy.history.influxdb2))
|
|
131
|
+
return copy;
|
|
132
|
+
const connection = copy.history.influxdb2;
|
|
133
|
+
if (copy.history.credentialError) {
|
|
134
|
+
// A failed restore must never re-encrypt a plaintext token inherited from
|
|
135
|
+
// an older merge. Keep its recoverable envelope and quarantine this history.
|
|
136
|
+
delete connection.token;
|
|
137
|
+
return copy;
|
|
138
|
+
}
|
|
139
|
+
if (connection.token === undefined || connection.token === '') {
|
|
140
|
+
delete connection.token;
|
|
141
|
+
return copy;
|
|
142
|
+
}
|
|
143
|
+
const token = tokenValue(connection.token);
|
|
144
|
+
const origin = (0, influx_network_policy_1.validateInfluxUrl)(connection.url).origin;
|
|
145
|
+
const plaintext = JSON.stringify({ purpose: 'nexowatt.history.influxdb2.token.v1', origin, token });
|
|
146
|
+
let encrypted;
|
|
147
|
+
try {
|
|
148
|
+
encrypted = codec.encrypt(plaintext);
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
throw failure('EOS_INFLUX_TOKEN_ENCRYPTION_FAILED');
|
|
152
|
+
}
|
|
153
|
+
if (typeof encrypted !== 'string' || !encrypted || encrypted === plaintext || encrypted === token || encrypted.length > 32768) {
|
|
154
|
+
throw failure('EOS_INFLUX_TOKEN_ENCRYPTION_FAILED');
|
|
155
|
+
}
|
|
156
|
+
connection.tokenEncrypted = { v: 1, encrypted };
|
|
157
|
+
delete connection.token;
|
|
158
|
+
delete connection.hasToken;
|
|
159
|
+
return copy;
|
|
160
|
+
}
|
|
161
|
+
function restoreInfluxHistoryConfig(root, codec) {
|
|
162
|
+
const copy = cloneRoot(root);
|
|
163
|
+
if (!record(copy.history) || !record(copy.history.influxdb2))
|
|
164
|
+
return copy;
|
|
165
|
+
const connection = copy.history.influxdb2;
|
|
166
|
+
if (connection.tokenEncrypted === undefined) {
|
|
167
|
+
if (connection.token !== undefined && connection.token !== '') {
|
|
168
|
+
try {
|
|
169
|
+
(0, influx_network_policy_1.validateInfluxUrl)(connection.url);
|
|
170
|
+
(0, influx_direct_1.validateInfluxDirectConfig)(connection);
|
|
171
|
+
delete copy.history.credentialError;
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
delete connection.token;
|
|
175
|
+
copy.history.credentialError = 'EOS_INFLUX_CONFIG_INVALID';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
return copy;
|
|
179
|
+
}
|
|
180
|
+
const envelope = connection.tokenEncrypted;
|
|
181
|
+
try {
|
|
182
|
+
if (!record(envelope) || envelope.v !== 1 || typeof envelope.encrypted !== 'string' || !envelope.encrypted || envelope.encrypted.length > 32768)
|
|
183
|
+
throw new Error();
|
|
184
|
+
const plaintext = codec.decrypt(envelope.encrypted);
|
|
185
|
+
if (typeof plaintext !== 'string' || plaintext.length > 16384 || plaintext === envelope.encrypted)
|
|
186
|
+
throw new Error();
|
|
187
|
+
const decoded = JSON.parse(plaintext);
|
|
188
|
+
if (!record(decoded) || decoded.purpose !== 'nexowatt.history.influxdb2.token.v1' ||
|
|
189
|
+
decoded.origin !== (0, influx_network_policy_1.validateInfluxUrl)(connection.url).origin)
|
|
190
|
+
throw new Error();
|
|
191
|
+
connection.token = tokenValue(decoded.token);
|
|
192
|
+
(0, influx_direct_1.validateInfluxDirectConfig)(connection);
|
|
193
|
+
delete connection.tokenEncrypted;
|
|
194
|
+
delete connection.hasToken;
|
|
195
|
+
delete copy.history.credentialError;
|
|
196
|
+
}
|
|
197
|
+
catch {
|
|
198
|
+
// A restored database can belong to another ioBroker system secret. Keep
|
|
199
|
+
// every device/EMS setting and the recoverable ciphertext; isolate history.
|
|
200
|
+
delete connection.token;
|
|
201
|
+
copy.history.credentialError = 'EOS_INFLUX_TOKEN_DECRYPTION_FAILED';
|
|
202
|
+
}
|
|
203
|
+
return copy;
|
|
204
|
+
}
|