iobroker.eos-admin 9.0.36 → 9.0.39
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 +12 -10
- package/README.md +23 -3
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-D2nDWE_N.js → AdapterUpdateDialog-DDmYbnK4.js} +1 -1
- package/adminWww/assets/{Adapters-D0sVqNBU.js → Adapters-73Uo4VUy.js} +1 -1
- package/adminWww/assets/{ConfigManager-Zm7UoaaN.js → ConfigManager-DoFx_j4o.js} +1 -1
- package/adminWww/assets/{Enums-BGL7pR-O.js → Enums-BRQSAW9I.js} +1 -1
- package/adminWww/assets/{Fields-A8J3u1yq.js → Fields-pcmISvLk.js} +1 -1
- package/adminWww/assets/{Files-CQPjCvW6.js → Files-E8-7c9Ab.js} +1 -1
- package/adminWww/assets/{Hosts-CxzkkNBj.js → Hosts-D4a3shrq.js} +1 -1
- package/adminWww/assets/{Instances-eEbEukDh.js → Instances-ByxEHRoo.js} +1 -1
- package/adminWww/assets/{Intro-I_Tknp0E.js → Intro-DFriWa6g.js} +1 -1
- package/adminWww/assets/{Logs-C3GPz61Q.js → Logs-BXR0h5Sz.js} +1 -1
- package/adminWww/assets/{Objects-DDnisxNB.js → Objects-h6jg_6uT.js} +1 -1
- package/adminWww/assets/{Overview-BpZFdEmp.js → Overview-B39PiMGJ.js} +1 -1
- package/adminWww/assets/{State-DY6Nw0SB.js → State-CqF2ARx_.js} +1 -1
- package/adminWww/assets/{UsedResources-CtUpdP2b.js → UsedResources-CnbnoF3d.js} +1 -1
- package/adminWww/assets/{Users-DcqlSfc5.js → Users-BQik0rIi.js} +1 -1
- package/adminWww/assets/{bootstrap-Didkuj-F.js → bootstrap-Dllnekqb.js} +3 -3
- package/adminWww/assets/{hostInit-Chrs-wsg.js → hostInit-CQbS-SCS.js} +1 -1
- package/adminWww/assets/{icons-material-SqwOQW6y.js → icons-material-rYFYu2DM.js} +1 -1
- package/adminWww/assets/{index-CpDo61Mz.js → index-BzbVZbb2.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-DZMZ3pJw.js → installSVGRenderer-DbH6B8B8.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-b0c4981a.js → mf-entry-bootstrap-0-4dee1225.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.39.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosLegacyMigration.js +351 -60
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLegacySource.js +172 -0
- package/build/lib/eosLegacySource.js.map +1 -0
- package/build/lib/eosModuleHost.js +38 -1
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +55 -8
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +3 -1
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/main.js +1 -1
- package/build/main.js.map +1 -1
- package/docs/README.md +3 -0
- package/docs/reports/EMS_ZIELLADEN_2026-11-28.md +45 -0
- package/docs/reports/unified-9.0.37/PRUEFBERICHT.md +59 -0
- package/docs/reports/unified-9.0.37/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.37/raw/INDEX.json +232 -0
- package/docs/reports/unified-9.0.37/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.37/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.37/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.37/raw/dashboard-935-screenshot.json +15 -0
- package/docs/reports/unified-9.0.37/raw/dashboard-de-en-nl.json +1059 -0
- package/docs/reports/unified-9.0.37/raw/ems-ui-nvp-integration.json +245 -0
- package/docs/reports/unified-9.0.37/raw/farm-and-dashboard-935.json +11 -0
- package/docs/reports/unified-9.0.37/raw/farm-tracking-source-tests.log +80 -0
- package/docs/reports/unified-9.0.37/raw/fixtures-verification.log +39 -0
- package/docs/reports/unified-9.0.37/raw/frontend.log +160 -0
- package/docs/reports/unified-9.0.37/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.37/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.37/raw/measure-storage-display.cjs +47 -0
- package/docs/reports/unified-9.0.37/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.37/raw/node22-isolated-start-deadlines.log +28 -0
- package/docs/reports/unified-9.0.37/raw/node22-migration.log +1329 -0
- package/docs/reports/unified-9.0.37/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.37/raw/node22-parallel-initial.log +13278 -0
- package/docs/reports/unified-9.0.37/raw/node22-startzeiten.json +21 -0
- package/docs/reports/unified-9.0.37/raw/node22-system-status.log +639 -0
- package/docs/reports/unified-9.0.37/raw/node22-tests-final.log +18494 -0
- package/docs/reports/unified-9.0.37/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.37/raw/node24-migration.log +1301 -0
- package/docs/reports/unified-9.0.37/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.37/raw/node24-system-status.log +111 -0
- package/docs/reports/unified-9.0.37/raw/node24-tests-final.log +3080 -0
- package/docs/reports/unified-9.0.37/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.37/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.37/raw/platform-acl-node22.log +98 -0
- package/docs/reports/unified-9.0.37/raw/platform-acl-node24.log +22 -0
- package/docs/reports/unified-9.0.37/raw/platform-nginx-node22.json +21 -0
- package/docs/reports/unified-9.0.37/raw/platform-nginx-node24.json +21 -0
- package/docs/reports/unified-9.0.37/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.37/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.37/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.37/raw/speicher-warnschwelle-integration.json +172 -0
- package/docs/reports/unified-9.0.37/raw/sse-backpressure-9.0.35.log +1 -0
- package/docs/reports/unified-9.0.37/raw/sse-backpressure-9.0.37.log +1 -0
- package/docs/reports/unified-9.0.37/raw/storage-display-memory-node22.json +19 -0
- package/docs/reports/unified-9.0.37/raw/storage-display-memory-node24.json +19 -0
- package/docs/reports/unified-9.0.37/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.37/raw/ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.38/PRUEFBERICHT.md +51 -0
- package/docs/reports/unified-9.0.38/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.38/raw/INDEX.json +272 -0
- package/docs/reports/unified-9.0.38/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.38/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.38/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.38/raw/dashboard-de-en-nl.json +1044 -0
- package/docs/reports/unified-9.0.38/raw/field-upgrade-936-node22.log +21 -0
- package/docs/reports/unified-9.0.38/raw/field-upgrade-936-node24.log +10 -0
- package/docs/reports/unified-9.0.38/raw/fixtures-verification.log +39 -0
- package/docs/reports/unified-9.0.38/raw/frontend.log +152 -0
- package/docs/reports/unified-9.0.38/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.38/raw/legacy-historian-provenance.json +44 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-built-influx.log +10 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-misbinding-937.log +1 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-providers-node22.log +326 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-providers-node24.log +58 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-real-influx.log +10 -0
- package/docs/reports/unified-9.0.38/raw/legacy-history-source-comparison.json +12 -0
- package/docs/reports/unified-9.0.38/raw/legacy-template-interfaces.json +21 -0
- package/docs/reports/unified-9.0.38/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.38/raw/migration-admin-browser-node22.log +86 -0
- package/docs/reports/unified-9.0.38/raw/migration-admin-browser-node24.log +84 -0
- package/docs/reports/unified-9.0.38/raw/migration-live-children-node22.log +20 -0
- package/docs/reports/unified-9.0.38/raw/migration-live-children-node24.log +9 -0
- package/docs/reports/unified-9.0.38/raw/migration-process-admin-node22.log +831 -0
- package/docs/reports/unified-9.0.38/raw/migration-process-admin-node24.log +144 -0
- package/docs/reports/unified-9.0.38/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.38/raw/node22-initial-destination-channel.log +13298 -0
- package/docs/reports/unified-9.0.38/raw/node22-migration.log +1443 -0
- package/docs/reports/unified-9.0.38/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.38/raw/node22-system-status.log +639 -0
- package/docs/reports/unified-9.0.38/raw/node22-tests-final.log +18620 -0
- package/docs/reports/unified-9.0.38/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.38/raw/node24-migration.log +1411 -0
- package/docs/reports/unified-9.0.38/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.38/raw/node24-system-status.log +111 -0
- package/docs/reports/unified-9.0.38/raw/node24-tests-final.log +3102 -0
- package/docs/reports/unified-9.0.38/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.38/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.38/raw/platform-acl-node22.log +98 -0
- package/docs/reports/unified-9.0.38/raw/platform-acl-node24.log +22 -0
- package/docs/reports/unified-9.0.38/raw/platform-nginx-node22.json +21 -0
- package/docs/reports/unified-9.0.38/raw/platform-nginx-node24.json +21 -0
- package/docs/reports/unified-9.0.38/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.38/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.38/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.38/raw/source-shape-node22.log +438 -0
- package/docs/reports/unified-9.0.38/raw/source-shape-node24.log +78 -0
- package/docs/reports/unified-9.0.38/raw/target-owner-bootstrap-node22.log +509 -0
- package/docs/reports/unified-9.0.38/raw/target-owner-bootstrap-node24.log +92 -0
- package/docs/reports/unified-9.0.38/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.38/raw/ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.39/PRUEFBERICHT.md +48 -0
- package/docs/reports/unified-9.0.39/raw/INDEX.json +51 -0
- package/docs/reports/unified-9.0.39/raw/node22-tests-final.log +18189 -0
- package/docs/reports/unified-9.0.39/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.39/raw/node24-tests-final.log +3129 -0
- package/docs/reports/unified-9.0.39/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.39/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.39/raw/overnight-simulation.json +117 -0
- package/docs/start/START_HIER_9.0.37.md +38 -0
- package/docs/start/START_HIER_9.0.38.md +21 -0
- package/docs/start/START_HIER_9.0.39.md +14 -0
- package/docs/unified/BESTANDSUEBERNAHME_9_0_7.md +2 -0
- package/docs/unified/DEVELOPMENT_FINDINGS.md +3 -1
- package/docs/unified/SECURITY_CRA.md +6 -0
- package/io-package.json +16 -16
- package/modules/ocpp/README.md +2 -0
- package/modules/ocpp/ocpp/common.js +64 -40
- package/modules/ocpp/ocpp/eos-contract.js +8 -3
- package/modules/ocpp/runtime.js +10 -5
- package/modules/ocpp/test/eos-contract.test.js +67 -0
- package/modules/ocpp/test/hosted.test.cjs +29 -1
- package/package.json +12 -4
- package/public/eos-migration/index.html +11 -4
- package/public/eos-migration/index.js +156 -18
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +290 -164
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +249 -0
- package/release-manifests/unified/runtime.cdx.json +27 -27
- package/release-manifests/unified/validation.json +17 -17
- package/tools/eos-release-manifest.cjs +3 -1
- package/ui/docs/STATES_AND_DATAPOINTS_DE.md +132 -0
- package/ui/ems/engine.js +5 -3
- package/ui/ems/evcs-control-mapping.js +13 -1
- package/ui/ems/modules/charging-management.js +40 -76
- package/ui/ems/modules/para14a.js +8 -3
- package/ui/ems/modules/storage-control.js +10 -5
- package/ui/ems/services/admin-overview-publisher.js +13 -7
- package/ui/ems/services/charging-management-audit.js +32 -1
- package/ui/ems/services/forecast-aware-target-planner.js +12 -5
- package/ui/ems/services/forecast-target-runtime-bridge.js +12 -5
- package/ui/io-package.json +13 -1
- package/ui/lib/charging-point-identity.js +91 -16
- package/ui/lib/hosted-adapter.js +35 -1
- package/ui/lib/notification-mail.js +95 -8
- package/ui/main.js +407 -61
- package/ui/package.json +1 -1
- package/ui/www/app.js +104 -89
- package/ui/www/charging-diagnostics-appcenter.js +12 -7
- package/ui/www/dashboard-lp-status.js +19 -12
- package/ui/www/evcs.js +71 -98
- package/ui/www/i18n/en.json +15 -0
- package/ui/www/i18n/nl.json +15 -0
- package/ui/www/live-display.js +145 -27
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/storagefarm-dispatch.js +59 -8
- package/ui/www/storagefarm-summary.css +3 -1
- package/ui/www/storagefarm.html +2 -0
- package/adminWww/remoteEntry-eos-9.0.36.js +0 -12
package/ui/package.json
CHANGED
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:079ae602c6435004bff683580c43188225ed013aa1293191b8eda1e7aa39e9d5
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -1883,19 +1883,42 @@ function nwLatestStateTimestamp(keys) {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
// The shared headline has one owner. A repeated SSE snapshot can confirm the
|
|
1885
1885
|
// existing connection without resetting an already established operating status.
|
|
1886
|
-
function nwRenderDashboardStatus(connection, health = null, chargeModel = null, safetyStop = false, fallback = false) {
|
|
1886
|
+
function nwRenderDashboardStatus(connection, health = null, chargeModel = null, safetyStop = false, fallback = false, read = () => undefined, now = Date.now()) {
|
|
1887
1887
|
const label = document.getElementById('sideStatusText');
|
|
1888
1888
|
if (!label) return;
|
|
1889
1889
|
const processHealth = window.NexoWattDashboardProcesses?.current();
|
|
1890
|
-
const
|
|
1890
|
+
const farmState = (window.latestState || state || {})['storageFarm.storagesStatusJson'];
|
|
1891
|
+
const headline = window.NexoWattLiveDisplay?.dashboardStatus(health, connection, chargeModel, safetyStop, fallback, processHealth, now, farmState);
|
|
1891
1892
|
const translate = text => window.NexoWattI18n?.translateText(text) || text;
|
|
1892
|
-
const
|
|
1893
|
+
const connected = connection === 'snapshot' || connection === 'ready';
|
|
1894
|
+
const p14 = connected && (read('ems.core.para14aActive') || read('para14a.active'));
|
|
1895
|
+
const peak = connected && String(read('peakShaving.control.status') || '').trim() === 'active';
|
|
1896
|
+
const ems = connection === 'disconnected' ? 'Verbindung unterbrochen' : safetyStop ? 'Safety aktiv' : health?.ems || 'Status unbekannt';
|
|
1897
|
+
const grid = connected && fallback ? '§14a Fallback' : p14 ? '§14a aktiv' : peak ? 'Peak aktiv' : health?.grid || 'Messstatus unbekannt';
|
|
1898
|
+
for (const [id, text] of [['sideEms', ems], ['sideGridStatus', grid]]) {
|
|
1899
|
+
const cell = document.getElementById(id);
|
|
1900
|
+
const translated = translate(text);
|
|
1901
|
+
if (cell && cell.textContent !== translated) cell.textContent = translated;
|
|
1902
|
+
}
|
|
1903
|
+
const source = headline ? headline.text : (connection === 'disconnected' ? 'Verbindung unterbrochen' : 'Betriebsdiagnose nicht verfügbar');
|
|
1893
1904
|
let message = translate(source);
|
|
1894
1905
|
if (headline?.processIds?.length) {
|
|
1895
1906
|
const labels = { ui: 'Oberfläche', ems: 'EMS', devices: 'Geräte', eebus: 'EEBus', backup: 'Sicherung', ocpp: 'OCPP' };
|
|
1896
1907
|
message = message.replace('{names}', () => headline.processIds.map(id => translate(labels[id])).join(', '));
|
|
1897
1908
|
}
|
|
1898
|
-
let detail = '';
|
|
1909
|
+
let detail = '', storageDetails = '';
|
|
1910
|
+
if (headline?.storageWarnings?.length) {
|
|
1911
|
+
const locale = window.NexoWattI18n?.language?.() || 'de';
|
|
1912
|
+
const format = item => {
|
|
1913
|
+
const rounded = Number(item.differenceW.toFixed(1));
|
|
1914
|
+
const watts = (Number.isInteger(rounded) && item.differenceW > rounded ? '>' : '') + rounded.toLocaleString(locale);
|
|
1915
|
+
return message.replace(/\{name\}|\{watts\}/g, token => token === '{name}' ? item.name || translate('Speicher') : watts);
|
|
1916
|
+
};
|
|
1917
|
+
const lines = headline.storageWarnings.map(format);
|
|
1918
|
+
storageDetails = lines.join(' · ');
|
|
1919
|
+
detail = storageDetails;
|
|
1920
|
+
message = lines[0] + (lines.length > 1 ? ' (+' + (lines.length - 1) + ')' : '');
|
|
1921
|
+
}
|
|
1899
1922
|
if (headline?.deviceNames?.length) {
|
|
1900
1923
|
const names = headline.deviceNames;
|
|
1901
1924
|
const line = translate('Geräte offline · {names}');
|
|
@@ -1910,12 +1933,12 @@ function nwRenderDashboardStatus(connection, health = null, chargeModel = null,
|
|
|
1910
1933
|
if (label.title !== detail) label.title = detail;
|
|
1911
1934
|
const details = document.getElementById('sideStatusDevices');
|
|
1912
1935
|
if (details) {
|
|
1913
|
-
const show = headline?.totalOffline > 2;
|
|
1936
|
+
const show = headline?.totalOffline > 2 || headline?.storageWarnings?.length > 1;
|
|
1914
1937
|
if (details.hidden === show) details.hidden = !show;
|
|
1915
1938
|
if (!show && details.open) details.open = false;
|
|
1916
1939
|
const names = document.getElementById('sideStatusDeviceNames');
|
|
1917
|
-
const text = show ? headline.deviceNames.join(', ') : '';
|
|
1918
|
-
const remaining = show ? headline.totalOffline - headline.deviceNames.length : 0;
|
|
1940
|
+
const text = show ? storageDetails || headline.deviceNames.join(', ') : '';
|
|
1941
|
+
const remaining = show && headline.deviceNames ? headline.totalOffline - headline.deviceNames.length : 0;
|
|
1919
1942
|
const list = remaining > 0 ? text + ' (+' + remaining + ')' : text;
|
|
1920
1943
|
if (names && names.textContent !== list) names.textContent = list;
|
|
1921
1944
|
}
|
|
@@ -1938,16 +1961,25 @@ function nwRefreshDashboardStatus() {
|
|
|
1938
1961
|
if (!connected) { nwRenderDashboardStatus(connection); return; }
|
|
1939
1962
|
const values = window.latestState || state || {};
|
|
1940
1963
|
const read = key => values[key]?.value;
|
|
1941
|
-
const
|
|
1964
|
+
const now = Date.now();
|
|
1965
|
+
const health = window.NexoWattLiveDisplay?.status(values, true, now, getFlowFreshMaxAgeMs());
|
|
1942
1966
|
const lp = nwEvcsFeatureFromConfig() ? window.NexoWattLpStatusPresenter?.read(read) : null;
|
|
1943
1967
|
nwRenderDashboardStatus(connection, health, lp, read('chargingManagement.audit.safetyStage') === 'EOS-SAFETY-STOP',
|
|
1944
|
-
read('para14a.communicationFallbackActive') === true);
|
|
1968
|
+
read('para14a.communicationFallbackActive') === true, read, now);
|
|
1945
1969
|
}
|
|
1946
1970
|
|
|
1947
1971
|
function nwDashboardAlarmChanged(patch, previous) {
|
|
1948
1972
|
for (const key in patch) {
|
|
1949
|
-
if (key
|
|
1950
|
-
|
|
1973
|
+
if (key === 'storageFarm.storagesStatusJson') {
|
|
1974
|
+
if (window.NexoWattLiveDisplay?.farmWarningChanged(previous[key], patch[key], Date.now())) return true;
|
|
1975
|
+
continue;
|
|
1976
|
+
}
|
|
1977
|
+
if (key === 'ems.core.schedulerAlive' || key === 'ems.core.schedulerHeartbeatAt' || key === 'ems.gridMeasurementFresh') {
|
|
1978
|
+
if (window.NexoWattLiveDisplay?.reportChanged(previous[key], patch[key], Date.now(), key === 'ems.core.schedulerHeartbeatAt')) return true;
|
|
1979
|
+
continue;
|
|
1980
|
+
}
|
|
1981
|
+
if (key !== 'chargingManagement.audit.safetyStage' && key !== 'para14a.communicationFallbackActive' &&
|
|
1982
|
+
key !== 'ems.core.para14aActive' && key !== 'para14a.active' && key !== 'peakShaving.control.status' &&
|
|
1951
1983
|
!/^chargingManagement\.wallboxes\.[^.]+\.(?:online|mappingOk|operationalBlocked|hardwareCommandConfirmed|applyStatus)$/.test(key)) continue;
|
|
1952
1984
|
const next = patch[key], before = previous[key];
|
|
1953
1985
|
if (next?.value !== before?.value || next?.q !== before?.q || next?.ack !== before?.ack) return true;
|
|
@@ -1975,7 +2007,6 @@ function nwSetLiveOnline(isOnline) {
|
|
|
1975
2007
|
if (!online) {
|
|
1976
2008
|
for (const id of ['pvPower', 'gridBuyPower', 'gridSellPower', 'storagePower', 'consumptionTotal', 'sidePvPower', 'sideBuildingPower', 'sideBatteryPower', 'sideGridBuyPower', 'sideGridSellPower', 'pvVal', 'gridVal', 'restVal', 'centerPower']) setText(id, '--');
|
|
1977
2009
|
setText('batteryFlowDirection', ''); setText('batterySocIn', '-- %'); setText('sideStorage', '-- %'); setText('sideBatterySoc', '-- %');
|
|
1978
|
-
setText('sideEms', 'Verbindung unterbrochen'); setText('sideGridStatus', 'Messstatus unbekannt');
|
|
1979
2010
|
}
|
|
1980
2011
|
}
|
|
1981
2012
|
/**
|
|
@@ -2011,14 +2042,13 @@ function updateDashboardShellUi(data) {
|
|
|
2011
2042
|
|
|
2012
2043
|
setText('sideStorage', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
|
|
2013
2044
|
setText('sideBatterySoc', Number.isFinite(soc) ? `${Math.round(soc)} %` : '-- %');
|
|
2014
|
-
const
|
|
2015
|
-
const
|
|
2045
|
+
const safety = String(d('chargingManagement.audit.safetyStage') || '').trim(), p14Fallback = d('para14a.communicationFallbackActive') === true;
|
|
2046
|
+
const now = window.__nwLiveFrameNow ?? Date.now();
|
|
2047
|
+
const health = window.NexoWattLiveDisplay?.status(window.latestState || state || {}, connected, now, getFlowFreshMaxAgeMs());
|
|
2016
2048
|
const safetyStop = connected && safety === 'EOS-SAFETY-STOP';
|
|
2017
|
-
setText('sideEms', connection === 'connecting' ? 'Status unbekannt' : safetyStop ? 'Safety aktiv' : health?.ems || 'Status unbekannt');
|
|
2018
|
-
setText('sideGridStatus', connected && p14Fallback ? '§14a Fallback' : (connected && p14 ? '§14a aktiv' : (connected && peak === 'active' ? 'Peak aktiv' : health?.grid || 'Messstatus unbekannt')));
|
|
2019
2049
|
let chargeModel = null;
|
|
2020
2050
|
try { chargeModel = window.NexoWattLpStatusPresenter?.render(d, evcsAvailable); } catch (_eChargingStatus) {}
|
|
2021
|
-
nwRenderDashboardStatus(connection, health, chargeModel, safetyStop, p14Fallback);
|
|
2051
|
+
nwRenderDashboardStatus(connection, health, chargeModel, safetyStop, p14Fallback, d, now);
|
|
2022
2052
|
|
|
2023
2053
|
setText('sideConsumptionTotal', load === null ? '--' : formatFlowPower(Math.max(0, load)));
|
|
2024
2054
|
setText('sideSelfConsumption', Number.isFinite(selfc) ? `${Math.round(selfc)} %` : '-- %');
|
|
@@ -9518,14 +9548,35 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9518
9548
|
let pendingPhaseModeUntil = 0;
|
|
9519
9549
|
let pendingStorageAssist = null;
|
|
9520
9550
|
let pendingStorageAssistUntil = 0;
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9526
|
-
|
|
9527
|
-
|
|
9528
|
-
|
|
9551
|
+
/** @type {Set<string>} */
|
|
9552
|
+
const goalWriteErrors = new Set();
|
|
9553
|
+
|
|
9554
|
+
/**
|
|
9555
|
+
* @param {'goalEnabled'|'goalTargetSocPct'|'goalFinishTs'|'goalBatteryKwh'} field
|
|
9556
|
+
* @param {number|boolean} value
|
|
9557
|
+
* @param {HTMLInputElement} input
|
|
9558
|
+
*/
|
|
9559
|
+
async function saveGoal(field, value, input) {
|
|
9560
|
+
if (input.disabled) return;
|
|
9561
|
+
input.disabled = true;
|
|
9562
|
+
try {
|
|
9563
|
+
const result = await fetchModeJson('/api/set', {
|
|
9564
|
+
method: 'POST', headers: { 'Content-Type': 'application/json' },
|
|
9565
|
+
body: JSON.stringify({ scope: 'ems', key: `evcs.1.${field}`, value }),
|
|
9566
|
+
});
|
|
9567
|
+
if (result?.ok !== true) throw new Error('goal_write_rejected');
|
|
9568
|
+
goalWriteErrors.delete(field);
|
|
9569
|
+
} catch {
|
|
9570
|
+
goalWriteErrors.add(field);
|
|
9571
|
+
} finally {
|
|
9572
|
+
input.disabled = false;
|
|
9573
|
+
goalEditUntil = 0;
|
|
9574
|
+
// Den Editor aus dem letzten Serverstand zeichnen. SSE aktualisiert ihn,
|
|
9575
|
+
// wenn ein bestätigter Schreibauftrag später im Zustandsstrom eintrifft.
|
|
9576
|
+
if (document.activeElement === input) input.blur();
|
|
9577
|
+
scheduleRender(true);
|
|
9578
|
+
}
|
|
9579
|
+
}
|
|
9529
9580
|
|
|
9530
9581
|
/** Zeigt nur lokale Diagnosetexte; keine Serverantworten oder Zugangsdaten. */
|
|
9531
9582
|
function renderModeWriteStatus(){
|
|
@@ -9918,17 +9969,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9918
9969
|
// Ereignis-Kommentar: Bindet das UI-Ereignis 'change' an goalToggle. Beim Umbau prüfen, welche DOM-Elemente/States dadurch geändert werden.
|
|
9919
9970
|
goalToggle.addEventListener('change', async ()=>{
|
|
9920
9971
|
const b = !!goalToggle.checked;
|
|
9921
|
-
|
|
9922
|
-
pendingGoalEnabledUntil = Date.now() + 2500;
|
|
9923
|
-
try { scheduleRender(); } catch(_e) {}
|
|
9924
|
-
|
|
9925
|
-
try{
|
|
9926
|
-
await apiSet('ems', 'evcs.1.goalEnabled', b);
|
|
9927
|
-
}catch(_e){
|
|
9928
|
-
pendingGoalEnabled = null;
|
|
9929
|
-
pendingGoalEnabledUntil = 0;
|
|
9930
|
-
try { scheduleRender(); } catch(_e2) {}
|
|
9931
|
-
}
|
|
9972
|
+
await saveGoal('goalEnabled', b, goalToggle);
|
|
9932
9973
|
});
|
|
9933
9974
|
}
|
|
9934
9975
|
|
|
@@ -9938,16 +9979,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9938
9979
|
const n = Number(goalSoc.value);
|
|
9939
9980
|
if (!Number.isFinite(n)) return;
|
|
9940
9981
|
const v = Math.max(0, Math.min(100, Math.round(n)));
|
|
9941
|
-
|
|
9942
|
-
pendingGoalSocUntil = Date.now() + 2500;
|
|
9943
|
-
try { scheduleRender(); } catch(_e) {}
|
|
9944
|
-
|
|
9945
|
-
try{
|
|
9946
|
-
await apiSet('ems', 'evcs.1.goalTargetSocPct', v);
|
|
9947
|
-
}catch(_e){
|
|
9948
|
-
pendingGoalSoc = null;
|
|
9949
|
-
pendingGoalSocUntil = 0;
|
|
9950
|
-
}
|
|
9982
|
+
await saveGoal('goalTargetSocPct', v, goalSoc);
|
|
9951
9983
|
});
|
|
9952
9984
|
}
|
|
9953
9985
|
|
|
@@ -9959,16 +9991,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9959
9991
|
try { if (snapped && snapped !== goalTime.value) goalTime.value = snapped; } catch(_e) {}
|
|
9960
9992
|
|
|
9961
9993
|
const ts = nextTsFromTimeInput(snapped);
|
|
9962
|
-
|
|
9963
|
-
pendingGoalFinishUntil = Date.now() + 2500;
|
|
9964
|
-
try { scheduleRender(); } catch(_e) {}
|
|
9965
|
-
|
|
9966
|
-
try{
|
|
9967
|
-
await apiSet('ems', 'evcs.1.goalFinishTs', ts);
|
|
9968
|
-
}catch(_e){
|
|
9969
|
-
pendingGoalFinishTs = null;
|
|
9970
|
-
pendingGoalFinishUntil = 0;
|
|
9971
|
-
}
|
|
9994
|
+
await saveGoal('goalFinishTs', ts, goalTime);
|
|
9972
9995
|
});
|
|
9973
9996
|
}
|
|
9974
9997
|
|
|
@@ -9977,16 +10000,7 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
9977
10000
|
goalKwh.addEventListener('change', async ()=>{
|
|
9978
10001
|
const n = Number(goalKwh.value);
|
|
9979
10002
|
const v = Number.isFinite(n) ? Math.max(0, Math.min(2000, Math.round(n * 10) / 10)) : 0;
|
|
9980
|
-
|
|
9981
|
-
pendingGoalKwhUntil = Date.now() + 2500;
|
|
9982
|
-
try { scheduleRender(); } catch(_e) {}
|
|
9983
|
-
|
|
9984
|
-
try{
|
|
9985
|
-
await apiSet('ems', 'evcs.1.goalBatteryKwh', v);
|
|
9986
|
-
}catch(_e){
|
|
9987
|
-
pendingGoalKwh = null;
|
|
9988
|
-
pendingGoalKwhUntil = 0;
|
|
9989
|
-
}
|
|
10003
|
+
await saveGoal('goalBatteryKwh', v, goalKwh);
|
|
9990
10004
|
});
|
|
9991
10005
|
}
|
|
9992
10006
|
|
|
@@ -10095,7 +10109,8 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10095
10109
|
const st = d('evcs.1.status') ?? d('evcsStatus') ?? '--';
|
|
10096
10110
|
|
|
10097
10111
|
// EMS available?
|
|
10098
|
-
modalHasEms =
|
|
10112
|
+
modalHasEms = window.__nwCfg?.ems?.chargingEnabled === true
|
|
10113
|
+
|| d('chargingManagement.wallboxCount') != null || d('chargingManagement.wallboxes.lp1.userMode') != null;
|
|
10099
10114
|
const hasEms = !!modalHasEms; // local alias for UI gating
|
|
10100
10115
|
ensureAutoVisibility();
|
|
10101
10116
|
|
|
@@ -10302,16 +10317,19 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10302
10317
|
// EMS: Ziel-Laden (Depot-/Deadline-Laden)
|
|
10303
10318
|
// Zielladen is only available in AUTO mode.
|
|
10304
10319
|
const modeOnUi = modeStrFromState;
|
|
10305
|
-
const goalAllowed =
|
|
10306
|
-
|
|
10320
|
+
const goalAllowed = hasEms && modeAvailable && modeOnUi === 'auto';
|
|
10321
|
+
const savedGoalEnabled = nwAsBool(d('chargingManagement.wallboxes.lp1.goalEnabled'), false);
|
|
10322
|
+
const goalPaused = hasEms && modeAvailable && savedGoalEnabled && !goalAllowed;
|
|
10323
|
+
if (goalRow != null) goalRow.style.display = goalAllowed || goalPaused ? '' : 'none';
|
|
10324
|
+
if (goalToggle?.parentElement) goalToggle.parentElement.style.display = goalAllowed ? '' : 'none';
|
|
10307
10325
|
|
|
10308
10326
|
if (!goalAllowed){
|
|
10309
10327
|
if (goalCfgRow != null) goalCfgRow.style.display = 'none';
|
|
10310
10328
|
if (goalCfgRow2 != null) goalCfgRow2.style.display = 'none';
|
|
10311
|
-
if (goalStatus != null) goalStatus.textContent = '—';
|
|
10312
|
-
if (goalHint != null) goalHint.textContent = '';
|
|
10329
|
+
if (goalStatus != null) goalStatus.textContent = goalPaused ? 'Pausiert' : '—';
|
|
10330
|
+
if (goalHint != null) goalHint.textContent = goalPaused ? 'Für das gespeicherte Ziel den Lademodus Auto wählen.' : '';
|
|
10313
10331
|
} else {
|
|
10314
|
-
const
|
|
10332
|
+
const goalEnabled = savedGoalEnabled;
|
|
10315
10333
|
const gTargetState = Number(d('chargingManagement.wallboxes.lp1.goalTargetSocPct'));
|
|
10316
10334
|
const gFinishState = Number(d('chargingManagement.wallboxes.lp1.goalFinishTs'));
|
|
10317
10335
|
const gKwhState = Number(d('chargingManagement.wallboxes.lp1.goalBatteryKwh'));
|
|
@@ -10322,23 +10340,12 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10322
10340
|
const gDesiredW = Number(d('chargingManagement.wallboxes.lp1.goalDesiredPowerW'));
|
|
10323
10341
|
const gShortfallW = Number(d('chargingManagement.wallboxes.lp1.goalShortfallW'));
|
|
10324
10342
|
|
|
10325
|
-
const
|
|
10326
|
-
const
|
|
10327
|
-
const
|
|
10328
|
-
const goalKwhVal = (pendingGoalKwh !== null && now < pendingGoalKwhUntil) ? pendingGoalKwh : (Number.isFinite(gKwhState) ? gKwhState : 0);
|
|
10343
|
+
const goalTarget = Number.isFinite(gTargetState) ? Math.round(gTargetState) : 100;
|
|
10344
|
+
const goalFinishTs = Number.isFinite(gFinishState) ? Math.round(gFinishState) : 0;
|
|
10345
|
+
const goalKwhVal = Number.isFinite(gKwhState) ? gKwhState : 0;
|
|
10329
10346
|
|
|
10330
10347
|
if (goalToggle != null){
|
|
10331
|
-
|
|
10332
|
-
goalToggle.checked = !!pendingGoalEnabled;
|
|
10333
|
-
if (!!gEnabledState === !!pendingGoalEnabled){
|
|
10334
|
-
pendingGoalEnabled = null;
|
|
10335
|
-
pendingGoalEnabledUntil = 0;
|
|
10336
|
-
}
|
|
10337
|
-
} else {
|
|
10338
|
-
pendingGoalEnabled = null;
|
|
10339
|
-
pendingGoalEnabledUntil = 0;
|
|
10340
|
-
goalToggle.checked = !!gEnabledState;
|
|
10341
|
-
}
|
|
10348
|
+
goalToggle.checked = goalEnabled;
|
|
10342
10349
|
try{ window.nwSyncToggleButtons(goalToggle.id); }catch(_e){}
|
|
10343
10350
|
}
|
|
10344
10351
|
|
|
@@ -10370,6 +10377,12 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10370
10377
|
if (!goalEnabled){
|
|
10371
10378
|
label = 'Aus';
|
|
10372
10379
|
hint = 'Zeit‑Ziel‑Laden deaktiviert.';
|
|
10380
|
+
} else if (gStatusCode === 'vehicle_not_requesting' || gStatusCode === 'no_vehicle'){
|
|
10381
|
+
label = 'Pausiert';
|
|
10382
|
+
hint = gStatusCode === 'no_vehicle' ? 'Fahrzeug nicht verbunden.' : 'Fahrzeug verbunden, fordert aktuell keine Ladung an.';
|
|
10383
|
+
} else if (gStatusCode === 'waiting_soc' || gStatusCode === 'soc_stale'){
|
|
10384
|
+
label = 'Warte auf SoC';
|
|
10385
|
+
hint = 'Die Regelung wartet auf einen aktuellen Fahrzeug-SoC.';
|
|
10373
10386
|
} else if (gStatusCode === 'no_soc'){
|
|
10374
10387
|
label = 'SoC n/a';
|
|
10375
10388
|
hint = 'SoC nicht verfügbar – Zielladen läuft im Fallback (Worst‑Case) über Akkukapazität.';
|
|
@@ -10398,7 +10411,9 @@ render = function(){ try{ _renderOld(); }catch(e){ console.warn('render', e); }
|
|
|
10398
10411
|
}
|
|
10399
10412
|
|
|
10400
10413
|
if (goalStatus != null) goalStatus.textContent = label;
|
|
10401
|
-
if (goalHint != null) goalHint.textContent =
|
|
10414
|
+
if (goalHint != null) goalHint.textContent = goalWriteErrors.size
|
|
10415
|
+
? 'Änderung am Ladeziel nicht bestätigt. Bitte Uhrzeit und Einstellungen prüfen.'
|
|
10416
|
+
: hint;
|
|
10402
10417
|
}
|
|
10403
10418
|
|
|
10404
10419
|
if (buttons != null){
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/charging-diagnostics-appcenter.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:c7c552a0454c3f9d9bd47819d4a1cc00fa9ff95b0641bf3f26b73c1f0efa8efb
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -83,6 +83,8 @@
|
|
|
83
83
|
clear: byId('clearChargingAudit'),
|
|
84
84
|
});
|
|
85
85
|
const fmtW = (value) => {
|
|
86
|
+
if (value == null || value === '')
|
|
87
|
+
return '—';
|
|
86
88
|
const n = Number(value);
|
|
87
89
|
if (!Number.isFinite(n))
|
|
88
90
|
return '—';
|
|
@@ -191,7 +193,7 @@
|
|
|
191
193
|
const stageAKind = stageA && /error|fault|conflict|block/i.test(JSON.stringify(stageA)) ? 'warn' : 'ok';
|
|
192
194
|
const globalMetrics = [
|
|
193
195
|
['Aktive Begrenzung', limiterText(limiter), globalKind], ['Sicherungsstufe', String(snapshot.safetyStage || 'NORMAL'), globalKind],
|
|
194
|
-
['Verfügbares Budget', fmtW(snapshot.budgetW), ''], ['Istleistung EVCS', fmtW(snapshot.actualPowerW), ''],
|
|
196
|
+
['Verfügbares Budget', fmtW(snapshot.budgetW), ''], ['Istleistung EVCS', fmtW(snapshot.measurementQuality ? snapshot.measuredPowerW : snapshot.actualPowerW), ''],
|
|
195
197
|
['NexoWatt Soll gesamt', fmtW(snapshot.targetPowerW), ''], ['Reserviert', fmtW(snapshot.reservedPowerW), ''],
|
|
196
198
|
['Restbudget', fmtW(snapshot.remainingPowerW), ''],
|
|
197
199
|
['Netzanschluss-Gate', snapshot.grid?.binding ? `BEGRENZT · ${fmtW(snapshot.grid.evcsCapW)}` : `überwacht · ${fmtW(snapshot.grid?.evcsCapW)}`, snapshot.grid?.binding ? 'warn' : 'ok'],
|
|
@@ -239,7 +241,7 @@
|
|
|
239
241
|
const numbers = document.createElement('div');
|
|
240
242
|
numbers.className = 'nw-charging-audit__numbers';
|
|
241
243
|
const values = [
|
|
242
|
-
['Ist', fmtW(row.actualPowerW)], ['Anforderung', fmtW(row.requestedPowerW)],
|
|
244
|
+
['Ist', fmtW(row.measurementQuality ? row.measuredPowerW : row.actualPowerW)], ['Anforderung', fmtW(row.requestedPowerW)],
|
|
243
245
|
['NexoWatt Soll', `${fmtW(row.targetPowerW)} · ${Number(row.targetCurrentA || 0).toFixed(1)} A`],
|
|
244
246
|
['Reserviert', fmtW(row.reservedPowerW)], ['PV-Anteil', fmtW(row.pvShareW)],
|
|
245
247
|
['Speicher-Anteil', fmtW(row.storageShareW)], ['Stationsrest', row.stationKey ? fmtW(row.stationRemainingW) : 'keine Station'],
|
|
@@ -281,7 +283,7 @@
|
|
|
281
283
|
const tr = document.createElement('tr');
|
|
282
284
|
tr.className = `nw-charging-audit__event--${eventKind}`;
|
|
283
285
|
const cells = [fmtTs(event.ts), event.safe ? `${event.name || event.safe} (${event.safe})` : (event.name || 'Lademanagement'),
|
|
284
|
-
event.mode || '—', fmtW(event.actualPowerW), fmtW(event.requestedPowerW),
|
|
286
|
+
event.mode || '—', fmtW(event.measurementQuality ? event.measuredPowerW : event.actualPowerW), fmtW(event.requestedPowerW),
|
|
285
287
|
`${fmtW(event.targetPowerW)} / ${Number(event.targetCurrentA || 0).toFixed(1)} A`,
|
|
286
288
|
`${fmtW(event.reservedPowerW)} / PV ${fmtW(event.pvShareW)}`,
|
|
287
289
|
`${limiterText(event.limiter)} · ${reasonText(event.reason)}`, event.applyStatus || (event.applied ? 'bestätigt' : '—')];
|
|
@@ -328,11 +330,14 @@
|
|
|
328
330
|
const csvValue = (value) => `"${String(value ?? '').replace(/"/g, '""')}"`;
|
|
329
331
|
const exportCsv = () => {
|
|
330
332
|
const events = payload?.audit && Array.isArray(payload.audit.events) ? payload.audit.events : [];
|
|
331
|
-
const header = ['Zeit', 'Typ', 'Ladepunkt', 'Name', 'Modus', 'Ist_W', 'Anforderung_W', 'NexoWatt_Soll_W', 'NexoWatt_Soll_A', 'Reserve_W', 'PV_W', 'Speicher_W', 'Limiter', 'Grund', 'Write_Status', 'Safety_Stufe', 'Sollwert_DP', 'Benutzermodus', 'Fahrzeug_verbunden', 'Ladebedarf_bestaetigt', 'Bedarf_Grund', 'Fahrzeugstatus'];
|
|
333
|
+
const header = ['Zeit', 'Typ', 'Ladepunkt', 'Name', 'Modus', 'Ist_W', 'Anforderung_W', 'NexoWatt_Soll_W', 'NexoWatt_Soll_A', 'Reserve_W', 'PV_W', 'Speicher_W', 'Limiter', 'Grund', 'Write_Status', 'Safety_Stufe', 'Sollwert_DP', 'Benutzermodus', 'Fahrzeug_verbunden', 'Ladebedarf_bestaetigt', 'Bedarf_Grund', 'Fahrzeugstatus', 'Ist_Messqualitaet', 'Ist_Messalter_ms', 'Ziel_aktiv', 'Zielzeit_UTC', 'Fahrzeug_SoC_Prozent', 'Ziel_SoC_Prozent', 'Tarifuebersteuerung_Grund'];
|
|
332
334
|
const rows = events.map((event) => [event.ts ? new Date(Number(event.ts)).toISOString() : '', event.type, event.safe, event.name, event.mode,
|
|
333
|
-
event.actualPowerW, event.requestedPowerW, event.targetPowerW, event.targetCurrentA, event.reservedPowerW,
|
|
335
|
+
event.measurementQuality ? event.measuredPowerW : event.actualPowerW, event.requestedPowerW, event.targetPowerW, event.targetCurrentA, event.reservedPowerW,
|
|
334
336
|
event.pvShareW, event.storageShareW, event.limiter, event.reason, event.applyStatus, event.safetyStage, event.setpointKey,
|
|
335
|
-
event.userMode, event.connected, event.vehicleDemandConfirmed, event.vehicleDemandReason, event.statusEffective
|
|
337
|
+
event.userMode, event.connected, event.vehicleDemandConfirmed, event.vehicleDemandReason, event.statusEffective,
|
|
338
|
+
event.measurementQuality || (event.actualPowerW != null ? 'legacy-unverified' : ''), event.meterSampleAgeMs, event.goalEnabled,
|
|
339
|
+
Number.isFinite(event.goalFinishTs) && event.goalFinishTs > 0 && event.goalFinishTs <= 8640000000000000 ? new Date(event.goalFinishTs).toISOString() : '',
|
|
340
|
+
event.goalVehicleSocPct, event.goalTargetSocPct, event.goalTariffOverrideReason]);
|
|
336
341
|
download(`nexowatt-lademanagement-log-${new Date().toISOString().replace(/[:.]/g, '-')}.csv`, `\uFEFF${[header, ...rows].map((row) => row.map(csvValue).join(';')).join('\r\n')}`, 'text/csv;charset=utf-8');
|
|
337
342
|
};
|
|
338
343
|
async function clearEvents() {
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
|
|
8
8
|
*
|
|
9
9
|
* Quelle: src-ts/runtime-executables/www/dashboard-lp-status.ts
|
|
10
|
-
* Quell-Hash: sha256:
|
|
10
|
+
* Quell-Hash: sha256:64b626fcacc86b7ba0beb258042119f2db30866c27e63ba95844968f30efeb37
|
|
11
11
|
* Erzeugung: npm run sync:ts-runtime-executables
|
|
12
12
|
*
|
|
13
13
|
* Zweck:
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
manualLock: 'Ladestation manuell gesperrt', rfidLock: 'RFID-Freigabe fehlt', controlOff: 'Regelung ausgeschaltet',
|
|
43
43
|
mapping: 'Datenpunktzuordnung unvollständig', noControl: 'Keine schreibbare Leistungsvorgabe',
|
|
44
44
|
safety: 'EOS Safety überwacht – Laden gestoppt', safetyPower: 'Aktuelle Leistung {power} · Stoppanforderung aktiv',
|
|
45
|
-
starting: 'Ladefreigabe aktiv – Start wird erwartet', paraFallback: '§14a-Verbindung fehlt – lokaler Fallback aktiv',
|
|
45
|
+
starting: 'Ladefreigabe aktiv – Start wird erwartet', targetPower: 'Soll {power}', reportedCharging: 'Wallbox meldet Laden · Leistungsmessung fehlt', paraFallback: '§14a-Verbindung fehlt – lokaler Fallback aktiv',
|
|
46
46
|
pvWait: 'Wartet auf PV-Überschuss', minPvWait: 'Min+PV wartet auf verfügbare Mindestleistung',
|
|
47
47
|
goalWait: 'Zeit-Ziel aktiv – wartet auf Ladefenster', strategyWait: 'Betriebsstrategie wartet',
|
|
48
48
|
noDemand: 'Fahrzeug fordert aktuell keine Ladung', noBudget: 'Aktuell nicht genügend Ladeleistung verfügbar',
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
manualLock: 'Laadstation handmatig geblokkeerd', rfidLock: 'RFID-vrijgave ontbreekt', controlOff: 'Regeling uitgeschakeld',
|
|
66
66
|
mapping: 'Datapunttoewijzing onvolledig', noControl: 'Geen schrijfbaar vermogenssetpoint',
|
|
67
67
|
safety: 'EOS Safety actief – laden gestopt', safetyPower: 'Actueel vermogen {power} · stopopdracht actief',
|
|
68
|
-
starting: 'Laadvrijgave actief – wachten op start', paraFallback: '§14a-verbinding ontbreekt – lokale fallback actief',
|
|
68
|
+
starting: 'Laadvrijgave actief – wachten op start', targetPower: 'Doel {power}', reportedCharging: 'Laadpunt meldt laden · vermogensmeting ontbreekt', paraFallback: '§14a-verbinding ontbreekt – lokale fallback actief',
|
|
69
69
|
pvWait: 'Wacht op PV-overschot', minPvWait: 'Min+PV wacht op beschikbaar minimumvermogen',
|
|
70
70
|
goalWait: 'Tijddoel actief – wacht op laadvenster', strategyWait: 'Bedrijfsstrategie wacht',
|
|
71
71
|
noDemand: 'Voertuig vraagt momenteel geen lading', noBudget: 'Momenteel onvoldoende laadvermogen beschikbaar',
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
manualLock: 'Charging station manually locked', rfidLock: 'RFID authorization missing', controlOff: 'Control disabled',
|
|
89
89
|
mapping: 'Datapoint mapping incomplete', noControl: 'No writable power setpoint',
|
|
90
90
|
safety: 'EOS Safety active – charging stopped', safetyPower: 'Current power {power} · stop request active',
|
|
91
|
-
starting: 'Charging enabled – waiting for start', paraFallback: '§14a connection missing – local fallback active',
|
|
91
|
+
starting: 'Charging enabled – waiting for start', targetPower: 'Target {power}', reportedCharging: 'Charger reports charging · power reading unavailable', paraFallback: '§14a connection missing – local fallback active',
|
|
92
92
|
pvWait: 'Waiting for PV surplus', minPvWait: 'Min+PV waiting for available minimum power',
|
|
93
93
|
goalWait: 'Time target active – waiting for charging window', strategyWait: 'Operating strategy waiting',
|
|
94
94
|
noDemand: 'Vehicle currently requests no charge', noBudget: 'Insufficient charging power currently available',
|
|
@@ -276,6 +276,8 @@
|
|
|
276
276
|
};
|
|
277
277
|
const cfgEnabled = read('cfgEnabled', undefined);
|
|
278
278
|
const hasAuditRuntime = Object.keys(raw).length > 0;
|
|
279
|
+
const hasMeterSample = !bool(read('meterRawStale', read('meterStale', false))) && (raw.measurementQuality === undefined ||
|
|
280
|
+
(raw.measurementQuality === 'measured' && typeof raw.measuredPowerW === 'number' && Number.isFinite(raw.measuredPowerW)));
|
|
279
281
|
const hasDirectRuntime = read('name', undefined) !== undefined || read('online', undefined) !== undefined;
|
|
280
282
|
if (cfgEnabled === false)
|
|
281
283
|
continue;
|
|
@@ -301,10 +303,13 @@
|
|
|
301
303
|
controlAvailable: read('hasSetpoint', rawValue(raw, 'controlAvailable', true)) !== false,
|
|
302
304
|
connected: bool(read('vehiclePlugged', rawValue(raw, 'connected', false))) || bool(rawValue(raw, 'connected', false)),
|
|
303
305
|
vehicleDemandConfirmed: bool(read('vehicleDemandConfirmed', rawValue(raw, 'vehicleDemandConfirmed', false))),
|
|
306
|
+
hasMeterSample,
|
|
307
|
+
stationReportsCharging: bool(read('statusFresh', raw.statusFresh)) && string(read('statusEffective', raw.statusEffective)).trim().toLowerCase() === 'charging',
|
|
304
308
|
vehicleStateNormalized: string(read('vehicleStateNormalized', '')),
|
|
305
309
|
vehicleStartProbeActive: bool(read('vehicleStartProbeActive', false)),
|
|
306
310
|
charging: bool(read('charging', rawValue(raw, 'charging', false))) || bool(rawValue(raw, 'charging', false)),
|
|
307
|
-
actualPowerW: Math.max(0, number(read('actualPowerW', rawValue(raw, 'actualPowerW', 0))))
|
|
311
|
+
actualPowerW: raw.measurementQuality === undefined ? Math.max(0, number(read('actualPowerW', rawValue(raw, 'actualPowerW', 0))))
|
|
312
|
+
: Math.max(0, number(raw.measuredPowerW)),
|
|
308
313
|
targetPowerW: Math.max(0, number(read('targetPowerW', rawValue(raw, 'targetPowerW', 0)))),
|
|
309
314
|
meterStale: bool(read('meterStale', rawValue(raw, 'meterStale', false))),
|
|
310
315
|
faultActive: bool(read('faultActive', rawValue(raw, 'faultActive', false))),
|
|
@@ -355,7 +360,8 @@
|
|
|
355
360
|
const items = rows.map((row) => {
|
|
356
361
|
const actualPowerW = Math.max(0, row.actualPowerW);
|
|
357
362
|
const targetPowerW = Math.max(0, row.targetPowerW);
|
|
358
|
-
const
|
|
363
|
+
const reportedCharging = row.stationReportsCharging && row.online && row.connected && row.vehicleDemandConfirmed;
|
|
364
|
+
const charging = reportedCharging || (row.hasMeterSample && (row.charging || actualPowerW >= 150));
|
|
359
365
|
const connectedStates = ['connected_startable', 'ready_to_charge', 'starting', 'charging', 'paused_by_station', 'paused_by_vehicle'];
|
|
360
366
|
const connected = row.connected || connectedStates.includes(row.vehicleStateNormalized.toLowerCase());
|
|
361
367
|
const rawReason = row.safetyReason || row.reason || row.applyStatus;
|
|
@@ -405,14 +411,16 @@
|
|
|
405
411
|
level = 'error';
|
|
406
412
|
headline = text('safety');
|
|
407
413
|
detailParts.push(reasonText(safetyInvalidReason || rawReason, 'safetyGeneric'));
|
|
408
|
-
if (charging)
|
|
414
|
+
if (charging && row.hasMeterSample)
|
|
409
415
|
detailParts.push(text('safetyPower', { power: power(actualPowerW) }));
|
|
410
416
|
}
|
|
411
417
|
else if (charging) {
|
|
412
418
|
const limited = activeLimiterKey !== '' && !['noVehicle', 'noDemand', 'pvWait'].includes(activeLimiterKey) && row.limiter.toLowerCase() !== 'none';
|
|
413
419
|
const limitedCharging = limited || paraFallbackActive || row.para14aCapped;
|
|
414
420
|
level = limitedCharging ? 'warn' : 'ok';
|
|
415
|
-
headline = text(limitedCharging ? 'chargingLimited' : 'charging', { power: power(actualPowerW) });
|
|
421
|
+
headline = row.hasMeterSample ? text(limitedCharging ? 'chargingLimited' : 'charging', { power: power(actualPowerW) }) : text('reportedCharging');
|
|
422
|
+
if (!row.hasMeterSample)
|
|
423
|
+
level = 'warn';
|
|
416
424
|
if (limited && activeLimiterKey)
|
|
417
425
|
detailParts.push(text(activeLimiterKey));
|
|
418
426
|
}
|
|
@@ -432,8 +440,6 @@
|
|
|
432
440
|
else if (row.vehicleStartProbeActive || targetPowerW > 0) {
|
|
433
441
|
level = 'info';
|
|
434
442
|
headline = text('starting');
|
|
435
|
-
if (targetPowerW > 0)
|
|
436
|
-
detailParts.push(power(targetPowerW));
|
|
437
443
|
}
|
|
438
444
|
else if (paraFallbackActive) {
|
|
439
445
|
level = 'warn';
|
|
@@ -491,7 +497,7 @@
|
|
|
491
497
|
return {
|
|
492
498
|
safe: row.safe, name: row.name, level, headline,
|
|
493
499
|
detail: Array.from(new Set(detailParts.filter(Boolean))).join(' · '),
|
|
494
|
-
actualPowerW, targetPowerW, charging, connected, mode: modeLabel,
|
|
500
|
+
actualPowerW, targetPowerW, hasMeterSample: row.hasMeterSample, charging, connected, mode: modeLabel,
|
|
495
501
|
};
|
|
496
502
|
});
|
|
497
503
|
const chargingCount = items.filter((item) => item.charging).length;
|
|
@@ -571,7 +577,8 @@
|
|
|
571
577
|
const name = document.createElement('b');
|
|
572
578
|
name.textContent = item.name;
|
|
573
579
|
const displayedPower = document.createElement('small');
|
|
574
|
-
displayedPower.textContent = item.charging
|
|
580
|
+
displayedPower.textContent = item.charging && item.hasMeterSample ? power(item.actualPowerW)
|
|
581
|
+
: item.targetPowerW > 0 ? text('targetPower', { power: power(item.targetPowerW) }) : item.mode;
|
|
575
582
|
top.append(name, displayedPower);
|
|
576
583
|
const headline = document.createElement('span');
|
|
577
584
|
headline.className = 'nw-evcs-system-headline';
|