Skip to Content

OpenTherm in ESPHome: How to Actually Control Your Boiler with Home Assistant

A relay thermostat gives Home Assistant one command: heat, or don't. OpenTherm turns that into a conversation — you ask for a flow temperature, the boiler tells you what it is doing. Here is how that looks with an ESPHome gateway, where the boiler still has the last word, and what to expect when Home Assistant goes down.

By Dmitry Drezyulya · Updated September 5, 2026 · ~13 min read


The short version. The HomeMaster OpenTherm Gateway is an ESP32 running ESPHome, acting as the OpenTherm master on the bus. Home Assistant talks to it over the native API — no cloud, no MQTT unless you want it — and gets CH and DHW setpoints, flow and DHW temperatures, flame status, fault flags and, when the boiler reports it, the modulation level. The boiler keeps its own controller: you request a flow temperature, it decides how to fire the burner. If Home Assistant disappears, the gateway keeps the last setpoints and the boiler carries on.

1. How the pieces fit

The path is short: Home Assistant → ESPHome on the gateway's ESP32 → OpenTherm bus → boiler. Home Assistant holds the heating logic and the dashboard, ESPHome holds the setpoints and the API, the gateway is the physical OpenTherm master, and the boiler runs the burner, the pump, DHW priority and its safety chain. That last part matters more than it sounds: everything below is about what you can ask the boiler for, not about taking it over.

Home Assistant → ESPHome/ESP32 → HomeMaster OpenTherm Gateway → OpenTherm-compatible gas boiler
Home Assistant → ESPHome/ESP32 → HomeMaster OpenTherm Gateway → OpenTherm-compatible gas boiler

2. What shows up in Home Assistant

Two things you can set:

  • Boiler CH Setpoint — the flow temperature you want for central heating.
  • Boiler DHW Setpoint — the hot-water temperature, 35–65 °C.

Enable switches for CH and DHW, and then what the boiler sends back: flow temperature, return temperature where the boiler reports it, DHW temperature and DHW flow rate (off by default, enable them in ESPHome if you need them), flame on/off, CH active, DHW active, the fault flag and the diagnostic bits behind it — low water pressure, overheat, air-pressure fault. And Boiler Relative Modulation Level, which is enabled in the stock configuration but only useful if your boiler actually sends it. Some return 0 all the time; that is the boiler, not the gateway. Our own test boiler, a Viessmann Vitodens 100-W, answers 25 data IDs and no more — return temperature is not among them, it reads 0 whatever the pipe says, and so do the burner-hours and burner-starts counters. Other Vitodens 100-W owners report the same. Before you build a dashboard around a value, run the scanner and see whether your boiler answers that ID at all.

A word on that modulation number. OpenTherm's Relative Modulation Level is a percentage of the boiler's maximum output: 0 % is burner off, 100 % is full power. The catch is at the bottom — the boiler also reports a minimum modulation level, and it cannot run below it. Ours reports 10 %: flame on, the reading never drops under 10 %; flame off, it is 0 %. Nothing in between exists. That minimum, together with the maximum capacity, is what decides whether the boiler will cycle in your house — more on that in section 5.

On DHW: setting the DHW setpoint is not the same as starting a hot-water cycle. A combi switches to DHW by itself when a tap opens. A single-circuit boiler with an indirect cylinder decides on its own when to heat the cylinder and with what priority — people on the Home Assistant forum have run into exactly this with a Vaillant and a separate tank: the setpoint changed, the tank did not start heating. The gateway sets the target and reports "DHW active"; the boiler runs the cycle.

3. The ESPHome side

The gateway runs the native opentherm component of ESPHome. The stock configuration ships with the device and imports with one click from the ESPHome dashboard; the module's YAML package has the exact entities and pins. Do not assemble it from random snippets — the GPIO assignment and the OpenTherm timing are specific to this hardware, and a config that half-works on the bus is a miserable thing to debug later.

Once the device is in Home Assistant, Boiler CH Setpoint is an ordinary number entity. Any automation can write to it, which is the whole point.

4. "Home Assistant modulates my boiler" — not quite

The gateway never touches the gas valve. It sends the boiler a request — hold this flow temperature — and the boiler's PCB works out the modulation needed to get there, within its own limits. Home Assistant sets the demand, the boiler does the modulating — and the boiler has to have an OpenTherm terminal in the first place. An on/off boiler stays an on/off boiler with a gateway on it; the relay output will switch it, nothing more.

5. Gas savings, cycling and the return temperature

