iobroker.eos-admin 9.0.26 → 9.0.27

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.
Files changed (124) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +12 -15
  2. package/START_HIER_9.0.27.md +33 -0
  3. package/adminWww/.vite/manifest.json +114 -114
  4. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13759 -13759
  5. package/adminWww/assets/{AdapterUpdateDialog-DIjnNZ5k.js → AdapterUpdateDialog-L3aqW3ID.js} +1 -1
  6. package/adminWww/assets/{Adapters-D8UOQg1q.js → Adapters-Db3kbmAj.js} +1 -1
  7. package/adminWww/assets/{ConfigManager-CAvT_4-g.js → ConfigManager-D33l1qlC.js} +1 -1
  8. package/adminWww/assets/{Enums-CrNUOX0d.js → Enums-HlPEZ4AF.js} +1 -1
  9. package/adminWww/assets/{Fields-D-0qFiqr.js → Fields-BWBgNDOp.js} +1 -1
  10. package/adminWww/assets/{Files-BL8kvaeC.js → Files-BYaJp3AG.js} +1 -1
  11. package/adminWww/assets/{Hosts-BToJLy61.js → Hosts-DimiJ78g.js} +1 -1
  12. package/adminWww/assets/{Instances-Dlrp1KGP.js → Instances-C5kAjcqw.js} +1 -1
  13. package/adminWww/assets/{Intro-5EbxvP4X.js → Intro-B8keS0Ph.js} +1 -1
  14. package/adminWww/assets/{Logs-xdFVJ6fZ.js → Logs-D9dqF5Ag.js} +1 -1
  15. package/adminWww/assets/{Objects-DhyJ5eAY.js → Objects-oliB7_Se.js} +1 -1
  16. package/adminWww/assets/{Overview-BspgcFB7.js → Overview-BmjcCFve.js} +1 -1
  17. package/adminWww/assets/{State-CJ1mKH_U.js → State-DQz1O54D.js} +1 -1
  18. package/adminWww/assets/{UsedResources-BMiCxqWH.js → UsedResources-DOAuH0-U.js} +1 -1
  19. package/adminWww/assets/{Users-DrlJHRa5.js → Users-Dv1iXiRk.js} +1 -1
  20. package/adminWww/assets/{bootstrap-BU7j1Fe_.js → bootstrap-BVw0diuj.js} +3 -3
  21. package/adminWww/assets/{hostInit-Cgee6juw.js → hostInit-C_7OBoza.js} +1 -1
  22. package/adminWww/assets/{icons-material-C0U9EKON.js → icons-material-Apny8Mbp.js} +1 -1
  23. package/adminWww/assets/{index-BUZf1ftI.js → index-DwDSxDMx.js} +2 -2
  24. package/adminWww/assets/{installSVGRenderer-CcjgaxiA.js → installSVGRenderer--VTzKbml.js} +1 -1
  25. package/adminWww/assets/{mf-entry-bootstrap-0-96d40e57.js → mf-entry-bootstrap-0-6f3e4c6b.js} +2 -2
  26. package/adminWww/index.html +23 -23
  27. package/adminWww/mf-manifest.json +1 -1
  28. package/adminWww/mf-stats.json +1 -1
  29. package/adminWww/{remoteEntry-eos-9.0.26.js → remoteEntry-eos-9.0.27.js} +1 -1
  30. package/adminWww/remoteEntry.js +1 -1
  31. package/build/lib/eosDeviceEmsPlan.js +24 -1
  32. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  33. package/build/lib/eosModuleHost.js +66 -3
  34. package/build/lib/eosModuleHost.js.map +1 -1
  35. package/docs/reports/unified-9.0.27/ABHAENGIGKEITEN.md +27 -0
  36. package/docs/reports/unified-9.0.27/PRUEFBERICHT.md +68 -0
  37. package/docs/reports/unified-9.0.27/PRUEFERGEBNISSE.json +292 -0
  38. package/docs/reports/unified-9.0.27/SICHERHEITSBETRACHTUNG.md +26 -0
  39. package/docs/reports/unified-9.0.27/TIBBER_NEUSTART.md +23 -0
  40. package/docs/reports/unified-9.0.27/UPDATE_WIEDERANLAUF.md +46 -0
  41. package/docs/reports/unified-9.0.27/raw/INDEX.json +347 -0
  42. package/docs/reports/unified-9.0.27/raw/admin-build-mirror-review.json +75 -0
  43. package/docs/reports/unified-9.0.27/raw/ajv-production-reachability.json +35 -0
  44. package/docs/reports/unified-9.0.27/raw/backend-build.log +5 -0
  45. package/docs/reports/unified-9.0.27/raw/baseline-devices.log +138 -0
  46. package/docs/reports/unified-9.0.27/raw/baseline-module-startup.log +82 -0
  47. package/docs/reports/unified-9.0.27/raw/baseline-ocpp-contract.log +93 -0
  48. package/docs/reports/unified-9.0.27/raw/baseline-ocpp-frontend.log +255 -0
  49. package/docs/reports/unified-9.0.27/raw/baseline-repository-tools.log +84 -0
  50. package/docs/reports/unified-9.0.27/raw/browser-blocked.log +38 -0
  51. package/docs/reports/unified-9.0.27/raw/controller-725-reproduction-node24.log +4 -0
  52. package/docs/reports/unified-9.0.27/raw/devices-child-rpc-diagnostic.log +34 -0
  53. package/docs/reports/unified-9.0.27/raw/devices-filter-without-readiness.log +15 -0
  54. package/docs/reports/unified-9.0.27/raw/devices-final-web-filtered-node22.log +107 -0
  55. package/docs/reports/unified-9.0.27/raw/devices-final-web-filtered-node24.log +26 -0
  56. package/docs/reports/unified-9.0.27/raw/eos-update-path-node24.log +52 -0
  57. package/docs/reports/unified-9.0.27/raw/frontend-build.log +152 -0
  58. package/docs/reports/unified-9.0.27/raw/influx/provenance.json +42 -0
  59. package/docs/reports/unified-9.0.27/raw/installer-build.log +26 -0
  60. package/docs/reports/unified-9.0.27/raw/lint.log +5 -0
  61. package/docs/reports/unified-9.0.27/raw/modules-build.log +5 -0
  62. package/docs/reports/unified-9.0.27/raw/node22-tests-final.log +16976 -0
  63. package/docs/reports/unified-9.0.27/raw/node22-version.log +1 -0
  64. package/docs/reports/unified-9.0.27/raw/node24-tests-final.log +2831 -0
  65. package/docs/reports/unified-9.0.27/raw/node24-version.log +1 -0
  66. package/docs/reports/unified-9.0.27/raw/npm-audit-development.json +398 -0
  67. package/docs/reports/unified-9.0.27/raw/npm-audit-production.json +77 -0
  68. package/docs/reports/unified-9.0.27/raw/npm-production-ajv-tree.json +33 -0
  69. package/docs/reports/unified-9.0.27/raw/npm-production-ajv-tree.stderr +1 -0
  70. package/docs/reports/unified-9.0.27/raw/npm926-dateivergleich.json +6 -0
  71. package/docs/reports/unified-9.0.27/raw/production-audit-review.json +30 -0
  72. package/docs/reports/unified-9.0.27/raw/release-targeted.log +118 -0
  73. package/docs/reports/unified-9.0.27/raw/restart-regressions-node22.log +361 -0
  74. package/docs/reports/unified-9.0.27/raw/sbom-generation.json +11 -0
  75. package/docs/reports/unified-9.0.27/raw/source-fixtures.json +30 -0
  76. package/docs/reports/unified-9.0.27/raw/targeted-ocpp-frontend.log +26 -0
  77. package/docs/reports/unified-9.0.27/raw/test-environment.json +24 -0
  78. package/docs/reports/unified-9.0.27/raw/tibber/backend/REVIEW.md +40 -0
  79. package/docs/reports/unified-9.0.27/raw/tibber/backend/appcenter-overwrite-patched-scratch.log +11 -0
  80. package/docs/reports/unified-9.0.27/raw/tibber/backend/appcenter-overwrite-repro.log +33 -0
  81. package/docs/reports/unified-9.0.27/raw/tibber/backend/customer-tariff-lint.log +0 -0
  82. package/docs/reports/unified-9.0.27/raw/tibber/backend/customer-tariff-typecheck.log +0 -0
  83. package/docs/reports/unified-9.0.27/raw/tibber/backend/process-disk-restart-node24.log +10 -0
  84. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-diagnostic.log +58 -0
  85. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-ipc-counts.log +45 -0
  86. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-built-node24.log +42 -0
  87. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-final-node22.log +134 -0
  88. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-final-node24.log +28 -0
  89. package/docs/reports/unified-9.0.27/raw/tibber/backend/roundtrip-source-node22-diagnostic.log +220 -0
  90. package/docs/reports/unified-9.0.27/raw/tibber/independent/tariff-background-hydration-review.log +1 -0
  91. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-header-object-mask-review.log +1 -0
  92. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-independent-frontend-review.log +14 -0
  93. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-independent-scope-review.log +1 -0
  94. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-mapping-targeted-node24.log +2184 -0
  95. package/docs/reports/unified-9.0.27/raw/tibber/independent/tibber-parent-persistence-review.log +20 -0
  96. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/appcenter-tariff-roundtrip-baseline.log +57 -0
  97. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/customer-editor-final.log +24 -0
  98. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/frontend-guard-baseline.log +303 -0
  99. package/docs/reports/unified-9.0.27/raw/tibber/tariff-review/frontend-guard-final.log +14 -0
  100. package/docs/reports/unified-9.0.27/raw/tibber-appcenter-baseline.log +33 -0
  101. package/docs/reports/unified-9.0.27/raw/tibber-background-hydration-baseline.log +1 -0
  102. package/docs/reports/unified-9.0.27/raw/tibber-form-baseline.log +57 -0
  103. package/docs/reports/unified-9.0.27/raw/tibber-mapping-targeted-node24.log +2184 -0
  104. package/docs/reports/unified-9.0.27/raw/tibber-minimal-fix-isolation.log +11 -0
  105. package/docs/reports/unified-9.0.27/raw/typecheck.log +5 -0
  106. package/docs/reports/unified-9.0.27/raw/ui-build.log +7 -0
  107. package/io-package.json +8 -8
  108. package/modules/devices/admin/ems-assignment.js +1 -0
  109. package/package.json +7 -8
  110. package/release-manifests/unified/build-environment.cdx.json +6 -6
  111. package/release-manifests/unified/files.json +162 -73
  112. package/release-manifests/unified/obsolete-admin-assets.json +82 -0
  113. package/release-manifests/unified/runtime.cdx.json +28 -28
  114. package/release-manifests/unified/validation.json +15 -15
  115. package/tools/eos-release-manifest.cjs +1 -1
  116. package/ui/io-package.json +1 -1
  117. package/ui/lib/customer-tariff.js +73 -1
  118. package/ui/lib/installer-lifecycle.js +5 -3
  119. package/ui/lib/ocpp-auto-discovery.js +53 -6
  120. package/ui/main.js +103 -91
  121. package/ui/package.json +1 -1
  122. package/ui/www/ems-apps.js +188 -130
  123. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  124. package/ui/www/manifest.webmanifest +2 -2
