iobroker.eos-admin 9.0.18 → 9.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NEXOWATT_EOS_BUILD_INFO.json +8 -9
- package/README.md +4 -2
- package/START_HIER_9.0.19.md +52 -0
- package/adminWww/.vite/manifest.json +114 -114
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13759 -13759
- package/adminWww/assets/{AdapterUpdateDialog-ByJk9Cxj.js → AdapterUpdateDialog-JOf2z4Vg.js} +1 -1
- package/adminWww/assets/{Adapters-V2JtEPZX.js → Adapters-C9fcSdWm.js} +1 -1
- package/adminWww/assets/{ConfigManager-BKcdyJnN.js → ConfigManager-BeeLlT6D.js} +1 -1
- package/adminWww/assets/{Enums-ChbfAWzp.js → Enums-FqnXWl8U.js} +1 -1
- package/adminWww/assets/{Fields-DzaVXEvg.js → Fields-DMgrt5Pi.js} +1 -1
- package/adminWww/assets/{Files-CRpIXj4X.js → Files-CIHtt12g.js} +1 -1
- package/adminWww/assets/{Hosts-rOgfd2wo.js → Hosts-fPLBzvTy.js} +1 -1
- package/adminWww/assets/{Instances-BxLhJ6Pb.js → Instances-4XaVQlrT.js} +1 -1
- package/adminWww/assets/{Intro-BOql527d.js → Intro-5TKriiLO.js} +1 -1
- package/adminWww/assets/{Logs-WUUDY7a4.js → Logs-33zcIds-.js} +1 -1
- package/adminWww/assets/{Objects-DYaZkCK7.js → Objects-CNQPVbNG.js} +1 -1
- package/adminWww/assets/{Overview-C6hiiPbm.js → Overview-BskXGOc8.js} +1 -1
- package/adminWww/assets/{State-AH43l7fG.js → State-C8SJ_Iqo.js} +1 -1
- package/adminWww/assets/{UsedResources-jhsRMH4X.js → UsedResources-CgqRa9ei.js} +1 -1
- package/adminWww/assets/{Users-D9wyLyJ1.js → Users-0JVYWR9u.js} +1 -1
- package/adminWww/assets/{bootstrap-gVLo1K_2.js → bootstrap-D16lu6rd.js} +3 -3
- package/adminWww/assets/{hostInit-Dt_M-NAC.js → hostInit-C8YZJuzi.js} +1 -1
- package/adminWww/assets/{icons-material-DuVW_EUA.js → icons-material-CiNJ_6Ur.js} +1 -1
- package/adminWww/assets/{index-B1cnPkSO.js → index-DA9Sphgh.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-GvgHjubR.js → installSVGRenderer-DPdkRa_d.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-6b32b635.js → mf-entry-bootstrap-0-a7ab91de.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/remoteEntry-eos-9.0.19.js +12 -0
- 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 +432 -24
- package/build/lib/eosDeviceEmsPlan.js.map +1 -1
- package/build/lib/eosDeviceEmsService.js +106 -10
- package/build/lib/eosDeviceEmsService.js.map +1 -1
- package/build/lib/eosModuleHost.js +178 -53
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/web.js +19 -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/io-package.json +8 -8
- 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/deviceAliasFreshness.js +65 -0
- package/modules/devices/lib/deviceRuntime.js +201 -127
- package/modules/devices/lib/drivers/modbus.js +18 -3
- package/modules/devices/lib/drivers/speedwire.js +42 -22
- package/modules/devices/test/deviceAliasFreshness.test.js +149 -0
- package/modules/devices/test/emsAssignmentUi.test.js +119 -11
- package/modules/devices/test/modbusAuthorizationReads.test.js +112 -0
- package/modules/devices/test/runtimeLiveness.test.js +1 -1
- package/modules/devices/test/speedwireLifecycle.test.js +118 -0
- package/modules/devices/tsconfig.alias-semantics.json +1 -1
- package/modules/devices/tsconfig.hosted.json +1 -1
- package/package.json +9 -7
- package/release-manifests/unified/build-environment.cdx.json +1483 -7370
- package/release-manifests/unified/files.json +295 -133
- 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 +88 -6
- package/release-manifests/unified/runtime.cdx.json +40 -3283
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-manifest.cjs +3 -3
- package/ui/docs/security/eslint-reviewed-findings.json +20 -20
- package/ui/ems/engine.js +54 -7
- package/ui/ems/module-manager.js +44 -21
- package/ui/ems/modules/core-limits.js +5 -3
- package/ui/ems/modules/energy-wallet.js +31 -32
- package/ui/ems/modules/storage-control.js +5 -4
- package/ui/ems/modules/tarif-vis.js +36 -24
- package/ui/ems/modules/tariff-provider.js +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/installer-lifecycle.js +134 -1
- package/ui/lib/storage-farm-overview.js +115 -0
- package/ui/lib/tariff-price.js +115 -0
- package/ui/main.js +202 -51
- package/ui/package.json +8 -2
- package/ui/www/app.js +47 -134
- package/ui/www/ems-apps.html +2 -0
- package/ui/www/ems-apps.js +14 -2
- package/ui/www/index.html +2 -0
- package/ui/www/licenses/smarthome-markdown-components.json +156 -156
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/power-measurements.js +62 -0
- package/ui/www/settings.html +2 -0
- package/ui/www/storagefarm-summary.css +17 -0
- package/ui/www/storagefarm-summary.js +136 -0
- package/ui/www/storagefarm.html +16 -1
- package/ui/www/storagefarm.js +10 -22
- package/ui/www/tariff-display.js +161 -0
- package/adminWww/remoteEntry-eos-9.0.18.js +0 -12
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:2076f8c427c8f0c7fdbfacd67fce79eec650ce4e888130a66cb1c48b52459eb2
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -639,11 +639,7 @@ function formatNum(v, suffix='') {
|
|
|
639
639
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
640
640
|
*/
|
|
641
641
|
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
|
|
642
|
+
return window.NexoWattTariffDisplay.format(v);
|
|
647
643
|
}
|
|
648
644
|
|
|
649
645
|
// ------------------------------
|
|
@@ -661,99 +657,9 @@ function formatPricePerKwh(v){
|
|
|
661
657
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
662
658
|
*/
|
|
663
659
|
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;
|
|
660
|
+
return window.NexoWattTariffDisplay.parseCurve(raw);
|
|
756
661
|
}
|
|
662
|
+
|
|
757
663
|
/**
|
|
758
664
|
* Code-Teil: nwNiceStep
|
|
759
665
|
* Zweck: Kapselt einen lokalen Verarbeitungsschritt, damit Aufrufer nicht direkt in Detaildaten eingreifen.
|
|
@@ -1059,7 +965,9 @@ function nwDrawTariffForecastChart(canvas, curve, opts){
|
|
|
1059
965
|
ctx.textBaseline = 'top';
|
|
1060
966
|
const xHours = [0, 6, 12, 18];
|
|
1061
967
|
xHours.forEach(h => {
|
|
1062
|
-
const
|
|
968
|
+
const localTick = new Date(dayStartMs);
|
|
969
|
+
localTick.setHours(h, 0, 0, 0);
|
|
970
|
+
const t = localTick.getTime();
|
|
1063
971
|
const x = xOf(t);
|
|
1064
972
|
const lab = String(h).padStart(2,'0') + ':00';
|
|
1065
973
|
ctx.fillText(lab, x, H - m.B + 6);
|
|
@@ -1186,10 +1094,7 @@ function initTariffForecastTooltip(){
|
|
|
1186
1094
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1187
1095
|
*/
|
|
1188
1096
|
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() };
|
|
1097
|
+
return window.NexoWattTariffDisplay.dayRange(Date.now());
|
|
1193
1098
|
}
|
|
1194
1099
|
/**
|
|
1195
1100
|
* Code-Teil: update
|
|
@@ -1220,21 +1125,15 @@ function initTariffForecastTooltip(){
|
|
|
1220
1125
|
const ts = tsOf('priceTodayJson') || tsOf('tarif.preisAktuellEurProKwh') || tsOf('priceCurrent');
|
|
1221
1126
|
const tsTxt = ts ? ('aktualisiert ' + _fmtTimeHHmm(ts)) : '';
|
|
1222
1127
|
// Current price
|
|
1223
|
-
const pNow =
|
|
1128
|
+
const pNow = window.NexoWattTariffDisplay.display(window.latestState, window.__nwCfg?.tariffDisplay, Date.now(), window.__nwTariffLiveOnline !== false).current;
|
|
1224
1129
|
const pNowTxt = (pNow !== null && pNow !== undefined && Number.isFinite(Number(pNow))) ? nwFormatCt(Number(pNow)) : '';
|
|
1225
|
-
const meta = [pNowTxt ? ('Aktuell ' + pNowTxt) : '', tsTxt].filter(Boolean).join(' • ');
|
|
1130
|
+
const meta = [window.NexoWattTariffDisplay.resolution(curveToday), pNowTxt ? ('Aktuell ' + pNowTxt) : '', tsTxt].filter(Boolean).join(' • ');
|
|
1226
1131
|
if (metaEl) metaEl.textContent = meta || '—';
|
|
1227
1132
|
|
|
1228
1133
|
// min/avg/max
|
|
1229
1134
|
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
|
-
}
|
|
1135
|
+
// Originalintervalle bleiben erhalten: echte Viertelstunden werden nicht zu Stunden gemittelt.
|
|
1136
|
+
const curvePlot = curveToday;
|
|
1238
1137
|
|
|
1239
1138
|
if (ps.length > 0) {
|
|
1240
1139
|
const min = Math.min(...ps);
|
|
@@ -1961,6 +1860,9 @@ function nwLatestStateTimestamp(keys) {
|
|
|
1961
1860
|
*/
|
|
1962
1861
|
function nwSetLiveOnline(isOnline) {
|
|
1963
1862
|
const online = !!isOnline;
|
|
1863
|
+
const tariffConnectionChanged = window.__nwTariffLiveOnline !== online;
|
|
1864
|
+
window.__nwTariffLiveOnline = online;
|
|
1865
|
+
if (tariffConnectionChanged) updateEmsControlUi();
|
|
1964
1866
|
setText('sideConnection', online ? 'Online' : 'Offline');
|
|
1965
1867
|
setText('sideStatusText', online ? 'Alle Systeme normal' : 'Verbindung wird aufgebaut');
|
|
1966
1868
|
const dot = document.getElementById('sideLiveDot');
|
|
@@ -1972,6 +1874,18 @@ function nwSetLiveOnline(isOnline) {
|
|
|
1972
1874
|
* Zusammenhang: Teil von Kunden-LIVE-Frontend: Dashboard, Energiefluss, Schnellsteuerung; Aufrufstellen und abhängige States/APIs beim Ändern mitprüfen.
|
|
1973
1875
|
* TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
|
|
1974
1876
|
*/
|
|
1877
|
+
function getEvcsPowerW(readValue) {
|
|
1878
|
+
const d = typeof readValue === 'function' ? readValue : (key => {
|
|
1879
|
+
const snapshot = window.latestState || state || {};
|
|
1880
|
+
return typeof snapshot === 'object' && Object.hasOwn(snapshot, key) ? Reflect.get(snapshot, key)?.value : undefined;
|
|
1881
|
+
});
|
|
1882
|
+
const mapped = window.__nwCfg?.datapoints?.consumptionEvcs;
|
|
1883
|
+
return window.NexoWattPowerMeasurements?.resolveEvcsPower({
|
|
1884
|
+
overrideConfigured: typeof mapped === 'string' && mapped.trim().length > 0,
|
|
1885
|
+
override: d('consumptionEvcs'), aggregate: d('evcs.totalPowerW'), legacy: d('evcsPower'),
|
|
1886
|
+
}) ?? null;
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1975
1889
|
function updateDashboardShellUi(data) {
|
|
1976
1890
|
const snap = data || {};
|
|
1977
1891
|
const d = typeof snap.d === 'function' ? snap.d : ((k) => (window.latestState || state || {})[k]?.value);
|
|
@@ -1987,7 +1901,7 @@ function updateDashboardShellUi(data) {
|
|
|
1987
1901
|
const discharge = Math.max(0, Number(snap.discharge ?? 0) || 0);
|
|
1988
1902
|
const batterySigned = discharge - charge;
|
|
1989
1903
|
const evcsAvailable = nwEvcsFeatureFromConfig();
|
|
1990
|
-
const evcsPower = evcsAvailable ? (
|
|
1904
|
+
const evcsPower = evcsAvailable ? getEvcsPowerW(d) : null;
|
|
1991
1905
|
try { nwApplyCustomerFeatureVisibility(window.__nwCfg || {}, window.latestState || state || {}); } catch (_e) {}
|
|
1992
1906
|
|
|
1993
1907
|
const soc = (snap.socN !== undefined && snap.socN !== null) ? Number(snap.socN) : coerceNumber(d('storageSoc'));
|
|
@@ -2011,7 +1925,7 @@ function updateDashboardShellUi(data) {
|
|
|
2011
1925
|
setText('sideGridBuyPower', formatFlowPower(Math.max(0, buy)));
|
|
2012
1926
|
setText('sideGridSellPower', formatFlowPower(Math.max(0, sell)));
|
|
2013
1927
|
setText('sideBatteryPower', (batterySigned < 0 ? '-' : '') + formatFlowPower(Math.abs(batterySigned)));
|
|
2014
|
-
if (evcsAvailable) setText('sideEvcsPower', formatFlowPower(Math.abs(evcsPower)));
|
|
1928
|
+
if (evcsAvailable) setText('sideEvcsPower', evcsPower === null ? '--' : formatFlowPower(Math.abs(evcsPower)));
|
|
2015
1929
|
|
|
2016
1930
|
const ts = nwLatestStateTimestamp([
|
|
2017
1931
|
'pvPower', 'productionTotal', 'consumptionTotal', 'gridPower', 'gridBuyPower',
|
|
@@ -3455,7 +3369,8 @@ function render() {
|
|
|
3455
3369
|
|
|
3456
3370
|
|
|
3457
3371
|
const evcsAvailableNow = nwEvcsFeatureFromConfig();
|
|
3458
|
-
|
|
3372
|
+
const evcsPowerNow = getEvcsPowerW(d);
|
|
3373
|
+
setText('consumptionEvcs', evcsAvailableNow ? (evcsPowerNow === null ? '--' : formatPower(evcsPowerNow)) : '');
|
|
3459
3374
|
setText('consumptionEnergyKwh', formatEnergyKwh(d('consumptionEnergyKwh')));
|
|
3460
3375
|
setText('consumptionBuilding', formatPower(d('consumptionTotal') ?? 0));
|
|
3461
3376
|
|
|
@@ -3588,7 +3503,7 @@ function render() {
|
|
|
3588
3503
|
socN,
|
|
3589
3504
|
autarkyN,
|
|
3590
3505
|
selfcN,
|
|
3591
|
-
evcsPower: nwEvcsFeatureFromConfig() ? (d
|
|
3506
|
+
evcsPower: nwEvcsFeatureFromConfig() ? getEvcsPowerW(d) : null,
|
|
3592
3507
|
co2Text: co2TextDash
|
|
3593
3508
|
});
|
|
3594
3509
|
} catch (_e) {}
|
|
@@ -6469,8 +6384,9 @@ function updateEmsControlUi() {
|
|
|
6469
6384
|
const card = document.getElementById('tariffCard');
|
|
6470
6385
|
if (card) card.classList.toggle('hidden', !showCard);
|
|
6471
6386
|
|
|
6472
|
-
const
|
|
6473
|
-
const
|
|
6387
|
+
const tariffDisplay = window.NexoWattTariffDisplay.display(st, window.__nwCfg?.tariffDisplay, Date.now(), window.__nwTariffLiveOnline !== false);
|
|
6388
|
+
const priceNow = tariffDisplay.current;
|
|
6389
|
+
const priceAvg = tariffDisplay.average;
|
|
6474
6390
|
|
|
6475
6391
|
/**
|
|
6476
6392
|
* Code-Teil: Arrow-Funktion `setText`
|
|
@@ -6486,14 +6402,10 @@ function updateEmsControlUi() {
|
|
|
6486
6402
|
*/
|
|
6487
6403
|
const setText = (id, txt) => { const el = document.getElementById(id); if (el) el.textContent = txt; };
|
|
6488
6404
|
|
|
6489
|
-
//
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
} else {
|
|
6494
|
-
setText('priceCurrent', formatPricePerKwh(priceNow));
|
|
6495
|
-
setText('priceAverage', formatPricePerKwh(priceAvg));
|
|
6496
|
-
}
|
|
6405
|
+
// Der Preisabruf ist unabhängig von der bewussten Freigabe der Tarifoptimierung.
|
|
6406
|
+
setText('priceCurrent', formatPricePerKwh(priceNow));
|
|
6407
|
+
setText('priceAverage', formatPricePerKwh(priceAvg));
|
|
6408
|
+
if (card) card.title = tariffDisplay.status;
|
|
6497
6409
|
|
|
6498
6410
|
// Peak short status (Netzschutz – nur Installateur konfigurierbar)
|
|
6499
6411
|
const peakStatus = String(v('peakShaving.control.status') || '').trim();
|
|
@@ -6577,8 +6489,8 @@ function updateEmsControlUi() {
|
|
|
6577
6489
|
}
|
|
6578
6490
|
}
|
|
6579
6491
|
|
|
6580
|
-
setText('emsPriceCurrent',
|
|
6581
|
-
setText('emsPriceAvg',
|
|
6492
|
+
setText('emsPriceCurrent', formatPricePerKwh(priceNow));
|
|
6493
|
+
setText('emsPriceAvg', formatPricePerKwh(priceAvg));
|
|
6582
6494
|
|
|
6583
6495
|
// Priority buttons
|
|
6584
6496
|
const prioWrap = document.getElementById('emsTariffPriorityButtons');
|
|
@@ -8688,7 +8600,8 @@ function updateEnergyWeb() {
|
|
|
8688
8600
|
let pv = getCanonicalPvPowerW(d);
|
|
8689
8601
|
let { buy, sell } = getGridImportExport(d);
|
|
8690
8602
|
let load = +(d('consumptionTotal') ?? 0);
|
|
8691
|
-
|
|
8603
|
+
const evcsPowerW = getEvcsPowerW(d);
|
|
8604
|
+
let c2 = evcsPowerW ?? 0; // Unknown is used as zero only for drawing geometry, never as a displayed measurement.
|
|
8692
8605
|
|
|
8693
8606
|
// Batterie: zentral normalisieren wie den NVP.
|
|
8694
8607
|
// Signed batteryPower-Konvention: -W = Laden, +W = Entladen;
|
|
@@ -8821,7 +8734,7 @@ function updateEnergyWeb() {
|
|
|
8821
8734
|
// grid text: +Bezug, -Einspeisung
|
|
8822
8735
|
T('gridVal', gridShowVal ? (gridSellMode ? ('-'+formatFlowPower(gridShowVal)) : formatFlowPower(gridShowVal)) : formatFlowPower(0));
|
|
8823
8736
|
// EV & Batterie Texte
|
|
8824
|
-
T('c2Val', formatFlowPower(evShowVal));
|
|
8737
|
+
T('c2Val', evcsPowerW === null ? '--' : formatFlowPower(evShowVal));
|
|
8825
8738
|
T('restVal', batShowVal ? (batRev ? ('-'+formatFlowPower(batShowVal)) : formatFlowPower(batShowVal)) : formatFlowPower(0));
|
|
8826
8739
|
T('centerPower', formatFlowPower(Math.max(0, loadDisplay)));
|
|
8827
8740
|
if (soc===undefined || isNaN(Number(soc))) { T('batterySocIn','-- %'); } else { T('batterySocIn', Number(soc).toFixed(0)+' %'); }
|
|
@@ -8846,7 +8759,7 @@ function updateEnergyWeb() {
|
|
|
8846
8759
|
if (evcsLine) evcsLine.style.display = evAvail ? '' : 'none';
|
|
8847
8760
|
show('linePV', pvValNum>0);
|
|
8848
8761
|
show('lineGrid', gridShowVal>0);
|
|
8849
|
-
show('lineC2', evAvail && evShowVal>0);
|
|
8762
|
+
show('lineC2', evAvail && evcsPowerW !== null && evShowVal>0);
|
|
8850
8763
|
show('lineRest', batShowVal>0);
|
|
8851
8764
|
|
|
8852
8765
|
// Richtung
|
|
@@ -10021,7 +9934,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10021
9934
|
|
|
10022
9935
|
// Update values from state inside global render()
|
|
10023
9936
|
window.__evcsApply = function(d, s){
|
|
10024
|
-
const p =
|
|
9937
|
+
const p = getEvcsPowerW(d);
|
|
10025
9938
|
const st = d('evcs.1.status') ?? d('evcsStatus') ?? '--';
|
|
10026
9939
|
|
|
10027
9940
|
// EMS available?
|
|
@@ -10085,7 +9998,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10085
9998
|
'conic-gradient(#6c5ce7 0% ' + deg + ', #2a2f35 ' + deg + ' 100%)';
|
|
10086
9999
|
}
|
|
10087
10000
|
|
|
10088
|
-
const pb = qs('evcsPowerBig'); if (pb) pb.textContent = fmtP(p);
|
|
10001
|
+
const pb = qs('evcsPowerBig'); if (pb) pb.textContent = p === null ? '--' : fmtP(p);
|
|
10089
10002
|
const sm = qs('evcsStatusModal'); if (sm) sm.textContent = st;
|
|
10090
10003
|
|
|
10091
10004
|
// Optional: Fahrzeug-SoC anzeigen, falls vorhanden
|
package/ui/www/ems-apps.html
CHANGED
|
@@ -1117,6 +1117,7 @@
|
|
|
1117
1117
|
<section class="nw-config-section">
|
|
1118
1118
|
<div class="nw-config-section__head">
|
|
1119
1119
|
<h2 class="nw-config-section__title">Speicherfarm</h2>
|
|
1120
|
+
<a class="nw-btn" href="storagefarm.html" id="storageFarmOverviewLink">Farm-Gesamtübersicht öffnen</a>
|
|
1120
1121
|
</div>
|
|
1121
1122
|
<div class="nw-config-section__subtitle" style="margin:0 0 10px 0;opacity:.85;">
|
|
1122
1123
|
Mehrere Speichersysteme als gemeinsamer Pool oder in Gruppen betreiben. SoC wird aggregiert, Sollleistung wird verteilt.
|
|
@@ -2345,6 +2346,7 @@
|
|
|
2345
2346
|
<script src="/static/operating-strategies-rule-builder.js"></script>
|
|
2346
2347
|
<script src="/static/operating-strategies-appcenter.js"></script>
|
|
2347
2348
|
<script src="/static/evcs-electrical-limits.js"></script>
|
|
2349
|
+
<script src="/static/power-measurements.js"></script>
|
|
2348
2350
|
<script src="/static/ems-apps.js"></script>
|
|
2349
2351
|
<script src="/static/charging-diagnostics-appcenter.js"></script>
|
|
2350
2352
|
|
package/ui/www/ems-apps.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/ems-apps.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:8c14de191f83d20f1c35f1b706e2d5787b015984587dc42ad707d62f33de338e
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -1404,7 +1404,7 @@
|
|
|
1404
1404
|
// Darum werden leere editierbare Felder angelegt, damit der Installateur
|
|
1405
1405
|
// die Speicher direkt wieder anbinden kann, statt bei "Noch keine Speicher"
|
|
1406
1406
|
// festzuhängen.
|
|
1407
|
-
socId: '', signedPowerId: '', chargePowerId: '', dischargePowerId: '', pvPowerId: '',
|
|
1407
|
+
socId: '', signedPowerId: '', batteryFlowPowerId: '', chargePowerId: '', dischargePowerId: '', pvPowerId: '',
|
|
1408
1408
|
vendorProfile: 'generic', feneconControlMode: 'auto',
|
|
1409
1409
|
feneconGridSetpointId: '', feneconEssActualPowerId: '', feneconNvpPowerId: '', feneconConsumptionTotalId: '', feneconMinPowerId: '', feneconMaxPowerId: '',
|
|
1410
1410
|
feneconActualSetpointId: '', feneconPvDcId: '', feneconPvAcId: '', feneconPvTotalId: '',
|
|
@@ -1484,6 +1484,7 @@
|
|
|
1484
1484
|
feneconControlMode,
|
|
1485
1485
|
socId: textFrom('socId', 'socObjectId', 'socDp', 'storageSocId', 'storageSoc'),
|
|
1486
1486
|
signedPowerId: textFrom('signedPowerId', 'batteryPowerObjectId', 'signedPowerDp', 'powerObjectId', 'powerId', 'batteryPower'),
|
|
1487
|
+
batteryFlowPowerId: textFrom('batteryFlowPowerId'),
|
|
1487
1488
|
chargePowerId: textFrom('chargePowerId', 'batteryChargePowerObjectId', 'chargePowerDp', 'chargeDp', 'storageChargePower'),
|
|
1488
1489
|
dischargePowerId: textFrom('dischargePowerId', 'batteryDischargePowerObjectId', 'dischargePowerDp', 'dischargeDp', 'storageDischargePower'),
|
|
1489
1490
|
pvPowerId: textFrom('pvPowerId', 'pvPowerObjectId', 'pvPowerDp', 'storagePvPowerId'),
|
|
@@ -1853,6 +1854,13 @@ function _collectFlowPowerDpIsWFromUI() {
|
|
|
1853
1854
|
continue;
|
|
1854
1855
|
}
|
|
1855
1856
|
|
|
1857
|
+
const expectPower = inp.dataset.dpPower === '1' || /powerId|setPowerWId|budgetPowerId|gridPowerId|pvSurplusPowerId|PowerObjectId|PowerWriteId|PowerReadId/i.test(inp.id);
|
|
1858
|
+
const powerIssue = expectPower ? window.NexoWattPowerMeasurements?.validatePowerReference(info) : null;
|
|
1859
|
+
if (powerIssue) {
|
|
1860
|
+
_setBadge(inp.id, powerIssue.kind, powerIssue.text);
|
|
1861
|
+
continue;
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1856
1864
|
if (info.statePresent !== true) {
|
|
1857
1865
|
_setBadge(inp.id, 'warn', 'keine Daten');
|
|
1858
1866
|
continue;
|
|
@@ -3617,6 +3625,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
3617
3625
|
input.placeholder = field.placeholder || '';
|
|
3618
3626
|
input.value = valueOrEmpty(getter(field.key));
|
|
3619
3627
|
input.id = inputId;
|
|
3628
|
+
if (field.power) input.dataset.dpPower = '1';
|
|
3620
3629
|
input.autocomplete = 'off';
|
|
3621
3630
|
input.spellcheck = false;
|
|
3622
3631
|
input.title = String(input.value || '').trim();
|
|
@@ -4041,6 +4050,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
4041
4050
|
dpInput.placeholder = 'Datenpunkt (W/kW) (optional)';
|
|
4042
4051
|
dpInput.value = valueOrEmpty(dps[dpKey]);
|
|
4043
4052
|
dpInput.dataset.dpInput = '1';
|
|
4053
|
+
dpInput.dataset.dpPower = '1';
|
|
4044
4054
|
// Ereignis-Kommentar: Bindet das UI-Ereignis 'change' an dpInput. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
|
|
4045
4055
|
dpInput.addEventListener('change', () => {
|
|
4046
4056
|
currentConfig.datapoints = currentConfig.datapoints || {};
|
|
@@ -9983,6 +9993,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
9983
9993
|
|
|
9984
9994
|
grid.appendChild(mkDpField('SoC (%)', `sf_${idx}_socId`, s.socId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].socId = v; }, 'SoC‑Datenpunkt'));
|
|
9985
9995
|
grid.appendChild(mkDpField('Istleistung Signed (W)', `sf_${idx}_signedPowerId`, s.signedPowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].signedPowerId = v; }, '(-) laden / (+) entladen'));
|
|
9996
|
+
grid.appendChild(mkDpField('Batterieanteil für Energiefluss (W)', `sf_${idx}_batteryFlowPowerId`, s.batteryFlowPowerId, (v) => { const row = _ensureStorageFarmCfg().storages.at(i); if (row) row.batteryFlowPowerId = v; }, 'Optional: echter Batterieanteil ohne DC-PV, z. B. FENECON 415; Regler-Istleistung bleibt getrennt.'));
|
|
9986
9997
|
grid.appendChild(mkDpField('Ist Ladeleistung (W)', `sf_${idx}_chargePowerId`, s.chargePowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].chargePowerId = v; }, 'Messwert (optional)'));
|
|
9987
9998
|
grid.appendChild(mkDpField('Ist Entladeleistung (W)', `sf_${idx}_dischargePowerId`, s.dischargePowerId, (v) => { const sf2 = _ensureStorageFarmCfg(); sf2.storages[i].dischargePowerId = v; }, 'Messwert (optional)'));
|
|
9988
9999
|
|
|
@@ -10057,6 +10068,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
|
|
|
10057
10068
|
feneconApiTimeoutSec: 60,
|
|
10058
10069
|
socId: '',
|
|
10059
10070
|
signedPowerId: '',
|
|
10071
|
+
batteryFlowPowerId: '',
|
|
10060
10072
|
chargePowerId: '',
|
|
10061
10073
|
dischargePowerId: '',
|
|
10062
10074
|
pvPowerId: '',
|
package/ui/www/index.html
CHANGED
|
@@ -997,6 +997,8 @@
|
|
|
997
997
|
|
|
998
998
|
</main>
|
|
999
999
|
<script src="/static/dashboard-lp-status.js"></script>
|
|
1000
|
+
<script src="/static/power-measurements.js"></script>
|
|
1001
|
+
<script src="/static/tariff-display.js"></script>
|
|
1000
1002
|
<script src="/static/app.js"></script>
|
|
1001
1003
|
|
|
1002
1004
|
<!-- Kundeneinstellungen liegen ausschließlich in settings.html. -->
|