OpenTherm by itself saves nothing. The saving comes from matching heat production to what the building is actually losing, and OpenTherm just gives you the lever to do it.

A relay thermostat runs the boiler in bursts: the room drops, the boiler goes to full power, the room overshoots, the boiler stops, everything cools, repeat. With a flow setpoint you can stop asking for 65 °C water when it is +5 °C outside. The boiler runs at low modulation instead of stopping and starting, and on a condensing boiler a lower return temperature is what actually puts it into condensing mode.

Which brings up a question that comes up surprisingly often: won't a return below 60 °C damage the boiler? That rule comes from old non-condensing boilers. A cold return makes flue gas condense inside a heat exchanger that was never built for it, and the condensate eats it. A condensing boiler is built for exactly that — its heat exchanger is meant to run wet. Vaillant puts full condensing operation at a return below roughly 55 °C. Baxi says a condensing combi's flow temperature can be turned down, but warns against doing it on an old non-condensing boiler, or on a system with a hot-water cylinder, where the cylinder has its own temperature requirements. The real question, then, is not "60 °C" but whether the boiler is condensing, and whether something else in the system — a cylinder, a legionella cycle — dictates a minimum.

Then there is short cycling, which in mild weather is the rule rather than the exception. It happens when the building needs less heat than the boiler can deliver continuously. The number that matters here is the boiler's minimum output, not the 19 or 26 kW on the front of the casing. It varies enormously between models — check the installation manual rather than assuming a percentage. The Vitodens 100-W we test on is a good example: the 19 kW and the 26 kW versions have the same floor, 6.5 kW at 50/30 °C, a modulation range of 1:4 per the data sheet. A house that needs 3 kW on a mild day is below that floor on either version, and no setpoint changes it. The boiler also reports the figure over OpenTherm as its minimum modulation level, so look there too. Above that minimum the boiler modulates and follows the load; near it, it runs low and steady; below it, it cycles, and no controller changes that.

Setpoint, heating curve, emitter output and hydraulic zoning all stretch the run cycles, and lowering the requested flow temperature as the load drops is exactly how OpenTherm keeps the boiler in the low band longer instead of overshooting and stopping. But a boiler that is far too big for the house cycles at any setpoint. How many starts an hour is acceptable, what the built-in anti-cycle timer does and how to read cycling off the telemetry is a separate article: OpenTherm and short cycling: the boiler minimum-output problem.

Put together: OpenTherm, a boiler with a usable modulation range, a sensible curve and some tuning give savings. How much depends on your house, and we do not publish a percentage, because nobody can measure yours from here.

6. Weather compensation, the curve, and underfloor heating

A heating curve links outdoor temperature to flow temperature: mild outside, low setpoint; cold outside, high setpoint. There isn't a magic 0.6 or 1.2 curve that works for everyone — a well-insulated house with oversized radiators behaves nothing like an old house with small ones. The stock firmware exposes the setpoint; the curve itself is added in configuration, and the full setup with an outdoor sensor on 1-Wire is in Weather-Compensated Heating with the OpenTherm Gateway.

You do not need a PID loop on day one. A stepped curve is enough to start: four outdoor-temperature bands, a flow setpoint for each, written to number.boiler_ch_setpoint when the outdoor sensor changes. Before touching any of it, put outdoor temperature, room temperature, CH setpoint and actual flow temperature on one graph. Values like 35 / 45 / 55 / 65 °C are illustrations of the shape, not a recommendation for your house.

This is where the telemetry becomes useful.

our Home Assistant graph — CH setpoint, actual flow temperature and modulation level over one mild-weather afternoon; flow tracking a degree under the setpoint, modulation flat and low
our Home Assistant graph — CH setpoint, actual flow temperature and modulation level over one mild-weather afternoon; flow tracking a degree under the setpoint, modulation flat and low

What you want to see on that graph is the flow temperature sitting a degree or so under the setpoint with the flame on and the modulation level flat and low, for long stretches. If you lower the curve and the rooms still reach their target while the boiler spends more of its time down there, keep going. If it still cycles at the lowest setpoint you can live with, you are back at section 5 — the boiler is too big for the load, and OpenTherm cannot change that.

Underfloor heating is a special case worth a paragraph. The gateway controls the heat generator, not the floor: it sets the flow temperature the boiler produces, while the mixing valve on the manifold, the per-loop actuators and the room sensors stay separate. What OpenTherm gives an underfloor system is a low, steady flow setpoint — typically capped at 35–45 °C to protect the screed — instead of a boiler firing to 70 °C and a mixing valve throwing most of that away. With the floor's thermal inertia, aggressive room-thermostat control overshoots; a curve with a low cap is the usual answer, and the manifold hardware is a topic of its own.

