Heat pump · Dynamic tariff
Running a heat pump on electricity prices
The main article: connection routes, the funding requirement since July 2026, and the pitfalls of the control loop.
Read the article →Technical article · Automation
The rule itself fits in twenty lines. What makes it usable are three things most guides leave out: handling the moment at which prices become known at all, ranking hours instead of comparing them to a threshold, and a defined response to data that never arrives.
A dynamic tariff does not publish a forecast but a result: tomorrow's exchange prices are fixed once the auction has cleared. For the automation this means part of the day is planned on solid knowledge – and the rest is not planned at all.
The catch is timing. According to the provider's documentation, tomorrow's prices only become available from midday onwards, in the window between 12:00 and midnight. Before that, the automation knows the current day only. A rule looking for „the six cheapest hours of the next 24“ therefore works on a different data set at eight in the morning than at four in the afternoon – and if you do not plan for that, you get a controller that changes its mind around lunchtime.
Second: prices apply per time slice, not continuously. Between slices the value jumps. Control that reacts to that jump by switching immediately creates load peaks exactly on the hour – together with everyone else who built the same automation.
The obvious approach is a fixed price threshold: below X cents the device runs. It works for one winter and then stops working, because the price level shifts. On expensive days nothing runs at all; on cheap days everything runs continuously.
Ranking is more robust: sort the known hours by price and take the cheapest n. The automation then always acts, but at the best moment available. Two side conditions turn this into a usable rule:
The mistake that renders most automations useless: „cheapest“ is not the same as „best“. The cheapest hour at three in the morning is worth nothing if the heat is needed at six and the buffer has lost it by then. Price is one input among several, not the objective.
The automation itself is short: fetch prices, rank them, place the current hour, switch. The part that takes work is the other one – what happens when no prices arrive.
That is not an edge case but normal operation: the interface is unreachable, the token has expired, the integration renamed its entities after an update. Without a defined fallback the device then stays either permanently off or permanently on, and you notice on the bill or in a cold house.
So the fallback belongs in the same automation: if the price data is older than a defined age, or missing entirely, control switches to a fixed time profile and says so. A mediocre decision on schedule beats a good decision on stale data.
The price signal is only one half. The other is how the unit is driven at all – a volt-free contact, Modbus, or the manufacturer's cloud – and what German funding has required of that interface since July 2026. That decides whether the automation merely switches or actually controls.
Read on: the connection routes, the interface requirements and the pitfalls of the control loop are covered in the main article, running a heat pump on electricity prices.
Three things this approach does not do. It knows prices only for the published horizon, so planning heat across several days is out of reach. It ignores grid fees, which can themselves be time-variable depending on the tariff module chosen; ranking by raw exchange price can then be wrong. And it knows nothing about the state of the building: whether the buffer is still warm is known only to the heating controller. Bringing those together leads to an optimisation across several inputs – and therefore to a different tool than an automation rule.
Statements about the availability and structure of the price data come from the provider's developer documentation. Interfaces change – check the current state before building an automation on one.
priceInfo with today and tomorrow, fields startsAt and total); next-day prices are available in the window between 12:00 and 23:59. Checked on 11 September 2026.
This article describes no tariff offer and compares no providers. What governs your bill is your contract; what governs the interface is its current documentation.
Setting up price-based control and need the heating, the battery and the wallbox to agree with each other? Write to me – the first conversation is free.