EVCS Opportunity Loads and available solar

How do the GX and EVCS decide how much power to use for EV charging?
When controlled as an Opportunity Load, the EVCS is using about 500W more power than is available from solar, even when the charging current could be reduced down to the 6A minimum.

I’ve just installed an EVCS, because of the ability to charge from available solar.

I have a Cerbo GX (firmware v3.8)1, Multiplus and Smart Shunt, which charge the battery from solar during the day, and powers my data cabinet (Essential Loads) overnight on battery (Multiplus changed to Inverter mode 2 overnight). The control logic is implemented in Node-RED, and ramps DVCC up and down to charge the battery from available solar, avoiding grid input except for when there are several cloudy days in a row. This works well.

To this I’ve added the EVCS (firmware v2.09) and I’ve enabled Opportunity Loads on the GX, so the EV will charge when there is surplus solar.
A Shelly EM (Energy Meter) is used to measure house loads and solar export, feeding via MQTT into the GX MQTT broker, and these feed into Node-RED Virtual Devices for a Grid meter and PV inverter. These show up in GX almost as expected (Solar is shown on the AC input side, while house loads and EVCS are shown on the Multiplus AC output side. Multiplus output loads are now called Essential Loads.
During daytime (Multiplus On) VRM shows them in the correct location (PV Inverter, EVCS and AC Loads on AC input)
During nighttime (Multiplus Inverting), VRM messes them up (PV Inverter and AC Loads on AC output, Essential Loads combined with AC Loads).
The shifting location on the diagrams does confuse things.

What isn’t clear is the logic the GX uses to control the EVCS current.
I can see it ramps up and down with PV, but the EVCS is charging with about 500W more than the solar yield (partly importing from the grid), even though it could have reduced current from 10A down to the minimum 6A. Maximum charge current is set at 16A. I’m expectig the green line (EVCS power) to stay below the yellow line (Solar) at all times.

Is the EVCS current based on the Grid meter, trying to minimise grid import?
Is it based on Solar Yield? If so, it would be good to set an offset to leave room for other house loads.

Gotchas I’ve found:
GX and VRM diagrams do not display the location of PV inverter, AC loads and EVCS in the correct location.
GX notification “System incompatible for Opportunity Loads” when the Multiplus is in Inverter mode. My code now disables “Opportunity Loads” mode when the Multiplus is in Inverter mode, to avoid this notification. Not sure if this is needed.
EVCS was flapping between Internal and External (OL) auto modes, every 30-60s. This was resolved by rebooting the Cerbo GX. While this was occurring, the GX Opportunity Loads was showing the EVCS as “No control”
EVCS needed to be set to UTC+offset rather than the regional zone, because scheduled charging occurs at off-peak times that do not change with daylight savings time.

The short answer is there is something that probably needs to be adjusted in your custom controls
One of the requirements is actually a can connected battery. So a shunt falls outside of the tested set ups.
…

The EVCS has its own built in surplus algorithm.

Is mentioned in the manual.

When enabled, Opportunity Loads pauses whenever no AC input source is connected…

It’s impossible to have the load under solar all the time if it is fluctuating. There are other setrings then that affects how long to run - you have your duration run time set on some devices…

Also mentioned in the manual.

Also can be a set up problem. The new guiv2 though tends to group production and grid input on one side and loads of consumers on the other. So by design it is that way. The vrm now? You don’t show a.picture of what you mean.

The requirements say that a Victron SmartShunt is acceptable.

Yes, there are two modes, Internal with the EVCS controlling the current and this uses about 250W more power than available from solar, and External (OL) with the GX controlling the current and this uses about 500W more power than is available from solar.
From testing and reading the EVCS Modbus TCP register list, the Internal mode is using the grid meter power to decide whether to step the charging current up or down. It’s just erring on the side of using a little from the grid, where I instead want to export a little (less cost).

I have no problem with this. I just didn’t want it generating an alert each time it did this. I later enabled the setting “Pause if no AC input is connected”.

Day time VRM is on the left, night time on the right. No changes to config, yet the AC loads and PV inverter have swapped sides! The only difference is the Multiplus mode has been changed from On to Inverter, to power things from PV solar during the day and from the battery overnight.

Given neither Internal nor External (OL) auto modes did what I wanted, I instead used Node-RED to control EVCS Manual mode to do what I wanted, which was to charge from available solar and to avoid importing from the grid. This partly got in the way of using Manual mode (if you wanted real Manual mode, you needed to select Manual and Start, if you wanted charging from solar, you select Manual and Stop then wait for Node-RED to start charging).

To avoid using Manual mode, I used auto mode and controlled it from Node-RED/MQTT. I turned off Opportunity Loads on the GX, then enabled GxAutoMode on the EVCS. This worked quite well. After a short while, the EVCS stopped calling it “External (OL)” and instead called it “External”, so it noticed it was being controlled by a GX but not via Opportunity Loads. The only gotcha was that every 15-30s the GxAutoMode/ChargingCurrent is being set to 0 by something. I fixed this by subscribing to notifications, and immediately setting it back to my desired value. This happens so fast the EV doesn’t even notice. So far I can’t figure out what is resetting the ChargingCurrent.

My testing is being limited by either a fully charged car or a lack direct sun.

Hi,

Yes, Opportunity Loads controls based on the Solar-Figure. (Ofc, individual interpretation of ac/dc solar)

Do you have a Zero-Feedin-System?

Because then, what probably happens is the following: Offgrid and Zero-Feedin, Opportunity Loads intentionally goes “Over Budget”, if the battery reaches 99%. This usually should force the battery to be drained “a bit”, and by the moment the battery starts to report a negative rate, Opportunity Loads will stop cranking up the EVCS.

Opportunity Loads POV then is: “We are at 99% Soc and with a slightly negative rate have ensured that Solar stays unthrottled”.

It would then keep this overbudget down to 97%, then revert to regular budgeting and let the battery charge up again.

Your system however seems to take the energy to compensate the overbudget from grid? That means, Opportunity never sees a negative battery rate achieved and keeps increasing the EVCS until 16A - and still without battery drain never sees the battery coming down to 97%.

So, if I understand your Nodered right: Your DCL-0 is what prevents this mechanic to work as it should, as it prevents the expected slight battery drain.

If you are not 0-Feedin, this all won’t apply :slightly_smiling_face:


For users that are facing a bit of “overconsumption”, despite Maths shouldn’t: in 3.90~beta7, we fixed an Issue with the “Battery reservation @ 100%” not beeing applied correctly.

Now, with that fixed, this value can be used as intended to specify a “safety distance” towards a 0 setpoint when needed. Set to 200W for example, Opportunity Loads would not use the “last 200W available” for consumers, but leave it alone to go wherever it would logically end up.

My system is not off-grid.

The older part of my system is the 16 year old SMA grid interactive inverter. I measure the solar export with a Shelly EM (gen 1) via MQTT, which is easier than using RPC to the Sunny Webbox (which runs on Windows CE). Maximum solar is about 3.8kW AC.

The newer Victron part uses a small Multiplus that will not export (not permitted in my country). During day time this would be charging the battery at 25-600W.

I control the EVCS current (GxAutoMode/ChargingCurrent) to keep the grid power to about 100W export. My PV inverter will generate as much as it can and from this I subtract other loads and 100W, then tell the EVCS to use the remainder. Given the available solar, this means the EVCS current varies between 6A and 15A.

If I could have told Opportunity Loads to less power, then I might have done so. Given what I’ve got running seems to work well, I’ll probably stick with that until it breaks. If you have any insight into what resets MQTTT GxAutoMode/ChargingCurrent and GxAutoMode/ChargingPhases to 0 every 15-30s when Opportunity Loads is disabled, and how to stop this, that would be helpful. The rest of the GxAutoMode topics aren’t being reset.

That’s probably the EVCS itself.

OL will send instructions to the EVCS, while OL is in duty of control. So, if OL sends “Off” instructions and the evcs keeps reporting something else, it’s considered rogue and will be kicked.

Then, the EVCS will disable the gx-remoting, going into internal auto until OL retries connection. (That resets the paths most likely)

If you build your own control logic, you should set the EVCS into manual mode, so no auto control (neither gx nor evcs) is “acting” concurrently.