iobroker.nexowatt-ui 1.0.3 → 1.0.4

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  NexoWatt EOS is the local platform for energy, charging and building control, including the responsive customer cockpit and installer workspace.
4
4
 
5
- **Current stable release:** `1.0.3` (2026-09-09)
5
+ **Current stable release:** `1.0.4` (2026-09-11)
6
6
 
7
7
  It provides live energy-flow visualization, historical analysis, SmartHome visualization, installer-controlled EMS applications, and selected customer controls for desktop, tablet, and smartphone use.
8
8
 
@@ -0,0 +1,92 @@
1
+ # NexoWatt EOS 1.0.4 – offizielle Stable-Version
2
+
3
+ **Datum:** 2026-09-11
4
+ **Basis:** vollständiges Repository 1.0.3
5
+
6
+ ## Verhalten
7
+
8
+ Die Kundenpriorität verteilt den physisch vorhandenen PV-Anteil zwischen Ladepunkten
9
+ und Speicher. Sie erzeugt weder zusätzliche PV-Leistung noch eine Netzladefreigabe.
10
+ Im PV-geführten Auto-Untermodus bleiben Start-/Stop-Hysterese, technische
11
+ Mindestleistung, gewählte Phasenart und alle Netz-/Stationsgrenzen verbindlich.
12
+ Unterhalb der fahrbaren Startleistung wird kein teilweiser Startanteil reserviert.
13
+ Der Speicher darf den kompletten ungenutzten Überschuss im Rahmen seiner Grenzen laden.
14
+
15
+ Ist im Automatikmodus Netzladen ausdrücklich freigegeben, bleibt der reguläre
16
+ Ladesollwert erhalten. Nur der nach anderen PV-/Min+PV-Ladepunkten noch verfügbare
17
+ PV-Anteil wird für den tatsächlich freigegebenen Auto-Ladebedarf reserviert.
18
+ Ein wartendes Fahrzeug ohne freigegebenen Sollwert blockiert keinen Auto-PV-Anteil.
19
+ Die Summe aller Reservierungen bleibt innerhalb des physischen PV-Budgets;
20
+ reines PV-Laden und Auto teilen dieselbe kundenseitige Obergrenze. Min+PV behält
21
+ seine netzgestützte technische Basis und den physischen PV-Zusatzanteil.
22
+
23
+ ## Phasen und Übergabe
24
+
25
+ Die Runtime hat bisher individuelle Umschaltschwellen, Wartezeiten, Herstellerwerte
26
+ und laufende Phasen-Timer beim Aufruf der finalen TS-Phasenentscheidung verloren.
27
+ Diese Daten werden jetzt durchgängig weitergereicht. Fest 1p / fest 3p bleibt fest;
28
+ Auto 1p/3p benötigt einen passenden Schreibpfad. Während Stop/Umschaltung/Settle
29
+ bleiben Startreservierungen gesperrt. Bereits real fließende Leistung wird nicht
30
+ vorzeitig als frei angenommen. Nach Settle darf auf den aktuellen Phasen geladen
31
+ werden; der Cooldown verhindert nur einen weiteren Phasenwechsel.
32
+
33
+ Beim Hochschalten muss mindestens das konfigurierte 3p-Stromminimum verfügbar sein.
34
+ Die Strom-/Leistungsquantisierung und die gewählte aktuelle Phasenzahl werden im
35
+ bestehenden finalen Allocation- und Write-Plan geprüft. Ein Maximalwert unterhalb
36
+ der technischen Mindestleistung darf kein künstlich verkleinertes Startminimum ergeben.
37
+
38
+ Die PV-Rekonstruktion berücksichtigt auch laufende Speicherladung. Deshalb wird
39
+ PV-Potential nicht unsichtbar, nur weil der Speicher es vor einem EV-Start aufnimmt.
40
+ Frische Auto-Istleistung wird einbezogen, Netzbezug und Speicherentladung werden
41
+ weiterhin abgezogen. Sollwerte werden nicht als erzeugte PV-Leistung addiert.
42
+
43
+ ## Diagnose
44
+
45
+ - chargingManagement.control.pvPriorityIncludesAuto
46
+ - chargingManagement.control.pvAutoPriorityReservedW
47
+ - chargingManagement.control.pvEvcsAutoPriorityMeasuredW
48
+ - chargingManagement.control.pvAutoPriorityJson
49
+ - vorhandene phaseSelectionJson / Phasenstatus / pvStartReservationW je Ladepunkt
50
+
51
+ Der alte DP pvPriorityPurePvOnly bleibt aus Kompatibilitätsgründen erhalten und ist false.
52
+ Keine zusätzliche unbeschränkte Historie, kein neuer schneller Poller, keine neuen
53
+ Produktionsabhängigkeiten. Die vorhandene begrenzte Diagnose-Publikation wird verwendet.
54
+
55
+ ## Prüfumfang und Grenzen
56
+
57
+ Die Regression umfasst vollständige Regelticks mit echtem TS-Abschlussplan und
58
+ Executor gegen simulierte Datenpunkte, zusätzlich reine Budget-/Phasen-Pipeline-Tests.
59
+ Sie prüft Auto mit und ohne Netzfreigabe, feste 1p/3p, höhere Mindestströme, DC-
60
+ Mindestleistung, geteiltes PV-Budget, Leerlauf/Offline, Phasenwechsel und Settle.
61
+ Es wurde keine reale Wallbox oder reale Anlage angesteuert.
62
+
63
+ Auf der Kundenanlage müssen vor uneingeschränktem Betrieb Herstellerfreigabe für
64
+ Phasenwechsel, tatsächliche Phasenrückmeldung bzw. unterstützter Gerätevertrag,
65
+ Startgrenzen, Umschaltpause und Speicherübergabe kontrolliert überprüft werden.
66
+ Die Releasebezeichnung ist keine Zertifizierung und keine Aussage über einen
67
+ nicht durchgeführten Hardware-Dauertest.
68
+
69
+
70
+ ## Ausgeführte Softwareprüfungen (11.09.2026)
71
+
72
+ - Node.js 22.16.0; TypeScript 5.8.3 (lokal vorhandenes Build-Werkzeug).
73
+ - Vollständiger `npm run build:ts`: erfolgreich, einschließlich 120 produktiver
74
+ Runtime-Dateien, 483 Runtime-Spiegel und TypeScript-Deklarationsbuild.
75
+ - Vollständiger `npm run test:all`: erfolgreich, einschließlich Browser-Regression
76
+ für den Home-AppCenter und der bestehenden Status-/Speicher-/Sicherheitsprüfungen.
77
+ - Neue Auto-/Phasen-Regression: 37 Szenariogruppen, einschließlich echter
78
+ Regeltick-/Executor-Codepfade mit simulierten Datenpunkten.
79
+ - Zusätzliche PV-Prioritäts-, zentrale Budget-, Speicherrest-, Min+PV- und
80
+ TS-Phasen-Regressionsprüfungen: erfolgreich.
81
+ - `publish:check`, `verify-publish.js`, Runtime-Start-Smoke und Stable-Release-Gate:
82
+ erfolgreich. Runtime-Start-Smoke prüft Syntax, lokale Imports und eine mit
83
+ Test-Doubles konstruierbare Startkette, keinen gestarteten Kunden-ioBroker.
84
+ - Paketdateien: 323 versiegelte Einträge; npm-Pakettrockenlauf: 324 Einträge.
85
+
86
+ Eine neue Online-Installation über `npm ci` konnte wegen DNS-/Registry-Zugriffsfehlern
87
+ (`EAI_AGAIN`) in der Prüfumgebung nicht abgeschlossen werden. Daher wurden die
88
+ Build-/Testwerkzeuge aus lokal vorhandenen Installationen verwendet. Produktions-
89
+ und Entwicklungsabhängigkeiten sind gegenüber 1.0.3 unverändert. Eine erfolgreiche
90
+ frische Abhängigkeitsinstallation oder ein Live-Hardware-Test wird nicht behauptet.
91
+ Die Versionsverfügbarkeit in npm ist vor Veröffentlichung separat zu prüfen; der
92
+ bestehende `prepublishOnly`-Guard führt diese Prüfung aus.
@@ -2,7 +2,7 @@
2
2
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
3
3
  *
