EVCS NS + GX Opportunity Loads: Is 1P/3P phase switching real surplus now?

Hi all, and especially @ptrenz, @Lpopescu and the EVCS team,

Since Venus OS v3.80 and EVCS firmware v2.09, the EVCS can be controlled by the GX through GX Opportunity Loads. I’d like to understand how this works together with 1P/3P phase switching. I couldn’t find anything about it in the manual (rev 14), the GX Opportunity Loads documentation or the beta thread.

My setup

  • Cerbo GX, Venus OS v3.81, 3-phase ESS
  • 2× EV Charging Station NS, firmware v2.09, both paired via MQTT
  • Both units have the community 1P/3P modification (4P contactor replaced by 2× 2P contactors)
  • Registers on both units: 5100 = 1, 5056 = 2, 5055 = 0
  • Unit 1: 5057 / 5058 / 5059 = 3600 / 4200 / 300, max 16 A (EV charges with 1 or 3 phases)
  • Unit 2: 5057 / 5058 / 5059 = 3400 / 3100 / 60, max 16 A (VW e-Golf, charges with 1 or 2 phases)

Background
As discussed in Charging an EV with Excess Solar – Switching Between 1P and 3P,the EVCS’s internal auto mode decides 1P/3P based on the actual EV charging power (5057/5058), not on the available solar surplus.

My grid operator limits phase imbalance to 16 A, so the EVCS is limited to 16 A per phase. This creates a fundamental problem for a charging-power-based logic:

  • On 1P the charger can deliver at most 16 A × 230 V ≈ 3680 W, no matter how much surplus is available. It cannot distinguish 3.7 kW of surplus from 8 kW of surplus, because in both cases the EV charges at ~3680 W.
  • On 3P the minimum is 3 × 6 A × 230 V ≈ 4140 W.
  • To ever switch up, 5057 must be below ~3680 W. To ever switch back down, 5058 must be above ~4140 W. The thresholds are therefore inverted (5057 < 5058), and with a surplus between ~3.7 and ~4.1 kW the charger oscillates between 1P and 3P, limited only by the 5059 timeout.

Only a decision based on the actual surplus (e.g. “switch to 3P if surplus > ~4.4 kW for x minutes, back to 1P if < ~3.9 kW”) can solve this, which is why I’m asking whether Opportunity Loads now provides this.

The MQTT dataset now shows new paths under evcharger/<instance>/GxAutoMode/:
Enabled, Source, Supported, SupportedPhases (= 2 on both units), DetectedPhases, MaxDetectedPhases (1 resp. 2), ActivatedPhases, ChargingPhases, ChargingCurrent.
There is also S2/0/RmSettings/RememberEvPhases.

Questions

  1. When Opportunity Loads controls the EVCS in Auto mode (“Auto mode source: External”), who decides 1P vs 3P?
    a) The GX/CEM, based on the actual solar surplus, or
    b) still the EVCS’s internal logic, based on charging power (5057/5058/5059)?

  2. What do GxAutoMode/SupportedPhases, ActivatedPhases, ChargingPhases, DetectedPhases and MaxDetectedPhases mean? Is any of them writable, e.g. to request a phase count from Node-RED?

  3. Does Opportunity Loads support phase switching on modified units (5100 = 1, 5056 = 2) at all? Or is it intended only for future hardware with official phase switching?

  4. Workaround question: if phase switching is not (yet) surplus-based, would the following be a safe and supported workaround?

    • Instead of leaving 5056 at 2 (automatic 1P/3P), Node-RED actively switches 5056 between 0 (3P) and 1 (1P), based on its own surplus calculation (grid, battery and PV power) with hysteresis and minimum hold times.
    • Everything else stays with the EVCS in Auto mode: current regulation (internal or via Opportunity Loads), start/stop, etc.

    Specifically:
    a) Does a change of 5056 during an active charging session trigger the normal phase switching sequence (status 22/23: pause, switch, resume)?
    b) Will the EVCS or the GX/Opportunity Loads override or reset 5056, or otherwise interfere with this?
    c) Are there any concerns regarding the contactors, the EV or the S2 communication when switching this way (e.g. how many switches per day are acceptable)?

  5. Is surplus-based phase switching on the roadmap, and roughly when?

I really appreciate Victron’s openness towards DIY modifications and would be happy to beta test and share logs/MQTT recordings from both units.

Thanks a lot!
Stefan

1P/3P switching is not something oficialy suported by curent version of the EVCS.
But that is coming on V2. Not sure if the V1 charging stations will be supported in the same way. The hardware is different.

Hi Stefan,

let me add to that: GX Opportunity Loads is prepared to do phase switching, when the hardware supports it. With the modification, it theoretically does. With GX Opportunity Loads, the GX device decides on when to switch between 1/3ph. The parameters you set on the EVCS are only for the internal algorithm and on the GX device, these thresholds are not configurable.

