Skip to content

Optimizer Automatik-Modus: Sicherheits-Gate, Profile, Anzeige (wartet auf evcc PR 32881) - #3

Open
SolarPower2024 wants to merge 4 commits into
preview/optimizer-autofrom
feature/optimizer
Open

SolarPower2024 wants to merge 4 commits into
preview/optimizer-autofrom
feature/optimizer

Conversation

@SolarPower2024

@SolarPower2024 SolarPower2024 commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Wartet auf evcc PR 32881 (Automatik-Modus des Optimizers, upstream noch offen). Basis ist preview/optimizer-auto = load-peak-features + evcc PR 32881 als ein Commit.

Die Eingaben an den Optimizer und das einmalige Netzladen sind schon in load-peak-features (v0.316.0-lm2). Hier steht nur noch der Automatik-Teil. Plan und Entscheidungen: Plan-Seite „Optimizer-Anbindung“.

Was noch offen ist

Sicherheits-Gate im Automatik-Modus (ein Anschluss nach der evcc-Entscheidung):

  • Optimizer „laden“ läuft durch dieselbe Prüfung wie unser Netzladen (Spitze, Stromkreis, Ladeleistung) und wird zu „halten“, wenn es nicht erlaubt ist. Ohne das würde 0 W an die Ladeleistung geschrieben.
  • „Halten“ wird zu „normal“, solange eine Spitze abgedeckt werden muss. Peak Shaving deckt dann nur die Spitze statt „frei entladen“.
  • Unter der Reserve bleibt die Batterie wie bisher auf „normal“.
  • Ohne aktuelles Optimizer-Ergebnis gilt unser Netzladen (nach Ladestand und einmalig) wie ohne Optimizer. Sonst schaltet es die Batterie nicht selbst, es ist eine Optimizer-Eingabe.

Profile: Die Entladesteuerung wird im Automatik-Modus übersprungen, statt das ganze Profil scheitern zu lassen.

Oberfläche: „Optimizer“-Kennzeichen in der Lastmanagement-Übersicht, Hinweise auf der Batterieseite und im Profil-Dialog.

Unverändert: Ohne Automatik-Modus folgt die Batterie evcc (Vertragstest).

Getestet

Go und Frontend grün, Tests für das Gate (laden erlaubt/abgelehnt, halten bei Spitze, veraltetes Ergebnis, ohne Automatik unverändert). Nicht lokal testbar: Automatik-Modus mit echtem Sponsor-Token, das folgt bei der Abnahme auf deiner custom-Instanz.

Wenn evcc PR 32881 in einem Release ist

Release in load-peak-features übernehmen, diesen Zweig darauf umsetzen, mergen, bauen.

🤖 Generated with Claude Code

SolarPower2024 and others added 4 commits September 26, 2026 20:58
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)
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)
- 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)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SolarPower2024 SolarPower2024 changed the title Optimizer: unsere Funktionen als Eingaben, Sicherheits-Gate im Automatik-Modus, einmaliges Netzladen (Vorbereitung) Optimizer Automatik-Modus: Sicherheits-Gate, Profile, Anzeige (wartet auf evcc PR 32881) Sep 26, 2026
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