iobroker.eos-admin 9.0.18 → 9.0.20
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 +8 -9
- package/README.md +7 -3
- package/START_HIER_9.0.19.md +52 -0
- package/START_HIER_9.0.20.md +65 -0
- package/adminWww/.vite/manifest.json +114 -114
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13762 -13761
- package/adminWww/assets/{AdapterUpdateDialog-ByJk9Cxj.js → AdapterUpdateDialog-CRD3XVom.js} +1 -1
- package/adminWww/assets/{Adapters-V2JtEPZX.js → Adapters-Cuf0X0CU.js} +1 -1
- package/adminWww/assets/{ConfigManager-BKcdyJnN.js → ConfigManager-B8ycQt1C.js} +1 -1
- package/adminWww/assets/{Enums-ChbfAWzp.js → Enums-CctVCgZX.js} +1 -1
- package/adminWww/assets/{Fields-DzaVXEvg.js → Fields-onm4DfoO.js} +1 -1
- package/adminWww/assets/{Files-CRpIXj4X.js → Files-OLP3Rwc7.js} +1 -1
- package/adminWww/assets/{Hosts-rOgfd2wo.js → Hosts-C31oqMcW.js} +1 -1
- package/adminWww/assets/{Instances-BxLhJ6Pb.js → Instances-DFdvJ9pa.js} +1 -1
- package/adminWww/assets/{Intro-BOql527d.js → Intro-DvsFJxU0.js} +1 -1
- package/adminWww/assets/{Logs-WUUDY7a4.js → Logs-Zqg2Bqv6.js} +1 -1
- package/adminWww/assets/{Objects-DYaZkCK7.js → Objects-CpWZp6yp.js} +1 -1
- package/adminWww/assets/{Overview-C6hiiPbm.js → Overview-BsKUo298.js} +1 -1
- package/adminWww/assets/{State-AH43l7fG.js → State-D_xwlhhb.js} +1 -1
- package/adminWww/assets/{UsedResources-jhsRMH4X.js → UsedResources-C79N6yZx.js} +1 -1
- package/adminWww/assets/{Users-D9wyLyJ1.js → Users-WgC0O8P0.js} +1 -1
- package/adminWww/assets/{bootstrap-gVLo1K_2.js → bootstrap-BcfBoIoa.js} +3 -3
- package/adminWww/assets/{hostInit-Dt_M-NAC.js → hostInit-B7bBV7cH.js} +1 -1
- package/adminWww/assets/icons/nexowatt-180.png +0 -0
- package/adminWww/assets/{icons-material-DuVW_EUA.js → icons-material-D1JYmRTj.js} +1 -1
- package/adminWww/assets/{index-B1cnPkSO.js → index-DbiuoDjo.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-GvgHjubR.js → installSVGRenderer-BAY-Pzp-.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-6b32b635.js → mf-entry-bootstrap-0-33384c20.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.18.js → remoteEntry-eos-9.0.20.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosCookieNamespace.js +12 -2
- package/build/lib/eosCookieNamespace.js.map +1 -1
- package/build/lib/eosDeviceEmsPlan.js +449 -28
- package/build/lib/eosDeviceEmsPlan.js.map +1 -1
- package/build/lib/eosDeviceEmsService.js +158 -12
- 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/eosModuleHost.js +218 -53
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosStateSubscriptions.js +59 -2
- package/build/lib/eosStateSubscriptions.js.map +1 -1
- package/build/lib/web.js +22 -3
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.19/ALIAS_MESSWERTFRISCHE.md +31 -0
- package/docs/reports/unified-9.0.19/COMMISSIONING_PLAN_REVIEW.md +56 -0
- package/docs/reports/unified-9.0.19/EMS_ABSCHLUSSREVIEW.md +43 -0
- package/docs/reports/unified-9.0.19/EMS_KATEGORIEN_ABDECKUNG.md +66 -0
- package/docs/reports/unified-9.0.19/EMS_VERGLEICH_UND_KOPPLUNG.md +25 -0
- package/docs/reports/unified-9.0.19/EVCS_STATE_OBJECTS.md +47 -0
- package/docs/reports/unified-9.0.19/GERAETE_EMS_EINRICHTUNG.md +100 -0
- package/docs/reports/unified-9.0.19/GERAETE_STARTAUSFALL.md +37 -0
- package/docs/reports/unified-9.0.19/INSTALLER_LIFECYCLE_REVIEW.md +59 -0
- package/docs/reports/unified-9.0.19/LEGACY_REGRESSION_REVIEW.md +42 -0
- package/docs/reports/unified-9.0.19/MODBUS_AUTHORIZATION_READS.md +25 -0
- package/docs/reports/unified-9.0.19/PRUEFBERICHT.md +56 -0
- package/docs/reports/unified-9.0.19/RUNTIME_START_UEBERNAHME.md +33 -0
- package/docs/reports/unified-9.0.19/SMA_RECEIVER_LIFECYCLE.md +42 -0
- package/docs/reports/unified-9.0.19/STATIC_REVIEW_DE.md +11 -0
- package/docs/reports/unified-9.0.19/TARIFF_PRICE_VALUES_REVIEW.md +31 -0
- package/docs/reports/unified-9.0.19/TARIF_VIERTELSTUNDEN_RUNTIME.md +17 -0
- package/docs/reports/unified-9.0.19/UNABHAENGIGER_REVIEW.md +49 -0
- package/docs/reports/unified-9.0.19/raw/INDEX.json +751 -0
- package/docs/reports/unified-9.0.19/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.19/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.19/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.19/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.log +0 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.log +0 -0
- package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-build.log +5 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-host-final.log +70 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-lease-918-before.log +26 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-lease-after.log +9 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-after.log +11 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-before.log +28 -0
- package/docs/reports/unified-9.0.19/raw/devices-incident-web-pipeline.log +22 -0
- package/docs/reports/unified-9.0.19/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.19/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.19/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.log +539 -0
- package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.log +2 -0
- package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-history-http.log +39 -0
- package/docs/reports/unified-9.0.19/raw/legacy-history-http.result.json +15 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.log +30 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.log +2 -0
- package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.log +203 -0
- package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.log +18 -0
- package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.log +16 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.log +6 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.log +2 -0
- package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/legacy-test-loader.cjs +47 -0
- package/docs/reports/unified-9.0.19/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.19/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.19/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/node22-tests-final.log +10719 -0
- package/docs/reports/unified-9.0.19/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.19/raw/node24-tests-final.log +1805 -0
- package/docs/reports/unified-9.0.19/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.19/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.19/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.log +11 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.log +68 -0
- package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.19/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.19/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.19/raw/ui-security-final.result.json +14 -0
- package/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/devices/admin/ems-assignment.d.ts +8 -2
- package/modules/devices/admin/ems-assignment.js +192 -30
- package/modules/devices/admin/host-bridge.js +36 -11
- package/modules/devices/admin/index.html +26 -5
- package/modules/devices/admin/index_m.js +87 -3
- package/modules/devices/admin/style.css +17 -4
- package/modules/devices/checks/emsAssignment.check.js +10 -6
- package/modules/devices/contracts.d.ts +1 -1
- package/modules/devices/index.js +54 -17
- package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
- package/modules/devices/lib/deviceAliasFreshness.js +66 -0
- package/modules/devices/lib/deviceAliasSemantics.js +13 -3
- package/modules/devices/lib/deviceRuntime.js +278 -133
- package/modules/devices/lib/drivers/modbus.js +107 -23
- 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/speedwire.js +42 -22
- package/modules/devices/lib/modbusReadEvidence.js +29 -0
- package/modules/devices/test/deviceAliasFreshness.test.js +154 -0
- package/modules/devices/test/emsAssignmentUi.test.js +119 -11
- package/modules/devices/test/modbusAuthorizationReads.test.js +112 -0
- package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
- package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
- package/modules/devices/test/runtimeLiveness.test.js +1 -1
- package/modules/devices/test/serialOperationGate.test.js +3 -3
- package/modules/devices/test/solaxReadbackContext.test.js +472 -0
- package/modules/devices/test/speedwireLifecycle.test.js +118 -0
- package/modules/devices/tsconfig.alias-semantics.json +1 -1
- package/modules/devices/tsconfig.hosted.json +1 -1
- package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
- package/package.json +11 -7
- package/release-manifests/unified/build-environment.cdx.json +1483 -7370
- package/release-manifests/unified/files.json +758 -185
- package/release-manifests/unified/frontend.cdx.json +2688 -5952
- package/release-manifests/unified/installer.cdx.json +2053 -821
- package/release-manifests/unified/obsolete-admin-assets.json +170 -6
- package/release-manifests/unified/runtime.cdx.json +40 -3283
- 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 +26 -26
- package/ui/ems/engine.js +54 -7
- package/ui/ems/module-manager.js +44 -21
- package/ui/ems/modules/core-limits.js +5 -3
- package/ui/ems/modules/energy-wallet.js +38 -33
- package/ui/ems/modules/storage-control.js +64 -22
- package/ui/ems/modules/tarif-vis.js +36 -24
- package/ui/ems/modules/tariff-provider.js +28 -6
- package/ui/ems/services/tariff-provider-registry.js +11 -8
- package/ui/io-package.json +1 -1
- package/ui/lib/customer-tariff.js +5 -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/installer-lifecycle.js +134 -1
- package/ui/lib/storage-farm-overview.js +115 -0
- package/ui/lib/tariff-price.js +115 -0
- package/ui/lib/ui-access-policy.js +2 -2
- package/ui/main.js +743 -264
- package/ui/package.json +18 -6
- package/ui/www/app.js +195 -334
- package/ui/www/ems-apps.html +4 -1
- package/ui/www/ems-apps.js +21 -2
- package/ui/www/energy-ledger.html +1 -1
- 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/licenses/smarthome-markdown-components.json +156 -156
- 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 +2 -2
- package/ui/www/power-measurements.js +62 -0
- package/ui/www/settings.html +4 -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 +32 -0
- package/ui/www/storagefarm-summary.js +136 -0
- package/ui/www/storagefarm.html +31 -2
- package/ui/www/storagefarm.js +14 -44
- package/ui/www/tariff-display.js +161 -0
- package/ui/www/tariff-report.js +43 -25
- package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
|
@@ -29,6 +29,8 @@ const { MbusDriver } = require('./drivers/mbus');
|
|
|
29
29
|
const { KostalTcpDriver } = require('./drivers/kostalTcp');
|
|
30
30
|
const { KostalRs485Driver } = require('./drivers/kostalRs485');
|
|
31
31
|
const { TaCmiDriver } = require('./drivers/taCmi');
|
|
32
|
+
const { isEnergyFreshnessClass, isEnergyFreshnessAlias, captureAliasSources, hasNewAliasSample } = require('./deviceAliasFreshness');
|
|
33
|
+
const { hasSameReadResponse } = require('./modbusReadEvidence');
|
|
32
34
|
|
|
33
35
|
const ABL_EMH1_LIVE_ALIAS_PATHS = new Set([
|
|
34
36
|
'r.currentL1',
|
|
@@ -47,10 +49,10 @@ const ABL_EMH1_LIVE_ALIAS_PATHS = new Set([
|
|
|
47
49
|
// suppresses identical writes, which can make an upstream load-management
|
|
48
50
|
// failsafe classify a healthy charger as stale.
|
|
49
51
|
//
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
// aliases remain change-only to
|
|
52
|
+
// EV charger feedback keeps its established refresh policy below. Operational
|
|
53
|
+
// meter/storage/PV aliases use deviceAliasFreshness as well, with exact sampled
|
|
54
|
+
// source evidence for polled, Speedwire and MQTT data. Static metadata, energy
|
|
55
|
+
// counters and command aliases remain change-only to bound state/history traffic.
|
|
54
56
|
const EV_CHARGER_FRESHNESS_ALIAS_PATHS = new Set([
|
|
55
57
|
'comm.connected',
|
|
56
58
|
'alarm.offline',
|
|
@@ -94,6 +96,13 @@ class DeviceRuntime {
|
|
|
94
96
|
// These are created under: devices.<id>.aliases.*
|
|
95
97
|
this.aliasByStateRelId = new Map(); // relId -> aliasDef
|
|
96
98
|
this.aliasDefs = []; // list of aliasDef
|
|
99
|
+
// Mode-dependent device readbacks never use command acknowledgements or
|
|
100
|
+
// cached mode objects as evidence. No additional polling or timer is needed.
|
|
101
|
+
this._qualifiedAliasSamples = new Map();
|
|
102
|
+
this._qualifiedAliasGeneration = 0;
|
|
103
|
+
this._qualifiedAliasPendingWrites = new Set();
|
|
104
|
+
this._qualifiedAliasMaxAgeMs = Math.max(1000,
|
|
105
|
+
(Number(this.template?.driverHints?.polling?.slowIntervalMs) || 5000) + 10000);
|
|
97
106
|
|
|
98
107
|
// Alias Contract v1: versioned, manufacturer-independent interface for the
|
|
99
108
|
// NexoWatt UI and future integration adapters. Legacy aliases remain available.
|
|
@@ -110,6 +119,9 @@ class DeviceRuntime {
|
|
|
110
119
|
this.driver = null;
|
|
111
120
|
this.pollTimer = null;
|
|
112
121
|
this._pollLoopActive = false;
|
|
122
|
+
this._lifecycleGeneration = 0;
|
|
123
|
+
/** @type {Promise<void> | null} */
|
|
124
|
+
this._initialPollPromise = null;
|
|
113
125
|
|
|
114
126
|
// Stop optional write loop and clear queued writes
|
|
115
127
|
try {
|
|
@@ -190,6 +202,7 @@ class DeviceRuntime {
|
|
|
190
202
|
this._writeThrottleMs = 0;
|
|
191
203
|
this._writeQueueMaxPerTick = 1;
|
|
192
204
|
this._writeQueue = new Map(); // dpId -> { dp, deviceValue, ackByRelId, attempts, isPreWrite, preWriteTriggerDpId }
|
|
205
|
+
this._lastSuccessfulQueuedValueByDpId = new Map();
|
|
193
206
|
this._writeLoopActive = false;
|
|
194
207
|
this._writeTimer = null;
|
|
195
208
|
this._writeLoopBusy = false;
|
|
@@ -219,7 +232,7 @@ class DeviceRuntime {
|
|
|
219
232
|
this._hbLastSourceStamp = 0;
|
|
220
233
|
|
|
221
234
|
// Cache last adapter-written values per state. This avoids flooding ioBroker with
|
|
222
|
-
// unchanged setState() calls on every poll cycle.
|
|
235
|
+
// unchanged setState() calls on every poll cycle. Operational energy/EV
|
|
223
236
|
// aliases can opt into a bounded periodic refresh so their ioBroker timestamp
|
|
224
237
|
// proves that a new device snapshot was actually received.
|
|
225
238
|
this._stateCache = new Map(); // relId -> { val, ack, writtenAt }
|
|
@@ -689,7 +702,7 @@ class DeviceRuntime {
|
|
|
689
702
|
}
|
|
690
703
|
|
|
691
704
|
_computeLiveAliasRefreshMs({ fastIntervalMs, isEventDriven } = {}) {
|
|
692
|
-
if (this.aliasDeviceClass !== 'evCharger') return 0;
|
|
705
|
+
if (this.aliasDeviceClass !== 'evCharger' && !isEnergyFreshnessClass(this.aliasDeviceClass)) return 0;
|
|
693
706
|
|
|
694
707
|
const candidates = [
|
|
695
708
|
this.cfg && this.cfg.liveStatusRefreshMs,
|
|
@@ -730,11 +743,24 @@ class DeviceRuntime {
|
|
|
730
743
|
return !!path && EV_CHARGER_FRESHNESS_ALIAS_PATHS.has(path);
|
|
731
744
|
}
|
|
732
745
|
|
|
733
|
-
_liveAliasRefreshOptions(relId, values, ctx) {
|
|
746
|
+
_liveAliasRefreshOptions(relId, values, ctx, sourceIds = []) {
|
|
734
747
|
if (!(this._liveAliasRefreshMs > 0)) return undefined;
|
|
735
|
-
|
|
736
|
-
if (
|
|
748
|
+
const energyAlias = isEnergyFreshnessAlias(this.aliasDeviceClass, legacyAliasPath(relId));
|
|
749
|
+
if (!this._isEvChargerFreshnessAlias(relId) && !energyAlias) return undefined;
|
|
750
|
+
if (ctx && (ctx.connected === false || ctx.diagnosticsOnly === true)) return undefined;
|
|
737
751
|
if (!values || typeof values !== 'object' || Object.keys(values).length === 0) return undefined;
|
|
752
|
+
if (energyAlias) {
|
|
753
|
+
const path = legacyAliasPath(relId);
|
|
754
|
+
const connectionAlias = path === 'comm.connected' || path === 'alarm.offline';
|
|
755
|
+
if (!hasNewAliasSample({
|
|
756
|
+
protocol: String(this.cfg.protocol || '').toLowerCase(),
|
|
757
|
+
sourceIds: connectionAlias ? Object.keys(values) : sourceIds,
|
|
758
|
+
values,
|
|
759
|
+
lastWriteMs: Number(this._stateCache.get(String(relId))?.writtenAt) || 0,
|
|
760
|
+
sampleTimestamp: Number(this.driver?.lastSeen),
|
|
761
|
+
sourceTimestamps: this.driver?.updatedAtByDpId,
|
|
762
|
+
})) return undefined;
|
|
763
|
+
}
|
|
738
764
|
return { refreshAfterMs: this._liveAliasRefreshMs };
|
|
739
765
|
}
|
|
740
766
|
|
|
@@ -995,10 +1021,10 @@ class DeviceRuntime {
|
|
|
995
1021
|
await this._setStateCached(relId, this._hbLastSeen || now, true);
|
|
996
1022
|
}
|
|
997
1023
|
|
|
998
|
-
// Keep the online state timestamp fresh for EV
|
|
1024
|
+
// Keep the online state timestamp fresh for live energy/EV devices as an additional
|
|
999
1025
|
// liveness signal. This is still tied to real incoming data; no timer fabricates
|
|
1000
1026
|
// freshness while communication is down.
|
|
1001
|
-
if (this.
|
|
1027
|
+
if (this._liveAliasRefreshMs > 0) {
|
|
1002
1028
|
for (const relId of this._hbRelIds('online')) {
|
|
1003
1029
|
await this._setStateCached(relId, true, true, { refreshAfterMs: this._liveAliasRefreshMs });
|
|
1004
1030
|
}
|
|
@@ -4927,12 +4953,12 @@ class DeviceRuntime {
|
|
|
4927
4953
|
const asBool = (typeof v === 'boolean') ? v : (Number.isFinite(Number(v)) ? Number(v) !== 0 : undefined);
|
|
4928
4954
|
if (asBool === false) return stopCurrentA;
|
|
4929
4955
|
if (asBool === true) {
|
|
4930
|
-
// For
|
|
4956
|
+
// For MENNEKES the release switch must not overwrite an already commanded
|
|
4931
4957
|
// dynamic current limit. Min+PV/PV modes often write 6 A first and then
|
|
4932
4958
|
// set run=true; returning a hard-coded 16 A here would cancel that 6 A
|
|
4933
4959
|
// command. Reuse the latest desired current if present, otherwise fall
|
|
4934
4960
|
// back to the configured release current.
|
|
4935
|
-
const key = String(
|
|
4961
|
+
const key = String(currentLimitDp.id);
|
|
4936
4962
|
const lastCmd = this._lastCommandedValueByDpId && this._lastCommandedValueByDpId.has(key)
|
|
4937
4963
|
? Number(this._lastCommandedValueByDpId.get(key))
|
|
4938
4964
|
: NaN;
|
|
@@ -6431,6 +6457,7 @@ class DeviceRuntime {
|
|
|
6431
6457
|
}
|
|
6432
6458
|
|
|
6433
6459
|
async _updateAliases(values, ctx) {
|
|
6460
|
+
const readContextGeneration = this._qualifiedAliasGeneration;
|
|
6434
6461
|
await this._updateVartaTableCapabilities(values).catch(error => {
|
|
6435
6462
|
this.adapter.log.debug(`[${this.cfg.id}] VARTA table capability metadata update failed: ${error && error.message ? error.message : error}`);
|
|
6436
6463
|
});
|
|
@@ -6463,12 +6490,42 @@ class DeviceRuntime {
|
|
|
6463
6490
|
);
|
|
6464
6491
|
continue;
|
|
6465
6492
|
}
|
|
6466
|
-
if (connectionOnlyUpdate && !isConnectionAlias(def.relId)) continue;
|
|
6493
|
+
if (connectionOnlyUpdate && !isConnectionAlias(def.relId) && !def.requiredReadContext) continue;
|
|
6467
6494
|
// DEPower command memory is filled when a request is queued. Polling must
|
|
6468
6495
|
// never turn an unsent/rejected request into a successful acknowledgement.
|
|
6469
6496
|
if (this.template?.driverHints?.oemModbusV1003 && def.commandOnlyAlias === true) continue;
|
|
6470
6497
|
|
|
6471
6498
|
let outVal;
|
|
6499
|
+
let sampleSourceIds = [];
|
|
6500
|
+
|
|
6501
|
+
if (def.requiredReadContext) {
|
|
6502
|
+
if (readContextGeneration !== this._qualifiedAliasGeneration) continue;
|
|
6503
|
+
const requirement = def.requiredReadContext;
|
|
6504
|
+
const hasTarget = Object.prototype.hasOwnProperty.call(v, def.dpId);
|
|
6505
|
+
const hasContext = Object.prototype.hasOwnProperty.call(v, requirement.dpId);
|
|
6506
|
+
const previousSampleAt = this._qualifiedAliasSamples.get(def.relId);
|
|
6507
|
+
const now = Date.now();
|
|
6508
|
+
const freshPair = c.connected !== false && c.diagnosticsOnly !== true &&
|
|
6509
|
+
String(this.cfg.protocol || '').startsWith('modbus') && hasTarget && hasContext &&
|
|
6510
|
+
hasSameReadResponse(v, def.dpId, requirement.dpId) &&
|
|
6511
|
+
typeof v[def.dpId] === 'number' && Number.isFinite(v[def.dpId]) &&
|
|
6512
|
+
typeof v[requirement.dpId] === 'number' && v[requirement.dpId] === requirement.value;
|
|
6513
|
+
if (freshPair) {
|
|
6514
|
+
this._qualifiedAliasSamples.set(def.relId, now);
|
|
6515
|
+
sampleSourceIds.push(requirement.dpId);
|
|
6516
|
+
} else {
|
|
6517
|
+
const incompletePair = (hasTarget || hasContext) && c.diagnosticsOnly !== true;
|
|
6518
|
+
const expired = previousSampleAt === undefined || now < previousSampleAt ||
|
|
6519
|
+
now - previousSampleAt > this._qualifiedAliasMaxAgeMs;
|
|
6520
|
+
if (c.connected === false || incompletePair || expired) {
|
|
6521
|
+
this._qualifiedAliasSamples.delete(def.relId);
|
|
6522
|
+
await this._setQualifiedAliasValue(def.relId, null, readContextGeneration);
|
|
6523
|
+
}
|
|
6524
|
+
// An unrelated fast poll keeps the previous timestamp until expiry;
|
|
6525
|
+
// it never lends fresh evidence to the last slow mode/target pair.
|
|
6526
|
+
continue;
|
|
6527
|
+
}
|
|
6528
|
+
}
|
|
6472
6529
|
|
|
6473
6530
|
if (def.kind === 'dp') {
|
|
6474
6531
|
if (!def.dpId) continue;
|
|
@@ -6491,6 +6548,7 @@ class DeviceRuntime {
|
|
|
6491
6548
|
continue;
|
|
6492
6549
|
}
|
|
6493
6550
|
raw = v[def.dpId];
|
|
6551
|
+
sampleSourceIds.push(def.dpId);
|
|
6494
6552
|
}
|
|
6495
6553
|
|
|
6496
6554
|
if (typeof def.fromDevice === 'function') {
|
|
@@ -6502,7 +6560,13 @@ class DeviceRuntime {
|
|
|
6502
6560
|
} else if (def.kind === 'computed') {
|
|
6503
6561
|
if (typeof def.get !== 'function') continue;
|
|
6504
6562
|
try {
|
|
6505
|
-
|
|
6563
|
+
if (isEnergyFreshnessAlias(this.aliasDeviceClass, legacyAliasPath(def.relId))) {
|
|
6564
|
+
const observed = captureAliasSources(v, snapshot => def.get(snapshot, c));
|
|
6565
|
+
outVal = observed.value;
|
|
6566
|
+
sampleSourceIds = observed.sourceIds;
|
|
6567
|
+
} else {
|
|
6568
|
+
outVal = def.get(v, c);
|
|
6569
|
+
}
|
|
6506
6570
|
} catch (e) {
|
|
6507
6571
|
// Never let one broken computed alias kill the device update loop
|
|
6508
6572
|
if (!this._aliasErrTs) this._aliasErrTs = {};
|
|
@@ -6520,22 +6584,41 @@ class DeviceRuntime {
|
|
|
6520
6584
|
continue;
|
|
6521
6585
|
}
|
|
6522
6586
|
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
outVal,
|
|
6526
|
-
|
|
6527
|
-
this.
|
|
6528
|
-
|
|
6587
|
+
const refreshOptions = this._liveAliasRefreshOptions(def.relId, v, c, sampleSourceIds);
|
|
6588
|
+
if (def.requiredReadContext) {
|
|
6589
|
+
await this._setQualifiedAliasValue(def.relId, outVal, readContextGeneration, refreshOptions);
|
|
6590
|
+
} else {
|
|
6591
|
+
await this._setStateCached(def.relId, outVal, true, refreshOptions);
|
|
6592
|
+
}
|
|
6529
6593
|
}
|
|
6530
6594
|
}
|
|
6531
6595
|
|
|
6596
|
+
async _invalidateQualifiedAliases() {
|
|
6597
|
+
const generation = ++this._qualifiedAliasGeneration;
|
|
6598
|
+
this._qualifiedAliasSamples.clear();
|
|
6599
|
+
// A confirmed stop must finish after an already submitted readback write;
|
|
6600
|
+
// otherwise its late completion could resurrect evidence from the old poll.
|
|
6601
|
+
await Promise.all([...this._qualifiedAliasPendingWrites]);
|
|
6602
|
+
if (generation !== this._qualifiedAliasGeneration) return;
|
|
6603
|
+
for (const def of this.aliasDefs || []) {
|
|
6604
|
+
if (def.requiredReadContext) await this._setStateCached(def.relId, null, true);
|
|
6605
|
+
}
|
|
6606
|
+
}
|
|
6607
|
+
|
|
6608
|
+
async _setQualifiedAliasValue(relId, value, generation, options = undefined) {
|
|
6609
|
+
if (generation !== this._qualifiedAliasGeneration) return;
|
|
6610
|
+
const pending = this._setStateCached(relId, value, true, options);
|
|
6611
|
+
this._qualifiedAliasPendingWrites.add(pending);
|
|
6612
|
+
try { await pending; } finally { this._qualifiedAliasPendingWrites.delete(pending); }
|
|
6613
|
+
}
|
|
6614
|
+
|
|
6532
6615
|
async _handleMqttSnapshot(values, meta) {
|
|
6533
6616
|
const context = meta || {};
|
|
6534
6617
|
if (context.diagnosticsOnly === true) {
|
|
6535
6618
|
// Metadata and error envelopes can change aliases without proving live
|
|
6536
6619
|
// telemetry. Preserve transport errors and the existing heartbeat state.
|
|
6537
6620
|
const lastError = String(this._stateCache.get(`${this.baseId}.info.lastError`)?.val || '');
|
|
6538
|
-
await this._updateAliases(values || {}, { connected: this._hbOnline === true, lastError }).catch(() => {});
|
|
6621
|
+
await this._updateAliases(values || {}, { connected: this._hbOnline === true, lastError, diagnosticsOnly: true }).catch(() => {});
|
|
6539
6622
|
return;
|
|
6540
6623
|
}
|
|
6541
6624
|
const connected = context.connected !== false;
|
|
@@ -6636,16 +6719,34 @@ class DeviceRuntime {
|
|
|
6636
6719
|
throw new Error(`Unsupported protocol: ${proto}`);
|
|
6637
6720
|
}
|
|
6638
6721
|
|
|
6639
|
-
|
|
6722
|
+
/** @param {{backgroundInitialPoll?: boolean}} [options] */
|
|
6723
|
+
async start({ backgroundInitialPoll = false } = {}) {
|
|
6640
6724
|
if (this.started) return;
|
|
6641
6725
|
this.started = true;
|
|
6726
|
+
const lifecycleGeneration = ++this._lifecycleGeneration;
|
|
6642
6727
|
|
|
6643
6728
|
if (this.cfg.enabled === false) {
|
|
6729
|
+
await this._invalidateQualifiedAliases();
|
|
6644
6730
|
this.adapter.log.info(`[${this.cfg.id}] disabled - skipping`);
|
|
6645
6731
|
return;
|
|
6646
6732
|
}
|
|
6647
6733
|
|
|
6648
6734
|
this.driver = this._createDriver();
|
|
6735
|
+
const startupDriver = this.driver;
|
|
6736
|
+
const current = () => this.started && this._lifecycleGeneration === lifecycleGeneration && this.driver === startupDriver;
|
|
6737
|
+
await this._invalidateQualifiedAliases();
|
|
6738
|
+
if (!current()) return;
|
|
6739
|
+
/** @param {() => Promise<void>} operation */
|
|
6740
|
+
const runInitial = async operation => {
|
|
6741
|
+
if (!backgroundInitialPoll) { await operation(); return; }
|
|
6742
|
+
// Hosted metadata readiness is independent of the first network response.
|
|
6743
|
+
// Retain the original promise so stop can cancel the transport and drain it.
|
|
6744
|
+
const pending = Promise.resolve().then(operation).catch(() => {
|
|
6745
|
+
if (current()) this.adapter.log.warn(`[${this.cfg.id}] EOS_DEVICES_INITIAL_POLL_FAILED; inspect device connection status`);
|
|
6746
|
+
});
|
|
6747
|
+
this._initialPollPromise = pending;
|
|
6748
|
+
void pending.then(() => { if (this._initialPollPromise === pending) this._initialPollPromise = null; });
|
|
6749
|
+
};
|
|
6649
6750
|
|
|
6650
6751
|
// Heartbeat session init: start "offline" until we receive *real* data.
|
|
6651
6752
|
// (We still keep the counter monotonic across restarts.)
|
|
@@ -6657,6 +6758,7 @@ class DeviceRuntime {
|
|
|
6657
6758
|
await this._setStateCached(this._hbRelId('online'), false, true);
|
|
6658
6759
|
await this._setStateCached(this._hbRelId('lastSeenMs'), 0, true);
|
|
6659
6760
|
await this._resetAblEmh1LiveMeasurements();
|
|
6761
|
+
if (!current()) return;
|
|
6660
6762
|
|
|
6661
6763
|
// Event-driven protocols (no polling)
|
|
6662
6764
|
if (this.cfg.protocol === 'mqtt' || this.cfg.protocol === 'canbus') {
|
|
@@ -6667,15 +6769,18 @@ class DeviceRuntime {
|
|
|
6667
6769
|
await this._setStateCached(`${this.baseId}.info.connection`, false, true);
|
|
6668
6770
|
await this._setStateCached(`${this.baseId}.info.lastError`, '', true);
|
|
6669
6771
|
await this._updateAliases({}, { connected: false, lastError: '' }).catch(() => {});
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6772
|
+
await runInitial(async () => {
|
|
6773
|
+
if (!current()) return;
|
|
6774
|
+
try {
|
|
6775
|
+
await startupDriver.connect(this.getDatapoints());
|
|
6776
|
+
} catch (e) {
|
|
6777
|
+
if (current()) await this._setError(e);
|
|
6778
|
+
}
|
|
6779
|
+
if (!current()) return;
|
|
6780
|
+
// Heartbeat timeout for push protocols
|
|
6781
|
+
this._hbTimeoutMs = this._computeHeartbeatTimeoutMs({ isEventDriven: true });
|
|
6782
|
+
this._startHeartbeatChecker();
|
|
6783
|
+
});
|
|
6679
6784
|
|
|
6680
6785
|
// Both event-driven drivers own their actual transport status; heartbeat
|
|
6681
6786
|
// remains tied to received device data.
|
|
@@ -6727,6 +6832,14 @@ class DeviceRuntime {
|
|
|
6727
6832
|
|
|
6728
6833
|
if (tplPolling && Array.isArray(tplPolling.fastDpIds) && tplPolling.fastDpIds.length) {
|
|
6729
6834
|
const idSet = new Set(tplPolling.fastDpIds.map(x => String(x)));
|
|
6835
|
+
// BMS numeric limits are live control inputs, not static metadata. Keep
|
|
6836
|
+
// their already mapped read sources on the existing fast schedule only.
|
|
6837
|
+
for (const def of this.aliasDefs || []) {
|
|
6838
|
+
if (def.kind === 'dp' && def.rw === 'ro' && def.dpId &&
|
|
6839
|
+
['r.allowedChargePower', 'r.allowedDischargePower'].includes(legacyAliasPath(def.relId))) {
|
|
6840
|
+
idSet.add(String(def.dpId));
|
|
6841
|
+
}
|
|
6842
|
+
}
|
|
6730
6843
|
fastDps = allDps.filter(dp => dp && idSet.has(String(dp.id)));
|
|
6731
6844
|
useSplitPolling = (fastDps.length > 0) && (slowIntervalMs > 0);
|
|
6732
6845
|
}
|
|
@@ -6747,6 +6860,8 @@ class DeviceRuntime {
|
|
|
6747
6860
|
fastIntervalMs = clampInterval(fastIntervalMs);
|
|
6748
6861
|
if (useSplitPolling) slowIntervalMs = clampInterval(slowIntervalMs);
|
|
6749
6862
|
this._liveAliasRefreshMs = this._computeLiveAliasRefreshMs({ fastIntervalMs, isEventDriven: false });
|
|
6863
|
+
this._qualifiedAliasSamples.clear();
|
|
6864
|
+
this._qualifiedAliasMaxAgeMs = (useSplitPolling ? slowIntervalMs : fastIntervalMs) + 10000;
|
|
6750
6865
|
|
|
6751
6866
|
// Heartbeat timeout derived from polling interval (unless overridden).
|
|
6752
6867
|
this._hbTimeoutMs = this._computeHeartbeatTimeoutMs({ fastIntervalMs, isEventDriven: false });
|
|
@@ -6772,6 +6887,7 @@ class DeviceRuntime {
|
|
|
6772
6887
|
|
|
6773
6888
|
// Reset per-start runtime state
|
|
6774
6889
|
this._writeQueue.clear();
|
|
6890
|
+
this._lastSuccessfulQueuedValueByDpId.clear();
|
|
6775
6891
|
this._writeBusy = false;
|
|
6776
6892
|
|
|
6777
6893
|
// Optional: restore last control setpoints on start/reconnect (template hinted).
|
|
@@ -6802,11 +6918,12 @@ class DeviceRuntime {
|
|
|
6802
6918
|
|
|
6803
6919
|
|
|
6804
6920
|
const doPoll = async (dps) => {
|
|
6805
|
-
if (!
|
|
6921
|
+
if (!current()) return;
|
|
6806
6922
|
const pollDps = Array.isArray(dps) ? dps : allDps;
|
|
6807
6923
|
try {
|
|
6808
6924
|
const wasOk = this._connOk;
|
|
6809
|
-
const values = await
|
|
6925
|
+
const values = await startupDriver.readDatapoints(pollDps);
|
|
6926
|
+
if (!current()) return;
|
|
6810
6927
|
const hasData = values && typeof values === 'object' && Object.entries(values).some(([id, value]) =>
|
|
6811
6928
|
this.dpById.has(id) && value !== null && value !== undefined &&
|
|
6812
6929
|
(typeof value !== 'number' || Number.isFinite(value))
|
|
@@ -6843,6 +6960,7 @@ class DeviceRuntime {
|
|
|
6843
6960
|
}
|
|
6844
6961
|
|
|
6845
6962
|
for (const [dpId, rawVal] of Object.entries(values)) {
|
|
6963
|
+
if (!current()) return;
|
|
6846
6964
|
const dp = this.dpById.get(dpId);
|
|
6847
6965
|
if (!dp) continue;
|
|
6848
6966
|
|
|
@@ -6866,9 +6984,9 @@ class DeviceRuntime {
|
|
|
6866
6984
|
await this._setStateCached(relId, val, true);
|
|
6867
6985
|
}
|
|
6868
6986
|
|
|
6869
|
-
await this._updateAliases(values, { connected: true, lastError: '' });
|
|
6987
|
+
if (current()) await this._updateAliases(values, { connected: true, lastError: '' });
|
|
6870
6988
|
} catch (e) {
|
|
6871
|
-
await this._setError(e);
|
|
6989
|
+
if (current()) await this._setError(e);
|
|
6872
6990
|
}
|
|
6873
6991
|
};
|
|
6874
6992
|
|
|
@@ -6876,117 +6994,138 @@ class DeviceRuntime {
|
|
|
6876
6994
|
// Some devices close the Modbus session on optional/unsupported registers; templates can
|
|
6877
6995
|
// start with the fast set first so core data comes online immediately.
|
|
6878
6996
|
const initialFastOnly = !!(tplPolling && (tplPolling.initialFastOnly === true || String(tplPolling.initialFastOnly).toLowerCase() === 'true'));
|
|
6879
|
-
|
|
6997
|
+
const initializePolling = async () => {
|
|
6998
|
+
await doPoll(initialFastOnly ? fastDps : slowDps);
|
|
6999
|
+
if (!current()) return;
|
|
6880
7000
|
|
|
6881
|
-
|
|
6882
|
-
|
|
7001
|
+
// Self-scheduling poll loop (prevents overlaps/backlog and keeps cadence stable).
|
|
7002
|
+
this._pollLoopActive = true;
|
|
6883
7003
|
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
7004
|
+
const self = this;
|
|
7005
|
+
let nextFastAt = Date.now() + fastIntervalMs;
|
|
7006
|
+
let nextSlowAt = useSplitPolling ? (Date.now() + slowIntervalMs) : Number.POSITIVE_INFINITY;
|
|
6887
7007
|
|
|
6888
|
-
|
|
7008
|
+
let loopFn = null;
|
|
6889
7009
|
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
}
|
|
6901
|
-
|
|
6902
|
-
async function pollLoop() {
|
|
6903
|
-
if (!self._pollLoopActive || !self.driver) return;
|
|
6904
|
-
|
|
6905
|
-
const cycleStartedAt = Date.now();
|
|
6906
|
-
const now = cycleStartedAt;
|
|
6907
|
-
const runSlow = useSplitPolling && now >= nextSlowAt;
|
|
6908
|
-
|
|
6909
|
-
// Default profiles schedule from completion to avoid catch-up loops. Fast closed-loop
|
|
6910
|
-
// profiles may opt into a fixed start-to-start cadence. If a poll overruns its target,
|
|
6911
|
-
// the self-scheduling loop still never overlaps; it simply continues as soon as safe.
|
|
6912
|
-
if (runSlow) {
|
|
6913
|
-
await doPoll(slowDps);
|
|
6914
|
-
} else {
|
|
6915
|
-
await doPoll(fastDps);
|
|
6916
|
-
}
|
|
6917
|
-
|
|
6918
|
-
const finishedAt = Date.now();
|
|
6919
|
-
const nextFastBaseAt = fixedFastCadence ? cycleStartedAt : finishedAt;
|
|
6920
|
-
if (runSlow) {
|
|
6921
|
-
nextSlowAt = finishedAt + slowIntervalMs;
|
|
6922
|
-
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
6923
|
-
} else {
|
|
6924
|
-
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
7010
|
+
function scheduleNext(delay) {
|
|
7011
|
+
if (!current() || !self._pollLoopActive) return;
|
|
7012
|
+
const d = Math.max(0, Number(delay) || 0);
|
|
7013
|
+
if (self.pollTimer) {
|
|
7014
|
+
clearTimeout(self.pollTimer);
|
|
7015
|
+
self.pollTimer = null;
|
|
7016
|
+
}
|
|
7017
|
+
self.pollTimer = setTimeout(() => {
|
|
7018
|
+
if (loopFn) loopFn().catch(() => {});
|
|
7019
|
+
}, Math.max(fixedFastCadence ? 25 : 250, d));
|
|
6925
7020
|
}
|
|
6926
7021
|
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
const nextAt = Math.min(nextFastAt, nextSlowAt);
|
|
6930
|
-
scheduleNext(nextAt - Date.now());
|
|
6931
|
-
}
|
|
6932
|
-
|
|
6933
|
-
async function cadenceLoop() {
|
|
6934
|
-
if (!self._pollLoopActive || !self.driver) return;
|
|
6935
|
-
|
|
6936
|
-
const cycleStartedAt = Date.now();
|
|
6937
|
-
const now = cycleStartedAt;
|
|
6938
|
-
const runSlow = useSplitPolling && now >= nextSlowAt;
|
|
6939
|
-
const runFast = now >= nextFastAt;
|
|
7022
|
+
async function pollLoop() {
|
|
7023
|
+
if (!current() || !self._pollLoopActive || !self.driver) return;
|
|
6940
7024
|
|
|
6941
|
-
|
|
7025
|
+
const cycleStartedAt = Date.now();
|
|
7026
|
+
const now = cycleStartedAt;
|
|
7027
|
+
const runSlow = useSplitPolling && now >= nextSlowAt;
|
|
6942
7028
|
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
7029
|
+
// Default profiles schedule from completion to avoid catch-up loops. Fast closed-loop
|
|
7030
|
+
// profiles may opt into a fixed start-to-start cadence. If a poll overruns its target,
|
|
7031
|
+
// the self-scheduling loop still never overlaps; it simply continues as soon as safe.
|
|
7032
|
+
if (runSlow) {
|
|
7033
|
+
await doPoll(slowDps);
|
|
7034
|
+
} else {
|
|
7035
|
+
await doPoll(fastDps);
|
|
6950
7036
|
}
|
|
6951
|
-
|
|
6952
|
-
await doPoll(slowDps);
|
|
6953
|
-
const finishedAt = Date.now();
|
|
6954
|
-
const nextFastBaseAt = fixedFastCadence ? cycleStartedAt : finishedAt;
|
|
6955
|
-
nextSlowAt = finishedAt + slowIntervalMs;
|
|
6956
|
-
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
6957
|
-
} else if (runFast) {
|
|
6958
|
-
await doPoll(fastDps);
|
|
7037
|
+
|
|
6959
7038
|
const finishedAt = Date.now();
|
|
6960
7039
|
const nextFastBaseAt = fixedFastCadence ? cycleStartedAt : finishedAt;
|
|
6961
|
-
|
|
6962
|
-
|
|
7040
|
+
if (runSlow) {
|
|
7041
|
+
nextSlowAt = finishedAt + slowIntervalMs;
|
|
7042
|
+
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
7043
|
+
} else {
|
|
7044
|
+
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
7045
|
+
}
|
|
6963
7046
|
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
7047
|
+
if (!current() || !self._pollLoopActive || !self.driver) return;
|
|
7048
|
+
|
|
7049
|
+
const nextAt = Math.min(nextFastAt, nextSlowAt);
|
|
7050
|
+
scheduleNext(nextAt - Date.now());
|
|
7051
|
+
}
|
|
7052
|
+
|
|
7053
|
+
let writeCyclesSincePoll = 0;
|
|
7054
|
+
async function cadenceLoop() {
|
|
7055
|
+
if (!current() || !self._pollLoopActive || !self.driver) return;
|
|
7056
|
+
|
|
7057
|
+
const cycleStartedAt = Date.now();
|
|
7058
|
+
const now = cycleStartedAt;
|
|
7059
|
+
const runSlow = useSplitPolling && now >= nextSlowAt;
|
|
7060
|
+
const runFast = now >= nextFastAt;
|
|
7061
|
+
|
|
7062
|
+
const hasQueuedWrites = !!(self._writeQueue && self._writeQueue.size > 0);
|
|
7063
|
+
const nextWrite = hasQueuedWrites ? self._pickNextQueuedWrite() : null;
|
|
7064
|
+
const queued = nextWrite && nextWrite[1];
|
|
7065
|
+
// A new zero power/current command gets one extra slot before a due read.
|
|
7066
|
+
// Repeated already-sent zero commands must not keep an offline/freshness
|
|
7067
|
+
// stop loop from obtaining the measurements needed to recover safely.
|
|
7068
|
+
const urgentStop = queued && queued.deviceValue === 0 && !queued.meta?.isPreWrite &&
|
|
7069
|
+
['W', 'kW', 'A'].includes(queued.dp?.unit) &&
|
|
7070
|
+
self._lastSuccessfulQueuedValueByDpId.get(String(queued.dp.id)) !== 0;
|
|
7071
|
+
const readDue = runSlow || runFast;
|
|
7072
|
+
const writeBeforeRead = !readDue || writeCyclesSincePoll === 0 || (urgentStop && writeCyclesSincePoll < 2);
|
|
7073
|
+
|
|
7074
|
+
// Preserve the configured command spacing and the queue's pre-write /
|
|
7075
|
+
// coalescing rules, but bound read starvation when EMS writes every tick.
|
|
7076
|
+
if (hasQueuedWrites && writeBeforeRead) {
|
|
7077
|
+
const maxWrites = Math.max(1, Number(self._writeQueueMaxPerTick || 1));
|
|
7078
|
+
for (let i = 0; i < maxWrites; i++) {
|
|
7079
|
+
await self._flushWriteQueueOnce();
|
|
7080
|
+
if (!self._writeQueue || self._writeQueue.size === 0) break;
|
|
7081
|
+
}
|
|
7082
|
+
writeCyclesSincePoll++;
|
|
7083
|
+
} else if (runSlow) {
|
|
7084
|
+
await doPoll(slowDps);
|
|
7085
|
+
writeCyclesSincePoll = 0;
|
|
7086
|
+
const finishedAt = Date.now();
|
|
7087
|
+
const nextFastBaseAt = fixedFastCadence ? cycleStartedAt : finishedAt;
|
|
7088
|
+
nextSlowAt = finishedAt + slowIntervalMs;
|
|
7089
|
+
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
7090
|
+
} else if (runFast) {
|
|
7091
|
+
await doPoll(fastDps);
|
|
7092
|
+
writeCyclesSincePoll = 0;
|
|
7093
|
+
const finishedAt = Date.now();
|
|
7094
|
+
const nextFastBaseAt = fixedFastCadence ? cycleStartedAt : finishedAt;
|
|
7095
|
+
nextFastAt = Math.max(finishedAt, nextFastBaseAt + fastIntervalMs);
|
|
7096
|
+
}
|
|
6967
7097
|
|
|
6968
|
-
|
|
6969
|
-
|
|
7098
|
+
if (!current() || !self._pollLoopActive || !self.driver) return;
|
|
7099
|
+
scheduleNext(self._commandCadenceMs);
|
|
7100
|
+
}
|
|
6970
7101
|
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
scheduleNext(self._commandCadenceMs);
|
|
6974
|
-
} else {
|
|
6975
|
-
// Start after the fast interval (initial full refresh has already happened).
|
|
6976
|
-
scheduleNext(nextFastAt - Date.now());
|
|
7102
|
+
// Decide which scheduler to use
|
|
7103
|
+
loopFn = self._useCommandCadenceScheduler ? cadenceLoop : pollLoop;
|
|
6977
7104
|
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
7105
|
+
if (self._useCommandCadenceScheduler) {
|
|
7106
|
+
// Tick-based cadence scheduler (e.g., 1000ms) to stay within strict Modbus timing constraints.
|
|
7107
|
+
scheduleNext(self._commandCadenceMs);
|
|
7108
|
+
} else {
|
|
7109
|
+
// Start after the fast interval (initial full refresh has already happened).
|
|
7110
|
+
scheduleNext(nextFastAt - Date.now());
|
|
6981
7111
|
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
7112
|
+
// If writes are throttled via queue and we do not use the cadence scheduler, start the write loop.
|
|
7113
|
+
if (self._writeQueueEnabled) self._startWriteLoop();
|
|
7114
|
+
}
|
|
7115
|
+
|
|
7116
|
+
// Optional template-defined Modbus watchdog auto-writes (e.g., TESVOLT VK interface).
|
|
7117
|
+
await this._startAutoWatchdogs();
|
|
7118
|
+
if (!current()) return;
|
|
7119
|
+
// Seed watchdog/keepalive command memory from persistent command aliases after restarts.
|
|
7120
|
+
await this._seedSetpointKeepaliveFromCommandAliases().catch(e => {
|
|
7121
|
+
this.adapter.log.debug(`[${this.cfg.id}] SetpointKeepalive seed failed: ${e && e.message ? e.message : e}`);
|
|
7122
|
+
});
|
|
7123
|
+
if (!current()) return;
|
|
7124
|
+
await this._startSetpointKeepalive();
|
|
7125
|
+
if (!current()) return;
|
|
7126
|
+
await this._startSungrowExternalEmsHeartbeat();
|
|
7127
|
+
};
|
|
7128
|
+
await runInitial(initializePolling);
|
|
6990
7129
|
}
|
|
6991
7130
|
|
|
6992
7131
|
_isVartaLogicalWriteError(error) {
|
|
@@ -7224,6 +7363,9 @@ class DeviceRuntime {
|
|
|
7224
7363
|
}
|
|
7225
7364
|
|
|
7226
7365
|
async stop() {
|
|
7366
|
+
++this._lifecycleGeneration;
|
|
7367
|
+
this.started = false;
|
|
7368
|
+
const initialPoll = this._initialPollPromise;
|
|
7227
7369
|
this._pollLoopActive = false;
|
|
7228
7370
|
if (this.pollTimer) {
|
|
7229
7371
|
clearTimeout(this.pollTimer);
|
|
@@ -7288,6 +7430,7 @@ class DeviceRuntime {
|
|
|
7288
7430
|
this._hbOnline = false;
|
|
7289
7431
|
|
|
7290
7432
|
// Stop optional write loop and clear queued writes
|
|
7433
|
+
await this._invalidateQualifiedAliases();
|
|
7291
7434
|
try {
|
|
7292
7435
|
this._writeQueueEnabled = false;
|
|
7293
7436
|
this._stopWriteLoop();
|
|
@@ -7300,6 +7443,7 @@ class DeviceRuntime {
|
|
|
7300
7443
|
try { await this.driver.disconnect(); } catch (e) { /* ignore */ }
|
|
7301
7444
|
this.driver = null;
|
|
7302
7445
|
}
|
|
7446
|
+
if (initialPoll) await initialPoll;
|
|
7303
7447
|
this.started = false;
|
|
7304
7448
|
}
|
|
7305
7449
|
|
|
@@ -7633,10 +7777,11 @@ class DeviceRuntime {
|
|
|
7633
7777
|
|
|
7634
7778
|
const result = await this.driver.writeDatapoint(entry.dp, entry.deviceValue);
|
|
7635
7779
|
this._recordWrite(entry.dp.id, { skipPostWriteRepeat: entry.meta?.skipPostWriteRepeat === true });
|
|
7636
|
-
const isCurrent = () => this._writeQueue.get(key) === entry;
|
|
7637
|
-
if (!isCurrent()) return;
|
|
7638
7780
|
const effectiveValue = result && Object.prototype.hasOwnProperty.call(result, 'effectiveValue')
|
|
7639
7781
|
? result.effectiveValue : entry.deviceValue;
|
|
7782
|
+
this._lastSuccessfulQueuedValueByDpId.set(String(entry.dp.id), effectiveValue);
|
|
7783
|
+
const isCurrent = () => this._writeQueue.get(key) === entry;
|
|
7784
|
+
if (!isCurrent()) return;
|
|
7640
7785
|
|
|
7641
7786
|
// Persist last setpoint for restore-on-start/reconnect (best-effort)
|
|
7642
7787
|
await this._persistSetpointValueIfNeeded(entry.dp, effectiveValue).catch(() => {});
|