7. When Home Assistant is down

This is one of the first questions people ask when they build DIY boiler control, and it deserves a precise answer — the theory is one thing, what a given boiler actually does is another.

The setpoints are ESPHome number entities that live on the gateway, not in Home Assistant. If Home Assistant becomes unreachable — server down, network down, an update that went sideways — the gateway keeps sending the last CH and DHW setpoints to the boiler and the boiler keeps heating as before. Nothing in that loop runs anywhere else. What stops is whatever was recomputing the setpoint from Home Assistant: the curve automation, schedules, presence. The last value they wrote stays in force until Home Assistant is back.

If the gateway itself loses power, it stops acting as the OpenTherm master. The protocol expects the master to talk to the boiler every second or so, and what the boiler does when it hears nothing is manufacturer-dependent. Some fall back to their own panel control and carry on. Ours does not: the Vitodens 100-W raises fault F.96 — "OpenTherm device missing" — and stops taking heating demand; it does not quietly revert to the panel. Other owners of the same boiler report the same. So "the boiler falls back to its panel" is true of some boilers and false of others, and the only way to know yours is to test it once, in autumn rather than January: power the gateway down for ten minutes and watch the panel. If it faults, the gateway's power supply is part of your heating's reliability, and a small UPS or a second feed is cheaper than a cold house. The gateway's relay contact (C–NC) is closed when the device is unpowered, so a pump or zone valve wired to it stays energised.

The practical rule for winter: keep the curve in Home Assistant if you like, but choose setpoints you could live with for a day if the server died at midnight.

8. OpenTherm compatibility is a model-level question

"Does brand X support OpenTherm" is usually answered wrong, because support is per model and generation, and people find out after buying a gateway. What we see most:

  • Vaillant, Saunier Duval — eBUS. OpenTherm only through the VR33 module, and not on every model.
  • Bosch, Buderus, Nefit, Worcester — EMS bus. OpenTherm on some models via an adapter, on others not at all.
  • Viessmann — Optolink on most; OpenTherm on specific models only, and people are still sorting out which generations expose what. The Vitodens 100-W does speak OpenTherm natively — that is what we test on — but with the gaps above, and it will not fire the burner unless the master also sends a room temperature and room setpoint, which the stock configuration does.
  • Intergas, Remeha, Baxi, Immergas, De Dietrich — OpenTherm is common, but on some models the terminal sits behind a plug-in module, and DHW behaviour differs by model.

Find your exact model in the manufacturer's manual and look for "OpenTherm" or "OT" on the terminal strip. If the terminal is there, the boiler will still only answer the data IDs its firmware implements; the OpenTherm scanner lists which ones yours does, which is worth knowing before you build automations around a sensor the boiler will never send.

What this does not do

  • Make a non-OpenTherm boiler modulate. eBus, EMS, Navien and other proprietary buses are not OpenTherm.
  • Touch the gas valve. The boiler's PCB stays in charge of the burner.
  • Promise a gas-saving percentage.
  • Remove short cycling below the boiler's minimum output.
  • Compute a heating curve on its own — the stock firmware exposes the setpoint, the logic is yours.
  • Guarantee every OpenTherm data ID. What the boiler does not send, the gateway cannot show.

Installation and commissioning

DIN-rail, 2 modules, in the electrical or heating cabinet. Power 24 V DC or 85–265 V AC, one input at a time. OT+ and OT− to the boiler's OpenTherm terminals, polarity-free.

  1. Provision Wi-Fi with Improv from your phone.
  2. Adopt the device in the ESPHome dashboard during the provisioning window.
  3. Flash the supplied HomeMaster configuration.
  4. Add the device to Home Assistant through the ESPHome integration.
  5. Read the ESPHome log. Received response means the bus is healthy; Timeout or Invalid response means wiring, or a boiler that does not speak OpenTherm on those terminals.
  6. Check that boiler telemetry is populating in Home Assistant.
  7. Only then write automations that change setpoints.

Do not skip the log. An unstable OpenTherm link under a complex automation is impossible to debug.

Where this leaves you

ESPHome plus OpenTherm gives Home Assistant a local, high-resolution link to the boiler — setpoints, temperatures, modulation and diagnostics instead of a dry contact. That is what the gateway is for, and it is also where its job ends: the bus does not save gas, what you do with the flow setpoint does, and the boiler decides more than most people expect. Start with the weather-compensation build, and check what your boiler actually reports with the scanner before you build on it.