false handling of phaserotation
Describe the bug
Setup: 2 chargers (openWB, EVBox Elvi) in one circuit, allowing max 16A per phase. To allow both chargers to use full 16A in 1p-mode, EVBox Elvi is connected with rotated phases (L2 L3 L1). For each charger there is a disconnect switch for switching between 1p and 3p. In the EVBox Elvi I can specify the phaserotation, so the voltages and currents are reported on the correct phases. So with my setup in 1p-mode EVBox Elvi correctly reports a voltage on L2, but not on L1 and L3.
Problem:
- Warning "invalid phase wiring between charge meter and charger" is constantly shown, as the logic only allows voltage on L1 or on all three phases
- connected phases is recognized as 3p when it really is 1p
Steps to reproduce
- connect a charger correctly reporting voltage only in L2
Configuration details
chargers:
- name: elvi_garage
type: template
template: ocpp-evbox-elvi
stationid: EVB-P********
meter: true
connector: 1
metervalues: Current.Import.L1,Current.Import.L2,Current.Import.L3,Energy.Active.Import.Register,Power.Active.Import,Temperature,Voltage.L1,Voltage.L2,Voltage.L3,Frequency
loadpoints:
- title: Elvi Garage
charger: elvi_garage
mode: off
circuit: garage
Log details
[lp-1 ] DEBUG 2025/07/26 00:01:07 charge voltages: [21 227 20]V
[lp-1 ] WARN 2025/07/26 00:01:07 invalid phase wiring between charge meter and charger
[lp-1 ] DEBUG 2025/07/26 00:01:07 detected connected phases: 3p
What type of operating system or environment does evcc run on?
Linux
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
evcc version 0.205.0
In the EVBox Elvi I can specify the phaserotation, so the voltages and currents are reported on the correct phases. So with my setup in 1p-mode EVBox Elvi correctly reports a voltage on L2, but not on L1 and L3.
Reset it to default mapping.
evcc needs to know the phases seen and used by vehicle. It does not care about phase usage on grid connection side.
Of course you can physically rotate the phases on grid connection side for each charger.
But then phaserotation won't be considered in the load management and evcc will limit both to 16A in total in 1p mode... Why is it important to evcc, which phases are seen and used by the vehicle and not only the number?
As you cannot define phaserotation in all chargers, it would be even better, to have options to define the phaserotation directly in evcc. Then handling of such values from the charger is not necessary. But as far as I know, evcc does not have this feature atm...
Physical phase load is respected by load managment. Nothing to do here. No need to configure anything. Just make sure your chargers meter reflects the phase meausrements as seen by the vehicle.
That's a circuit with nothing else apart from the two chargers -> when the chargers can report load on the correct phases, I won't need an extra meter for that circuit. If there is no possibility for the chargers to report the current on the correct phases, load management cannot work correctly without an extra meter...
The meter of the chargers has to monitor the phase aligned to their charge connector, not related to the grid connector.
To simplify configuration LM in evcc does not care about the the specific grid phases. Just the phase with the currently highest load is used for current and power reduction calculation in each circuit.
How does it evaluate the current load on a phase without an extra meter for the circuit, when there is no mapping between phases on the charge connector and phases on the grid connector? So how will it know, when charging with 16A 1p on both chargers, that there ist not one phase with 32A, but two phases with 16A each?
Load management does not recognise the phase assignment. In this particular case (phase-rotated, single-phase charging boxes), this will indeed not work without a physical meter for the circuit. Without a summation meter, the load management would limit both boxes to 8A each.
This is one of the edge cases that we have to live with if we don't want to make the configuration too complicated and error-prone. At this point, we have deliberately opted for a simplified solution.
However, this does not mean that there is nothing fundamentally wrong with a simple and safe alternative if the cost and benefit are in good proportion.
Ok, if I understand you correctly, it is not about the implementation in the load management being too difficult and error-prone, but the configuration for the users will be? In that case i think, an explicit notice in the docs for loadmanagement would be helpful, that phase rotated installations are only fully supported with an extra meter.
In any case the documentation for EVBox Elvi should also get an explicit notice, that phase rotation should not be configured in the charger.
I will create pull requests for these notices soon. (And change the config of my EVBox Elvi and get an extra meter for that circuit, probably a Shelly 3em)
Thanks for the detailed feedback!