Basics · Energy management
Home Assistant as an energy manager
The base on which coordination between wallbox, heat and battery runs at all.
Read the article →Technical article · Electric mobility
Add spot prices to an existing surplus-charging setup and you have built two rules that contradict each other on grey winter days. The configuration is the smaller part of the work; the priority order is the larger.
Surplus charging and price charging look the same from outside – both push the charge into particular hours. But they pursue opposite goals.
Surplus charging maximises self-consumption: it draws exactly what is left over and stops when nothing is. Price charging minimises cost: it charges at full power when the hour is cheap, from the grid if necessary, and not at all when it is expensive.
At one o'clock on a January afternoon both rules can apply and decide in opposite directions: the sun delivers little, but the exchange price is on the floor. Surplus charging says „wait“, price charging says „now“. Enable both without settling the priority and you get a wallbox oscillating between modes.
In evcc the electricity price is held as a separate entity rather than wired into the charging rule. You configure a tariff for grid import; the options are a fixed price, a time-based price with zones across weekdays, hours or months, and a dynamic market price sourced from an external provider.
With such a tariff in place, the charge point offers a price limit: below it, charging draws from the grid as well; above it, it does not. That is the actual switch between the two goals – and it belongs set deliberately, not by experiment.
One detail usually missing from the calculation: time-dependent grid charges can be modelled as zones. If you have chosen a time-variable grid fee, enter it – otherwise the wallbox optimises against the exchange price and pays the difference back in grid fees.
Once battery, heat pump and wallbox share a house, the charging decision stops being local. Three consumers compete for the same cheap hour, and without a settled priority the winner is whichever automation happens to fire first.
An order that works in practice: current house load first, then heat – it has a deadline and the buffer has losses – then the car, provided it need not be full by a particular time, then the battery. Where a departure time is fixed, the car moves up: a vehicle not charged by seven has destroyed the entire optimisation gain.
The technical snag: wallbox and heat pump know nothing of each other. Coordination has to come from whatever sees both – the energy manager. How the heat side is driven is covered in running a heat pump on electricity prices.
The saving rests on three quantities: the spread between expensive and cheap hours, the energy charged, and the share that can be shifted at all. The third is routinely overestimated – a car leaving at eight and returning at seven has a twelve-hour window, and it does not contain arbitrarily many cheap hours.
What can be said with confidence: the saving from price charging is smaller than that from surplus charging in summer, and both together are smaller than what a badly configured heat pump burns in winter. The wallbox is the most visible lever, not the largest.
How price source, metering and control come together, and what the hardware choice amounts to, is covered in Home Assistant as an energy manager. Pure PV surplus charging – without a price signal – is described on the PV surplus charging page.
Configuration details come from the project documentation. evcc moves fast – configuration keys and the interface can change between versions.
evcc's configuration keys and interface change between versions. What counts is the documentation for the version you run.
Wallbox, battery and heat pump in the same house, and you want them to stop fighting each other? Write to me – the first conversation is free.