Technical article · Storage control

Charging Victron ESS on spot prices

A Victron system is already regulating before you touch it. The mistake almost every implementation starts with is therefore conceptual rather than technical: adding a second controller instead of sending the existing one towards a different target.

Starting point
ESS already regulates grid draw, charging and discharging
Correct intervention
set the setpoint from outside – and release it again
Documented route
Modbus TCP with a manufacturer-maintained register list
Belongs to
the hub „controlling a home battery with Home Assistant“
Status
September 2026 · primary source below, with the date checked
Author
Julian Haag, state-certified electrical engineering technician

ESS in one sentence

A Victron system with an active energy storage system already regulates itself: it holds grid draw at the connection point to a setpoint, charges the battery from surplus and discharges it when the house needs more than generation provides. It is not a blank slate waiting for control but a running controller you reach into.

That is the difference from most other batteries – and the reason the first attempt to „control it by price“ usually goes wrong: building a second controller alongside ESS gives you two controllers on one actuator.

The point of intervention

Instead of replacing the controller, set its setpoint from outside. The system keeps regulating – towards a different target. In practice: during the cheap hour a grid setpoint charges the battery from the grid; during the expensive one discharge is permitted or forced; in between, normal self-consumption control runs.

What matters is handing back: after the intervention the original state has to be restored. An automation that sets a setpoint and forgets to release it after a restart leaves a system charging permanently from the grid – potentially unnoticed for weeks.

The three connection routes

No second-hand register addresses. The register list is versioned and maintained by the manufacturer. Taking an address from a forum post is riskier here than elsewhere, because this is writing rather than reading – and because the same register value addresses a different device depending on the unit ID.

The installation this article refers to consists of a Victron inverter (MultiPlus-II) with a GX device and Pylontech battery modules. That is the typical configuration for this route – and the reason the battery plays no part here: it communicates with the inverter, while what gets controlled is the Victron system.

Home Assistant dashboard of the Victron system with energy flow, state of charge, history charts, PV forecast and charging plan
The Home Assistant dashboard of the system this article refers to: energy flow and state of charge, voltage and power history of the MultiPlus-II and the SmartSolar charge controller, PV forecast, and on the right the charging plan with grid costs. 19 October 2026.

Layering price control on top

A clean implementation has four steps, and the third is the one forgotten first:

  1. Fetch the price series and rank the hours – as described in price-signal automation.
  2. Decide whether the spread clears the threshold from the arbitrage calculation. Without this step the system cycles even when the cycle costs money.
  3. Set the setpoint – and remember the original value.
  4. Reset after the window, with a timeout as a safeguard in case the automation restarts in between.
Charging plan over three days: state of charge against target, and electricity price with charge and discharge thresholds
The charging plan of the same system over three days. Top: state of charge against the target; bottom: the electricity price with charge and discharge thresholds. On the evening of 19 October the control sits at “neutral”: buying from the grid does not pay after losses. That is step 2 of the list above.

What goes wrong

Read on: whether the cycle pays at all is answered by the arbitrage calculation; which devices permit this mode and how mode switching is built is covered in the hub controlling a home battery with Home Assistant.

Sources

Interface details come from the manufacturer's documentation. Register lists are versioned – what counts is the version matching the firmware your system runs.

Write access to a running energy system intervenes in its control. Check setpoint limits, backup reserve and export conditions before leaving an automation running permanently.

Running a Victron system and want price control layered on cleanly – without two controllers on one actuator? Write to me – the first conversation is free.