To the new MQTT topics you mentioned on the GX device, I can only say that they are internal states and are not meant to be manipulated.

Best

Thanks a lot for your answer.
On the next sunny day I’ll give it a try.

Hi everyone,

I’ve been playing around with Opportunity Loads and my EVCS NS for a few days now. Since I wanted to know how the GX actually controls the charger, I recorded the S2 traffic on the Cerbo (signals from the EVCS plus dbus-monitor for the GX side). Maybe it’s interesting for some of you.

My setup: Cerbo GX on v3.81, 3-phase ESS, EVCS NS on fw 2.09 paired via MQTT. The EVCS has the 1P/3P mod with the two 2-pole contactors (5100 = 1, 5056 = 2). The car is a Tesla Model Y, and the EVCS detects it as 3-phase (MaxDetectedPhases = 3).

How Opportunity Loads controls the EVCS

As far as I can tell from the S2 messages and the settings on D-Bus, it works like this.

When the car is ready, the EVCS sends its SystemDescription to the GX. It’s just Standby plus one mode per ampere, from 6 A up to the max current I configured. With 20 A that was 16 modes; after I limited it to 16 A there were 12 modes. Every mode has a fixed power value, e.g. “6 A” = 1380 W, “16 A” = 3680 W. The EVCS also defines the timers and transitions:

  • On Hysteresis 30 s, Off Hysteresis 300 s, Current step 1 s
  • transitions: Standby ↔ 6 A, ±1 A between the current steps, and from every step back to Standby

Opportunity Loads then runs its control loop every 5 seconds (/Settings/OpportunityLoads/ControlLoopInterval = 5). It calculates the available surplus and picks the mode that fits best. The only thing it sends is an OMBC.Instructionwith the ID of that mode (factor always 1.0). After start it ramps 6 → 7 → 8 A in 5-second steps, then follows the surplus with ±1 A steps. The EVCS reports its power per phase every second and confirms each new mode with an OMBC.Status.

The priorities come from /Settings/OpportunityLoads/PriorityMapping. In my case that’s {"battery": 0, "evcharger_41": 1, "evcharger_42": 2}, so the house battery comes first, then my EVCS, then the second one. There is also a battery reservation (ReservationBasePower, ReservationEndPower, ReservationStartSoc plus a formula in BatteryReservationEquation). That defines how much surplus is kept for the battery depending on SOC. Today the battery (around 72 %) got most of the PV and the car only got 6–9 A, which fits with that.

Where the phase decision happens (or doesn’t)

This is the part I was mainly interested in. Opportunity Loads can only choose between the modes the EVCS offers, and every mode only has power on L1. L2 and L3 are always 0 W. I also tried 5056 = 0 (fixed 3P): same list, still only L1. So there are simply no 3-phase modes, and the GX has no way to decide “go to 3P now”. The instruction has no phase field either, just the mode ID.

Interesting detail: the SystemDescription also contains timers called “Phase Switch Hysteresis 1->3 25s” and “Phase Switch Hysteresis 3->1 15s”, but none of the transitions uses them. My guess is that phase switching via S2 would work with separate 1P and 3P modes plus transitions between them using these timers. So it looks prepared in the firmware but not active yet.

That means the 1P/3P decision is still made by the EVCS itself, with its own logic:

  • 5056 = 2 → switch to 3P when the charging power is above 5057 for longer than 5059
  • back to 1P below 5058

This is based on what the car is drawing, not on the available surplus. Opportunity Loads caps the current at the highest L1 mode (16 A = 3680 W in my case). So the charging power can never reach the 3P threshold, and the charger just stays on 1P, even with 8 kW of surplus. I couldn’t test yet what happens if the EVCS switches to 3P on its own while OL is in control, because the GX would then still assume “x A = x × 230 W on L1”. Not enough sun for that test so far.

Another thing I noticed on D-Bus: /GxAutoMode/ChargingPhases shows 3 while the charger is actually on 1 phase (/NrOfPhases = 1) and only L1 modes are offered. Not sure what that value is supposed to mean.

So for now Opportunity Loads can only adjust the current on one phase. With my 16 A limit that’s max. 3.7 kW.

For the moment I’ve switched the EVCS to manual mode and do the whole thing in Node-RED: current, start/stop and phase switching (via 5055) based on PV surplus.

@ptrenz @Lpopescu – is it planned to add 3-phase modes to the S2 description so Opportunity Loads can switch phases based on surplus? And are the phase switch timers already meant for that? I’d also be curious what /GxAutoMode/ChargingPhases and the DisableEvcsQuirks setting are for.

Happy to share the logs or help with testing if that’s useful.

Cheers,
Stefan