4
4
  * Quelle: src-ts/runtime-executables/ems/modules/charging-management.ts
5
- * Quell-Hash: sha256:a2621849d84a8adc2f26e3f4dd4eb7705943d072f662fc3d398e75a0e8b28460
5
+ * Quell-Hash: sha256:545a9dc4df73467512fa8407e9446f7e5d20ba1aa2881e72b5783b9e02cd6429
6
6
  * Erzeugung: npm run sync:ts-runtime-executables
7
7
  *
8
8
  * Zweck:
@@ -27,6 +27,7 @@ const { applySetpoint } = require('../consumers');
27
27
  const { ReasonCodes } = require('../reasons');
28
28
  const { computeChargingMinimumServicePlan, resolveAcChargingLimits } = require('../charging-budget-helpers');
29
29
  const { recordAcceptedPowerTarget } = require('../services/accepted-power-effects');
30
+ const { buildAutoPvPriorityReservation } = require('../services/pv-surplus-allocation');
30
31
  const { ChargingManagementAuditStore, finiteChargingAuditNumber, deriveChargingAuditLimiter, deriveChargingAuditGlobalLimiter, buildChargingAuditSnapshot, chargingAuditEventSignature, buildChargingAuditEvents } = require('../services/charging-management-audit');
31
32
  const { Rc85EvcsDecisionGuard, rc85GridEnvelope, rc85OfflineReserveW, rc85IsHardReason, rc85RunIsolatedResult, rc86GridBinding } = require('../rc85-runtime-hardening');