@@ -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:be3391975625831775bbcb6a9f49c7ec980cfc1aa8bc534389b9d6977eea48a0
10
+ * Quell-Hash: sha256:e9b2e1babf672181807086e69928c205e546ed8b47ba65fdbe64dc9193bb89e9
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -782,6 +782,8 @@
782
782
  // Direkte dynamische Tarifprovider
783
783
  // ------------------------------
784
784
  let tariffProviderRegistryCache = null;
785
+ let tariffProviderFormConfig = null;
786
+ let tariffProviderFormBaseline = null;
785
787
  const _tpEl = (id) => document.getElementById(id);
786
788
  const _tpStr = (id, fallback = '') => {
787
789
  const el = _tpEl(id);
@@ -792,6 +794,7 @@
792
794
  return el ? !!el.checked : fallback;
793
795
  };
794
796
  const _tpNum = (id, fallback = 0) => {
797
+ if (!_tpEl(id)) return fallback;
795
798
  const n = Number(_tpStr(id, ''));
796
799
  return Number.isFinite(n) ? n : fallback;
797
800
  };
@@ -849,63 +852,93 @@
849
852
  }
850
853
  function collectTariffProviderConfig() {
851
854
  const existing = currentConfig && currentConfig.tariffProvider && typeof currentConfig.tariffProvider === 'object' ? currentConfig.tariffProvider : {};
855
+ const credentials = existing.credentials && typeof existing.credentials === 'object' ? existing.credentials : {};
856
+ const formula = existing.formula && typeof existing.formula === 'object' ? existing.formula : {};
857
+ const custom = existing.customRest && typeof existing.customRest === 'object' ? existing.customRest : {};
852
858
  const country = _tpStr('tariffProviderCountry', String(existing.country || 'DE')).toUpperCase() === 'NL' ? 'NL' : 'DE';
859
+ const providerId = _tpStr('tariffProviderId', existing.providerId || 'manual-dp');
853
860
  return {
854
861
  ...existing,
855
862
  enabled: _tpStr('tariffProviderEnabled', existing.enabled ? 'true' : 'false') === 'true',
856
- providerId: _tpStr('tariffProviderId', existing.providerId || 'manual-dp'),
863
+ providerId,
857
864
  sourceId: _tpStr('tariffProviderSourceId', existing.sourceId || 'entsoe'),
858
865
  providerProfileId: _tpStr('tariffProviderProfileId', existing.providerProfileId || 'local-provider'),
859
- activateTariffLogic: _tpBool('tariffProviderActivateLogic', true),
860
- automaticMode: _tpBool('tariffProviderAutomaticMode', true),
861
- autoCoupleDatapoints: _tpBool('tariffProviderAutoCouple', true),
866
+ activateTariffLogic: _tpBool('tariffProviderActivateLogic', existing.activateTariffLogic !== false),
867
+ automaticMode: _tpBool('tariffProviderAutomaticMode', existing.automaticMode !== false),
868
+ autoCoupleDatapoints: _tpBool('tariffProviderAutoCouple', existing.autoCoupleDatapoints !== false),
862
869
  country,
863
- timeZone: _tpStr('tariffProviderTimeZone', country === 'NL' ? 'Europe/Amsterdam' : 'Europe/Berlin'),
864
- resolutionMinutes: [15,30,60].includes(_tpNum('tariffProviderResolution', 15)) ? _tpNum('tariffProviderResolution', 15) : 15,
865
- refreshMinutes: Math.max(5, Math.min(360, Math.round(_tpNum('tariffProviderRefresh', 15)))),
866
- priceComponent: _tpStr('tariffProviderPriceComponent', 'total'),
867
- homeId: _tpStr('tariffProviderHomeId', ''),
868
- postalCode: _tpStr('tariffProviderPostalCode', ''),
869
- tokenUrl: _tpStr('tariffProviderTokenUrl', ''),
870
- pricesUrl: _tpStr('tariffProviderPricesUrl', ''),
870
+ timeZone: _tpStr('tariffProviderTimeZone', existing.timeZone ?? (country === 'NL' ? 'Europe/Amsterdam' : 'Europe/Berlin')),
871
+ resolutionMinutes: _tpEl('tariffProviderResolution')
872
+ ? ([15,30,60].includes(_tpNum('tariffProviderResolution', 15)) ? _tpNum('tariffProviderResolution', 15) : 15)
873
+ : (existing.resolutionMinutes ?? 15),
874
+ refreshMinutes: _tpEl('tariffProviderRefresh')
875
+ ? Math.max(5, Math.min(360, Math.round(_tpNum('tariffProviderRefresh', 15)))) : (existing.refreshMinutes ?? 15),
876
+ priceComponent: _tpStr('tariffProviderPriceComponent', existing.priceComponent ?? 'total'),
877
+ homeId: _tpStr('tariffProviderHomeId', existing.homeId || ''),
878
+ postalCode: _tpStr('tariffProviderPostalCode', existing.postalCode || ''),
879
+ tokenUrl: _tpStr('tariffProviderTokenUrl', existing.tokenUrl || ''),
880
+ pricesUrl: _tpStr('tariffProviderPricesUrl', existing.pricesUrl || ''),
871
881
  credentials: {
872
- ...(existing.credentials && typeof existing.credentials === 'object' ? existing.credentials : {}),
873
- accessToken: _tpStr('tariffProviderAccessToken', ''),
874
- securityToken: _tpStr('tariffProviderSecurityToken', ''),
875
- clientId: _tpStr('tariffProviderClientId', ''),
876
- clientSecret: _tpStr('tariffProviderClientSecret', ''),
877
- tokenUrl: _tpStr('tariffProviderTokenUrl', ''),
878
- bearerToken: _tpStr('tariffProviderBearerToken', ''),
879
- apiKey: _tpStr('tariffProviderApiKey', ''),
880
- username: _tpStr('tariffProviderUsername', ''),
881
- password: _tpStr('tariffProviderPassword', ''),
882
+ ...credentials,
883
+ accessToken: _tpStr('tariffProviderAccessToken', credentials.accessToken || ''),
884
+ securityToken: _tpStr('tariffProviderSecurityToken', credentials.securityToken || ''),
885
+ clientId: _tpStr('tariffProviderClientId', credentials.clientId || ''),
886
+ clientSecret: _tpStr('tariffProviderClientSecret', credentials.clientSecret || ''),
887
+ tokenUrl: _tpStr('tariffProviderTokenUrl', credentials.tokenUrl ?? existing.tokenUrl ?? ''),
888
+ bearerToken: _tpStr('tariffProviderBearerToken', credentials.bearerToken || ''),
889
+ apiKey: _tpStr('tariffProviderApiKey', credentials.apiKey || ''),
890
+ username: _tpStr('tariffProviderUsername', credentials.username || ''),
891
+ password: _tpStr('tariffProviderPassword', credentials.password || ''),
882
892
  },
883
893
  formula: {
884
- marketMultiplier: _tpNum('tariffProviderMarketMultiplier', 1),
885
- supplierMarkupEurPerKwh: _tpNum('tariffProviderSupplierMarkup', 0),
886
- gridVariableEurPerKwh: _tpNum('tariffProviderGridVariable', 0),
887
- taxEurPerKwh: _tpNum('tariffProviderTax', 0),
888
- otherVariableEurPerKwh: _tpNum('tariffProviderOtherVariable', 0),
889
- vatPct: _tpNum('tariffProviderVatPct', 0),
890
- priceIncludesVat: _tpStr('tariffProviderId', '') === 'tibber' || _tpStr('tariffProviderId', '') === 'energyzero',
894
+ ...formula,
895
+ marketMultiplier: _tpNum('tariffProviderMarketMultiplier', formula.marketMultiplier ?? 1),
896
+ supplierMarkupEurPerKwh: _tpNum('tariffProviderSupplierMarkup', formula.supplierMarkupEurPerKwh ?? 0),
897
+ gridVariableEurPerKwh: _tpNum('tariffProviderGridVariable', formula.gridVariableEurPerKwh ?? 0),
898
+ taxEurPerKwh: _tpNum('tariffProviderTax', formula.taxEurPerKwh ?? 0),
899
+ otherVariableEurPerKwh: _tpNum('tariffProviderOtherVariable', formula.otherVariableEurPerKwh ?? 0),
900
+ vatPct: _tpNum('tariffProviderVatPct', formula.vatPct ?? 0),
901
+ priceIncludesVat: providerId === existing.providerId && typeof formula.priceIncludesVat === 'boolean'
902
+ ? formula.priceIncludesVat : providerId === 'tibber' || providerId === 'energyzero',
891
903
  },
892
- feedInEurPerKwh: _tpNum('tariffProviderFeedIn', 0),
904
+ feedInEurPerKwh: _tpNum('tariffProviderFeedIn', existing.feedInEurPerKwh ?? 0),
893
905
  customRest: {
894
- ...(existing.customRest && typeof existing.customRest === 'object' ? existing.customRest : {}),
895
- url: _tpStr('tariffProviderRestUrl', ''),
896
- method: _tpStr('tariffProviderRestMethod', 'GET'),
897
- authMode: _tpStr('tariffProviderRestAuthMode', 'none'),
898
- apiKeyHeader: _tpStr('tariffProviderApiKeyHeader', 'x-api-key'),
899
- arrayPath: _tpStr('tariffProviderArrayPath', ''),
900
- startPath: _tpStr('tariffProviderStartPath', 'startsAt'),
901
- endPath: _tpStr('tariffProviderEndPath', 'endsAt'),
902
- pricePath: _tpStr('tariffProviderPricePath', 'total'),
903
- unit: _tpStr('tariffProviderUnit', 'EUR/kWh'),
904
- headersJson: _tpStr('tariffProviderHeadersJson', ''),
906
+ ...custom,
907
+ url: _tpStr('tariffProviderRestUrl', custom.url || ''),
908
+ method: _tpStr('tariffProviderRestMethod', custom.method ?? 'GET'),
909
+ authMode: _tpStr('tariffProviderRestAuthMode', custom.authMode ?? 'none'),
910
+ apiKeyHeader: _tpStr('tariffProviderApiKeyHeader', custom.apiKeyHeader ?? 'x-api-key'),
911
+ arrayPath: _tpStr('tariffProviderArrayPath', custom.arrayPath || ''),
912
+ startPath: _tpStr('tariffProviderStartPath', custom.startPath ?? 'startsAt'),
913
+ endPath: _tpStr('tariffProviderEndPath', custom.endPath ?? 'endsAt'),
914
+ pricePath: _tpStr('tariffProviderPricePath', custom.pricePath ?? 'total'),
915
+ unit: _tpStr('tariffProviderUnit', custom.unit ?? 'EUR/kWh'),
916
+ headersJson: _tpStr('tariffProviderHeadersJson', custom.headersJson || ''),
905
917
  },
906
918
  };
907
919
  }
