Repository navigation
Description
Describe the bug
Webasto Unite (Vestel EVC04 platform), HMI v3.187.42, power board 1.8.163.0, vestel template, phases on auto.
If a session ends while evcc has the charger at 1p and the car is unplugged and plugged in again, evcc logs phases mismatch (got 3, expected 1). Register 405 now reads 3p, but the charger physically charges on L1 only (L2/L3 = 0.00 A). evcc adopts the charger's value. It then believes it is on 3p and never sends a switch command, so the session runs at ~1/3 power.
We saw this on 3.187.42 on Oct 23 and Oct 29 (evcc 0.318.1). On Oct 29, in Fast mode, it charged at 2.4 kW on L1 until we manually cycled phases 1 → 3 → auto, which fixed it immediately (no reboot needed — that part 3.187.42 did fix).
The template says 3.187.42 "resolves the issue with phase switching". That holds for in-session switching, but not for this reconnect case. The same symptom on 3.187.42 is in #33829 (@plieven, Nov 7) and in our comment there: #33829 (comment)
Workaround since Oct 30 (zero mismatches since): 30 s after unplug, Home Assistant writes 405 = 0 and then 405 = 1 (5 s apart, unit 255) through evcc's Modbus proxy, so the next session always starts in sync.
Suggestion: evcc already detects the situation (got 3, expected 1). For this charger, instead of adopting the read-back value, re-apply the expected phases (write 405 again), or re-write 405 on vehicle connect. At minimum, the template caveat could mention that the reconnect mismatch still occurs on 3.187.42.
Steps to reproduce
- Phases on auto; let evcc switch the charger to 1p (e.g. PV charging with low surplus).
- Unplug the car while the charger is at 1p.
- Plug in again and start Fast or a planned charge.
- evcc logs
phases mismatch (got 3, expected 1), register 405 reads 3p, and the charger charges on L1 only (L2/L3 = 0.00 A). evcc does not send a phase switch command.
Configuration details
# Charger (Config UI)
type: template
template: vestel
modbus: tcpip
host: <charger-ip>
port: 502
id: 255
# Loadpoint (Config UI)
title: Webasto Unite
charger: db:3
mode: smart
defaultMode: off
phasesConfigured: 0 # auto
minCurrent: 6
maxCurrent: 16
planStrategy:
continuous: false
# Modbus proxy (used by the workaround only)
modbusproxy:
- port: 5020
readonly: false
uri: <charger-ip>:502Log details
# evcc 0.318.1, charger fw 3.187.42 — 2026-10-29, car unplugged at 1p, re-plugged 2 min later
[lp-1 ] DEBUG 2026/10/29 19:44:22 charge currents: [0 0 0]A
[lp-1 ] DEBUG 2026/10/29 19:44:38 charger status: A
[lp-1 ] DEBUG 2026/10/29 19:46:22 charge currents: [0 0 0]A
[lp-1 ] DEBUG 2026/10/29 19:46:38 charger status: B
[lp-1 ] INFO 2026/10/29 19:46:38 car connected
[lp-1 ] WARN 2026/10/29 19:46:38 charger logic error: phases mismatch (got 3, expected 1)
[lp-1 ] DEBUG 2026/10/29 19:46:38 vehicle api cache reset
[lp-1 ] INFO 2026/10/29 19:46:39 vehicle updated: unknown -> <vehicle>
[lp-1 ] DEBUG 2026/10/29 19:46:39 set charge mode: smart
[lp-1 ] DEBUG 2026/10/29 19:46:39 vehicle soc: 7%
[lp-1 ] DEBUG 2026/10/29 19:46:39 plan: charge 3h31m0s between 2026-10-30 01:45:00 +0100 CET until 2026-10-30 08:00:00 +0100 CET (power: 8280W, avg cost: 0.411)
[lp-1 ] DEBUG 2026/10/29 19:46:39 forced charging at vehicle soc 7% (< 25% min soc)
[lp-1 ] DEBUG 2026/10/29 19:46:39 set charge current limit: 12A
[lp-1 ] DEBUG 2026/10/29 19:46:39 charger enable
...
[lp-1 ] DEBUG 2026/10/29 19:47:54 detected active phases: 1p
...
[lp-1 ] DEBUG 2026/10/29 19:52:39 detected active phases: 1p
# no phase switch command follows; charger meter: L1 10.7 A, L2/L3 0.00 A (~2.4 kW) until phases were manually cycled 1 -> 3 -> auto
# same warning on 2026-10-23, first session after updating to 3.187.42:
[lp-1 ] WARN 2026/10/23 15:22:46 charger logic error: phases mismatch (got 3, expected 1)
[lp-1 ] INFO 2026/10/23 15:22:46 start charging ->
[lp-1 ] WARN 2026/10/23 15:22:46 charger out of sync: expected disabled, got enabled
What type of operating system or environment does evcc run on?
Docker container
External automation
- 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
- I have verified that the issue is reproducible with the latest nightly build
Version
Observed on evcc 0.318.1 (Oct 23 and Oct 29). Currently running 0.320.0 with the workaround active.
Activity
github-actions commentedon Dec 5, 2026
Thanks for the detailed report.
What the code does: On every cycle
syncChargerPhases(core/loadpoint_phases.go) reads the charger's phases (forvestel: holding register 405 incharger/vestel.go,getPhases). On a mismatch it logsphases mismatchand adopts the charger's value. That is intended for chargers that reconfigure phases on their own. Here the firmware reports 3p in register 405 after reconnect while it physically charges on L1 only, so evcc has no way to know the read-back is wrong. After adopting 3p it sees nothing to switch.Fixability: Re-writing 405 on connect, or ignoring the read-back for Vestel, would be a device-specific workaround for a firmware inconsistency. The measured phase currents are not a reliable signal either (a 1p vehicle on 3p looks the same). I would not change this without confirmation that the firmware behaves like this on other units. Your Modbus-proxy workaround (write 405 = 0, then 1) is consistent with it.
Related: #21708 (phase switching disables itself, the template caveat) and the firmware discussion #33829 with the same symptom on 3.187.42.
Questions:
log: tracefor the charger) covering the unplug and replug, so we can see the register 404/405 values aroundcar connected?cc @mfuchs1984
🤖 Generated with Claude Code
fenatl commentedon Dec 5, 2026
Thanks — follow-up after testing today on evcc 0.320.0 (workaround automations disabled):
I could not reproduce it anymore. Three unplug/replug tests:
Our Oct 29 failure was on 0.318.1: evcc had switched the idle, connected charger to 1p in the morning (no charging since), and after unplug/replug the charger reported 3p while charging on L1. That idle "scale to 1p" no longer happens since #35189, and #35383 handles phases while disabled — both are in 0.319.0, not in 0.318.x. So this looks fixed by those changes. Trace log of today's tests attached for reference.
Feel free to close; I'll reopen with a charger trace if it shows up again.
github-actions commentedon Dec 5, 2026
Thanks for retesting. This matches the code history: #35189 (switch phases of a disabled charger only when enabling) and #35383 (adopt charger phases while disabled) are both first shipped in 0.319.0, and your failure was on 0.318.1. Since the idle charger is no longer scaled to 1p, the stale register 405 value after replug can no longer occur in your scenario, so this looks already fixed. No further code change planned. Please reopen with a charger trace log if it shows up again on 0.319.0 or later.
Related: #21708 (phase switching and the template caveat), discussion #33829 (same symptom on firmware 3.187.42).
🤖 Generated with Claude Code