Technical article · Energy management

Running a heat pump on electricity prices

Three routes lead from a dynamic tariff to the heat pump: a volt-free relay on the SG Ready input, a Modbus connection, or the manufacturer's cloud. They differ not only in effort but in what the installation can do afterwards – and, since July 2026, in whether German funding survives the choice.

Decision
Relay contact, Modbus TCP or manufacturer's cloud
Prerequisite
A tariff with a price signal and a controller such as Home Assistant
Legal framework
Section 14a EnWG; BEG EM funding rules of 17 August 2026
Work in the board
Qualified electrician – see the final section
Status
September 2026 · primary sources below, each with the date checked
Author
Julian Haag, state-certified electrical engineering technician

This article describes the German regulatory framework, because that is where the installations discussed here are located. The technical part applies anywhere.

The three routes compared

Coupling a heat pump to a dynamic tariff takes two things: a price signal known far enough in advance, and a point of intervention on the heat pump. The second is the hard part, because manufacturers offer it in very different shapes. What the heat pump costs in electricity over a year, the electricity cost calculator on xmoo.app works out with your own price.

Route 1: volt-free contact on the SG Ready input

Two relay contacts drive the heat pump's SG1 and SG2 inputs. The control voltage is defined by the manufacturer; the interface specification issued by the German Heat Pump Association allows anything from 3 V to 250 V. The unit reads the combination of the two contacts as an operating state.

The route is cheap, robust and works on virtually every heat pump built in the last fifteen years. Its weakness is structural: it knows only the states those two contacts can express. It does not tell the heat pump how much power to draw, and it returns nothing. Whether the unit actually complied is something the controller only knows if it measures elsewhere.

Route 2: Modbus TCP or RTU

Here the heat pump is addressed through its data interface. Instead of two states there are registers: setpoints, operating modes, often power limits – and, above all, measurements. That turns control that fires blind into control that can see its own effect.

The price is effort and dependence on the manufacturer: which registers exist and what they mean is documented in the unit's manual and nowhere else. Copying register addresses from a forum post is the fastest route to a heat pump doing something other than intended.

Route 3: the manufacturer's cloud

The vendor app can usually do everything the unit can do, and needs no hardware in the distribution board. In exchange, control hangs on a third-party service: if it goes down, price control goes down with it. If the vendor changes the interface, the automation changes too. And the delay between decision and effect is typically minutes rather than seconds.

For pure price control that is tolerable – exchange prices apply by the hour, not by the second. For anything that should react to measurements, it is the weakest of the three foundations.

The decision in one sentence: if there is documented Modbus access, use it. If there is not, and the installation stays as it is, the SG Ready contact is the solid compromise. The cloud is what remains when neither exists – and the reason to check the interface before buying the next unit.

Which route suits the heat pump Decision sequence: if there is documented Modbus access, route 2, Modbus, is the choice; it returns registers and measurements. If not, and an SG Ready input exists, route 1: relay on SG1 and SG2, states only, no feedback. If both are missing, route 3 remains, the manufacturer's cloud, acting within minutes. Below it the note: for newly installed, funded heat pumps the BEG EM of 17 August 2026, number 3.4.3, requires a digital, interoperable interface with feedback information; a relay does not meet it. Documented Modbus access? yes Route 2: Modbus registers and readings back no SG Ready input available? yes Route 1: relay SG1/SG2, states only, no feedback no Route 3: vendor cloud, acts within minutes Newly installed and funded: BEG EM of 17 August 2026, no. 3.4.3 requires a digital, interoperable interface with feedback – a relay does not meet it.
The decision from the paragraph above. For existing installations the relay route remains the solid compromise; the funding requirement applies only to newly installed, funded heat pumps.

What changed in 2026 – and for whom

Most of the guides circulating on this topic predate the latest revision of the German funding rules, and they treat the relay route as the normal case. For existing installations that still holds. For newly installed, publicly funded heat pumps it does not.

The funding directive for the Federal Funding for Efficient Buildings – Individual Measures (BEG EM) of 17 August 2026 puts it in plain words under number 3.4.3 of the technical minimum requirements, „Netz- und Systemdienlichkeit“ (grid and system serviceability):

„Neu eingebaute Wärmepumpen müssen über eine digitale Schnittstelle zur netzorientierten Steuerung und zur Anbindung an ein intelligentes Messsystem einschließlich Steuerungseinrichtung verfügen. Die digitale Schnittstelle muss interoperabel ausgestaltet sein und die Umsetzung der netzorientierten Steuerung nach § 14a des Energiewirtschaftsgesetzes (EnWG) einschließlich der hierfür erforderlichen Status- und Rückmeldeinformationen ermöglichen.“

Newly installed heat pumps must have a digital interface for grid-oriented control and for connection to a smart metering system including its control unit. That interface must be interoperable and must support grid-oriented control under Section 14a of the Energy Industry Act (EnWG), including the status and feedback information this requires.

Three words in that paragraph decide the route: digital, interoperable and feedback information. A relay closing two contacts is neither a data interface nor a source of feedback. For newly installed, funded heat pumps it is therefore not sufficient – and not as a deduction from the grant, but as exclusion: only heat pumps meeting the requirement are funded at all.

The sentence that matters for Home Assistant: the directive explicitly leaves open how the link to the smart metering system is made – „unmittelbar oder über ein Energiemanagementsystem“, directly or through an energy management system – and requires the interface to support integration into energy management systems. A customer-owned energy manager is not a tolerated workaround but the second route the rules provide for. That is exactly where price control lives.