920
+ function collectTariffProviderPatch() {
921
+ // An unrelated EMS save must not create a tariff from unconfirmed/default
922
+ // controls. Keep the loaded provider untouched unless its own form changed.
923
+ if (!tariffProviderFormConfig || tariffProviderFormConfig !== currentConfig?.tariffProvider || tariffProviderFormBaseline === null) return undefined;
924
+ const collected = collectTariffProviderConfig();
925
+ if (JSON.stringify(collected) === tariffProviderFormBaseline) return undefined;
926
+ // Rendering may display defaults for optional legacy fields. Only actual
927
+ // changes to that rendered baseline belong in this save, never those defaults.
928
+ const mergeChangedFields = (before, after, stored) => {
929
+ const out = { ...(stored && typeof stored === 'object' ? stored : {}) };
930
+ for (const [key, value] of Object.entries(after)) {
931
+ if (JSON.stringify(before?.[key]) === JSON.stringify(value)) continue;
932
+ out[key] = value && typeof value === 'object' && !Array.isArray(value)
933
+ ? mergeChangedFields(before?.[key], value, out[key]) : value;
934
+ }
935
+ return out;
936
+ };
937
+ return mergeChangedFields(JSON.parse(tariffProviderFormBaseline), collected, tariffProviderFormConfig);
938
+ }
908
939
  function applyTariffProviderUI(config) {
940
+ tariffProviderFormConfig = null;
941
+ tariffProviderFormBaseline = null;
909
942
  const cfg = config && typeof config === 'object' ? config : {};
910
943
  const credentials = cfg.credentials && typeof cfg.credentials === 'object' ? cfg.credentials : {};
911
944
  const formula = cfg.formula && typeof cfg.formula === 'object' ? cfg.formula : {};
@@ -951,6 +984,10 @@
951
984
  _tpSet('tariffProviderPricePath', custom.pricePath || 'total');
952
985
  _tpSet('tariffProviderUnit', custom.unit || 'EUR/kWh');
953
986
  _tpSet('tariffProviderHeadersJson', custom.headersJson || '');
987
+ if (config && typeof config === 'object' && !Array.isArray(config)) {
988
+ tariffProviderFormConfig = config;
989
+ tariffProviderFormBaseline = JSON.stringify(collectTariffProviderConfig());
990
+ }
954
991
  loadTariffProviderRegistry().then(() => {
955
992
  if (cfg.enabled && cfg.providerId !== 'manual-dp' && cfg.autoCoupleDatapoints !== false) _coupleTariffProviderDatapointsSync();
956
993
  }).catch(() => {});
@@ -1678,6 +1715,7 @@ function _collectFlowPowerDpIsWFromUI() {
1678
1715
  }
1679
1716
 
1680
1717
  let appCenterConfigDirty = false;
1718
+ let appCenterLoadedDraftSnapshot = null;
1681
1719
  let appCenterMutationBusy = false;
1682
1720
  /** Laden, Gesamt-Save und Import ersetzen die sichtbaren Eingaben. Während
1683
1721
  * dieses Requests verhindert inert neue Eingaben, auch im eingebetteten Formular. */
@@ -1693,6 +1731,19 @@ function _collectFlowPowerDpIsWFromUI() {
1693
1731
  if (main) { main.inert = wasInert; main.removeAttribute('aria-busy'); }
1694
1732
  };
1695
1733
  }
