Datenpunktwert bei Nutzung und des Optimizer
Describe the bug
Ich habe bei der Nutzung des Optimizer festgestellt, dass wenn durch den Optimizer nur die Batterie gesteuert werden soll und das Auto über Preislimit gesteuert wird, der Datenpunkt „evcc/site/batteryMode“ ausschließlich mit „hold“ geschrieben wird. Stelle ich das Laden des Autos ab, wird der Datenpunkt, sofern der Optimizer die Batterie laden will, sofort mit „charge“ gesteuert. Wenn nicht gesteuert wird der Datenpunkt ganz normal mit „normal“ gesteuert.
Der Optimizer steuert, es wird „evcc/site/batteryMode“
- wenn die Batterie geladen werden soll mit „charge“ gesteuert
- wenn nur das Auto geladen werden soll mit „hold“ gesteuert
- wenn Batterie und Auto geladen werden soll mit „hold“ gesteuert (sobald das Auto fertig geladen ist mit "charge" gesteuert)
Stelle ich den Optimizer ab und steuere die Batterie über die im Batteriemenü verfügbaren Ladeeinstellungen bzw. Preislimit funktioniert die Steuerung wie erwartet. Auch wenn Batterie und Auto über Preislimit gesteuert werden wird „evcc/site/batteryMode“ mit „Charge“ gesteuert.
Sollte hier vielleicht eine Änderung vorgenommen werden, dass wenn der Optimizer vorschlägt die Batterie zuladen „evcc/site/batteryMode“ auf charge geändert wird?
Datenpunkt für normal / hold / charge (hier iobroker) evcc/0/status/batteryMode (normal, hold, charge)
Configuration details
MQTT Einstellungen Batterie (Enphase 2x 3T Batterie)
power: # power (W)
source: mqtt
topic: evcc_meters/battery1
soc:
source: mqtt
topic: evcc_meters/soc1
capacity: 7.0
maxchargepower: 2450 # Maximale Ladeleistung (W), Für erzwungenes Laden des Speichers. (optional)
maxdischargepower: 2450 # Maximale Entladeleistung (W), Maximale Entladeleistung des Speichers. (optional)
batterymode:
source: switch
switch:
- case: 1 # normal
set:
source: mqtt
topic: evcc_meters/battery_normal
- case: 2 # hold
set:
source: mqtt
topic: evcc_meters/battery_hold
- case: 3 # charge
set:
source: mqtt
topic: evcc_meters/battery_charge
Log details
.
What type of operating system or environment does evcc run on?
other
External automation
- [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.
Nightly build
- [x] I have verified that the issue is reproducible with the latest nightly build
Version
0.318.2
Das Verhalten passt zu #35337: Ist der Automatik-Modus des Optimizers aktiv und lädt ein Fahrzeug über das Preislimit (Modus smart), wird der Batteriemodus in core/site_battery.go auf hold gesetzt, statt dem Optimizer-Vorschlag charge zu folgen. Ein Fix ist in #35306 offen, aber noch nicht gemerged (also auch nicht im Nightly).
Um sicherzugehen, dass es dieselbe Ursache ist, fehlt hier ein Log (im Issue steht nur .). Bitte ein Debug-Log (log: debug) über einen Zeitraum anhängen, in dem das Auto über Preislimit lädt und der Optimizer charge vorschlägt. Besonders relevant sind Zeilen des Optimizers (z. B. unmodelled load of ...) sowie /api/state mit batteryMode und battery.suggestion. Anleitung: https://docs.evcc.io/docs/faq#wie-kann-ich-ein-logfile-zur-fehleranalyse-erstellen
Related: #35337 (gleiches Symptom, Fix in #35306 offen)
🤖 Generated with Claude Code
Ich habe jetzt die Zeit verändert und simuliere einen günstigen Strompreis, hier das Log dazu:
Log details
[site ] DEBUG 2026/11/04 20:08:32 ---- [lp-2 ] DEBUG 2026/11/04 20:08:32 charge power: 324W [lp-1 ] DEBUG 2026/11/04 20:08:32 charge power: 0W [lp-1 ] DEBUG 2026/11/04 20:08:32 charge currents: [0 0 0]A [main ] DEBUG 2026/11/04 20:08:32 power: 675W [main ] DEBUG 2026/11/04 20:08:32 current: 0A [site ] DEBUG 2026/11/04 20:08:32 grid power: 675W [site ] DEBUG 2026/11/04 20:08:32 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:08:32 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:08:32 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:08:32 site power: 775W [lp-2 ] DEBUG 2026/11/04 20:08:32 charger status: C [lp-2 ] INFO 2026/11/04 20:08:32 car connected [lp-2 ] DEBUG 2026/11/04 20:08:32 pv timer elapse [lp-2 ] DEBUG 2026/11/04 20:08:32 pv timer inactive [lp-2 ] INFO 2026/11/04 20:08:32 start charging -> [site ] DEBUG 2026/11/04 20:08:32 optimizer: optimizing 116 slots until 2026-11-06 01:00:00 +0100 CET: grid=592, feedIn=592, solar=116, first slot: 6m27s [lp-2 ] DEBUG 2026/11/04 20:08:32 vehicle soc: 25% [lp-2 ] DEBUG 2026/11/04 20:08:32 !! plan: plan time zero [lp-2 ] DEBUG 2026/11/04 20:08:32 pv charge current: 0A = 0.47A + -1.12A (775W @ 3p) [lp-2 ] DEBUG 2026/11/04 20:08:32 pv disable timer reset [lp-2 ] DEBUG 2026/11/04 20:08:32 pv timer inactive [site ] DEBUG 2026/11/04 20:08:32 optimizer: home slots updated with measured 418Wh: [210 218 193 194] -> [418 368 306 250] [site ] DEBUG 2026/11/04 20:08:32 set battery Batterie mode: hold [site ] DEBUG 2026/11/04 20:08:32 set battery mode: hold [site ] DEBUG 2026/11/04 20:08:32 heating demand: added daily forecast for Wärmepumpe (116 slots) [site ] DEBUG 2026/11/04 20:08:52 ---- [lp-2 ] DEBUG 2026/11/04 20:08:52 charge power: 3714W [lp-1 ] DEBUG 2026/11/04 20:08:52 charge power: 3307W [lp-1 ] DEBUG 2026/11/04 20:08:52 charge currents: [14.8 0 0]A [main ] DEBUG 2026/11/04 20:08:52 power: 4069W [main ] DEBUG 2026/11/04 20:08:52 current: 0A [site ] DEBUG 2026/11/04 20:08:52 grid power: 4069W [site ] DEBUG 2026/11/04 20:08:52 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:08:52 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:08:52 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:08:52 site power: 4169W [lp-1 ] DEBUG 2026/11/04 20:08:52 vehicle odometer: 39113km [lp-1 ] DEBUG 2026/11/04 20:08:52 charge voltages: [224 230 231]V [lp-1 ] DEBUG 2026/11/04 20:08:52 charge total import: 8702.490kWh [lp-1 ] DEBUG 2026/11/04 20:08:52 charger status: C [lp-1 ] DEBUG 2026/11/04 20:08:52 charge start energy: 8702.490kWh [lp-1 ] INFO 2026/11/04 20:08:52 start charging -> [lp-1 ] DEBUG 2026/11/04 20:08:52 wake-up timer: stop [lp-1 ] DEBUG 2026/11/04 20:08:52 vehicle soc: 41% [lp-1 ] DEBUG 2026/11/04 20:08:52 vehicle soc limit: 100% [lp-1 ] DEBUG 2026/11/04 20:08:52 vehicle range: 170km [lp-1 ] DEBUG 2026/11/04 20:08:52 soc estimated: 41.00% (vehicle: 41.00%) [lp-1 ] DEBUG 2026/11/04 20:08:52 vehicle soc (estimator): 41% [lp-1 ] DEBUG 2026/11/04 20:08:52 !! plan: plan time zero [lp-1 ] DEBUG 2026/11/04 20:08:52 smart consumption active: 0.14 [site ] DEBUG 2026/11/04 20:09:12 ---- [lp-2 ] DEBUG 2026/11/04 20:09:12 charge power: 407W [lp-1 ] DEBUG 2026/11/04 20:09:12 charge power: 3307W [lp-1 ] DEBUG 2026/11/04 20:09:12 charge currents: [14.8 0 0]A [main ] DEBUG 2026/11/04 20:09:12 power: 4067W [main ] DEBUG 2026/11/04 20:09:12 current: 0A [site ] DEBUG 2026/11/04 20:09:12 grid power: 4067W [site ] DEBUG 2026/11/04 20:09:12 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:09:12 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:09:12 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:09:12 site power: 4167W [lp-2 ] DEBUG 2026/11/04 20:09:12 session energy: 0.005kWh [lp-2 ] DEBUG 2026/11/04 20:09:12 charger status: C [lp-2 ] DEBUG 2026/11/04 20:09:12 vehicle soc: 25% [lp-2 ] DEBUG 2026/11/04 20:09:12 !! plan: plan time zero [lp-2 ] DEBUG 2026/11/04 20:09:12 pv charge current: 0A = 0.59A + -6.04A (4167W @ 3p) [site ] DEBUG 2026/11/04 20:09:32 ---- [lp-2 ] DEBUG 2026/11/04 20:09:32 charge power: 420W [lp-1 ] DEBUG 2026/11/04 20:09:32 charge power: 3309W [lp-1 ] DEBUG 2026/11/04 20:09:32 charge currents: [14.8 0 0]A [main ] DEBUG 2026/11/04 20:09:32 power: 4069W [main ] DEBUG 2026/11/04 20:09:32 current: 0A [site ] DEBUG 2026/11/04 20:09:32 grid power: 4069W [site ] DEBUG 2026/11/04 20:09:32 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:09:32 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:09:32 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:09:32 site power: 4169W [lp-1 ] DEBUG 2026/11/04 20:09:32 charge voltages: [224 230 231]V [lp-1 ] DEBUG 2026/11/04 20:09:32 detected active phases: 1p [lp-1 ] DEBUG 2026/11/04 20:09:32 session energy: 0.038kWh [lp-1 ] DEBUG 2026/11/04 20:09:32 charge total import: 8702.528kWh [lp-1 ] DEBUG 2026/11/04 20:09:32 charger status: C [lp-1 ] DEBUG 2026/11/04 20:09:32 vehicle soc: 41% [lp-1 ] DEBUG 2026/11/04 20:09:32 vehicle soc limit: 100% [lp-1 ] DEBUG 2026/11/04 20:09:32 vehicle range: 170km [lp-1 ] DEBUG 2026/11/04 20:09:32 soc estimated: 41.04% (vehicle: 41.00%) [lp-1 ] DEBUG 2026/11/04 20:09:32 vehicle soc (estimator): 41% [lp-1 ] DEBUG 2026/11/04 20:09:32 !! plan: plan time zero [lp-1 ] DEBUG 2026/11/04 20:09:32 smart consumption active: 0.14 [site ] DEBUG 2026/11/04 20:09:52 ---- [lp-2 ] DEBUG 2026/11/04 20:09:52 charge power: 415W [lp-1 ] DEBUG 2026/11/04 20:09:52 charge power: 3313W [lp-1 ] DEBUG 2026/11/04 20:09:52 charge currents: [14.8 0 0]A [main ] DEBUG 2026/11/04 20:09:52 power: 4070W [main ] DEBUG 2026/11/04 20:09:52 current: 0A [site ] DEBUG 2026/11/04 20:09:52 grid power: 4070W [site ] DEBUG 2026/11/04 20:09:52 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:09:52 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:09:52 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:09:52 site power: 4170W [lp-2 ] DEBUG 2026/11/04 20:09:52 session energy: 0.009kWh [lp-2 ] DEBUG 2026/11/04 20:09:52 charger status: C [lp-2 ] DEBUG 2026/11/04 20:09:52 vehicle soc: 25% [lp-2 ] DEBUG 2026/11/04 20:09:52 !! plan: plan time zero [lp-2 ] DEBUG 2026/11/04 20:09:52 pv charge current: 0A = 0.601A + -6.04A (4170W @ 3p) [site ] DEBUG 2026/11/04 20:10:12 ---- [lp-2 ] DEBUG 2026/11/04 20:10:12 charge power: 428W [lp-1 ] DEBUG 2026/11/04 20:10:12 charge power: 3305W [lp-1 ] DEBUG 2026/11/04 20:10:12 charge currents: [14.8 0 0]A [main ] DEBUG 2026/11/04 20:10:12 power: 4080W [main ] DEBUG 2026/11/04 20:10:12 current: 0A [site ] DEBUG 2026/11/04 20:10:12 grid power: 4080W [site ] DEBUG 2026/11/04 20:10:12 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:10:12 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:10:12 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:10:12 site power: 4180W [lp-1 ] DEBUG 2026/11/04 20:10:12 charge voltages: [223 230 231]V [lp-1 ] DEBUG 2026/11/04 20:10:12 detected active phases: 1p [lp-1 ] DEBUG 2026/11/04 20:10:12 session energy: 0.074kWh [lp-1 ] DEBUG 2026/11/04 20:10:12 charge total import: 8702.564kWh [lp-1 ] DEBUG 2026/11/04 20:10:12 charger status: C [lp-1 ] DEBUG 2026/11/04 20:10:12 vehicle soc: 41% [lp-1 ] DEBUG 2026/11/04 20:10:12 vehicle soc limit: 100% [lp-1 ] DEBUG 2026/11/04 20:10:12 vehicle range: 170km [lp-1 ] DEBUG 2026/11/04 20:10:12 soc estimated: 41.08% (vehicle: 41.00%) [lp-1 ] DEBUG 2026/11/04 20:10:12 vehicle soc (estimator): 41% [lp-1 ] DEBUG 2026/11/04 20:10:12 !! plan: plan time zero [lp-1 ] DEBUG 2026/11/04 20:10:12 smart consumption active: 0.14 [site ] DEBUG 2026/11/04 20:10:32 ---- [lp-2 ] DEBUG 2026/11/04 20:10:32 charge power: 0W [lp-1 ] DEBUG 2026/11/04 20:10:32 charge power: 3274W [lp-1 ] DEBUG 2026/11/04 20:10:32 charge currents: [14.8 0 0]A [main ] DEBUG 2026/11/04 20:10:32 power: 4041W [main ] DEBUG 2026/11/04 20:10:32 current: 0A [site ] DEBUG 2026/11/04 20:10:32 grid power: 4041W [site ] DEBUG 2026/11/04 20:10:32 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:10:32 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:10:32 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:10:32 site power: 4141W [lp-2 ] DEBUG 2026/11/04 20:10:32 charger status: C [lp-2 ] DEBUG 2026/11/04 20:10:32 vehicle soc: 25% [lp-2 ] DEBUG 2026/11/04 20:10:32 !! plan: plan time zero [lp-2 ] DEBUG 2026/11/04 20:10:32 pv charge current: 0A = 0A + -6A (4141W @ 3p) [site ] DEBUG 2026/11/04 20:10:52 ---- [lp-2 ] DEBUG 2026/11/04 20:10:52 charge power: 395W [lp-1 ] DEBUG 2026/11/04 20:10:52 charge power: 3276W [lp-1 ] DEBUG 2026/11/04 20:10:52 charge currents: [14.9 0 0]A [main ] DEBUG 2026/11/04 20:10:52 power: 5907W [main ] DEBUG 2026/11/04 20:10:52 current: 0A [site ] DEBUG 2026/11/04 20:10:52 grid power: 5907W [site ] DEBUG 2026/11/04 20:10:52 pv 1 power: 0W [site ] DEBUG 2026/11/04 20:10:52 battery 1 power: 0W [site ] DEBUG 2026/11/04 20:10:52 battery 1 soc: 5% [site ] DEBUG 2026/11/04 20:10:52 site power: 6007W [lp-1 ] DEBUG 2026/11/04 20:10:52 charge voltages: [221 231 231]V [lp-1 ] DEBUG 2026/11/04 20:10:52 detected active phases: 1p [lp-1 ] DEBUG 2026/11/04 20:10:52 session energy: 0.110kWh [lp-1 ] DEBUG 2026/11/04 20:10:52 charge total import: 8702.600kWh [lp-1 ] DEBUG 2026/11/04 20:10:52 charger status: C [lp-1 ] DEBUG 2026/11/04 20:10:52 vehicle soc: 41% [lp-1 ] DEBUG 2026/11/04 20:10:52 vehicle soc limit: 100% [lp-1 ] DEBUG 2026/11/04 20:10:52 vehicle range: 170km [lp-1 ] DEBUG 2026/11/04 20:10:52 soc estimated: 41.12% (vehicle: 41.00%) [lp-1 ] DEBUG 2026/11/04 20:10:52 vehicle soc (estimator): 41% [lp-1 ] DEBUG 2026/11/04 20:10:52 !! plan: plan time zero [lp-1 ] DEBUG 2026/11/04 20:10:52 smart consumption active: 0.14
Das Log bestätigt das Muster aus #35337: lp-1 lädt mit ca. 3,3 kW (smart consumption active: 0.14, also Preislimit im Modus smart), und evcc setzt zeitgleich set battery mode: hold. In core/site_battery.go (unmodelledCharging, smartCostActive) wird ein Fahrzeug, das über das Preislimit lädt, als nicht modellierbare Last behandelt und der Optimizer-Vorschlag charge für die Batterie verworfen. Der Fix #35306 ist noch offen.
Hinweis: Im Log fehlt die Optimizer-Zeile mit dem Batterievorschlag (battery.suggestion in /api/state). Falls du sicherstellen willst, dass der Optimizer in dem Moment wirklich charge vorschlägt, hänge bitte einen /api/state-Auszug mit batteryMode und battery.suggestion an.
Related: #35337 (gleiche Ursache, Fix in #35306 offen). Wahrscheinlich ein Duplikat.
🤖 Generated with Claude Code
Wenn das Problem schon bekannt ist und an einer Lösung gearbeitet wird, kann das Problem ja als Duplikat aufgeschlossen werden.
Danke für das Log. Es zeigt dasselbe Muster wie #35337: lp-1 lädt mit ca. 3,3 kW über das Preislimit (smart consumption active: 0.14) und evcc setzt gleichzeitig set battery mode: hold. Das ist die bekannte Ursache in core/site_battery.go. Der Fix #35306 ist noch offen und damit auch nicht im Nightly. Verfolge bitte #35337 bzw. #35306 weiter. Dieses Issue bleibt offen, bis ein Maintainer es als Duplikat schließt.
Related: #35337 (wahrscheinlich Duplikat, gleiche Ursache, Fix in #35306 offen)
🤖 Generated with Claude Code