Self-hosted

Connecting a solar inverter to Home Assistant

You have the panels and the vendor app. One thing is missing: any way to act on it.

6 min read
Falownik w Home Assistant

A house with solar panels almost always has the same shape of problem. The roof produces, the manufacturer's app shows a chart, and between those two facts there is nothing you can act on. The water heats at the hour somebody set during installation. The car charges when you plug it in. The chart, meanwhile, is beautiful and completely inert.

Getting that data into Home Assistant is what turns it from a chart into a decision. There are three ways in, they differ in how much they depend on somebody else, and the difference matters more than it first appears.

Route one: the manufacturer's cloud

The easy one. Your inverter already sends its readings to the manufacturer's servers so their app can show them, and many manufacturers expose that same data through an interface Home Assistant can read. Setup is usually a login and a key, and it works the same afternoon.

The cost is that every reading now travels to another country and back before your house can use it. That means delay, usually minutes rather than seconds, which is enough to make "start the water heater while there is surplus" a blunt instrument. It also means the whole arrangement depends on a service whose terms, rate limits and continued existence are not yours to control.

Route two: Modbus, locally

Nearly every inverter sold in the last decade speaks Modbus, an industrial protocol older than smart homes and considerably more reliable than most of them. Depending on the model you reach it over the network or over a two-wire serial connection with a small adapter, and either way the data never leaves the building.

Readings arrive in seconds rather than minutes, they keep arriving when the internet is down, and nobody can rate-limit them. The cost is that it is more work to set up, sometimes involves a cable run to the inverter, and the register maps differ between manufacturers so somebody has to know which number means what.

This is the route I set up wherever it is possible, and the reason is not performance. It is that an automation which controls heating should not stop working because a server in another country is having a bad afternoon.

Route three: measure at the meter

Sometimes the inverter will not cooperate — an older model, a locked installer interface, a manufacturer who treats the data as theirs. In that case you measure the electricity itself, with a meter clamped around the incoming cable, which tells you how much is flowing in or out of the house.

You lose the detail — you will not know panel-by-panel production — but you keep the one number most automations actually need, which is whether the house is currently exporting. Surprisingly often that is enough.

What the data is actually for

Three automations repay the whole effort, and they are all variations on the same idea: move consumption to the moment when electricity is cheap or free.

Heat the water on surplus — when the house is exporting more than the heater draws, turn it on, and stop when the surplus ends. Charge the car in the cheapest window of a dynamic tariff rather than on arrival. And shift the heat pump away from the expensive hours instead of letting the thermostat decide on its own, which is the largest of the three in a house that heats with electricity.

None of these require the inverter to be clever. They require you to know two numbers in real time and to have something that can switch a relay. The inverter integration is the first half; the second half is the part people forget to plan for.

Before you buy anything

Check your specific model rather than the brand. Most popular manufacturers have an integration, some official and maintained by the vendor, some written by the community and dependent on somebody's spare time. Those are not the same risk, and the difference is worth ten minutes of reading before you commit.

And check whether the installer left you access to the inverter at all. More than once I have found a system where the owner paid for everything and the only account with rights to the local interface belongs to a company that stopped answering the phone.

Prefer not to build it yourself?

oftionn home box is exactly this: Home Assistant, AdGuard and Music Assistant configured on a refurbished business-class Dell, tested, with a 12-month warranty. From 799 zł. There is a live demo — log in and press whatever you like before you decide.