32
33
  const {
@@ -971,9 +972,10 @@ function computePendingPvStartIntentW({
971
972
  // entsteht bewusst gar kein Pending-Intent. Der ungenutzte PV-Anteil bleibt
972
973
  // dadurch im selben EMS-Zyklus fuer Speicher und nachgelagerte Verbraucher
973
974
  // verfuegbar, statt als nicht fahrbare Teilreservierung liegen zu bleiben.
974
- const startMinimumW = technicalW > 0
975
- ? Math.min(maxW, technicalW)
976
- : Math.min(maxW, Math.max(thresholdW, minW));
975
+ const startMinimumW = technicalW > 0 ? technicalW : Math.max(thresholdW, minW);
976
+ if (maxW + 1e-6 < startMinimumW) {
977
+ return { intentW: 0, totalDemandW: 0, reason: 'below-technical-minimum' };
978
+ }
977
979
  if (!isAlreadyActive) {
978
980
  const startAvailableW = Math.max(0, Math.min(potentialTotalW, pvAvailW));
979
981
  if (startMinimumW > 0 && startAvailableW + 1e-6 < startMinimumW) {
@@ -3265,6 +3267,21 @@ class ChargingManagementModule extends BaseModule {
3265
3267
  phaseSwitchCommandAllowed: w && w.phaseSwitchCommandAllowed,
3266
3268
  phaseSwitchKey: w && w.phaseSwitchKey,
3267
3269
  phaseSwitchValue: w && w.phaseSwitchValue,
3270
+ // Preserve the actual per-point phase contract, not only global defaults.
3271
+ supportsPhaseSwitch: !!(w && w.phaseSwitchKey),
3272
+ phaseSwitchValue1p: w && w.phaseSwitchValue1p,
3273
+ phaseSwitchValue3p: w && w.phaseSwitchValue3p,
3274
+ switchUpThresholdW: w && w.phaseSwitchUpThresholdW,
3275
+ switchDownThresholdW: w && w.phaseSwitchDownThresholdW,
3276
+ switchUpStableMs: w && w.phaseSwitchUpStableMs,
3277
+ switchDownStableMs: w && w.phaseSwitchDownStableMs,
3278
+ switchCooldownMs: w && w.phaseSwitchCooldownMs,
3279
+ switchSettleMs: w && w.phaseSwitchSettleMs,
3280
+ switchSafePowerW: w && w.phaseSwitchSafePowerW,
3281
+ highSinceMs: w && w.highSinceMs,
3282
+ lowSinceMs: w && w.lowSinceMs,
3283
+ cooldownUntilMs: w && w.cooldownUntilMs,
3284
+ settleUntilMs: w && w.settleUntilMs,
3268
3285
  phaseSwitchReason: w && w.phaseSwitchReason,
3269
3286
  phaseSwitchSafetyStopRequired: w && w.phaseSwitchSafetyStopRequired,
3270
3287
  phaseSwitchCooldownRemainingMs: w && w.phaseSwitchCooldownRemainingMs,
@@ -3412,6 +3429,7 @@ class ChargingManagementModule extends BaseModule {
3412
3429
  let reserveW = 0;
3413
3430
  let pvReserveW = 0;
3414
3431
  let pvIntentW = 0;
3432
+ let purePvIntentW = 0;
3415
3433
  let activeDemandWallboxes = 0;
3416
3434
 
3417
3435
  for (const plan of plans) {
@@ -3473,6 +3491,7 @@ class ChargingManagementModule extends BaseModule {
3473
3491
  reserveW += reserveThisW;
3474
3492
  pvReserveW += Math.min(reserveThisW, finalPvUsedW);
3475
3493
  pvIntentW += computePvManagedDemandIntentW(effectiveMode, reserveThisW, minPowerW);
3494
+ if (effectiveMode === 'pv') purePvIntentW += reserveThisW;
3476
3495
  activeDemandWallboxes += 1;
3477
3496
  }
3478
3497
 
@@ -3482,6 +3501,7 @@ class ChargingManagementModule extends BaseModule {
3482
3501
  reserveW: Math.max(0, Math.round(reserveW)),
3483
3502
  pvReserveW: Math.max(0, Math.round(pvReserveW)),
3484
3503
  pvIntentW: Math.max(0, Math.round(pvIntentW)),
3504
+ purePvIntentW: Math.max(0, Math.round(purePvIntentW)),
3485
3505
  activeDemandWallboxes,
3486
3506
  };
3487
3507
  } catch (_eFinalAllocationMetrics) {
@@ -3489,6 +3509,37 @@ class ChargingManagementModule extends BaseModule {
3489
3509
  }
3490
3510
  }
3491
3511
 
3512
+ /** Attribute only the PV share of final, phase-checked Auto targets. */
3513
+ _buildAutoPvPriorityMetrics(allocationState, wbList, options) {
3514
+ const decision = allocationState && (allocationState.normalSourceDecision?.apply
3515
+ ? allocationState.normalSourceDecision : allocationState.productiveDecision);
3516
+ const plans = decision && Array.isArray(decision.apply?.wallboxes) ? decision.apply.wallboxes : [];
3517
+ const bySafe = new Map((wbList || []).filter(w => w && w.safe).map(w => [String(w.safe), w]));
3518
+ const points = plans.map(plan => {
3519
+ const w = bySafe.get(String(plan.safe)) || {};
3520
+ const factor = Math.max(1, Number(plan.phases) || 1) * Math.max(1, Number(plan.voltageV) || 230);
3521
+ const basisCurrent = ['current', 'currentA'].includes(String(plan.controlBasis));
3522
+ const step = basisCurrent ? (Number(plan.stepA) || 0.1) : (Number(plan.stepW) || 1);
3523
+ const minRaw = basisCurrent ? Math.max(Number(plan.minA) || 0, (Number(plan.minPowerW) || 0) / factor)
3524
+ : Math.max(0, Number(plan.minPowerW) || 0);
3525
+ const technicalMinimumW = Math.ceil((minRaw - 1e-9) / step) * step * (basisCurrent ? factor : 1);
3526
+ return {
3527
+ safe: String(plan.safe), userMode: String(w.userMode || plan.userMode || 'auto'),
3528
+ effectiveMode: String(plan.effectiveMode || w.effectiveMode || ''),
3529
+ enabled: w.enabled !== false && plan.enabled !== false,
3530
+ online: w.online === true && plan.online === true,
3531
+ demandConfirmed: w.vehicleDemandConfirmed === true || plan.demandConfirmed === true,
3532
+ startProbeActive: w.vehicleStartProbeActive === true || plan.vehicleStartProbeActive === true,
3533
+ actualFresh: w.meterStale !== true && plan.staleAny !== true,
3534
+ actualW: Math.max(0, Number(w.actualPowerW) || 0),
3535
+ finalTargetW: Math.max(0, Number(plan.targetPowerW) || 0),
3536
+ technicalMinimumW,
3537
+ phaseTransition: plan.phaseSwitchRequired === true || plan.phaseSwitchSafetyStopRequired === true,
3538
+ };
3539
+ });
3540
+ return buildAutoPvPriorityReservation({ ...options, points });
3541
+ }
3542
+
3492
3543
  /** Code-Teil: _publishChargingPhaseSelectionRuntimeStates – Übernimmt Hysterese-/Cooldown-Zustände aus der TS-Phasenwahl und veröffentlicht lesbare Diagnose pro Ladepunkt. */
3493
3544
  async _publishChargingPhaseSelectionRuntimeStates(phasePlan, wbList) {
3494
3545
  const decisions = phasePlan && Array.isArray(phasePlan.wallboxes) ? phasePlan.wallboxes : [];
@@ -5061,7 +5112,11 @@ class ChargingManagementModule extends BaseModule {
5061
5112
  await mk('chargingManagement.control.pvCapEffectiveW', 'Pure-PV customer-priority cap after hysteresis (W)', 'number', 'value.power');
5062
5113
  await mk('chargingManagement.control.pvPureCapW', 'Pure-PV customer-priority cap (W)', 'number', 'value.power');
5063
5114
  await mk('chargingManagement.control.pvPhysicalCapW', 'Physical PV cap for PV and Min+PV extra power (W)', 'number', 'value.power');
5064
- await mk('chargingManagement.control.pvPriorityPurePvOnly', 'Customer PV priority applies to pure PV mode only', 'boolean', 'indicator');
5115
+ await mk('chargingManagement.control.pvPriorityPurePvOnly', 'Legacy indicator: PV priority restricted to pure PV', 'boolean', 'indicator');
5116
+ await mk('chargingManagement.control.pvPriorityIncludesAuto', 'Customer PV priority includes Auto PV share', 'boolean', 'indicator');
5117
+ await mk('chargingManagement.control.pvAutoPriorityReservedW', 'PV share reserved by final Auto charging targets (W)', 'number', 'value.power');
5118
+ await mk('chargingManagement.control.pvEvcsAutoPriorityMeasuredW', 'Fresh Auto power used in physical PV reconstruction (W)', 'number', 'value.power');
5119
+ await mk('chargingManagement.control.pvAutoPriorityJson', 'Auto PV share and phase-aware start diagnostics', 'string', 'json');
5065
5120
  await mk('chargingManagement.control.pvAvailable', 'PV available (hysteresis)', 'boolean', 'indicator');
5066
5121
  await mk('chargingManagement.control.pvAllocationMode', 'PV surplus allocation mode', 'string', 'text');
5067
5122
  await mk('chargingManagement.control.pvAllocationEvcsSharePct', 'PV surplus EVCS share (%)', 'number', 'value.percent');
@@ -8411,6 +8466,7 @@ class ChargingManagementModule extends BaseModule {
8411
8466
  let pvEvcsCmdW = 0;
8412
8467
  let pvEvcsUsedW = 0;
8413
8468
  let pvEvcsPhysicalPvManagedW = 0;
8469
+ let pvEvcsAutoPriorityMeasuredW = 0;
8414
8470
 
8415
8471
  try {
8416
8472
  for (const w of wbList) {
@@ -8423,12 +8479,16 @@ class ChargingManagementModule extends BaseModule {
8423
8479
  pvEvcsActualW += a;
8424
8480
 
8425
8481
  // Fuer die zentrale physikalische PV-Rekonstruktion zaehlt nur
8426
- // gemessene Leistung von PV-/Min+PV-Ladepunkten. Normal/Boost
8427
- // ist bereits eine priorisierte Last und darf kein neues
8428
- // Speicher-PV-Budget erzeugen. Kommandowerte werden hier bewusst
8482
+ // gemessene Leistung von PV-/Min+PV- sowie Auto-Ladepunkten.
8483
+ // Auto wird danach mit seinem tatsaechlichen PV-Anteil reserviert;
8484
+ // Boost bleibt ausserhalb der Kundenaufteilung. Kommandowerte werden hier bewusst
8429
8485
  // nicht verwendet; der NVP bildet den realen Leistungsfluss ab.
8430
8486
  const effectiveMode = String(w.effectiveMode || '').trim().toLowerCase();
8431
- if (effectiveMode === 'pv') {
8487
+ if ((effectiveMode === 'normal' || effectiveMode === 'auto')
8488
+ && normalizeWallboxModeOverride(w.userMode) === 'auto' && w.meterStale !== true) {
8489
+ pvEvcsPhysicalPvManagedW += a;
8490
+ pvEvcsAutoPriorityMeasuredW += a;
8491
+ } else if (effectiveMode === 'pv') {
8432
8492
  pvEvcsPhysicalPvManagedW += a;
8433
8493
  } else if (effectiveMode === 'minpv') {
8434
8494
  // Min+PV-Grundlast kommt aus dem normalen Gesamt-/Netzbudget.
@@ -8478,6 +8538,7 @@ class ChargingManagementModule extends BaseModule {
8478
8538
  await this._queueState('chargingManagement.control.pvEvcsCmdW', Math.round(pvEvcsCmdW || 0), true);
8479
8539
  await this._queueState('chargingManagement.control.pvEvcsUsedW', Math.round(pvEvcsUsedW || 0), true);
8480
8540
  await this._queueState('chargingManagement.control.pvEvcsPhysicalPvManagedW', Math.round(pvEvcsPhysicalPvManagedW || 0), true);
8541
+ await this._queueState('chargingManagement.control.pvEvcsAutoPriorityMeasuredW', Math.round(pvEvcsAutoPriorityMeasuredW || 0), true);
8481
8542
  } catch {
8482
8543
  // ignore
8483
8544
  }
@@ -8789,7 +8850,8 @@ class ChargingManagementModule extends BaseModule {
8789
8850
  await this._queueState('chargingManagement.control.pvCapEffectiveW', pvCapEffectiveWState || 0, true);
8790
8851
  await this._queueState('chargingManagement.control.pvPureCapW', pvPureCapWState || 0, true);
8791
8852
  await this._queueState('chargingManagement.control.pvPhysicalCapW', pvPhysicalCapWState || 0, true);
8792
- await this._queueState('chargingManagement.control.pvPriorityPurePvOnly', true, true);
8853
+ await this._queueState('chargingManagement.control.pvPriorityPurePvOnly', false, true);
8854
+ await this._queueState('chargingManagement.control.pvPriorityIncludesAuto', true, true);
8793
8855
  await this._queueState('chargingManagement.control.pvAvailable', !!pvAvailableState, true);
8794
8856
  await this._queueState('chargingManagement.control.pvSurplusNoEvRawW', pvSurplusNoEvRawWState || 0, true);
8795
8857
  await this._queueState('chargingManagement.control.pvSurplusNoEvAvg5mW', pvSurplusNoEvAvg5mWState || 0, true);
@@ -8912,7 +8974,8 @@ if (components.length) {
8912
8974
  pvCapEffectiveW: (typeof pvCapEffectiveWState === 'number' && Number.isFinite(pvCapEffectiveWState)) ? pvCapEffectiveWState : null,
8913
8975
  pvPureCapW: (typeof pvPureCapWState === 'number' && Number.isFinite(pvPureCapWState)) ? pvPureCapWState : null,
8914
8976
  pvPhysicalCapW: (typeof pvPhysicalCapWState === 'number' && Number.isFinite(pvPhysicalCapWState)) ? pvPhysicalCapWState : null,
8915
- pvPriorityPurePvOnly: true,
8977
+ pvPriorityPurePvOnly: false,
8978
+ pvPriorityIncludesAuto: true,
8916
8979
  pvAvailable: !!pvAvailableState,
8917
8980
  gridW: (typeof gridW === 'number' && Number.isFinite(gridW)) ? gridW : null,
8918
8981
  gridImportNoEvW: (typeof gridImportNoEvW === 'number' && Number.isFinite(gridImportNoEvW)) ? gridImportNoEvW : null,
@@ -11792,9 +11855,21 @@ if (components.length) {
11792
11855
  : 0;
11793
11856
  const commandNowW = Math.max(0, Number(row.targetW) || 0);
11794
11857
  const demandNowW = Math.max(0, Number(row.demandReserveW) || 0, actualNowW, commandNowW);
11795
- const technicalMinW = (w.chargerType === 'AC' && Number(w.phases || 0) === 3)
11858
+ let technicalMinW = (w.chargerType === 'AC' && Number(w.phases || 0) === 3)
11796
11859
  ? Math.max(0, Math.max(num(w.minPW, 0), acMinPower3pW))
11797
11860
  : Math.max(0, num(w.minPW, 0));
11861
+ // Reserve only a start that can actually be represented by this
11862
+ // charger's command step. Rounding down would hold PV for a
11863
+ // command which the final technical-minimum guard must stop.
11864
+ if (w.controlBasis === 'currentA' && w.chargerType === 'AC') {
11865
+ const factor = Math.max(1, num(w.phases, 3)) * Math.max(1, num(w.voltageV, 230));
11866
+ const stepA = num(w.stepA, 0) > 0 ? num(w.stepA, 0) : 0.1;
11867
+ const startA = Math.max(num(w.minA, 0), technicalMinW / factor);
11868
+ technicalMinW = Math.ceil((startA - 1e-9) / stepA) * stepA * factor;
11869
+ } else if (technicalMinW > 0) {
11870
+ const stepW = num(w.stepW, 0) > 0 ? num(w.stepW, 0) : 1;
11871
+ technicalMinW = Math.ceil((technicalMinW - 1e-9) / stepW) * stepW;
11872
+ }
11798
11873
  const minPvBaseW = effMode === 'minpv'
11799
11874
  ? Math.max(
11800
11875
  0,
@@ -11884,8 +11959,8 @@ if (components.length) {
11884
11959
  let evcsControlReserveW = Math.max(0, Math.round(evcsActiveDemandReserveW));
11885
11960
  let evcsControlPvReserveW = Math.max(0, Math.round(evcsActiveDemandPvReserveW));
11886
11961
  let evcsControlPvIntentW = Math.max(0, Math.round(evcsActiveDemandPvIntentW));
11887
- const evcsControlPendingPvIntentW = Math.max(0, Math.round(evcsPendingDemandPvIntentW));
11888
- const evcsControlPendingDemandW = Math.max(0, Math.round(evcsPendingDemandTotalW));
11962
+ let evcsControlPendingPvIntentW = Math.max(0, Math.round(evcsPendingDemandPvIntentW));
11963
+ let evcsControlPendingDemandW = Math.max(0, Math.round(evcsPendingDemandTotalW));
11889
11964
  let evcsControlTotalPvIntentW = Math.max(0, evcsControlPvIntentW + evcsControlPendingPvIntentW);
11890
11965
  let evcsControlRemainingW = Number.isFinite(budgetW)
11891
11966
  ? Math.max(0, Math.round(Number(budgetW) - evcsControlReserveW))
@@ -12025,7 +12100,46 @@ if (components.length) {
12025
12100
  evcsControlReserveW = finalAllocationMetrics.reserveW;
12026
12101
  evcsControlPvReserveW = finalAllocationMetrics.pvReserveW;
12027
12102
  evcsControlPvIntentW = finalAllocationMetrics.pvIntentW;
12103
+ // A tentative start was calculated before the final phase plan. It may
12104
+ // not reserve PV while the same plan orders stop/switch/settle.
12105
+ const phaseBySafe = new Map((tsAllocationState?.phasePlan?.wallboxes || []).map(p => [String(p.safe), p]));
12106
+ const finalDecision = tsAllocationState?.normalSourceDecision?.apply
12107
+ ? tsAllocationState.normalSourceDecision : tsAllocationState?.productiveDecision;
12108
+ const finalBySafe = new Map((finalDecision?.apply?.wallboxes || []).map(p => [String(p.safe), p]));
12109
+ for (const row of debugAlloc) {
12110
+ if (!row || !(Number(row.pendingPvIntentTotalDemandW) > 0)) continue;
12111
+ const phase = phaseBySafe.get(String(row.safe));
12112
+ const final = finalBySafe.get(String(row.safe));
12113
+ const phaseBlocked = !!(phase && (phase.switchRequired || phase.safetyStopRequired || Number(phase.settleUntilMs) > now));
12114
+ // A ramp intent based on a raw command ceases to be real demand
12115
+ // when the final phase/technical/cap guard has rejected that start.
12116
+ // Preserve genuine start-minimum intents calculated from idle.
12117
+ const rawStartRejected = !!(final && Number(row.targetW) >= activityThresholdW
12118
+ && !(Number(final.targetPowerW) > 0)
12119
+ && !(row.meterStale !== true && Number(row.actualPowerW) >= activityThresholdW));
12120
+ if (!phaseBlocked && !rawStartRejected) continue;
12121
+ evcsControlPendingPvIntentW = Math.max(0, evcsControlPendingPvIntentW - (Number(row.pendingPvIntentW) || 0));
12122
+ evcsControlPendingDemandW = Math.max(0, evcsControlPendingDemandW - (Number(row.pendingPvIntentTotalDemandW) || 0));
12123
+ if (String(row.effectiveMode || '') === 'pv') {
12124
+ evcsPendingDemandPurePvIntentW = Math.max(0, evcsPendingDemandPurePvIntentW - (Number(row.pendingPvIntentW) || 0));
12125
+ }
12126
+ row.pendingPvIntentW = 0;
12127
+ row.pendingPvIntentTotalDemandW = 0;
12128
+ row.pendingPvIntentReason = phaseBlocked ? 'phase-transition-no-start-reservation' : 'final-plan-no-runnable-demand';
12129
+ const point = wbList.find(w => String(w.safe) === String(row.safe));
12130
+ if (point?.ch) await this._queueState(`${point.ch}.pvStartReservationW`, 0, true);
12131
+ }
12132
+ const autoPvMetrics = this._buildAutoPvPriorityMetrics(tsAllocationState, wbList, {
12133
+ priorityCapW: Math.max(0, Number(pvStartReadyBudgetW) || 0),
12134
+ physicalCapW: Math.max(0, Number(pvPhysicalCapW) || 0),
12135
+ otherPriorityReservedW: finalAllocationMetrics.purePvIntentW + Math.max(0, evcsPendingDemandPurePvIntentW),
12136
+ otherPhysicalReservedW: Math.max(evcsControlPvIntentW, evcsControlPvReserveW) + evcsControlPendingPvIntentW,
12137
+ });
12138
+ evcsControlPvReserveW += autoPvMetrics.reservedW;
12139
+ evcsControlPvIntentW += autoPvMetrics.reservedW;
12028
12140
  evcsControlTotalPvIntentW = Math.max(0, evcsControlPvIntentW + evcsControlPendingPvIntentW);
12141
+ await this._queueState('chargingManagement.control.pvAutoPriorityReservedW', autoPvMetrics.reservedW, true);
12142
+ await this._queueState('chargingManagement.control.pvAutoPriorityJson', JSON.stringify(autoPvMetrics), true);
12029
12143
  evcsControlRemainingW = Number.isFinite(budgetW)
12030
12144
  ? Math.max(0, Math.round(Number(budgetW) - evcsControlReserveW))
12031
12145
  : 0;
@@ -12042,6 +12156,8 @@ if (components.length) {
12042
12156
  budgetDebug.evcsFinalTargetPowerW = totalTargetPowerW;
12043
12157
  budgetDebug.evcsFinalTargetCurrentA = totalTargetCurrentA;
12044
12158
  budgetDebug.evcsFinalAllocationSource = 'ts-final-allocation-plan';
12159
+ budgetDebug.evcsPendingDemandPvIntentW = evcsControlPendingPvIntentW;
12160
+ budgetDebug.evcsPendingDemandReserveW = evcsControlPendingDemandW;
12045
12161
  }
12046
12162
  const budgetEntry = debugAlloc.find(a => a && a.type === 'budget');
12047
12163
  if (budgetEntry && budgetEntry.details && typeof budgetEntry.details === 'object') {
@@ -12054,6 +12170,8 @@ if (components.length) {
12054
12170
  budgetEntry.details.evcsFinalTargetPowerW = totalTargetPowerW;
12055
12171
  budgetEntry.details.evcsFinalTargetCurrentA = totalTargetCurrentA;
12056
12172
  budgetEntry.details.evcsFinalAllocationSource = 'ts-final-allocation-plan';
12173
+ budgetEntry.details.evcsPendingDemandPvIntentW = evcsControlPendingPvIntentW;
12174
+ budgetEntry.details.evcsPendingDemandReserveW = evcsControlPendingDemandW;
12057
12175
  }
12058
12176
  } catch (_eFinalAllocationDiagnostics) {
12059
12177
  // diagnostics only
@@ -2,7 +2,7 @@
2
2
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
3
3
  *
4
4
  * Quelle: src-ts/runtime-executables/ems/services/pv-surplus-allocation.ts
5
- * Quell-Hash: sha256:fa5f396b8774ec7e1fb6c3b55a6510dea7100966b34cd81816eee6b44b3b5dd7
5
+ * Quell-Hash: sha256:c40ddc55073801b8239d0ea483bcc905ff6ea37e947009d2bf67ccf155b23b88
6
6
  * Erzeugung: npm run sync:ts-runtime-executables
7
7
  *
8
8
  * Zweck:
@@ -19,6 +19,7 @@
19
19
  Object.defineProperty(exports, "__esModule", { value: true });
20
20
  exports.normalizePvSurplusPriority = normalizePvSurplusPriority;
21
21
  exports.buildPvSurplusAllocation = buildPvSurplusAllocation;
22
+ exports.buildAutoPvPriorityReservation = buildAutoPvPriorityReservation;
22
23
  function clamp(value, min, max, fallback) {
23
24
  const n = Number(value);
24
25
  return Number.isFinite(n) ? Math.max(min, Math.min(max, n)) : fallback;
@@ -72,4 +73,55 @@ function buildPvSurplusAllocation(totalW, modeRaw, evcsSharePctRaw, options = {}
72
73
  reason,
73
74
  };
74
75
  }
75
- module.exports = { normalizePvSurplusPriority, buildPvSurplusAllocation };
76
+ /**
77
+ * Attribution only: never creates a charging command or a grid permission.
78
+ * PV-driven Auto is already effectiveMode=pv and uses the existing phase-aware
79
+ * PV allocator. Grid-enabled Auto may use a partial PV share, but only after
80
+ * the final safety/phase/minimum guard has approved a runnable target.
81
+ * No provisional Auto start or rated charger power is reserved here.
82
+ */
83
+ function buildAutoPvPriorityReservation(input) {
84
+ const positiveW = (v) => Math.max(0, Number.isFinite(Number(v)) ? Number(v) : 0);
85
+ let priorityRemainingW = Math.max(0, positiveW(input.priorityCapW) - positiveW(input.otherPriorityReservedW));
86
+ let physicalRemainingW = Math.max(0, positiveW(input.physicalCapW) - positiveW(input.otherPhysicalReservedW));
87
+ let reservedW = 0;
88
+ const rows = [];
89
+ for (const point of input.points) {
90
+ const mode = String(point.effectiveMode || '').toLowerCase();
91
+ const userMode = String(point.userMode || 'auto').toLowerCase();
92
+ const minimumW = positiveW(point.technicalMinimumW);
93
+ let claimW = 0;
94
+ let reason = 'not-auto-grid-mode';
95
+ if (userMode === 'auto' && (mode === 'auto' || mode === 'normal')) {
96
+ reason = 'no-runnable-demand';
97
+ if (point.enabled && point.online) {
98
+ // Real, fresh power continues to occupy PV during a controlled stop.
99
+ // A switch request cannot make an actually flowing load disappear.
100
+ const actualW = point.actualFresh ? positiveW(point.actualW) : 0;
101
+ const targetW = !point.phaseTransition && (point.demandConfirmed || point.startProbeActive)
102
+ ? positiveW(point.finalTargetW) : 0;
103
+ const runnableTargetW = targetW > 0 && targetW + 1e-6 >= minimumW ? targetW : 0;
104
+ const demandW = Math.max(actualW, runnableTargetW);
105
+ claimW = Math.min(demandW, priorityRemainingW, physicalRemainingW);
106
+ if (claimW > 0)
107
+ reason = 'auto-pv-share-of-approved-load';
108
+ else if (point.phaseTransition)
109
+ reason = 'phase-transition-no-start-reservation';
110
+ else if (targetW > 0 && runnableTargetW === 0)
111
+ reason = 'below-technical-minimum';
112
+ else if (demandW > 0)
113
+ reason = 'no-pv-priority-remainder';
114
+ }
115
+ else
116
+ reason = 'not-available';
117
+ }
118
+ // Round down so neither the physical nor the customer cap can be exceeded.
119
+ claimW = Math.floor(Math.max(0, claimW));
120
+ priorityRemainingW = Math.max(0, priorityRemainingW - claimW);
121
+ physicalRemainingW = Math.max(0, physicalRemainingW - claimW);
122
+ reservedW += claimW;
123
+ rows.push({ safe: point.safe, reservedW: claimW, minimumW, reason });
124
+ }
125
+ return { reservedW, remainingPriorityW: priorityRemainingW, rows };
126
+ }
127
+ module.exports = { normalizePvSurplusPriority, buildPvSurplusAllocation, buildAutoPvPriorityReservation };
package/io-package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "nexowatt-ui",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "news": {
6
+ "1.0.4": {
7
+ "en": "Auto PV priority respects approved charging demand, actual phases and technical start power. Unusable PV remains available to storage. Per-point phase switch thresholds, manufacturer values and settling are preserved.",
8
+ "de": "PV-Priorisierung berücksichtigt Auto-Ladebedarf, tatsächliche Phasen und Startleistung. Nicht nutzbarer PV-Anteil bleibt beim Speicher. Individuelle Phasenumschaltwerte, Wartezeiten und Einschwingzeit werden durchgängig berücksichtigt.",
9
+ "nl": "PV-prioriteit houdt rekening met Auto-laadbehoefte, werkelijke fasen en startvermogen. Onbenutte PV blijft beschikbaar voor de batterij. Fase-instellingen en wachttijden blijven behouden."
10
+ },
6
11
  "1.0.3": {
7
12
  "de": "Stable 1.0.3 behebt die sofortige erneute AppCenter-Sperre bei einer gültigen Home-Lizenz. Fachliche 403-Antworten nicht lizenzierter Pro-Module werden nicht mehr als verlorene Anmeldung interpretiert. Alte Pro-Konfigurationsflags werden für Home vor der UI-Ausgabe maskiert und Pro-only Komponenten nicht initialisiert. Ein echter Sessionverlust oder fehlende Seitenberechtigung sperrt den AppCenter weiterhin sicher. EMS-, Netzlimit-, Lade-, Speicher-, §14a-, Tarif-, Export-Guard- und Hardware-Regelung bleiben unverändert.",
8
13
  "en": "Stable 1.0.3 fixes the AppCenter being immediately locked again with a valid Home license. Business-level 403 responses from unlicensed Pro modules are no longer interpreted as a lost login session. Stale Pro configuration flags are masked before Home UI delivery and Pro-only components are not initialized. A genuine session loss or missing page capability still locks the AppCenter fail-closed. EMS, grid limit, charging, storage, §14a, tariff, export guard and hardware control remain unchanged.",
@@ -32,11 +37,6 @@
32
37
  "de": "RC91 gleicht die App-Kataloge von Browser, Adapterstart, Installer, Save und Backup vollständig ab. Energy Ledger und Mesh/Microgrid behalten ihre Installiert-/Aktiv-Zustände jetzt auch beim Speichern anderer AppCenter-Reiter; das verborgene DC-Stationsdisplay bleibt erhalten, ohne doppelte App-Karte. Zusätzlich bleibt die textstabil erzeugte main.js strikt JavaScript-kompatibel. Die produktive NVP-, Lade-, Speicher-, Tarif-, §14a- und Safety-Regelung wurde nicht verändert.",
33
38
  "en": "RC91 fully aligns the app catalogues used by the browser, adapter startup, installer, save and backup paths. Energy Ledger and Mesh/Microgrid now preserve their installed/enabled state when unrelated App Center tabs are saved; the hidden DC station display is retained without creating a duplicate app card. The text-stable generated main.js is also kept strictly JavaScript-compatible. Productive grid, charging, storage, tariff, Section 14a and safety control logic is unchanged.",
34
39
  "nl": "RC91 brengt de appcatalogi van browser, adapterstart, installer, opslaan en back-up volledig met elkaar in overeenstemming. Energy Ledger en Mesh/Microgrid behouden nu hun geïnstalleerde/actieve status wanneer andere AppCenter-tabbladen worden opgeslagen; het verborgen DC-stationsdisplay blijft behouden zonder dubbele appkaart. Ook blijft de tekststabiel gegenereerde main.js strikt JavaScript-compatibel. De productieve net-, laad-, opslag-, tarief-, §14a- en veiligheidsregeling is niet gewijzigd."
35
- },
36
- "0.8.210": {
37
- "de": "RC83 erlaubt Speicher-Netzladen ausschließlich bei aktivem, frischem und günstigem dynamischen Tarif. Bei aktivem variablem Netzentgelt ist zusätzlich das konfigurierte NT-/Quartalsfenster Pflicht. Neutral, teuer, unbekannt, Tarif aus oder veraltete Preis-/Freigabedaten führen sofort zur Eigenverbrauchsoptimierung; auch gehaltene alte Tarif-/Reserve-Sollwerte werden unmittelbar vor dem Hardware-Write auf 0 W gestoppt. Das fehlende Objekt gridConstraints.exportLimit.sinkFieldProtocolJson wird vor dem ersten Write angelegt und beendet die wiederkehrende ioBroker-Warnflut.",
38
- "en": "RC83 permits storage charging from the grid only with an active, fresh and cheap dynamic tariff. If variable grid fees are enabled, the configured off-peak/quarter window is an additional requirement. Neutral, expensive, unknown, disabled or stale tariff data immediately falls back to self-consumption; held legacy tariff/reserve commands are stopped at 0 W before the hardware write. The missing gridConstraints.exportLimit.sinkFieldProtocolJson object is now created before its first write, eliminating the recurring ioBroker warning flood.",
39
- "nl": "RC83 staat netladen van de batterij alleen toe bij een actief, actueel en goedkoop dynamisch tarief. Bij geactiveerde variabele netkosten is bovendien het geconfigureerde dal-/kwartaalvenster verplicht. Neutraal, duur, onbekend, uitgeschakeld of verouderd tarief schakelt direct terug naar eigenverbruik; vastgehouden oude tarief-/reserveopdrachten worden vóór de hardware-write op 0 W gestopt. Het ontbrekende object gridConstraints.exportLimit.sinkFieldProtocolJson wordt vóór de eerste write aangemaakt, waardoor de terugkerende ioBroker-waarschuwingen stoppen."
40
40
  }
41
41
  },
42
42
  "title": "NexoWatt EOS",
@@ -4,7 +4,7 @@
4
4
  * AUTO-GENERATED FILE - NICHT MANUELL BEARBEITEN.
5
5
  *
6
6
  * Quelle: src-ts/ems/charging-management/charging-phase-selection.ts
7
- * Quell-Hash: sha256:e60219bf6c49100d51534c81f501864f701962a361084758aabaa973e340a009
7
+ * Quell-Hash: sha256:d47538795becefc71603a6d416511cb7b850992e553b7df7d656af2e898ee353
8
8
  * Erzeugung: npm run sync:ts-ems-mirrors
9
9
  *
10
10
  * Zweck:
@@ -122,7 +122,7 @@ function effectiveStableBudgetW(input, effectiveMode = '') {
122
122
  ? [input.stablePvPureAvailableW, input.pvPureAvailableW, input.stablePvAvailableW, input.pvAvailableW]
123
123
  : (mode === 'minpv'
124
124
  ? [input.stablePvPhysicalAvailableW, input.pvPhysicalAvailableW, input.stablePvAvailableW, input.pvAvailableW]
125
- : [input.remainingW, input.budgetW, input.stablePvPhysicalAvailableW, input.pvPhysicalAvailableW, input.stablePvAvailableW, input.pvAvailableW]);
125
+ : [input.budgetW, input.remainingW, input.stablePvPhysicalAvailableW, input.pvPhysicalAvailableW, input.stablePvAvailableW, input.pvAvailableW]);
126
126
  for (const candidate of candidates) {
127
127
  const n = finiteOrNull(candidate);
128
128
  if (n !== null)
@@ -183,10 +183,14 @@ function buildChargingPhaseSelectionPlan(input) {
183
183
  const actualPowerW = nonNegative(wb.actualPowerW, 0);
184
184
  const voltageV = nonNegative(wb.voltageV, 230) || 230;
185
185
  const minA = finiteOrNull(wb.minA);
186
- const effectiveMinA = minA !== null && minA > 0 ? minA : 6;
186
+ const rawMinA = minA !== null && minA > 0 ? minA : 6;
187
+ const configuredStepA = finiteOrNull(wb.stepA);
188
+ const stepA = configuredStepA !== null && configuredStepA > 0 ? configuredStepA : 0.1;
189
+ // A configured 6.1 A minimum with whole-amp commands requires 7 A, not 6.1 A.
190
+ const effectiveMinA = Math.ceil((rawMinA - 1e-9) / stepA) * stepA;
187
191
  const minPower1pW = Math.round(voltageV * effectiveMinA);
188
192
  const minPower3pW = Math.round(3 * voltageV * effectiveMinA);
189
- const upW = nonNegative(wb.switchUpThresholdW, globalUpW) || globalUpW;
193
+ const upW = Math.max(minPower3pW, nonNegative(wb.switchUpThresholdW, globalUpW) || globalUpW);
190
194
  const downCandidate = nonNegative(wb.switchDownThresholdW, globalDownW) || globalDownW;
191
195
  const downW = Math.min(downCandidate, Math.max(0, upW - 200));
192
196
  const upMs = nonNegative(wb.switchUpStableMs, globalUpMs) || globalUpMs;
@@ -293,6 +297,14 @@ function buildChargingPhaseSelectionPlan(input) {
293
297
  else
294
298
  reason = `phase-switch-command-ready:${direction}`;
295
299
  }
300
+ // A successful phase command starts an explicit settling interval. Even if
301
+ // feedback already reports the target phases, charging must remain stopped
302
+ // until this interval ends. Cooldown alone only blocks another switch.
303
+ if (chargerType === 'ac' && settleUntilMs > now) {
304
+ switchCommandAllowed = false;
305
+ safetyStopRequired = true;
306
+ reason = 'phase-switch-settling';
307
+ }
296
308
  const allocationPhaseCount = switchRequired ? current : target;
297
309
  return {
298
310
  safe,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.nexowatt-ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "NexoWatt EOS – local energy, charging and building control platform.",
5
5
  "author": "NexoWatt",
6
6
  "license": "UNLICENSED",
@@ -27,7 +27,7 @@
27
27
  "ioBroker:check": "node scripts/verify-publish.js",
28
28
  "typecheck": "tsc -p tsconfig.json --noEmit",
29
29
  "test:types": "npm run check:tsconfig-modern && npm run check:ts-source-syntax && npm run check:ts-source-integrity && npm run check:ts-canonical && npm run verify:ts-scaffold && npm run test:ts-script-mirrors && npm run test:ts-frontend-mirrors && npm run test:ts-backend-mirrors && npm run test:ts-adapter-mirrors && npm run test:frontend-mirror-runtime && npm run test:api-state-feature && npm run test:api-state-feature-runtime && npm run test:backend-api-state && npm run test:energy-flow-utils && npm run test:energy-flow-resolver && npm run test:energy-flow-mirrors && npm run test:energy-flow-regression && npm run test:energy-flow-regression-runtime && npm run test:ems-budget-heating-rod && npm run test:ems-budget-heating-rod-runtime && npm run test:ems-mirrors && npm run test:core-limits-reservations && npm run test:adapter-state-api && npm run test:adapter-state-api-runtime && npm run test:adapter-mirrors && npm run test:backend-api-state && npm run test:backend-api-state-runtime && npm run test:feature-visibility-resolver && npm run test:feature-visibility-resolver-runtime && npm run test:feature-visibility-shadow && npm run test:feature-visibility-shadow-runtime && npm run test:frontend-display && npm run test:feature-visibility-resolver && npm run test:feature-visibility-resolver-runtime && npm run test:feature-visibility-shadow && npm run test:feature-visibility-shadow-runtime && npm run test:frontend-display-runtime && npm run test:customer-feature-visibility && npm run test:customer-feature-visibility-runtime && npm run test:main-helpers && npm run typecheck && npm run typecheck:runtime-mirrors && npm run test:runtime-mirrors && npm run test:core-limits-runtime-typing && npm run test:heating-rod-runtime-typing && npm run test:shadow-bridges && npm run test:contracts && npm run test:feature-visibility-effective-runtime && npm run test:ai-advisor-runtime-typing && npm run test:history-runtime-typing && npm run test:smarthome-runtime-typing && npm run test:smarthome-config-runtime-typing && npm run test:ems-apps-runtime-typing && npm run test:app-runtime-typing && npm run test:main-runtime-typing && npm run test:adapter-helpers-mirrors && npm run test:main-runtime-helpers && npm run test:api-state-set-shadow && npm run test:live-dashboard-format-productive && npm run test:heating-rod-legacy-removal-candidate",
30
- "test:all": "npm run publish:check && npm run test:types && npm run check:ts-source-syntax && npm run test:ems-shadow-runtime && npm run test:ai-advisor-runtime-typing && npm run test:history-runtime-typing && npm run test:smarthome-runtime-typing && npm run test:smarthome-config-runtime-typing && npm run test:ems-apps-runtime-typing && npm run test:app-runtime-typing && npm run test:main-runtime-typing && npm run test:rc57-ocpp-stability && npm run test:rc58-ocpp-compact-mapping && npm run test:rc59-ocpp21-native-storage-safety && npm run test:rc60-universal-auto-orchestrator && npm run test:rc60-universal-auto-wallbox && npm run test:rc61-heating-night-lock && npm run test:rc61-evcs-hardening && npm run test:rc63-availability-storage-grid-gate && npm run test:rc64-storage-grid-charge-policy && npm run test:rc65-nt-price-target-override && npm run test:dc-station-display && npm run test:rc66-station-display-stable && npm run test:rc66-station-display-browser && npm run test:rc67-license-bootstrap-access && npm run test:rc68-para14a-communication-fallback && npm run test:dashboard-lp-status-typing && npm run test:rc69-dashboard-lp-feedback && npm run test:rc70-dashboard-lp-status-polish && npm run test:rc72-weather-pv-forecast-auto && npm run test:rc73-ems-admin-overview && npm run test:rc74-pv-forecast-customer-ui && npm run test:rc75-pv-forecast-admin-location && npm run test:rc76-pv-forecast-runtime-hardening && npm run test:rc77-pv-forecast-state-cache-bridge && npm run test:rc78-import-only-grid-budget && npm run test:rc79-import-soft-hard-zero-export && npm run test:rc80-soft-limit-fixed-ten-percent && npm run test:rc81-nvp-assignment-single-source && npm run test:rc82-permanent-grid-protection && npm run test:rc83-storage-cheap-only-log-object && npm run test:rc85 && npm run test:rc86 && npm run test:rc87 && npm run test:rc88 && npm run test:rc89 && npm run test:rc90 && npm run test:rc91 && npm run test:rc92 && npm run test:rc93 && npm run test:stable-1.0.2-health && npm run test:stable-1.0.3-home-appcenter && npm run test:stable-release",
30
+ "test:all": "npm run publish:check && npm run test:types && npm run check:ts-source-syntax && npm run test:ems-shadow-runtime && npm run test:ai-advisor-runtime-typing && npm run test:history-runtime-typing && npm run test:smarthome-runtime-typing && npm run test:smarthome-config-runtime-typing && npm run test:ems-apps-runtime-typing && npm run test:app-runtime-typing && npm run test:main-runtime-typing && npm run test:rc57-ocpp-stability && npm run test:rc58-ocpp-compact-mapping && npm run test:rc59-ocpp21-native-storage-safety && npm run test:rc60-universal-auto-orchestrator && npm run test:rc60-universal-auto-wallbox && npm run test:rc61-heating-night-lock && npm run test:rc61-evcs-hardening && npm run test:rc63-availability-storage-grid-gate && npm run test:rc64-storage-grid-charge-policy && npm run test:rc65-nt-price-target-override && npm run test:dc-station-display && npm run test:rc66-station-display-stable && npm run test:rc66-station-display-browser && npm run test:rc67-license-bootstrap-access && npm run test:rc68-para14a-communication-fallback && npm run test:dashboard-lp-status-typing && npm run test:rc69-dashboard-lp-feedback && npm run test:rc70-dashboard-lp-status-polish && npm run test:rc72-weather-pv-forecast-auto && npm run test:rc73-ems-admin-overview && npm run test:rc74-pv-forecast-customer-ui && npm run test:rc75-pv-forecast-admin-location && npm run test:rc76-pv-forecast-runtime-hardening && npm run test:rc77-pv-forecast-state-cache-bridge && npm run test:rc78-import-only-grid-budget && npm run test:rc79-import-soft-hard-zero-export && npm run test:rc80-soft-limit-fixed-ten-percent && npm run test:rc81-nvp-assignment-single-source && npm run test:rc82-permanent-grid-protection && npm run test:rc83-storage-cheap-only-log-object && npm run test:rc85 && npm run test:rc86 && npm run test:rc87 && npm run test:rc88 && npm run test:rc89 && npm run test:rc90 && npm run test:rc91 && npm run test:rc92 && npm run test:rc93 && npm run test:stable-1.0.2-health && npm run test:stable-1.0.3-home-appcenter && npm run test:stable-1.0.4-auto-pv && npm run test:stable-release",
31
31
  "release:check": "npm run test:all && npm run build:ts && npm run publish:check && npm run test:package-runtime-start-smoke && npm run test:package",
32
32
  "ci:check": "npm run test:all && npm run build:ts && npm pack --dry-run",
33
33
  "typecheck:contracts": "tsc -p tsconfig.contracts.json --noEmit",
@@ -481,7 +481,8 @@
481
481
  "test:rc93": "node scripts/verify-rc93-certified-export-authority.cjs",
482
482
  "test:stable-release": "node scripts/verify-stable-release.cjs",
483
483
  "test:stable-1.0.2-health": "node scripts/verify-stable-1.0.2-health-heartbeat.cjs",
484
- "test:stable-1.0.3-home-appcenter": "node scripts/verify-stable-1.0.3-home-appcenter-access.cjs"
484
+ "test:stable-1.0.3-home-appcenter": "node scripts/verify-stable-1.0.3-home-appcenter-access.cjs",
485
+ "test:stable-1.0.4-auto-pv": "node scripts/verify-stable-1.0.4-auto-pv-phases.cjs"
485
486
  },
486
487
  "dependencies": {
487
488
  "@iobroker/adapter-core": "^3.4.1",
@@ -824,7 +825,10 @@
824
825
  "www/tariff-report.js",
825
826
  "www/year-report.css",
826
827
  "www/year-report.html",
827
- "www/year-report.js"
828
+ "www/year-report.js",
829
+ "docs/STABLE_1_0_4_RELEASE_DE.md",
830
+ "scripts/verify-stable-1.0.4-auto-pv-phases.cjs",
831
+ "scripts/verify-rc60-universal-auto-wallbox.js"
828
832
  ],
829
833
  "devDependencies": {
830
834
  "@iobroker/adapter-dev": "^1.5.0",