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
package/ui/www/app.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/app.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:f2f7f5a629acb3fa794938ab6fca2a76d6c03c423e427123135f09f900efe9dc
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -489,7 +489,7 @@ function scheduleRender(force = false){
|
|
|
489
489
|
}, wait);
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
// Kundenanzeige: Messwerte des Energieflussmonitors werden bewusst nur alle
|
|
492
|
+
// Kundenanzeige: Messwerte des Energieflussmonitors werden bewusst nur alle 5 Sekunden
|
|
493
493
|
// neu gerendert. Die Backend-Messung und sämtliche EMS-Regelkreise bleiben unverändert
|
|
494
494
|
// schnell; gedrosselt wird ausschließlich die sichtbare LIVE-Darstellung, damit kurze
|
|
495
495
|
// NVP-/Speicher-Messversätze nicht als hektisches Springen erscheinen.
|
|
@@ -499,7 +499,7 @@ let _lastLiveTelemetryRenderTs = 0;
|
|
|
499
499
|
|
|
500
500
|
/**
|
|
501
501
|
* Code-Teil: scheduleLiveTelemetryRender
|
|
502
|
-
* Zweck: Bündelt häufige SSE-Messwertupdates auf einen festen
|
|
502
|
+
* Zweck: Bündelt häufige SSE-Messwertupdates auf einen festen 5-Sekunden-Anzeigetakt.
|
|
503
503
|
* Zusammenhang: Verändert keine Statewerte und keine Regelung; nur render() im LIVE-Frontend
|
|
504
504
|
* wird verzögert. Initialdaten, Konfigurationsänderungen und bewusste UI-Aktionen dürfen
|
|
505
505
|
* weiterhin sofort gerendert werden.
|
|
@@ -531,6 +531,17 @@ function scheduleLiveTelemetryRender(force = false){
|
|
|
531
531
|
document.addEventListener('visibilitychange', () => {
|
|
532
532
|
if (document.visibilityState === 'visible') scheduleLiveTelemetryRender(true);
|
|
533
533
|
});
|
|
534
|
+
// Auch bei einer offenen, aber stillstehenden SSE-Verbindung müssen Messungen
|
|
535
|
+
// sichtbar altern. Nur die sichtbare LIVE-Seite neu projizieren, ohne Datenabruf.
|
|
536
|
+
function refreshLiveMeasurementAge() {
|
|
537
|
+
if (document.visibilityState === 'visible' && document.getElementById('energyWebSvg')) scheduleLiveTelemetryRender(false);
|
|
538
|
+
}
|
|
539
|
+
let liveMeasurementAgeTimer = setInterval(refreshLiveMeasurementAge, LIVE_TELEMETRY_RENDER_INTERVAL_MS);
|
|
540
|
+
window.addEventListener('pagehide', () => { clearInterval(liveMeasurementAgeTimer); liveMeasurementAgeTimer = null; });
|
|
541
|
+
window.addEventListener('pageshow', () => {
|
|
542
|
+
if (liveMeasurementAgeTimer === null) liveMeasurementAgeTimer = setInterval(refreshLiveMeasurementAge, LIVE_TELEMETRY_RENDER_INTERVAL_MS);
|
|
543
|
+
refreshLiveMeasurementAge();
|
|
544
|
+
});
|
|
534
545
|
/**
|
|
535
546
|
* Code-Teil: formatPower
|
|
536
547
|
* Zweck: Formatiert Daten für Anzeige oder Logs.
|
|
@@ -639,11 +650,7 @@ function formatNum(v, suffix='') {
|
|
|
639
650
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
640
651
|
*/
|
|
641
652
|
function formatPricePerKwh(v){
|
|
642
|
-
|
|
643
|
-
const n = Number(v);
|
|
644
|
-
// assume €/kWh if v < 10, else probably ct/kWh
|
|
645
|
-
if (n < 10) return n.toFixed(3) + ' €/kWh';
|
|
646
|
-
return (n/100).toFixed(2) + ' €/kWh'; // if provided in ct
|
|
653
|
+
return window.NexoWattTariffDisplay.format(v);
|
|
647
654
|
}
|
|
648
655
|
|
|
649
656
|
// ------------------------------
|
|
@@ -661,99 +668,9 @@ function formatPricePerKwh(v){
|
|
|
661
668
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
662
669
|
*/
|
|
663
670
|
function nwParsePriceCurve(raw) {
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
let data = raw;
|
|
667
|
-
if (typeof raw === 'string') {
|
|
668
|
-
const s = raw.trim();
|
|
669
|
-
if (!s) return [];
|
|
670
|
-
try { data = JSON.parse(s); } catch (_e) { return []; }
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
// Some adapters wrap the array
|
|
674
|
-
if (data && typeof data === 'object' && !Array.isArray(data)) {
|
|
675
|
-
const arr = data.prices || data.data || data.items || data.values || null;
|
|
676
|
-
if (Array.isArray(arr)) data = arr;
|
|
677
|
-
else return [];
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
if (!Array.isArray(data)) return [];
|
|
681
|
-
/**
|
|
682
|
-
* Code-Teil: normalizePriceEurPerKwh
|
|
683
|
-
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
684
|
-
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
685
|
-
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
686
|
-
*/
|
|
687
|
-
function normalizePriceEurPerKwh(v){
|
|
688
|
-
if (v === null || v === undefined) return null;
|
|
689
|
-
let n = Number(v);
|
|
690
|
-
if (!Number.isFinite(n)) return null;
|
|
691
|
-
// auto convert ct/kWh -> €/kWh (same heuristic as backend: values >=10 are assumed to be ct)
|
|
692
|
-
if (Math.abs(n) >= 10) n = n / 100;
|
|
693
|
-
if (!Number.isFinite(n)) return null;
|
|
694
|
-
return n;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
const out = [];
|
|
698
|
-
for (const it of data) {
|
|
699
|
-
if (!it || typeof it !== 'object') continue;
|
|
700
|
-
|
|
701
|
-
// price heuristics
|
|
702
|
-
let pRaw = null;
|
|
703
|
-
if (it.total !== undefined) pRaw = it.total;
|
|
704
|
-
else if (it.price !== undefined) pRaw = it.price;
|
|
705
|
-
else if (it.value !== undefined) pRaw = it.value;
|
|
706
|
-
else if (it.marketprice !== undefined) pRaw = it.marketprice;
|
|
707
|
-
else if (it.marketPrice !== undefined) pRaw = it.marketPrice;
|
|
708
|
-
else if (it.energyPrice !== undefined) pRaw = it.energyPrice;
|
|
709
|
-
if (pRaw === null && it.price && typeof it.price === 'object') {
|
|
710
|
-
if (it.price.total !== undefined) pRaw = it.price.total;
|
|
711
|
-
else if (it.price.value !== undefined) pRaw = it.price.value;
|
|
712
|
-
}
|
|
713
|
-
const priceEurKwh = normalizePriceEurPerKwh(pRaw);
|
|
714
|
-
if (!Number.isFinite(priceEurKwh)) continue;
|
|
715
|
-
|
|
716
|
-
// time heuristics
|
|
717
|
-
const startRaw = (it.startsAt !== undefined) ? it.startsAt
|
|
718
|
-
: (it.start !== undefined) ? it.start
|
|
719
|
-
: (it.startTime !== undefined) ? it.startTime
|
|
720
|
-
: (it.from !== undefined) ? it.from
|
|
721
|
-
: (it.begin !== undefined) ? it.begin
|
|
722
|
-
: (it.timestamp !== undefined) ? it.timestamp
|
|
723
|
-
: (it.time !== undefined) ? it.time
|
|
724
|
-
: null;
|
|
725
|
-
|
|
726
|
-
let startMs = null;
|
|
727
|
-
if (typeof startRaw === 'number' && Number.isFinite(startRaw)) {
|
|
728
|
-
startMs = (startRaw < 1e12) ? startRaw * 1000 : startRaw;
|
|
729
|
-
} else if (typeof startRaw === 'string') {
|
|
730
|
-
const t = Date.parse(startRaw);
|
|
731
|
-
if (Number.isFinite(t)) startMs = t;
|
|
732
|
-
}
|
|
733
|
-
if (!startMs) continue;
|
|
734
|
-
|
|
735
|
-
const endRaw = (it.endsAt !== undefined) ? it.endsAt
|
|
736
|
-
: (it.end !== undefined) ? it.end
|
|
737
|
-
: (it.endTime !== undefined) ? it.endTime
|
|
738
|
-
: (it.to !== undefined) ? it.to
|
|
739
|
-
: (it.until !== undefined) ? it.until
|
|
740
|
-
: null;
|
|
741
|
-
|
|
742
|
-
let endMs = null;
|
|
743
|
-
if (typeof endRaw === 'number' && Number.isFinite(endRaw)) {
|
|
744
|
-
endMs = (endRaw < 1e12) ? endRaw * 1000 : endRaw;
|
|
745
|
-
} else if (typeof endRaw === 'string') {
|
|
746
|
-
const t = Date.parse(endRaw);
|
|
747
|
-
if (Number.isFinite(t)) endMs = t;
|
|
748
|
-
}
|
|
749
|
-
if (!endMs) endMs = startMs + 60 * 60 * 1000;
|
|
750
|
-
if (endMs <= startMs) endMs = startMs + 60 * 60 * 1000;
|
|
751
|
-
|
|
752
|
-
out.push({ startMs, endMs, priceEurKwh });
|
|
753
|
-
}
|
|
754
|
-
out.sort((a,b)=> a.startMs - b.startMs);
|
|
755
|
-
return out;
|
|
671
|
+
return window.NexoWattTariffDisplay.parseCurve(raw);
|
|
756
672
|
}
|
|
673
|
+
|
|
757
674
|
/**
|
|
758
675
|
* Code-Teil: nwNiceStep
|
|
759
676
|
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
@@ -1059,7 +976,9 @@ function nwDrawTariffForecastChart(canvas, curve, opts){
|
|
|
1059
976
|
ctx.textBaseline = 'top';
|
|
1060
977
|
const xHours = [0, 6, 12, 18];
|
|
1061
978
|
xHours.forEach(h => {
|
|
1062
|
-
const
|
|
979
|
+
const localTick = new Date(dayStartMs);
|
|
980
|
+
localTick.setHours(h, 0, 0, 0);
|
|
981
|
+
const t = localTick.getTime();
|
|
1063
982
|
const x = xOf(t);
|
|
1064
983
|
const lab = String(h).padStart(2,'0') + ':00';
|
|
1065
984
|
ctx.fillText(lab, x, H - m.B + 6);
|
|
@@ -1186,10 +1105,7 @@ function initTariffForecastTooltip(){
|
|
|
1186
1105
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1187
1106
|
*/
|
|
1188
1107
|
function getTodayRange(){
|
|
1189
|
-
|
|
1190
|
-
d0.setHours(0,0,0,0);
|
|
1191
|
-
const d1 = new Date(d0.getTime() + 24*60*60*1000);
|
|
1192
|
-
return { startMs: d0.getTime(), endMs: d1.getTime() };
|
|
1108
|
+
return window.NexoWattTariffDisplay.dayRange(Date.now());
|
|
1193
1109
|
}
|
|
1194
1110
|
/**
|
|
1195
1111
|
* Code-Teil: update
|
|
@@ -1220,21 +1136,15 @@ function initTariffForecastTooltip(){
|
|
|
1220
1136
|
const ts = tsOf('priceTodayJson') || tsOf('tarif.preisAktuellEurProKwh') || tsOf('priceCurrent');
|
|
1221
1137
|
const tsTxt = ts ? ('aktualisiert ' + _fmtTimeHHmm(ts)) : '';
|
|
1222
1138
|
// Current price
|
|
1223
|
-
const pNow =
|
|
1139
|
+
const pNow = window.NexoWattTariffDisplay.display(window.latestState, window.__nwCfg?.tariffDisplay, Date.now(), window.__nwTariffLiveOnline !== false).current;
|
|
1224
1140
|
const pNowTxt = (pNow !== null && pNow !== undefined && Number.isFinite(Number(pNow))) ? nwFormatCt(Number(pNow)) : '';
|
|
1225
|
-
const meta = [pNowTxt ? ('Aktuell ' + pNowTxt) : '', tsTxt].filter(Boolean).join(' • ');
|
|
1141
|
+
const meta = [window.NexoWattTariffDisplay.resolution(curveToday), pNowTxt ? ('Aktuell ' + pNowTxt) : '', tsTxt].filter(Boolean).join(' • ');
|
|
1226
1142
|
if (metaEl) metaEl.textContent = meta || '—';
|
|
1227
1143
|
|
|
1228
1144
|
// min/avg/max
|
|
1229
1145
|
const ps = curveToday.map(x => x.priceEurKwh).filter(n => Number.isFinite(Number(n)));
|
|
1230
|
-
//
|
|
1231
|
-
|
|
1232
|
-
let curvePlot = curveToday;
|
|
1233
|
-
const intMs = curveToday.map(x => (Number(x.endMs) - Number(x.startMs))).filter(n => Number.isFinite(n) && n > 0);
|
|
1234
|
-
const medMs = nwMedian(intMs);
|
|
1235
|
-
if (Number.isFinite(medMs) && medMs < 30 * 60 * 1000) {
|
|
1236
|
-
curvePlot = nwAggregateCurve(curveToday, startMs, endMs, 60 * 60 * 1000);
|
|
1237
|
-
}
|
|
1146
|
+
// Originalintervalle bleiben erhalten: echte Viertelstunden werden nicht zu Stunden gemittelt.
|
|
1147
|
+
const curvePlot = curveToday;
|
|
1238
1148
|
|
|
1239
1149
|
if (ps.length > 0) {
|
|
1240
1150
|
const min = Math.min(...ps);
|
|
@@ -1961,10 +1871,18 @@ function nwLatestStateTimestamp(keys) {
|
|
|
1961
1871
|
*/
|
|
1962
1872
|
function nwSetLiveOnline(isOnline) {
|
|
1963
1873
|
const online = !!isOnline;
|
|
1874
|
+
const tariffConnectionChanged = window.__nwTariffLiveOnline !== online;
|
|
1875
|
+
window.__nwTariffLiveOnline = online;
|
|
1876
|
+
if (tariffConnectionChanged) updateEmsControlUi();
|
|
1964
1877
|
setText('sideConnection', online ? 'Online' : 'Offline');
|
|
1965
|
-
setText('sideStatusText', online ? '
|
|
1878
|
+
setText('sideStatusText', online ? 'Verbindung hergestellt · Betriebsstatus wird geprüft' : 'Verbindung unterbrochen');
|
|
1966
1879
|
const dot = document.getElementById('sideLiveDot');
|
|
1967
1880
|
if (dot) dot.classList.toggle('is-offline', !online);
|
|
1881
|
+
if (!online) {
|
|
1882
|
+
for (const id of ['pvPower', 'gridBuyPower', 'gridSellPower', 'storagePower', 'consumptionTotal', 'sidePvPower', 'sideBuildingPower', 'sideBatteryPower', 'sideGridBuyPower', 'sideGridSellPower', 'pvVal', 'gridVal', 'restVal', 'centerPower']) setText(id, '--');
|
|
1883
|
+
setText('batterySocIn', '-- %'); setText('sideStorage', '-- %'); setText('sideBatterySoc', '-- %');
|
|
1884
|
+
setText('sideEms', 'Verbindung unterbrochen'); setText('sideGridStatus', 'Messstatus unbekannt');
|
|
1885
|
+
}
|
|
1968
1886
|
}
|
|
1969
1887
|
/**
|
|
1970
1888
|
* Code-Teil: updateDashboardShellUi
|
|
@@ -1972,6 +1890,18 @@ function nwSetLiveOnline(isOnline) {
|
|
|
1972
1890
|
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
1973
1891
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1974
1892
|
*/
|
|
1893
|
+
function getEvcsPowerW(readValue) {
|
|
1894
|
+
const d = typeof readValue === 'function' ? readValue : (key => {
|
|
1895
|
+
const snapshot = window.latestState || state || {};
|
|
1896
|
+
return typeof snapshot === 'object' && Object.hasOwn(snapshot, key) ? Reflect.get(snapshot, key)?.value : undefined;
|
|
1897
|
+
});
|
|
1898
|
+
const mapped = window.__nwCfg?.datapoints?.consumptionEvcs;
|
|
1899
|
+
return window.NexoWattPowerMeasurements?.resolveEvcsPower({
|
|
1900
|
+
overrideConfigured: typeof mapped === 'string' && mapped.trim().length > 0,
|
|
1901
|
+
override: d('consumptionEvcs'), aggregate: d('evcs.totalPowerW'), legacy: d('evcsPower'),
|
|
1902
|
+
}) ?? null;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1975
1905
|
function updateDashboardShellUi(data) {
|
|
1976
1906
|
const snap = data || {};
|
|
1977
1907
|
const d = typeof snap.d === 'function' ? snap.d : ((k) => (window.latestState || state || {})[k]?.value);
|
|
@@ -1979,39 +1909,36 @@ function updateDashboardShellUi(data) {
|
|
|
1979
1909
|
const liveDot = document.getElementById('liveDot');
|
|
1980
1910
|
nwSetLiveOnline(!liveDot || liveDot.classList.contains('live'));
|
|
1981
1911
|
|
|
1982
|
-
const pv
|
|
1983
|
-
const
|
|
1984
|
-
const sell = Number(snap.sell ?? 0) || 0;
|
|
1985
|
-
const load = Number(snap.load ?? d('consumptionTotal') ?? 0) || 0;
|
|
1986
|
-
const charge = Math.max(0, Number(snap.charge ?? 0) || 0);
|
|
1987
|
-
const discharge = Math.max(0, Number(snap.discharge ?? 0) || 0);
|
|
1988
|
-
const batterySigned = discharge - charge;
|
|
1912
|
+
const { pv, buy, sell, load, charge, discharge } = getLiveMeasurementView();
|
|
1913
|
+
const batterySigned = charge === null || discharge === null ? null : discharge - charge;
|
|
1989
1914
|
const evcsAvailable = nwEvcsFeatureFromConfig();
|
|
1990
|
-
const evcsPower = evcsAvailable ? (
|
|
1915
|
+
const evcsPower = evcsAvailable ? getEvcsPowerW(d) : null;
|
|
1991
1916
|
try { nwApplyCustomerFeatureVisibility(window.__nwCfg || {}, window.latestState || state || {}); } catch (_e) {}
|
|
1992
1917
|
|
|
1993
|
-
const soc = (
|
|
1994
|
-
const autarky = (snap.autarkyN !== undefined && snap.autarkyN !== null) ? Number(snap.autarkyN) :
|
|
1995
|
-
const selfc = (snap.selfcN !== undefined && snap.selfcN !== null) ? Number(snap.selfcN) :
|
|
1918
|
+
const soc = getLiveMeasurementView().soc;
|
|
1919
|
+
const autarky = (snap.autarkyN !== undefined && snap.autarkyN !== null) ? Number(snap.autarkyN) : getFreshFlowNumber('autarky');
|
|
1920
|
+
const selfc = (snap.selfcN !== undefined && snap.selfcN !== null) ? Number(snap.selfcN) : getFreshFlowNumber('selfConsumption');
|
|
1996
1921
|
|
|
1997
1922
|
setText('sideStorage', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
|
|
1998
1923
|
setText('sideBatterySoc', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
|
|
1999
1924
|
const p14 = !!d('ems.core.para14aActive') || !!d('para14a.active'), peak = String(d('peakShaving.control.status') || '').trim(), safety = String(d('chargingManagement.audit.safetyStage') || '').trim(), p14Fallback = d('para14a.communicationFallbackActive') === true;
|
|
2000
|
-
|
|
2001
|
-
setText('
|
|
1925
|
+
const health = window.NexoWattLiveDisplay?.status(window.latestState || state || {}, window.__nwTariffLiveOnline !== false, Date.now());
|
|
1926
|
+
setText('sideEms', safety === 'EOS-SAFETY-STOP' ? 'Safety aktiv' : health?.ems || 'Status unbekannt');
|
|
1927
|
+
setText('sideGridStatus', p14Fallback ? '§14a Fallback' : (p14 ? '§14a aktiv' : (peak === 'active' ? 'Peak aktiv' : health?.grid || 'Messstatus unbekannt')));
|
|
1928
|
+
setText('sideStatusText', health?.summary || 'Betriebsstatus unbekannt');
|
|
2002
1929
|
try { window.NexoWattLpStatusPresenter?.render(d, evcsAvailable); } catch (_eChargingStatus) {}
|
|
2003
1930
|
|
|
2004
|
-
setText('sideConsumptionTotal', formatFlowPower(Math.max(0, load)));
|
|
1931
|
+
setText('sideConsumptionTotal', load === null ? '--' : formatFlowPower(Math.max(0, load)));
|
|
2005
1932
|
setText('sideSelfConsumption', Number.isFinite(selfc) ? `${Math.round(selfc)} %` : '-- %');
|
|
2006
1933
|
setText('sideAutarky', Number.isFinite(autarky) ? `${Math.round(autarky)} %` : '-- %');
|
|
2007
1934
|
setText('sideCo2Savings', snap.co2Text || '--');
|
|
2008
1935
|
|
|
2009
|
-
setText('sidePvPower', formatFlowPower(Math.abs(pv)));
|
|
2010
|
-
setText('sideBuildingPower', formatFlowPower(Math.max(0, load)));
|
|
2011
|
-
setText('sideGridBuyPower', formatFlowPower(Math.max(0, buy)));
|
|
2012
|
-
setText('sideGridSellPower', formatFlowPower(Math.max(0, sell)));
|
|
2013
|
-
setText('sideBatteryPower', (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
|
|
2014
|
-
if (evcsAvailable) setText('sideEvcsPower', formatFlowPower(Math.abs(evcsPower)));
|
|
1936
|
+
setText('sidePvPower', pv === null ? '--' : formatFlowPower(Math.abs(pv)));
|
|
1937
|
+
setText('sideBuildingPower', load === null ? '--' : formatFlowPower(Math.max(0, load)));
|
|
1938
|
+
setText('sideGridBuyPower', buy === null ? '--' : formatFlowPower(Math.max(0, buy)));
|
|
1939
|
+
setText('sideGridSellPower', sell === null ? '--' : formatFlowPower(Math.max(0, sell)));
|
|
1940
|
+
setText('sideBatteryPower', batterySigned === null ? '--' : (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
|
|
1941
|
+
if (evcsAvailable) setText('sideEvcsPower', evcsPower === null ? '--' : formatFlowPower(Math.abs(evcsPower)));
|
|
2015
1942
|
|
|
2016
1943
|
const ts = nwLatestStateTimestamp([
|
|
2017
1944
|
'pvPower', 'productionTotal', 'consumptionTotal', 'gridPower', 'gridBuyPower',
|
|
@@ -2714,13 +2641,12 @@ function resolveHeatingRodFlowPower(it, d, fallbackRaw){
|
|
|
2714
2641
|
*/
|
|
2715
2642
|
const readN = (key) => {
|
|
2716
2643
|
try {
|
|
2717
|
-
const
|
|
2644
|
+
const raw = d(key);
|
|
2645
|
+
const n = raw === null || raw === undefined || typeof raw === 'boolean' || raw === '' ? NaN : Number(raw);
|
|
2718
2646
|
return Number.isFinite(n) ? n : NaN;
|
|
2719
2647
|
} catch(_e) { return NaN; }
|
|
2720
2648
|
};
|
|
2721
2649
|
const measured = readN(`heatingRod.devices.c${idx}.measuredW`);
|
|
2722
|
-
const applied = readN(`heatingRod.devices.c${idx}.appliedW`);
|
|
2723
|
-
const target = readN(`heatingRod.devices.c${idx}.targetW`);
|
|
2724
2650
|
const maxPower = readN(`heatingRod.devices.c${idx}.maxPowerW`);
|
|
2725
2651
|
let valueW = NaN;
|
|
2726
2652
|
|
|
@@ -2729,9 +2655,7 @@ function resolveHeatingRodFlowPower(it, d, fallbackRaw){
|
|
|
2729
2655
|
// Messung und darf nicht durch nominale Stufen-/Sollleistungen ersetzt werden.
|
|
2730
2656
|
if (Number.isFinite(fallbackRaw)) valueW = Math.abs(fallbackRaw);
|
|
2731
2657
|
else if (Number.isFinite(measured)) valueW = Math.abs(measured);
|
|
2732
|
-
|
|
2733
|
-
else if (Number.isFinite(target) && target > 0) valueW = target;
|
|
2734
|
-
else valueW = 0;
|
|
2658
|
+
// Eine Vorgabe bzw. geschaltete Nennleistung ist keine bestätigte Messung.
|
|
2735
2659
|
|
|
2736
2660
|
return {
|
|
2737
2661
|
valueW: Math.max(0, valueW),
|
|
@@ -2746,6 +2670,7 @@ function resolveHeatingRodFlowPower(it, d, fallbackRaw){
|
|
|
2746
2670
|
*/
|
|
2747
2671
|
function updateEnergyWebExtras(d){
|
|
2748
2672
|
let consumersSum = 0;
|
|
2673
|
+
let consumersComplete = true;
|
|
2749
2674
|
/**
|
|
2750
2675
|
* Code-Teil: show
|
|
2751
2676
|
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
@@ -2792,9 +2717,9 @@ function updateEnergyWebExtras(d){
|
|
|
2792
2717
|
// Produzenten
|
|
2793
2718
|
if (flowExtras && Array.isArray(flowExtras.producers)) {
|
|
2794
2719
|
for (const it of flowExtras.producers) {
|
|
2795
|
-
const raw =
|
|
2796
|
-
const abs = stabilizeFlowAbs(`extra:producer:${it.stateKey || it.lineId || it.nodeId}`, Math.abs(raw));
|
|
2797
|
-
setText(it.valId, formatFlowPower(abs));
|
|
2720
|
+
const raw = coerceNumber(d(it.stateKey));
|
|
2721
|
+
const abs = stabilizeFlowAbs(`extra:producer:${it.stateKey || it.lineId || it.nodeId}`, raw === null ? 0 : Math.abs(raw));
|
|
2722
|
+
setText(it.valId, raw === null ? '--' : formatFlowPower(abs));
|
|
2798
2723
|
show(it.lineId, abs);
|
|
2799
2724
|
// Erzeugung soll optisch immer "zum Gebäude" laufen (keine Richtungsumschaltung).
|
|
2800
2725
|
// Das verhindert Flackern durch Vorzeichen-Schwankungen um 0W oder uneinheitliche Vorzeichenkonventionen.
|
|
@@ -2821,13 +2746,14 @@ function updateEnergyWebExtras(d){
|
|
|
2821
2746
|
const sumSpecialPower = (role, devices) => {
|
|
2822
2747
|
const r = String(role || '').toLowerCase();
|
|
2823
2748
|
const pre = (r === 'bhkw') ? 'bhkw.devices.b' : (r === 'generator') ? 'generator.devices.g' : '';
|
|
2824
|
-
if (!pre || !Array.isArray(devices)) return
|
|
2749
|
+
if (!pre || !Array.isArray(devices) || !devices.length) return null;
|
|
2825
2750
|
let sum = 0;
|
|
2826
2751
|
for (const dev of devices) {
|
|
2827
2752
|
const idx = Number(dev && dev.idx);
|
|
2828
|
-
if (!idx)
|
|
2829
|
-
const v0 =
|
|
2830
|
-
if (
|
|
2753
|
+
if (!idx) return null;
|
|
2754
|
+
const v0 = coerceNumber(d(`${pre}${idx}.powerW`));
|
|
2755
|
+
if (v0 === null) return null;
|
|
2756
|
+
sum += v0;
|
|
2831
2757
|
}
|
|
2832
2758
|
return sum;
|
|
2833
2759
|
};
|
|
@@ -2835,8 +2761,8 @@ const sumSpecialPower = (role, devices) => {
|
|
|
2835
2761
|
if (flowExtras && Array.isArray(flowExtras.special)) {
|
|
2836
2762
|
for (const it of flowExtras.special) {
|
|
2837
2763
|
const raw = sumSpecialPower(it.role, it.devices);
|
|
2838
|
-
const abs = stabilizeFlowAbs(`extra:special:${it.role}:${it.lineId || it.nodeId}`, Math.abs(raw));
|
|
2839
|
-
setText(it.valId, formatFlowPower(abs));
|
|
2764
|
+
const abs = stabilizeFlowAbs(`extra:special:${it.role}:${it.lineId || it.nodeId}`, raw === null ? 0 : Math.abs(raw));
|
|
2765
|
+
setText(it.valId, raw === null ? '--' : formatFlowPower(abs));
|
|
2840
2766
|
show(it.lineId, abs);
|
|
2841
2767
|
// BHKW/Generator: Erzeugung immer zum Gebäude (keine Richtungsumschaltung)
|
|
2842
2768
|
setRev(it.lineId, false);
|
|
@@ -2853,9 +2779,11 @@ if (flowExtras && Array.isArray(flowExtras.special)) {
|
|
|
2853
2779
|
: Number(rawCandidate);
|
|
2854
2780
|
if (isHeatingRodFlowItem(it)) {
|
|
2855
2781
|
const rodPower = resolveHeatingRodFlowPower(it, d, rawBase);
|
|
2856
|
-
const
|
|
2782
|
+
const valid = Number.isFinite(rodPower.valueW);
|
|
2783
|
+
const abs = stabilizeFlowAbs(`extra:consumer:heatingRod:c${it.idx || it.stateKey || it.lineId || it.nodeId}`, valid ? Math.abs(rodPower.valueW) : 0);
|
|
2784
|
+
if (!valid) consumersComplete = false;
|
|
2857
2785
|
consumersSum += abs;
|
|
2858
|
-
setText(it.valId, formatFlowPower(abs));
|
|
2786
|
+
setText(it.valId, valid ? formatFlowPower(abs) : '--');
|
|
2859
2787
|
show(it.lineId, abs);
|
|
2860
2788
|
// Heizstab ist immer Verbraucher: Richtung stabil Gebäude -> Heizstab.
|
|
2861
2789
|
setRev(it.lineId, false);
|
|
@@ -2864,17 +2792,19 @@ if (flowExtras && Array.isArray(flowExtras.special)) {
|
|
|
2864
2792
|
}
|
|
2865
2793
|
|
|
2866
2794
|
const raw = rawBase;
|
|
2867
|
-
const
|
|
2795
|
+
const valid = Number.isFinite(raw);
|
|
2796
|
+
if (!valid) consumersComplete = false;
|
|
2797
|
+
const val = stabilizeFlowSigned(`extra:consumer:${it.stateKey || it.lineId || it.nodeId}`, valid ? raw : 0);
|
|
2868
2798
|
const abs = Math.abs(val);
|
|
2869
2799
|
consumersSum += abs;
|
|
2870
|
-
setText(it.valId, formatFlowPower(abs));
|
|
2800
|
+
setText(it.valId, valid ? formatFlowPower(abs) : '--');
|
|
2871
2801
|
show(it.lineId, abs);
|
|
2872
2802
|
setRev(it.lineId, val < 0);
|
|
2873
2803
|
setNodeActive(it.nodeId, abs > 0);
|
|
2874
2804
|
}
|
|
2875
2805
|
}
|
|
2876
2806
|
|
|
2877
|
-
return consumersSum;
|
|
2807
|
+
return consumersComplete ? consumersSum : null;
|
|
2878
2808
|
}
|
|
2879
2809
|
/**
|
|
2880
2810
|
* Code-Teil: setRingSegment
|
|
@@ -2899,65 +2829,15 @@ function setRingSegment(cls, pct) {
|
|
|
2899
2829
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
2900
2830
|
*/
|
|
2901
2831
|
function computeDerived() {
|
|
2902
|
-
|
|
2903
|
-
const pv = pick('pvPower', 'productionTotal');
|
|
2904
|
-
const load = pick('consumptionTotal');
|
|
2905
|
-
const batteryFlow = getNormalizedBatteryFlow();
|
|
2906
|
-
const charge = Number(batteryFlow.chargeW) || 0;
|
|
2907
|
-
const discharge = Number(batteryFlow.dischargeW) || 0;
|
|
2908
|
-
const gridMeta = getGridImportExport((k) => get(k));
|
|
2909
|
-
const rawBuy = gridMeta.rawBuy;
|
|
2910
|
-
const rawSell = gridMeta.rawSell;
|
|
2911
|
-
const rawNet = gridMeta.rawNet;
|
|
2912
|
-
const haveGridInfo = !!gridMeta.hasGridInfo;
|
|
2913
|
-
const { buy, sell } = gridMeta;
|
|
2914
|
-
|
|
2915
|
-
|
|
2832
|
+
const { pv, load, buy, sell } = getLiveMeasurementView();
|
|
2916
2833
|
const res = {};
|
|
2917
|
-
if (load
|
|
2918
|
-
|
|
2919
|
-
if (haveGridInfo) {
|
|
2920
|
-
// Live-Autarkie physikalisch aus Verbrauch vs. Netzbezug ableiten.
|
|
2921
|
-
// Dadurch läuft die Kachel korrekt mit, wenn Batterie oder PV den
|
|
2922
|
-
// Verbrauch decken und am Netzanschlusspunkt 0 W Bezug anliegt.
|
|
2923
|
-
const localSupply = Math.max(0, load - Math.max(0, buy || 0));
|
|
2924
|
-
pct = load > 0 ? (localSupply / load) * 100 : 0;
|
|
2925
|
-
} else {
|
|
2926
|
-
// Fallback nur dann verwenden, wenn noch kein Netz-DP eingetroffen ist.
|
|
2927
|
-
const localPv = pv != null ? Math.max(0, pv - Math.max(0, sell || 0)) : 0;
|
|
2928
|
-
const batterySupport = Math.max(0, (discharge || 0) - (charge || 0));
|
|
2929
|
-
const localSupply = Math.max(0, Math.min(load, localPv + batterySupport));
|
|
2930
|
-
pct = load > 0 ? (localSupply / load) * 100 : 0;
|
|
2931
|
-
}
|
|
2932
|
-
res.autarky = Math.max(0, Math.min(100, pct || 0));
|
|
2834
|
+
if (load !== null && buy !== null) {
|
|
2835
|
+
res.autarky = load > 0 ? Math.max(0, Math.min(100, (load - buy) / load * 100)) : 0;
|
|
2933
2836
|
}
|
|
2934
|
-
if (pv
|
|
2935
|
-
|
|
2936
|
-
const local = Math.max(0, pv - (sell || 0));
|
|
2937
|
-
const pct = pv > 0 ? (local / pv) * 100 : 0;
|
|
2938
|
-
res.selfConsumption = Math.max(0, Math.min(100, pct));
|
|
2837
|
+
if (pv !== null && sell !== null) {
|
|
2838
|
+
res.selfConsumption = pv > 0 ? Math.max(0, Math.min(100, (pv - sell) / pv * 100)) : 0;
|
|
2939
2839
|
}
|
|
2940
2840
|
return res;
|
|
2941
|
-
/**
|
|
2942
|
-
* Code-Teil: get
|
|
2943
|
-
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
2944
|
-
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
2945
|
-
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
2946
|
-
*/
|
|
2947
|
-
function get(k){ return state[k]?.value; }
|
|
2948
|
-
/**
|
|
2949
|
-
* Code-Teil: pick
|
|
2950
|
-
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
2951
|
-
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
2952
|
-
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
2953
|
-
*/
|
|
2954
|
-
function pick(...keys){
|
|
2955
|
-
for (const k of keys) {
|
|
2956
|
-
const n = coerceNumber(get(k));
|
|
2957
|
-
if (n != null) return n;
|
|
2958
|
-
}
|
|
2959
|
-
return null;
|
|
2960
|
-
}
|
|
2961
2841
|
}
|
|
2962
2842
|
/**
|
|
2963
2843
|
* Code-Teil: coerceNumber
|
|
@@ -3051,7 +2931,7 @@ function getStateAgeMs(key) {
|
|
|
3051
2931
|
try {
|
|
3052
2932
|
const rec = state && state[key];
|
|
3053
2933
|
const ts = Number(rec && rec.ts);
|
|
3054
|
-
if (!Number.isFinite(ts) || ts <= 0) return null;
|
|
2934
|
+
if (!Number.isFinite(ts) || ts <= 0 || ts > Date.now() + 5000) return null;
|
|
3055
2935
|
return Math.max(0, Date.now() - ts);
|
|
3056
2936
|
} catch (_e) {
|
|
3057
2937
|
return null;
|
|
@@ -3081,14 +2961,7 @@ function getFlowFreshMaxAgeMs() {
|
|
|
3081
2961
|
*/
|
|
3082
2962
|
function getFreshFlowNumber(key, opts = {}) {
|
|
3083
2963
|
if (opts.onlyIfMapped && !isMappedDatapoint(key)) return null;
|
|
3084
|
-
|
|
3085
|
-
if (!rec) return null;
|
|
3086
|
-
const n = coerceNumber(rec.value);
|
|
3087
|
-
if (n === null) return null;
|
|
3088
|
-
const maxAgeMs = opts.maxAgeMs === undefined ? getFlowFreshMaxAgeMs() : opts.maxAgeMs;
|
|
3089
|
-
const age = getStateAgeMs(key);
|
|
3090
|
-
if (Number.isFinite(Number(maxAgeMs)) && Number(maxAgeMs) > 0 && age !== null && age > Number(maxAgeMs)) return null;
|
|
3091
|
-
return n;
|
|
2964
|
+
return window.NexoWattLiveDisplay?.read(state, key, Date.now(), getFlowFreshMaxAgeMs(), window.__nwTariffLiveOnline !== false) ?? null;
|
|
3092
2965
|
}
|
|
3093
2966
|
/**
|
|
3094
2967
|
* Code-Teil: getStableFlowNumber
|
|
@@ -3097,9 +2970,9 @@ function getFreshFlowNumber(key, opts = {}) {
|
|
|
3097
2970
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
3098
2971
|
*/
|
|
3099
2972
|
function getStableFlowNumber(key, opts = {}) {
|
|
3100
|
-
//
|
|
3101
|
-
//
|
|
3102
|
-
return getFreshFlowNumber(key,
|
|
2973
|
+
// Aktualität folgt dem Messzeitstempel (ts), nicht dem Änderungszeitpunkt (lc).
|
|
2974
|
+
// Auch unveränderte echte Messungen werden vom Gerät regelmäßig bestätigt.
|
|
2975
|
+
return getFreshFlowNumber(key, opts);
|
|
3103
2976
|
}
|
|
3104
2977
|
/**
|
|
3105
2978
|
* Code-Teil: getConfiguredDatapointId
|
|
@@ -3132,7 +3005,7 @@ function getBalanceDerivedBatteryFlow(opts = {}) {
|
|
|
3132
3005
|
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
3133
3006
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
3134
3007
|
*/
|
|
3135
|
-
const read = (k) =>
|
|
3008
|
+
const read = (k) => getFreshFlowNumber(k);
|
|
3136
3009
|
|
|
3137
3010
|
// In Speicherfarm-Anlagen sind die Farm-Summen die Quelle der Wahrheit.
|
|
3138
3011
|
if (nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, st)) return null;
|
|
@@ -3149,7 +3022,9 @@ function getBalanceDerivedBatteryFlow(opts = {}) {
|
|
|
3149
3022
|
if (load === null) return null;
|
|
3150
3023
|
|
|
3151
3024
|
const grid = getGridImportExport(read);
|
|
3152
|
-
if (!grid ||
|
|
3025
|
+
if (!grid || grid.rawBuy === null || grid.rawSell === null) return null;
|
|
3026
|
+
const nvp = st['ems.gridMeasurementFresh'];
|
|
3027
|
+
if (nvp && (nvp.value !== true || getStateAgeMs('ems.gridMeasurementFresh') === null || getStateAgeMs('ems.gridMeasurementFresh') > getFlowFreshMaxAgeMs())) return null;
|
|
3153
3028
|
|
|
3154
3029
|
let pv = coerceNumber(read('pvPower'));
|
|
3155
3030
|
if (pv === null && isMappedDatapoint('productionTotal')) pv = coerceNumber(read('productionTotal'));
|
|
@@ -3283,12 +3158,11 @@ function getNormalizedBatteryFlow() {
|
|
|
3283
3158
|
let d = Math.max(0, Math.abs(Number(fd || 0)));
|
|
3284
3159
|
if (c <= deadbandW) c = 0;
|
|
3285
3160
|
if (d <= deadbandW) d = 0;
|
|
3286
|
-
return { chargeW: c, dischargeW: d, signedW: d - c, src: 'storageFarmGross', inverted: false, fromSigned: false, derived: false };
|
|
3161
|
+
return { chargeW: c, dischargeW: d, signedW: d - c, src: 'storageFarmGross', inverted: false, fromSigned: false, derived: false, incomplete: fc === null || fd === null };
|
|
3287
3162
|
}
|
|
3288
3163
|
}
|
|
3289
3164
|
|
|
3290
|
-
//
|
|
3291
|
-
// seines Alters verworfen und durch eine Bilanzrechnung ersetzt werden.
|
|
3165
|
+
// Unverändert, aber regelmäßig bestätigte Messungen (ts) bleiben gültig.
|
|
3292
3166
|
const signedBattery = batteryMapped ? getStableFlowNumber('batteryPower') : null;
|
|
3293
3167
|
const charge = chargeMapped ? getStableFlowNumber('storageChargePower') : null;
|
|
3294
3168
|
const discharge = dischargeMapped ? getStableFlowNumber('storageDischargePower') : null;
|
|
@@ -3301,7 +3175,9 @@ function getNormalizedBatteryFlow() {
|
|
|
3301
3175
|
if (c <= deadbandW) c = 0;
|
|
3302
3176
|
if (d <= deadbandW) d = 0;
|
|
3303
3177
|
if (inv) { const t = c; c = d; d = t; }
|
|
3304
|
-
|
|
3178
|
+
const incomplete = (chargeMapped && charge === null) || (dischargeMapped && discharge === null);
|
|
3179
|
+
if (incomplete && signedBattery !== null) return fromSigned(signedBattery, 'batterySigned');
|
|
3180
|
+
return { chargeW: c, dischargeW: d, signedW: d - c, src: inv ? 'chargeDischarge(inv)' : 'chargeDischarge', inverted: inv, fromSigned: false, derived: false, incomplete };
|
|
3305
3181
|
}
|
|
3306
3182
|
|
|
3307
3183
|
if (signedBattery !== null) return fromSigned(signedBattery, 'batterySigned');
|
|
@@ -3324,20 +3200,21 @@ function getNormalizedBatteryFlow() {
|
|
|
3324
3200
|
*/
|
|
3325
3201
|
function getCanonicalPvPowerW(readValue) {
|
|
3326
3202
|
const d = typeof readValue === 'function' ? readValue : ((key) => state[key]?.value);
|
|
3327
|
-
const derived =
|
|
3328
|
-
if (
|
|
3203
|
+
const derived = coerceNumber(d('derived.core.pv.totalW'));
|
|
3204
|
+
if (derived !== null && derived >= 0) return derived;
|
|
3329
3205
|
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
const baseAbs = Math.abs(base);
|
|
3206
|
+
const base = coerceNumber(d('pvPower') ?? d('productionTotal'));
|
|
3207
|
+
const baseAbs = base === null ? null : Math.abs(base);
|
|
3333
3208
|
if (!nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, state || window.latestState || {})) return baseAbs;
|
|
3334
3209
|
|
|
3335
|
-
const
|
|
3210
|
+
const farmTotalRaw = coerceNumber(d('storageFarm.totalPvPowerW'));
|
|
3211
|
+
const farmTotal = farmTotalRaw === null ? 0 : Math.abs(farmTotalRaw);
|
|
3336
3212
|
const farmAc = Math.max(0, Math.abs(Number(d('storageFarm.totalPvAcPowerW')) || 0));
|
|
3337
3213
|
const farmDc = Math.max(0, Math.abs(Number(d('storageFarm.totalPvDcPowerW')) || 0));
|
|
3338
3214
|
const farmUnknown = Math.max(0, Math.abs(Number(d('storageFarm.totalPvUnknownPowerW')) || 0));
|
|
3339
3215
|
const farmAcLike = farmAc + farmUnknown;
|
|
3340
|
-
if (baseAbs
|
|
3216
|
+
if (baseAbs === null) return farmTotalRaw === null ? null : farmTotal;
|
|
3217
|
+
if (baseAbs <= 0) return farmTotal > 0 ? farmTotal : baseAbs;
|
|
3341
3218
|
if (farmTotal <= 0) return baseAbs;
|
|
3342
3219
|
|
|
3343
3220
|
// Kompatibilitätsfallback für alte Backends: AC-/WR-Summen und Anlagen-PV sind
|
|
@@ -3347,6 +3224,27 @@ function getCanonicalPvPowerW(readValue) {
|
|
|
3347
3224
|
const relDiff = Math.abs(baseAbs - farmDc) / Math.max(1, farmDc);
|
|
3348
3225
|
return (baseAbs >= farmDc || relDiff < 0.05) ? baseAbs : (baseAbs + farmDc);
|
|
3349
3226
|
}
|
|
3227
|
+
/** Anzeigeprojektion: Fehlend/veraltet/offline bleibt null, echte 0 bleibt erhalten.
|
|
3228
|
+
* Keine Regelung, keine Ersatzmessung und keine Änderung der Kundenzuordnung. */
|
|
3229
|
+
function getLiveMeasurementView() {
|
|
3230
|
+
const fresh = key => getFreshFlowNumber(key);
|
|
3231
|
+
const grid = getGridImportExport(fresh);
|
|
3232
|
+
const nvp = state?.['ems.gridMeasurementFresh'];
|
|
3233
|
+
const nvpUsable = !nvp || (nvp.value === true && getStateAgeMs('ems.gridMeasurementFresh') !== null && getStateAgeMs('ems.gridMeasurementFresh') <= getFlowFreshMaxAgeMs());
|
|
3234
|
+
const gridAvailable = nvpUsable && grid.rawBuy !== null && grid.rawSell !== null;
|
|
3235
|
+
const battery = getNormalizedBatteryFlow();
|
|
3236
|
+
const batteryAvailable = !['missing', 'mapped-missing', 'storageFarm-missing-power', 'storageFarm-unavailable', 'stale-or-missing'].includes(String(battery.src)) && battery.incomplete !== true;
|
|
3237
|
+
const farm = nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, state || {});
|
|
3238
|
+
const farmView = farm ? window.NexoWattLiveDisplay?.farm(state, Date.now(), window.__nwTariffLiveOnline !== false) : null;
|
|
3239
|
+
return {
|
|
3240
|
+
pv: getCanonicalPvPowerW(fresh), load: fresh('consumptionTotal'),
|
|
3241
|
+
buy: gridAvailable ? grid.buy : null, sell: gridAvailable ? grid.sell : null,
|
|
3242
|
+
charge: farmView ? farmView.charge : batteryAvailable ? battery.chargeW : null,
|
|
3243
|
+
discharge: farmView ? farmView.discharge : batteryAvailable ? battery.dischargeW : null,
|
|
3244
|
+
soc: farmView ? farmView.soc : farm ? fresh('storageFarm.totalSoc') ?? fresh('storageFarm.medianSoc') : fresh('storageSoc'),
|
|
3245
|
+
};
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3350
3248
|
// Abschnitt: Haupt-Renderlauf des LIVE-Dashboards. Alle DOM-Werte für Energiefluss, KPIs, KI-Berater und Schnellzugriffe werden hier aktualisiert.
|
|
3351
3249
|
/**
|
|
3352
3250
|
* Code-Teil: render
|
|
@@ -3367,24 +3265,8 @@ function render() {
|
|
|
3367
3265
|
// Top ring values: map PV, Grid, Load, Bat flows to percent of max for visualization
|
|
3368
3266
|
const sfEnabled = nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, s || state || {});
|
|
3369
3267
|
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
let pv = getCanonicalPvPowerW(d);
|
|
3373
|
-
|
|
3374
|
-
const load = d('consumptionTotal');
|
|
3375
|
-
const { buy, sell } = getGridImportExport(d);
|
|
3376
|
-
const batteryFlow = getNormalizedBatteryFlow();
|
|
3377
|
-
let charge = Number(batteryFlow.chargeW) || 0;
|
|
3378
|
-
let discharge = Number(batteryFlow.dischargeW) || 0;
|
|
3379
|
-
let soc = d('storageSoc');
|
|
3380
|
-
|
|
3381
|
-
if (sfEnabled) {
|
|
3382
|
-
const socAvg = d('storageFarm.totalSoc');
|
|
3383
|
-
const socMedian = d('storageFarm.medianSoc');
|
|
3384
|
-
// Im Farm‑Modus bevorzugen wir den Durchschnitt (Ø), Median bleibt als Fallback.
|
|
3385
|
-
if (socAvg != null && !isNaN(Number(socAvg))) soc = socAvg;
|
|
3386
|
-
else if (socMedian != null && !isNaN(Number(socMedian))) soc = socMedian;
|
|
3387
|
-
}
|
|
3268
|
+
const measurements = getLiveMeasurementView();
|
|
3269
|
+
const { pv, load, buy, sell, charge, discharge, soc } = measurements;
|
|
3388
3270
|
const maxVal = Math.max(1, ...[pv, load, buy, sell, charge, discharge].filter(x => typeof x === 'number').map(Math.abs));
|
|
3389
3271
|
/**
|
|
3390
3272
|
* Code-Teil: Arrow-Funktion `pct`
|
|
@@ -3405,17 +3287,17 @@ function render() {
|
|
|
3405
3287
|
setRingSegment('load', pct(load));
|
|
3406
3288
|
setRingSegment('bat', pct((charge||0)+(discharge||0)));
|
|
3407
3289
|
|
|
3408
|
-
setText('pvPower',
|
|
3409
|
-
setText('gridBuyPower',
|
|
3410
|
-
setText('gridSellPower',
|
|
3290
|
+
setText('pvPower', (pv === null ? '--' : formatPower(pv)));
|
|
3291
|
+
setText('gridBuyPower', (buy === null ? '--' : formatPower(buy)));
|
|
3292
|
+
setText('gridSellPower', (sell === null ? '--' : formatPower(sell)));
|
|
3411
3293
|
const batPower = (charge||0) - (discharge||0);
|
|
3412
|
-
setText('storagePower', formatPower(batPower));
|
|
3413
|
-
setText('consumptionTotal',
|
|
3294
|
+
setText('storagePower', charge === null || discharge === null ? '--' : formatPower(batPower));
|
|
3295
|
+
setText('consumptionTotal', (load === null ? '--' : formatPower(load)));
|
|
3414
3296
|
|
|
3415
3297
|
// Cards
|
|
3416
3298
|
const derived = computeDerived();
|
|
3417
|
-
const autarky = derived.autarky ??
|
|
3418
|
-
const selfc = derived.selfConsumption ??
|
|
3299
|
+
const autarky = derived.autarky ?? getFreshFlowNumber('autarky');
|
|
3300
|
+
const selfc = derived.selfConsumption ?? getFreshFlowNumber('selfConsumption');
|
|
3419
3301
|
|
|
3420
3302
|
const autarkyN = clamp01(coerceNumber(autarky), 0, 100);
|
|
3421
3303
|
const selfcN = clamp01(coerceNumber(selfc), 0, 100);
|
|
@@ -3432,13 +3314,13 @@ function render() {
|
|
|
3432
3314
|
setWidth('storageSocBar', socN ?? 0);
|
|
3433
3315
|
setText('storageSocValue', (socN != null ? socN.toFixed(0) : '--') + ' %');
|
|
3434
3316
|
|
|
3435
|
-
setText('storageChargePower',
|
|
3436
|
-
setText('storageLadenPower',
|
|
3437
|
-
setText('storageDischargePower',
|
|
3438
|
-
setText('storageEntladenPower',
|
|
3317
|
+
setText('storageChargePower', (charge === null ? '--' : formatPower(charge)));
|
|
3318
|
+
setText('storageLadenPower', (charge === null ? '--' : formatPower(charge)));
|
|
3319
|
+
setText('storageDischargePower', (discharge === null ? '--' : formatPower(discharge)));
|
|
3320
|
+
setText('storageEntladenPower', (discharge === null ? '--' : formatPower(discharge)));
|
|
3439
3321
|
|
|
3440
|
-
setText('gridBuyPowerCard',
|
|
3441
|
-
setText('gridSellPowerCard',
|
|
3322
|
+
setText('gridBuyPowerCard', (buy === null ? '--' : formatPower(buy)));
|
|
3323
|
+
setText('gridSellPowerCard', (sell === null ? '--' : formatPower(sell)));
|
|
3442
3324
|
setText('gridEnergyKwh', formatEnergyKwh(d('gridEnergyKwh')));
|
|
3443
3325
|
setText('productionEnergyKwh', formatEnergyKwh(d('productionEnergyKwh')));
|
|
3444
3326
|
const pvEnergyKwh = coerceNumber(d('productionEnergyKwh'));
|
|
@@ -3447,7 +3329,7 @@ function render() {
|
|
|
3447
3329
|
setText('co2Savings', (co2Dp != null ? (isNaN(Number(co2Dp)) ? String(co2Dp) : Number(co2Dp).toFixed(1) + ' t') : (co2FromPvT != null ? co2FromPvT.toFixed(1) + ' t' : '--')));
|
|
3448
3330
|
|
|
3449
3331
|
|
|
3450
|
-
setText('productionTotal',
|
|
3332
|
+
setText('productionTotal', (pv === null ? '--' : formatPower(pv)));
|
|
3451
3333
|
const gfN = coerceNumber(d('gridFrequency'));
|
|
3452
3334
|
setText('gridFrequency', gfN != null ? gfN.toFixed(2) + ' Hz' : '--');
|
|
3453
3335
|
|
|
@@ -3455,9 +3337,10 @@ function render() {
|
|
|
3455
3337
|
|
|
3456
3338
|
|
|
3457
3339
|
const evcsAvailableNow = nwEvcsFeatureFromConfig();
|
|
3458
|
-
|
|
3340
|
+
const evcsPowerNow = getEvcsPowerW(d);
|
|
3341
|
+
setText('consumptionEvcs', evcsAvailableNow ? (evcsPowerNow === null ? '--' : formatPower(evcsPowerNow)) : '');
|
|
3459
3342
|
setText('consumptionEnergyKwh', formatEnergyKwh(d('consumptionEnergyKwh')));
|
|
3460
|
-
setText('consumptionBuilding',
|
|
3343
|
+
setText('consumptionBuilding', (load === null ? '--' : formatPower(load)));
|
|
3461
3344
|
|
|
3462
3345
|
// EVCS status: prefer per-connector status (single wallbox) and fall back to legacy dp
|
|
3463
3346
|
if (evcsAvailableNow) {
|
|
@@ -3588,7 +3471,7 @@ function render() {
|
|
|
3588
3471
|
socN,
|
|
3589
3472
|
autarkyN,
|
|
3590
3473
|
selfcN,
|
|
3591
|
-
evcsPower: nwEvcsFeatureFromConfig() ? (d
|
|
3474
|
+
evcsPower: nwEvcsFeatureFromConfig() ? getEvcsPowerW(d) : null,
|
|
3592
3475
|
co2Text: co2TextDash
|
|
3593
3476
|
});
|
|
3594
3477
|
} catch (_e) {}
|
|
@@ -6469,8 +6352,9 @@ function updateEmsControlUi() {
|
|
|
6469
6352
|
const card = document.getElementById('tariffCard');
|
|
6470
6353
|
if (card) card.classList.toggle('hidden', !showCard);
|
|
6471
6354
|
|
|
6472
|
-
const
|
|
6473
|
-
const
|
|
6355
|
+
const tariffDisplay = window.NexoWattTariffDisplay.display(st, window.__nwCfg?.tariffDisplay, Date.now(), window.__nwTariffLiveOnline !== false);
|
|
6356
|
+
const priceNow = tariffDisplay.current;
|
|
6357
|
+
const priceAvg = tariffDisplay.average;
|
|
6474
6358
|
|
|
6475
6359
|
/**
|
|
6476
6360
|
* Code-Teil: Arrow-Funktion `setText`
|
|
@@ -6486,14 +6370,10 @@ function updateEmsControlUi() {
|
|
|
6486
6370
|
*/
|
|
6487
6371
|
const setText = (id, txt) => { const el = document.getElementById(id); if (el) el.textContent = txt; };
|
|
6488
6372
|
|
|
6489
|
-
//
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
} else {
|
|
6494
|
-
setText('priceCurrent', formatPricePerKwh(priceNow));
|
|
6495
|
-
setText('priceAverage', formatPricePerKwh(priceAvg));
|
|
6496
|
-
}
|
|
6373
|
+
// Der Preisabruf ist unabhängig von der bewussten Freigabe der Tarifoptimierung.
|
|
6374
|
+
setText('priceCurrent', formatPricePerKwh(priceNow));
|
|
6375
|
+
setText('priceAverage', formatPricePerKwh(priceAvg));
|
|
6376
|
+
if (card) card.title = tariffDisplay.status;
|
|
6497
6377
|
|
|
6498
6378
|
// Peak short status (Netzschutz – nur Installateur konfigurierbar)
|
|
6499
6379
|
const peakStatus = String(v('peakShaving.control.status') || '').trim();
|
|
@@ -6577,8 +6457,8 @@ function updateEmsControlUi() {
|
|
|
6577
6457
|
}
|
|
6578
6458
|
}
|
|
6579
6459
|
|
|
6580
|
-
setText('emsPriceCurrent',
|
|
6581
|
-
setText('emsPriceAvg',
|
|
6460
|
+
setText('emsPriceCurrent', formatPricePerKwh(priceNow));
|
|
6461
|
+
setText('emsPriceAvg', formatPricePerKwh(priceAvg));
|
|
6582
6462
|
|
|
6583
6463
|
// Priority buttons
|
|
6584
6464
|
const prioWrap = document.getElementById('emsTariffPriorityButtons');
|
|
@@ -8683,28 +8563,14 @@ function updateEnergyWeb() {
|
|
|
8683
8563
|
// Raw datapoints (1:1)
|
|
8684
8564
|
const sfEnabled = nwStorageFarmFeatureFromConfig(window.__nwCfg || {}, s || state || {});
|
|
8685
8565
|
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
let
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
let c2 =
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
// Signed batteryPower-Konvention: -W = Laden, +W = Entladen;
|
|
8695
|
-
// die Option "Batterie-Vorzeichen invertieren" wird vor dem Split angewendet.
|
|
8696
|
-
const batteryFlow = getNormalizedBatteryFlow();
|
|
8697
|
-
let batCharge = Number(batteryFlow.chargeW) || 0;
|
|
8698
|
-
let batDischarge = Number(batteryFlow.dischargeW) || 0;
|
|
8699
|
-
let soc = d('storageSoc');
|
|
8700
|
-
|
|
8701
|
-
if (sfEnabled) {
|
|
8702
|
-
const socAvg = d('storageFarm.totalSoc');
|
|
8703
|
-
const socMedian = d('storageFarm.medianSoc');
|
|
8704
|
-
// Im Farm‑Modus bevorzugen wir den Durchschnitt (Ø), Median bleibt als Fallback.
|
|
8705
|
-
if (socAvg != null && !isNaN(Number(socAvg))) soc = socAvg;
|
|
8706
|
-
else if (socMedian != null && !isNaN(Number(socMedian))) soc = socMedian;
|
|
8707
|
-
}
|
|
8566
|
+
const measurements = getLiveMeasurementView();
|
|
8567
|
+
let pv = measurements.pv ?? 0;
|
|
8568
|
+
let buy = measurements.buy ?? 0, sell = measurements.sell ?? 0;
|
|
8569
|
+
const load = measurements.load ?? 0;
|
|
8570
|
+
const evcsPowerW = getEvcsPowerW(d);
|
|
8571
|
+
let c2 = evcsPowerW ?? 0; // Nur Geometrie, niemals Ersatzmessung.
|
|
8572
|
+
const batCharge = measurements.charge ?? 0, batDischarge = measurements.discharge ?? 0;
|
|
8573
|
+
const soc = measurements.soc;
|
|
8708
8574
|
|
|
8709
8575
|
// Invert toggles (Batterie ist bereits im Normalizer enthalten)
|
|
8710
8576
|
const invPv = !!(s['settings.flowInvertPv']?.value);
|
|
@@ -8719,31 +8585,15 @@ function updateEnergyWeb() {
|
|
|
8719
8585
|
if (invGrid) { const t=buy; buy = sell; sell = t; } // swap semantics if inverted grid
|
|
8720
8586
|
|
|
8721
8587
|
// Optionale Extra-Kreise aktualisieren (Rückgabe = Summe der optionalen Verbraucher)
|
|
8722
|
-
const extrasConsumersSum = updateEnergyWebExtras(
|
|
8588
|
+
const extrasConsumersSum = updateEnergyWebExtras(key => getFreshFlowNumber(key));
|
|
8723
8589
|
|
|
8724
8590
|
// Gebäudeanzeige: EV (optional) + optionale Verbraucher abziehen, damit der Energiefluss optisch sauber aufgeht
|
|
8725
8591
|
const evAbs = Math.max(0, Math.abs(c2));
|
|
8726
8592
|
const loadDisplayBase = Math.max(0, subEvFromLoad ? (load - evAbs) : load);
|
|
8727
|
-
let loadDisplay = Math.max(0, loadDisplayBase - extrasConsumersSum);
|
|
8593
|
+
let loadDisplay = Math.max(0, loadDisplayBase - (extrasConsumersSum ?? 0));
|
|
8728
8594
|
|
|
8729
|
-
//
|
|
8730
|
-
//
|
|
8731
|
-
try {
|
|
8732
|
-
const sysActivityW = Math.abs(pv) + Math.abs(buy) + Math.abs(sell) + Math.abs(batCharge) + Math.abs(batDischarge) + Math.abs(c2) + Math.abs(extrasConsumersSum);
|
|
8733
|
-
if (sysActivityW > 300 && loadDisplay === 0) {
|
|
8734
|
-
const lastW = Number(window.__nwLastGoodLoadDisplayW);
|
|
8735
|
-
const lastTs = Number(window.__nwLastGoodLoadDisplayTs);
|
|
8736
|
-
if (Number.isFinite(lastW) && Number.isFinite(lastTs) && (Date.now() - lastTs) < 60 * 1000 && lastW > 0) {
|
|
8737
|
-
loadDisplay = lastW;
|
|
8738
|
-
} else {
|
|
8739
|
-
loadDisplay = 100;
|
|
8740
|
-
}
|
|
8741
|
-
}
|
|
8742
|
-
if (loadDisplay > 0) {
|
|
8743
|
-
window.__nwLastGoodLoadDisplayW = loadDisplay;
|
|
8744
|
-
window.__nwLastGoodLoadDisplayTs = Date.now();
|
|
8745
|
-
}
|
|
8746
|
-
} catch (_e) {}
|
|
8595
|
+
// Echte 0 W bleiben 0 W. Fehlende Messung wird unten als unbekannt gezeigt;
|
|
8596
|
+
// Anzeige-Glättung darf keinen Ersatzverbrauch erfinden oder Zeitstempel erneuern.
|
|
8747
8597
|
|
|
8748
8598
|
// -------- Anzeige-Werte & Richtungen (ohne Netto-Berechnung) --------
|
|
8749
8599
|
// PV: immer Richtung Gebäude (keine Richtungsumschaltung); Wert = |pv|
|
|
@@ -8817,14 +8667,25 @@ function updateEnergyWeb() {
|
|
|
8817
8667
|
*/
|
|
8818
8668
|
const T = (id, t) => { const el=document.getElementById(id); if (el) el.textContent=t; };
|
|
8819
8669
|
|
|
8820
|
-
T('pvVal', formatFlowPower(pvValNum));
|
|
8670
|
+
T('pvVal', measurements.pv === null ? '--' : formatFlowPower(pvValNum));
|
|
8821
8671
|
// grid text: +Bezug, -Einspeisung
|
|
8822
|
-
T('gridVal', gridShowVal ? (gridSellMode ? ('-'+formatFlowPower(gridShowVal)) : formatFlowPower(gridShowVal)) : formatFlowPower(0));
|
|
8672
|
+
T('gridVal', measurements.buy === null ? '--' : gridShowVal ? (gridSellMode ? ('-'+formatFlowPower(gridShowVal)) : formatFlowPower(gridShowVal)) : formatFlowPower(0));
|
|
8823
8673
|
// EV & Batterie Texte
|
|
8824
|
-
T('c2Val', formatFlowPower(evShowVal));
|
|
8825
|
-
T('restVal', batShowVal ? (batRev ? ('-'+formatFlowPower(batShowVal)) : formatFlowPower(batShowVal)) : formatFlowPower(0));
|
|
8826
|
-
T('centerPower', formatFlowPower(Math.max(0, loadDisplay)));
|
|
8827
|
-
if (soc===undefined ||
|
|
8674
|
+
T('c2Val', evcsPowerW === null ? '--' : formatFlowPower(evShowVal));
|
|
8675
|
+
T('restVal', measurements.charge === null || measurements.discharge === null ? '--' : batShowVal ? (batRev ? ('-'+formatFlowPower(batShowVal)) : formatFlowPower(batShowVal)) : formatFlowPower(0));
|
|
8676
|
+
T('centerPower', measurements.load === null || extrasConsumersSum === null || (evAvail && subEvFromLoad && evcsPowerW === null) ? '--' : formatFlowPower(Math.max(0, loadDisplay)));
|
|
8677
|
+
if (soc===undefined || soc===null || typeof soc === 'boolean' || !Number.isFinite(Number(soc))) { T('batterySocIn','-- %'); } else { T('batterySocIn', Number(soc).toFixed(0)+' %'); }
|
|
8678
|
+
|
|
8679
|
+
for (const id of ['pvLbl', 'pvPowerBig']) T(id, measurements.pv === null ? '--' : formatPower(measurements.pv));
|
|
8680
|
+
for (const id of ['loadLbl', 'centerLoad', 'consumptionTotalBig']) T(id, measurements.load === null ? '--' : formatPower(measurements.load));
|
|
8681
|
+
for (const id of ['gridLbl', 'gridBuyVal']) T(id, measurements.buy === null ? '--' : formatPower(measurements.buy));
|
|
8682
|
+
T('gridSellVal', measurements.sell === null ? '--' : formatPower(measurements.sell));
|
|
8683
|
+
T('chargeVal', measurements.charge === null ? '--' : formatPower(measurements.charge));
|
|
8684
|
+
T('dischargeVal', measurements.discharge === null ? '--' : formatPower(measurements.discharge));
|
|
8685
|
+
T('socLbl', soc === null ? '-- %' : `${soc.toFixed(0)} %`);
|
|
8686
|
+
T('socText', soc === null ? 'SoC -- %' : `SoC ${soc.toFixed(0)} %`);
|
|
8687
|
+
if (soc === null || measurements.charge === null) T('tFull', 'Voll --');
|
|
8688
|
+
if (soc === null || measurements.discharge === null) T('tEmpty', 'Leer --');
|
|
8828
8689
|
|
|
8829
8690
|
// Sichtbarkeit
|
|
8830
8691
|
/**
|
|
@@ -8846,7 +8707,7 @@ function updateEnergyWeb() {
|
|
|
8846
8707
|
if (evcsLine) evcsLine.style.display = evAvail ? '' : 'none';
|
|
8847
8708
|
show('linePV', pvValNum>0);
|
|
8848
8709
|
show('lineGrid', gridShowVal>0);
|
|
8849
|
-
show('lineC2', evAvail && evShowVal>0);
|
|
8710
|
+
show('lineC2', evAvail && evcsPowerW !== null && evShowVal>0);
|
|
8850
8711
|
show('lineRest', batShowVal>0);
|
|
8851
8712
|
|
|
8852
8713
|
// Richtung
|
|
@@ -10021,7 +9882,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10021
9882
|
|
|
10022
9883
|
// Update values from state inside global render()
|
|
10023
9884
|
window.__evcsApply = function(d, s){
|
|
10024
|
-
const p =
|
|
9885
|
+
const p = getEvcsPowerW(d);
|
|
10025
9886
|
const st = d('evcs.1.status') ?? d('evcsStatus') ?? '--';
|
|
10026
9887
|
|
|
10027
9888
|
// EMS available?
|
|
@@ -10085,7 +9946,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10085
9946
|
'conic-gradient(#6c5ce7 0% ' + deg + ', #2a2f35 ' + deg + ' 100%)';
|
|
10086
9947
|
}
|
|
10087
9948
|
|
|
10088
|
-
const pb = qs('evcsPowerBig'); if (pb) pb.textContent = fmtP(p);
|
|
9949
|
+
const pb = qs('evcsPowerBig'); if (pb) pb.textContent = p === null ? '--' : fmtP(p);
|
|
10089
9950
|
const sm = qs('evcsStatusModal'); if (sm) sm.textContent = st;
|
|
10090
9951
|
|
|
10091
9952
|
// Optional: Fahrzeug-SoC anzeigen, falls vorhanden
|