Skip to content

Geparkt: Optimizer-Automatik: Gate, Profile, Anzeige auf evcc-Automatik - #88

Open
SolarPower2024 wants to merge 4 commits into
load-peak-featuresfrom
rebuild/optimizer-auto
Open

SolarPower2024 wants to merge 4 commits into
load-peak-featuresfrom
rebuild/optimizer-auto

Conversation

@SolarPower2024

Copy link
Copy Markdown
Owner

Worum es geht

PR 3 (Optimizer-Automatik: Sicherheits-Gate, Profile, Anzeige) neu auf dem echten Automatik-Modus von evcc (evcc PR 32881, mit PR 87 übernommen). Basis: evcc-update/2026-10-12. Nach dem Merge von PR 87 ersetzt dieser PR den alten PR 3.

Was es tut

Gilt nur, wenn die Automatik in evcc eingeschaltet ist (Stufe „nur Batterie“ oder „Batterie und Ladepunkte“). Ohne Automatik folgt die Batterie evcc (Vertragstest).

  • „Laden“ des Optimizers läuft durch dieselbe Prüfung wie unser Netzladen: laufende Spitze, Stromkreis, Ladeleistung. Wird es abgelehnt, hält die Batterie.
  • „Halten“ wird zu „normal“, solange eine Spitze abgedeckt werden muss; Peak Shaving deckt dann nur die Spitze.
  • Unter der Reserve bleibt die Batterie wie bisher auf „normal“.
  • Ohne aktuelles Optimizer-Ergebnis gilt unser Netzladen (nach Ladestand und einmalig) wie ohne Optimizer.
  • Profile überspringen die Entladesteuerung statt zu scheitern.
  • Oberfläche: Kennzeichen „Optimizer“ in der Lastmanagement-Übersicht, Hinweise auf der Batterieseite und im Profil-Dialog.

Gegenüber dem alten PR 3 geändert

  • Spitzenprüfung nutzt die heutige Peak-Grenze des Fensters (window.Allowed)
  • optimizerAutomatic ist bei evcc jetzt eine Stufe (off/battery/full), kein Ja/Nein; die Anzeige wertet „off“ jetzt als aus
  • Hook lmGateBatteryMode in updateBatteryMode steht in Tabelle und forkHooks

Tests

  • wsltest: core, core/lm, core/peak, server ok (inklusive Gate-Tests und TestForkHooksInPlace)
  • Optimizer-Szenarien gegen .107: 64/64 PASS
  • Frontend: vue-tsc, Lint, i18n, vitest 248/248 grün

Für das Add-on

CHANGELOG: „Optimizer-Automatik einschaltbar: Peak Shaving, Stromkreis-Grenzen und Reserve bleiben geschützt; ohne aktuelles Ergebnis gilt das eigene Netzladen.“

🤖 Generated with Claude Code

SolarPower2024 and others added 4 commits October 12, 2026 18:47
In automatic mode the optimizer sets the battery mode. The fork keeps its
safety limits at execution, as the one hook after upstream decided the mode:

- a charge request passes the same gate as the fork's own grid charging
  (running peak, circuit headroom, charge power setpoint) and becomes hold
  when refused; so the charge power entity no longer gets 0 W while the
  optimizer charges
- hold gives way to normal while a peak has to be covered, and peak
  shaving then only discharges for the peak instead of the free value
- with a missing or stale optimizer result the fork's grid charging
  applies as without the optimizer

The soc-based grid charging does not switch the battery itself while the
optimizer is in control, it is an optimizer input instead. The gate is
extracted from the grid charge request unchanged. Without automatic mode
nothing changes (contract test).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 75f9f3b)
(cherry picked from commit a633368)
A profile's discharge control is refused while the optimizer decides it;
it is skipped with a debug note instead of failing the whole profile. The
stored upstream value applies again once automatic mode is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 7bc1bdd)
(cherry picked from commit 9739690)
- the load management overview marks loads the optimizer controls, and
  shows the battery as grid charging while an optimizer charge request
  passed the gate
- battery page: with automatic mode the soc grid charging card says the
  optimizer plans the charging (start soc as floor, stop soc at the
  cheapest time)
- profile editor: discharge control is skipped in automatic mode
- advanced settings: "Netzlade-Ziel erreichen in" (grid charge window,
  1-24 h, default 3)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 67c2481)
(cherry picked from commit 3c0f535)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 61745e0)
@SolarPower2024 SolarPower2024 changed the title Optimizer-Automatik: Gate, Profile, Anzeige auf evcc-Automatik Geparkt: Optimizer-Automatik: Gate, Profile, Anzeige auf evcc-Automatik Oct 12, 2026
@SolarPower2024
SolarPower2024 changed the base branch from evcc-update/2026-10-12 to load-peak-features October 12, 2026 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant