About me Contact

Smart PV surplus management in Home Assistant: off-grid, thermal storage, heaters and priorities

A basic solar automation can switch on a device after production or export exceeds a set value. In a more advanced home, one number is often not enough.

Home Assistant can combine current PV production, household demand, grid import and export, battery state, thermal-store temperature, energy prices and available loads.

The system can then assess not only whether surplus exists, but where the energy is most useful and whether the conditions are right to use it.

PV production is not the same as surplus

If the array produces 5 kW, this does not mean that 5 kW is available for an extra load. Part of that power may already supply the home, charge the battery or run other equipment.

The actual flow, such as grid export or a calculated power balance, can therefore be a better control signal when suitable data is available.

The measurement basics are explained in Energy in Home Assistant: electricity, solar, battery and costs.

Energy flow as an important signal

A meter at the grid connection can show whether the home is currently importing or exporting. Export may be a reason to consider starting an additional load.

It should not cause instant switching after every small fluctuation. Thresholds, hysteresis, delays and minimum run times may be needed.

Which load should receive the energy?

Not every load has the same value. A system may prioritise essential household demand, battery charging, hot water, thermal storage, EV charging and other flexible loads.

There is no universal order. Home Assistant can implement the chosen priorities when it has the required data and a safe way to control the equipment.

A buffer tank can store surplus as heat

Some installations can convert surplus electricity into heat and retain it in a buffer tank. This may be useful when more heat can safely be stored and exported energy has little value.

The decision should consider buffer temperature, heat demand, other loads, battery state and the conditions of the specific installation.

For more context, see Home Assistant and heating: when is electricity, gas or a heat pump cheaper?

Several heaters or heating stages

With independently controlled heating stages, Home Assistant can match demand more closely to the available surplus. Additional stages can be enabled instead of using one large load that is only on or off.

Electrical design, protection and permitted loads must follow the installation design and equipment documentation.

Shelly and other control modules

Shelly devices and other suitable modules can expose entities that Home Assistant uses to switch appropriate loads or control signals.

The module, contactors, protection, wiring and control method must suit the real load. A high-power heater must not be connected to a module without checking its ratings and the electrical design.

Off-grid operation changes the priorities

In an off-grid system, energy that cannot be used or stored may have a different value than in a grid-connected installation. Available power is also limited by the inverter, battery and wiring.

Automation should preserve capacity for essential loads, account for current demand and allow for a sudden drop in production. Preventing overload takes priority over consuming every surplus watt.

Battery state and energy reserve

A full battery and strong PV production can support starting a flexible load. With a low state of charge, the same energy may be more valuable later.

Some systems may also retain a minimum reserve for the night, outages or essential loads. The available battery controls depend on the particular system.

A lux sensor as supporting information

A lux sensor does not measure PV output and should not replace inverter or energy-meter data. It can, however, add context about current local conditions.

High morning light, rising production and a suitable battery state may indicate favourable conditions ahead. In the evening, the same buffer temperature occurs while sunlight is falling.

Current light measurement and forecast

A light measurement describes local conditions now, while a PV forecast attempts to estimate future production. The two sources can serve different purposes.

Home Assistant can respond to real measurements and use the forecast as additional context when deciding whether to store or consume energy. A forecast is not a guarantee.

Why can one threshold be too simple?

The same surplus means something different when the battery is at 20% or 100%, the buffer is cold or hot, it is morning or evening, the price changes or the home operates off-grid.

More advanced automation can evaluate several conditions together instead of reacting only to one export threshold.

Hysteresis and stable equipment operation

A passing cloud can change PV output quickly. Responding immediately to every reading could switch equipment far too often.

Depending on the load, the design may require hysteresis, confirmation time, minimum run and stop times, stage order and a power margin. Exact values must come from the equipment and installation.

Safety comes before optimisation

Energy automation must not bypass protective systems. Maximum temperatures, safety thermostats, overcurrent protection, inverter limits, battery restrictions and manufacturer requirements must remain independent.

Home Assistant should control equipment only within the operating range for which it was designed.

What can a good decision include?

A good strategy can assess real surplus, battery charging needs, buffer temperature, energy price, likely continued production, safely available power and the current priority of each load.

There is no single correct algorithm for every home. The logic must be designed around real data, equipment and installation limits.

Where should you start?

First establish which information and controls are available:

  • PV production, import, export and household demand;
  • battery state and inverter limits;
  • buffer and hot-water temperatures;
  • safe methods for controlling loads;
  • energy prices;
  • optionally a PV forecast and light-level measurement.

Only then should priorities and automation conditions be defined.

Need help managing PV surplus?

If you have solar panels, battery storage, a buffer tank, heaters or an off-grid installation, I can assess the available data and control options.

I can also design Home Assistant logic around PV, batteries, temperatures, load priorities and the real limits of your installation.

Contact me. The initial assessment of your request is free and without obligation. → click here

Sources and currency