1734
+ function appCenterDraftSnapshot() {
1735
+ try {
1736
+ const inputs = Array.from(document.querySelectorAll('main input, main select, main textarea'))
1737
+ .map(input => [input.id, input.name, input.type, input.value, input.checked,
1738
+ input.multiple && input.selectedOptions ? Array.from(input.selectedOptions).map(option => option.value) : null]);
1739
+ return JSON.stringify([currentConfig, inputs]);
1740
+ } catch (_error) { return null; }
1741
+ }
1742
+ function hasAppCenterDraftChanges() {
1743
+ if (appCenterConfigDirty || appCenterLoadedDraftSnapshot === null) return true;
1744
+ const current = appCenterDraftSnapshot();
1745
+ return current === null || current !== appCenterLoadedDraftSnapshot;
1746
+ }
1696
1747
  function setDirty() {
1697
1748
  appCenterConfigDirty = true;
1698
1749
  if (els.save) {
@@ -1703,6 +1754,7 @@ function _collectFlowPowerDpIsWFromUI() {
1703
1754
  }
1704
1755
  function clearDirty() {
1705
1756
  appCenterConfigDirty = false;
1757
+ appCenterLoadedDraftSnapshot = appCenterDraftSnapshot();
1706
1758
  if (els.save) {
1707
1759
  delete els.save.dataset.dirty;
1708
1760
  els.save.title = '';
@@ -10508,6 +10560,7 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
10508
10560
  row[field] = value;
10509
10561
  list[idx - 1] = row;
10510
10562
  sc.evcsList = list;
10563
+ setDirty();
10511
10564
  }
10512
10565
  /**
10513
10566
  * Code-Teil: buildEvcsUI
@@ -10563,13 +10616,14 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
10563
10616
 
10564
10617
  const ocppStatus = currentConfig && currentConfig.ocppAutoDiscovery;
10565
10618
  const ocppPending = ocppStatus && Array.isArray(ocppStatus.stations)
10566
- ? ocppStatus.stations.filter(row => ['LICENSE_LIMIT', 'ROW_LIMIT', 'CONTROL_GROUP_CONFLICT', 'MIXED_MANUAL_MAPPING'].includes(row.code)) : [];
10619
+ ? ocppStatus.stations.filter(row => ['LICENSE_LIMIT', 'ROW_LIMIT', 'CONTROL_GROUP_CONFLICT', 'MIXED_MANUAL_MAPPING', 'USER_EXCLUDED'].includes(row.code)) : [];
10567
10620
  if (ocppPending.length || (ocppStatus && ocppStatus.error)) {
10568
10621
  const notice = document.createElement('div');
10569
10622
  notice.className = 'nw-help';
10570
10623
  notice.dataset.ocppDiscoveryPending = '1';
10571
10624
  notice.textContent = ocppPending.map(row => `${row.root}: ${row.code === 'LICENSE_LIMIT'
10572
10625
  ? 'Erkannt; für die automatische Zuordnung ist ein freier lizenzierter Ladepunkt erforderlich.'
10626
+ : row.code === 'USER_EXCLUDED' ? 'Aus der EMS-Zuordnung entfernt. Über die OCPP-Erkennung bei Bedarf erneut hinzufügen.'
10573
10627
  : row.code === 'ROW_LIMIT' ? 'Erkannt; das Ladepunktlimit ist erreicht.'
10574
10628
  : 'Erkannt; vorhandene Datenpunktzuordnungen widersprechen sich. Die Stationszuordnung prüfen.'}`).join(' ')
10575
10629
  || 'Die automatische OCPP-Zuordnung ist noch nicht abgeschlossen und wird erneut geprüft.';
@@ -11726,6 +11780,13 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
11726
11780
  const incomingPartnerVersion = dynamicGridVersion(cfg?.partnerIntegrations?.configVersion);
11727
11781
  if (incomingPartnerVersion && incomingPartnerVersion < partnerObservedVersion) throw new Error(partnerReloadNotice);
11728
11782
  currentConfig = cfg || {};
11783
+ // A loaded list is authoritative over an older display counter. Explicit
11784
+ // removal still sends both an empty list and count zero through its own UI.
11785
+ const loadedEvcs = currentConfig.settingsConfig;
11786
+ if (loadedEvcs && Array.isArray(loadedEvcs.evcsList)) {
11787
+ loadedEvcs.evcsCount = Math.max(_clampInt(loadedEvcs.evcsCount, 0, _maxEvcsCount(), 0),
11788
+ Math.min(_maxEvcsCount(), loadedEvcs.evcsList.length));
11789
+ }
11729
11790
  evcsExplicitEmpty = false;
11730
11791
  partnerLoadedVersion = incomingPartnerVersion;
11731
11792
  partnerObservedVersion = Math.max(partnerObservedVersion, partnerLoadedVersion || 0);
@@ -12106,41 +12167,48 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12106
12167
  return '';
12107
12168
  }
12108
12169
 
12109
- function _ocppStationIdentityFromRow(row) {
12170
+ function _ocppStationIdentitiesFromRow(row) {
12110
12171
  const r = row && typeof row === 'object' ? row : {};
12172
+ const identities = new Set();
12111
12173
  for (const field of [
12112
12174
  'powerId', 'energyTotalId', 'statusId', 'chargingStateId', 'activeId', 'heartbeatId',
12113
- 'onlineId', 'dataFreshId', 'setPowerWId', 'enableWriteId',
12175
+ 'onlineId', 'dataFreshId', 'setCurrentAId', 'setPowerWId', 'enableWriteId',
12176
+ 'vehicleConnectedId', 'chargeDemandId', 'currentId', 'appliedChargeLimitWId', 'appliedChargeLimitValidId',
12114
12177
  'vehicleSocId', 'rfidReadId',
12115
12178
  ]) {
12116
12179
  const identity = _ocppStationIdentityFromDp(r[field]);
12117
- if (identity) return identity;
12118
- }
12119
- const stationKey = String(r.stationKey || '').trim();
12120
- if (stationKey) {
12180
+ if (identity) identities.add(identity);
12181
+ }
12182
+ const discoveredIdentity = r.ocppDiscovery && r.ocppDiscovery.source === 'nexowatt-ocpp21'
12183
+ ? _ocppStationIdentityFromDp(r.ocppDiscovery.stationRoot) : '';
12184
+ if (discoveredIdentity) identities.add(discoveredIdentity);
12185
+ // A legacy row may identify its physical station without datapoints yet.
12186
+ // Once native IDs exist, a manual display group must not override them.
12187
+ if (identities.size === 0) {
12188
+ const stationKey = String(r.stationKey || '').trim();
12121
12189
  const nativeIdentity = _ocppStationIdentityFromDp(stationKey);
12122
- if (nativeIdentity) return nativeIdentity;
12123
- const hostedInstance = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/^eos-admin\.\d+\.ocpp$/);
12124
- if (hostedInstance && /^[A-Za-z0-9_-]+$/.test(stationKey)) return `${hostedInstance[0]}|${stationKey}`;
12125
- const instanceMatch = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/(?:^|\.)ocpp21\.(\d+)(?:\.|$)/i);
12126
- if (instanceMatch) return `${instanceMatch[1]}|${stationKey}`;
12190
+ if (nativeIdentity) identities.add(nativeIdentity);
12191
+ else if (stationKey) {
12192
+ const hostedInstance = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/^eos-admin\.\d+\.ocpp$/);
12193
+ const instanceMatch = String(r.ocppAdapterInstance || r.adapterInstance || '').match(/(?:^|\.)ocpp21\.(\d+)(?:\.|$)/i);
12194
+ if (hostedInstance && /^[A-Za-z0-9_-]+$/.test(stationKey)) identities.add(`${hostedInstance[0]}|${stationKey}`);
12195
+ else if (instanceMatch) identities.add(`${instanceMatch[1]}|${stationKey}`);
12196
+ }
12127
12197
  }
12128
- return '';
12198
+ return [...identities];
12199
+ }
12200
+
12201
+ function _ocppStationIdentityFromRow(row) {
12202
+ const identities = _ocppStationIdentitiesFromRow(row);
12203
+ return identities.length === 1 ? identities[0] : '';
12129
12204
  }
12130
12205
 
12131
12206
  function _ocppStationIdentityFromConnector(connector) {
12132
12207
  const c = connector && typeof connector === 'object' ? connector : {};
12133
- const ids = c.ids && typeof c.ids === 'object' ? c.ids : {};
12134
- for (const field of [
12135
- 'powerId', 'energyTotalId', 'statusId', 'chargingStateId', 'activeId', 'heartbeatId',
12136
- 'onlineId', 'dataFreshId', 'setPowerWId', 'enableWriteId',
12137
- 'vehicleSocId', 'rfidReadId',
12138
- ]) {
12139
- const identity = _ocppStationIdentityFromDp(ids[field]);
12140
- if (identity) return identity;
12141
- }
12208
+ const identities = new Set(_ocppStationIdentitiesFromRow(c.ids));
12142
12209
  const baseIdentity = _ocppStationIdentityFromDp(c.base);
12143
- return baseIdentity || '';
12210
+ if (baseIdentity) identities.add(baseIdentity);
12211
+ return identities.size === 1 ? [...identities][0] : '';
12144
12212
  }
12145
12213
 
12146
12214
  function _isEmptyEvcsMappingRow(row) {
@@ -12218,10 +12286,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12218
12286
  }
12219
12287
  };
12220
12288
 
12221
- // Meta
12222
- if (c && typeof c.stationKey === 'string') {
12223
- if (overwrite || onlyEmpty) setField('stationKey', c.stationKey);
12224
- }
12289
+ // Physical OCPP identity comes from the native datapoints. stationKey is
12290
+ // the installer's display/group assignment and must never be auto-filled.
12291
+ // Existing assignments remain untouched, including an explicitly empty one.
12225
12292
  if (c && c.connectorNo !== undefined && c.connectorNo !== null) {
12226
12293
  const n = Number(c.connectorNo);
12227
12294
  if (Number.isFinite(n)) {
@@ -12238,7 +12305,10 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12238
12305
 
12239
12306
  // Mappings (fill)
12240
12307
  const previousEnergyId = String(out.energyTotalId || '').trim();
12241
- for (const k of ['powerId','energyTotalId','statusId','chargingStateId','activeId','vehicleConnectedId','chargeDemandId','heartbeatId','onlineId','dataFreshId','setCurrentAId','setPowerWId','enableWriteId','vehicleSocId','rfidReadId']) {
12308
+ const monitorOnly = !_isEmptyEvcsMappingRow(r)
12309
+ && !String(r.setCurrentAId || '').trim() && !String(r.setPowerWId || '').trim();
12310
+ for (const k of ['powerId','energyTotalId','statusId','chargingStateId','activeId','vehicleConnectedId','chargeDemandId','heartbeatId','onlineId','dataFreshId','setCurrentAId','setPowerWId','enableWriteId','vehicleSocId','rfidReadId','appliedChargeLimitWId','appliedChargeLimitValidId']) {
12311
+ if (monitorOnly && ['setCurrentAId', 'setPowerWId', 'enableWriteId'].includes(k)) continue;
12242
12312
  if (ids[k]) setField(k, ids[k]);
12243
12313
  }
12244
12314
  const energyMappingWasApplied = !!ids.energyTotalId && (
@@ -12260,6 +12330,17 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12260
12330
  }
12261
12331
  }
12262
12332
  if (c && c.contractVersion) out.ocppDatapointContract = String(c.contractVersion);
12333
+ const discovery = c && c.ocppDiscovery;
12334
+ if (discovery && discovery.source === 'nexowatt-ocpp21' && discovery.controlScope === 'station'
12335
+ && _ocppStationIdentityFromDp(discovery.stationRoot) === _ocppStationIdentityFromConnector(c)) {
12336
+ // New rows keep the physical contract; manual rows without this metadata
12337
+ // must not silently become auto-managed command targets.
12338
+ if (Object.keys(r).length === 0) out.ocppDiscovery = Object.assign({}, discovery);
12339
+ else if (r.ocppDiscovery && r.ocppDiscovery.source === 'nexowatt-ocpp21'
12340
+ && r.ocppDiscovery.stationRoot === discovery.stationRoot) {
12341
+ out.ocppDiscovery = Object.assign({}, discovery, { autoCreated: r.ocppDiscovery.autoCreated === true });
12342
+ }
12343
+ }
12263
12344
 
12264
12345
  // Discovery identifies data points, not commissioned electrical limits.
12265
12346
  // The native contract does not attest AC/DC type, phases or minimum current.
@@ -12276,51 +12357,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12276
12357
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
12277
12358
  */
12278
12359
  async function ocppAutoDetect() {
12279
- try {
12280
- setStatus('OCPP21: Suche nach nativen Ladepunkten…');
12281
- const { connectors } = await fetchOcppDiscovery();
12282
-
12283
- if (!connectors.length) {
12284
- setStatus('OCPP21: Keine Ladepunkte gefunden (prüfe, ob der NexoWatt-OCPP21-Adapter läuft und die Station verbunden ist).', 'error');
12285
- return;
12286
- }
12287
-
12288
- const sc = _ensureSettingsConfig();
12289
- const existingList = Array.isArray(sc.evcsList) ? sc.evcsList : [];
12290
- const hasExisting = existingList.some(r => r && (
12291
- String(r.powerId || '').trim() ||
12292
- String(r.setCurrentAId || '').trim() ||
12293
- String(r.setPowerWId || '').trim() ||
12294
- String(r.statusId || '').trim()
12295
- ));
12296
-
12297
- if (hasExisting) {
12298
- const ok = window.confirm('Es sind bereits Ladepunkte konfiguriert.\n\nSoll die OCPP-Erkennung die aktuelle Konfiguration überschreiben?');
12299
- if (!ok) {
12300
- setStatus('OCPP21: Abgebrochen.', 'ok');
12301
- return;
12302
- }
12303
- }
12304
-
12305
- const count = Math.max(1, Math.min(50, connectors.length));
12306
- sc.evcsCount = count;
12307
- sc.evcsList = [];
12308
-
12309
- for (let i = 0; i < count; i++) {
12310
- const c = connectors[i];
12311
- sc.evcsList[i] = _applyOcppConnectorToRow({}, c, { overwrite: true });
12312
- }
12313
-
12314
- // Rebuild UI
12315
- if (els.evcsCount) els.evcsCount.value = String(count);
12316
- buildEvcsUI();
12317
- try { buildStationGroupsUI(); } catch (_e) {}
12318
- scheduleValidation(300);
12319
-
12320
- setStatus(`OCPP21: ${count} Ladepunkte direkt erkannt und vorbelegt. Bitte „Speichern & EMS neu starten“ klicken.`, 'ok');
12321
- } catch (e) {
12322
- setStatus('OCPP21: Erkennung fehlgeschlagen: ' + (e && e.message ? e.message : e), 'error');
12323
- }
12360
+ // Both buttons share one identity-preserving merge. Repeating discovery
12361
+ // cannot replace commissioned limits, names, activation or manual groups.
12362
+ return ocppMapExisting();
12324
12363
  }
12325
12364
  /**
12326
12365
  * Code-Teil: ocppMapExisting
@@ -12329,6 +12368,11 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12329
12368
  * TypeScript: Parameter, Rückgabewert und verwendete Config-/State-Objekte später explizit typisieren.
12330
12369
  */
12331
12370
  async function ocppMapExisting() {
12371
+ if (appCenterMutationBusy) throw new Error('Laden, Speichern oder Erkennung läuft bereits. Bitte den Abschluss abwarten.');
12372
+ // Background commissioning may have saved new rows since this page opened.
12373
+ // Refresh only a pristine form; never rebase a dirty draft's CAS token.
12374
+ if (!hasAppCenterDraftChanges()) await loadConfig();
12375
+ const endMutation = beginAppCenterMutation();
12332
12376
  try {
12333
12377
  setStatus('OCPP21: Suche direkte native Datenpunkte…');
12334
12378
  const { connectors } = await fetchOcppDiscovery();
@@ -12339,28 +12383,33 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12339
12383
  }
12340
12384
 
12341
12385
  const sc = _ensureSettingsConfig();
12342
- const currentCount = _clampInt(sc.evcsCount, 0, 50, 0);
12386
+ const currentCount = Math.max(_clampInt(sc.evcsCount, 0, 50, 0),
12387
+ Array.isArray(sc.evcsList) ? sc.evcsList.length : 0);
12343
12388
  const list = _ensureEvcsList(currentCount).slice();
12344
12389
  const usedRows = new Set();
12390
+ const seenStations = new Set();
12345
12391
  let migratedCount = 0;
12346
12392
  let appendedCount = 0;
12347
12393
  let skippedCount = 0;
12394
+ let conflictCount = 0;
12348
12395
 
12349
12396
  for (const connector of connectors) {
12350
12397
  const connectorIdentity = _ocppStationIdentityFromConnector(connector);
12398
+ // A station-scoped native limit is one writer even when the inventory
12399
+ // repeats it through multiple connectors or equivalent aliases.
12400
+ if (!connectorIdentity || seenStations.has(connectorIdentity)) continue;
12401
+ seenStations.add(connectorIdentity);
12351
12402
  let rowIndex = -1;
12352
12403
 
12353
- // 1. A previously configured OCPP21/alias row of the same station wins.
12354
- if (connectorIdentity) {
12355
- rowIndex = list.findIndex((row, index) => !usedRows.has(index) && _ocppStationIdentityFromRow(row) === connectorIdentity);
12356
- }
12357
-
12358
- // 2. An explicitly stored stationKey may identify a still-empty OCPP row.
12359
- if (rowIndex < 0 && connector && connector.stationKey) {
12360
- rowIndex = list.findIndex((row, index) => !usedRows.has(index)
12361
- && String(row && row.stationKey || '').trim() === String(connector.stationKey || '').trim()
12362
- && (_isEmptyEvcsMappingRow(row) || String(row && row.telemetryProfile || '').toLowerCase().includes('ocpp')));
12404
+ // Ambiguous/mixed existing mappings need installer review. Never add
12405
+ // another writer merely because no unambiguous row can be selected.
12406
+ const matches = list.map((row, index) => ({ index, identities: _ocppStationIdentitiesFromRow(row) }))
12407
+ .filter(match => match.identities.includes(connectorIdentity));
12408
+ if (matches.length > 1 || matches.some(match => match.identities.length > 1)) {
12409
+ conflictCount += 1;
12410
+ continue;
12363
12411
  }
12412
+ if (matches.length === 1 && !usedRows.has(matches[0].index)) rowIndex = matches[0].index;
12364
12413
 
12365
12414
  // 3. Reuse only a genuinely empty row. Never overwrite a Modbus/MQTT or
12366
12415
  // nexowatt-devices chargepoint merely because it occupies the same index.
@@ -12393,13 +12442,15 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
12393
12442
  buildEvcsUI();
12394
12443
  try { buildStationGroupsUI(); } catch (_e) {}
12395
12444
  scheduleValidation(300);
12445
+ if (migratedCount || appendedCount) setDirty();
12396
12446
  const parts = [`${migratedCount} OCPP21-Zuordnung(en) aktualisiert`];
12397
12447
  if (appendedCount) parts.push(`${appendedCount} neuer Ladepunkt angelegt`);
12398
12448
  if (skippedCount) parts.push(`${skippedCount} Station(en) wegen Maximalzahl nicht übernommen`);
12399
- setStatus(`OCPP21: ${parts.join(', ')}. Fremde Ladepunkte wurden nicht überschrieben. Bitte speichern.`, skippedCount ? 'error' : 'ok');
12449
+ if (conflictCount) parts.push(`${conflictCount} widersprüchliche Zuordnung(en) unverändert – bitte prüfen`);
12450
+ setStatus(`OCPP21: ${parts.join(', ')}. Fremde Ladepunkte wurden nicht überschrieben. Bitte speichern.`, skippedCount || conflictCount ? 'error' : 'ok');
12400
12451
  } catch (e) {
12401
12452
  setStatus('OCPP21: Zuordnung fehlgeschlagen: ' + (e && e.message ? e.message : e), 'error');
12402
- }
12453
+ } finally { endMutation(); }
12403
12454
  }
12404
12455
 
12405
12456
  // ------------------------------
@@ -13847,8 +13898,9 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
13847
13898
  }
13848
13899
 
13849
13900
  // Datapoints (inkl. Energiefluss-Monitor)
13850
- patch.tariffProvider = collectTariffProviderConfig();
13851
- if (patch.tariffProvider.enabled && patch.tariffProvider.providerId !== 'manual-dp' && patch.tariffProvider.autoCoupleDatapoints) {
13901
+ const tariffPatch = collectTariffProviderPatch();
13902
+ if (tariffPatch) patch.tariffProvider = tariffPatch;
13903
+ if (tariffPatch && tariffPatch.enabled && tariffPatch.providerId !== 'manual-dp' && tariffPatch.autoCoupleDatapoints) {
13852
13904
  _coupleTariffProviderDatapointsSync();
13853
13905
  }
13854
13906
  patch.datapoints = Object.assign({}, currentConfig.datapoints || {});
@@ -14463,6 +14515,12 @@ http://mesh-peer.local:8188" ${isEos ? '' : 'disabled'}>${_meshHtmlEscape(Array.
14463
14515
  p.style.display = (id === _activeTab) ? '' : 'none';
14464
14516
  });
14465
14517
 
14518
+ // Background discovery persists independently of this page. Refresh a
14519
+ // pristine mapping screen on entry, but preserve every unsaved draft.
14520
+ if (_activeTab === 'evcs' && configurationRevision && !hasAppCenterDraftChanges() && !appCenterMutationBusy) {
14521
+ void loadConfig().catch(error => setStatus('Ladepunkte konnten nicht aktualisiert werden: '
14522
+ + (error && error.message ? error.message : error), 'error'));
14523
+ }
14466
14524
  // immediate status refresh when entering the tab
14467
14525
  if (_activeTab === 'status') {
14468
14526
  refreshEmsStatus().catch(() => {});