Two deadlines come with it. From 1 July 2027, the digital interface on newly installed heat pumps must follow a format consistent with the European Commission's Code of Conduct for Energy Smart Appliances; the directive names EEBUS to VDE-AR-E 2829-6 as an example. And after commissioning, the applicant must apply to a metering point operator for a smart metering system including its control unit, unless the connection already has one. Both have to be evidenced, among other things by confirming on commissioning that the digital interface is implemented, activated and fit for connection.

For existing installations none of this applies: retrofitting price control to a heat pump you already own risks nothing, because there is no grant to lose. The requirement attaches to funding a newly installed unit.

And it depends on the date of the funding application: for applications filed before 21 July 2026, number 10 of the new directive keeps the version of 21 December 2023 in force. There an interface such as SG Ready is enough. What both versions require, and why neither presupposes an installed control box: KfW heat pump subsidy when the control box is still missing.

Two things that are easily conflated: Section 14a EnWG is an obligation towards the grid operator, allowing it to curtail consumption temporarily during a grid constraint. Price control is the voluntary use of cheap hours. Both run on similar technology but serve opposing interests – and the grid operator wins any conflict. What curtailment does in detail is covered in the guide to Section 14a EnWG.

One figure matters for sizing: the rules apply to installations with more than 4.2 kW of grid connection capacity, and during an intervention the operator may reduce consumption to as little as 4.2 kW – not switch it off. The regime has applied to new installations since 1 January 2024.

The relay route: what gets installed

What is needed is a relay with volt-free output contacts. Volt-free means the contact supplies no voltage of its own; it merely connects whatever the heat pump puts on its input terminals. This is not a detail – it is the point at which the wrong component destroys the heat pump's control input.

Alongside it, most builds need a DIN-rail power supply for the low-voltage side and, depending on the layout, a DIN-rail module driven by the automation system.

On the contacts themselves: the current interface specification from the German Heat Pump Association (version 1.1) defines three mandatory states for space-heating heat pumps, signalled through SG1 and SG2. The reduced state must be configurable so that power draw can be limited; the association explicitly recommends the values from Section 14a EnWG – 4.2 kW up to 11 kW of connection capacity, and 40 per cent of capacity above that. Older descriptions listing four states with a „start recommendation“ and a „start command“ refer to the previous version.

Work inside the distribution board is a job for a qualified electrician. Fitting a DIN-rail device, terminating the control cable and protecting the auxiliary circuit all assume the board is isolated, tested and properly returned to service. This article describes what the result looks like – it is not an invitation to wire it yourself.

The Modbus route: why it is the better foundation

The difference shows up not when switching on, but when checking afterwards. A Modbus connection yields flow temperature, operating mode, compressor status and – depending on the unit – current power draw. That answers what the relay route leaves open: whether the heat pump actually ran during the cheap hour, and what it drew while doing so.

Depending on the unit, connecting means a Modbus RTU adapter on RS-485 or, on newer models, nothing more than a network cable. With RTU, termination and tidy cable routing are part of the job; bus faults otherwise show up as measurements that go missing now and then, which is expensive to chase.

What such a register connection looks like in practice – including the experience that a data point list is not always right – is shown by reading a Viessmann controller over Optolink. The protocol differs; the method is the same: verify addresses against your own unit rather than adopting them.

The automation: a price signal, not a PV surplus

PV surplus control reacts to a measurement that is true right now. Price control reacts to a curve that is already fixed for the hours ahead. That sounds easier, but it is the harder task: deciding whether an hour is cheap is only possible once you know what you are comparing it against.

What works is ranking rather than absolute thresholds: the n cheapest hours within the known window, with a floor on the number of operating hours. An absolute threshold means no heating at all on expensive days and continuous heating on cheap ones.

Three quantities decide the quality of the result:

Where the price signal comes from and how it is processed is the subject of a separate article on price-signal automation in Home Assistant – this one stays with the heat pump.

What goes wrong

The three most common failures share one trait: they surface weeks later, long after the build is considered finished.

Cycling

Price control without cycle protection produces short, frequent compressor runs. The compressor is the most expensive component in the system, and the number of starts is the figure its life is measured in. Control that saves a few euros of electricity and doubles the start count is a losing trade.

Hot water and legionella protection

The legionella cycle is the one operating case that must not be deferred, because its basis is hygiene rather than comfort. It has to be exempt from price control – not „scheduled into a cheap hour where possible“, but exempt from the block.

The cold house at six in the morning

Morning hours are reliably expensive, and demand is highest exactly then. Control that follows price alone saves precisely where it hurts. The remedy is not a special rule for mornings but a floor under room temperature that overrides every price decision. Loss of comfort is the real cost of this kind of control, and it appears in no savings calculation.

Limits: what you may do yourself

The line does not run between „simple“ and „complicated“, but between the extra-low-voltage side and anything connected to 230 or 400 volts.

The second point is not a formality. A control action that puts the heat pump into a state the grid operator does not expect can touch the Section 14a agreement. And an installation in the board that was not carried out properly becomes a problem with the building insurer long before it becomes one with the heat pump.

Sources

The regulatory statements in this article come from the following primary sources, each with the date it was checked. Funding conditions and technical requirements are revised regularly – verify the current state before making an investment decision.

This article is neither legal advice nor a substitute for information from your distribution grid operator or the manufacturer's documentation. What binds you is your unit's documentation and the connection conditions of the grid operator responsible for your installation.

Links marked with an asterisk are affiliate links. As an Amazon Associate I earn from qualifying purchases; the price is unchanged for you. What I recommend does not depend on it.

Planning to run your heat pump on a dynamic tariff and want the connection done properly – from the distribution board through to the automation? Write to me – the first conversation is free.