OTGW-firmware
EN

Free OpenTherm Gateway (OTGW) firmwareYour central heating, in plain sight.

The OpenTherm Gateway is a module that you connect between your thermostat and your boiler. With this free firmware you see, live on your phone or computer, what your heating is doing: the flow and return temperature, whether the burner is on, the water pressure and any fault codes. It can also pass this data to your home-automation system, such as Home Assistant. No cloud, no account, no subscription.

Free and open sourceNo cloud, no subscriptionWorks with Home Assistant and other smart-home systemsUpdates over Wi-FiSupports the new OTGW32
The web page of the gateway: a live diagram of the boiler with the water temperatures, the room temperature and the burner

What it does for you

Know what your heating is up to

See it live

Flow and return temperature (the water going to and coming back from your radiators), burner on or off, boiler modulation and the room temperature, updated every second.

Spot problems early

A falling water pressure or a boiler fault code shows up right away, not only once the house is cold.

Look back

Graphs show what your heating did over the last hours: when it switched on, how long it ran, when hot tap water was requested.

Part of your smart home

Use the information in Home Assistant, Homey, Domoticz and similar systems, for example on a dashboard or in your own automations.

Private

It works on your own home network. Nothing goes to the internet and you do not need an account.

Free

The software is free and open source, made by volunteers. You only buy the hardware kit.

How it works

Between thermostat and boiler

Most modern thermostats and boilers communicate using the OpenTherm protocol. The gateway reads along and makes that communication visible.

  1. Reads along. The gateway receives every OpenTherm message between thermostat and boiler, such as the requested flow temperature ("55 °C") and the burner status.
  2. Shows. The firmware turns those messages into current values and graphs on its own web page, which you open on a phone, tablet or computer.
  3. Connects, if you want. If you use a home-automation system, the gateway publishes the values over MQTT, the messaging standard most home-automation systems understand. That system can also send commands back, such as a different temperature setpoint.
The gateway sits on the wires between thermostat and boiler and connects to your home Wi-Fi, so your phone, computer and smart home can see what the heating does. Thermostat on the wall Boiler or heat pump OpenTherm OpenTherm Gateway + this software Phone or computer Smart-home system Graphs and history Wi-Fi

Is it for me?

Check this before you start

You need

  • A boiler (or heat pump) and a thermostat that both support OpenTherm. Look for the OpenTherm logo in their manuals, or check the equipment list.
  • Wi-Fi where the gateway goes. The gateway uses the common 2.4 GHz band.
  • A power socket where the gateway goes, for the 5 V USB adapter.
  • Being able to connect two pairs of wires, or someone who can do it for you.
  • Basic soldering for the kit, or someone who can do it for you.
  • A computer with a USB cable for the first installation of the firmware.
  • The right Wi-Fi module: a Wemos D1 mini for the stable 1.x firmware, or a LOLIN S3 Mini for version 2.0 with SAT (see Which version?). The new OTGW32 has the ESP32 on board and needs no separate module.

It is not for you if

  • Your thermostat is a simple on/off thermostat. Many two-wire thermostats work that way and do not speak OpenTherm.
  • Your boiler has no OpenTherm connection.
  • You want a finished product with an app and a helpdesk. This is a community project: you install it yourself, and help comes from other users.

Not sure? Ask on Discord and mention the brand and type of your boiler and thermostat.

The hardware

Two gateways, one firmware

The gateway goes into the OpenTherm wiring between thermostat and boiler: next to the boiler, next to the thermostat or anywhere in between. Nodo Shop sells two versions, and OTGW-firmware runs on both. Schelte Bron designed the original OpenTherm Gateway and its PIC firmware; Tim Steele designed the classic board sold by Nodo Shop.

The OTGW Classic: a black circuit board with a grey connector for the boiler and thermostat wires and a USB socket
OTGW Classic, board version 2.3. Photo: Nodo Shop.

OTGW Classic

The proven board with a PIC microcontroller for the OpenTherm connection and a socket for an expansion module.

  • Grey connector: terminals for the boiler (Boiler) and the thermostat (Therm).
  • One expansion at a time: Wi-Fi, Ethernet or serial, not more than one. This firmware uses the Wi-Fi option; Ethernet on the Classic is very basic.
  • USB socket: power from a 5 V USB adapter.
  • Kit: needs some basic soldering.

Firmware 1.x for an ESP8266 (Wemos D1 mini), 2.x for an ESP32-S3 (LOLIN S3 Mini)

The OTGW32: a black circuit board with an ESP32 module, terminals for thermostat and boiler, a USB-C socket and a place for a wired Ethernet module
OTGW32, board version 1.1. Photo: Nodo Shop.

OTGW32 New

The new board from Nodo Shop with the ESP32 on the board itself: no separate Wi-Fi module and no PIC.

  • ESP32-S3 on board: the firmware drives the OpenTherm connection directly.
  • Terminals: Thermostat and Boiler, plus inputs for a 1-Wire temperature sensor and a digital input.
  • Optional extras, all at once: Wi-Fi is on board; add a wired Ethernet module, an OLED display and a relay if you wish.
  • USB-C: for power and for the first firmware installation.
  • Kit: needs some basic soldering.

Firmware 2.x

New in version 2.0

A thermostat that learns your home

Version 2.0 can also control your boiler itself. You choose the room temperature; the gateway works out how warm the water to your radiators should be, from the temperature inside and outside, and fine-tunes its heating curve to how your home heats up. This is SAT, the Smart Autotune Thermostat. It runs on the gateway itself, without Home Assistant, cloud or internet.

SAT thermostat: a dial set to 21 degrees with presets such as Comfort, Eco and Sleep
A thermostat on your screenSet the temperature or pick a preset such as Comfort, Eco or Sleep. SAT takes care of the boiler.
Heating curve: the colder it is outside, the warmer the water to the radiators
A heating curve that tunes itselfThe colder it is outside, the warmer the water. SAT adjusts this curve to how your home heats up and cools down.

Bluetooth room sensors

Measure the temperature in other rooms with small Bluetooth thermometers (Xiaomi LYWSD03MMC with BTHome firmware). No extra hub needed.

Several rooms and zones

Combine up to four room sensors into one temperature, or let separate heating zones report their own temperature and wish.

Keeps working on its own

The control runs on the gateway itself, so your heating keeps going when Wi-Fi or your smart-home system is down.

SAT is opt-in: it stays off until you switch it on, and the setup wizard asks you to confirm. Once on, it takes over control of the boiler from your thermostat. It needs version 2.0 with the LOLIN S3 Mini (ESP32-S3) Wi-Fi module (see Which version?).

Screenshots

What you get to see

This is the web page of the gateway (software version 2.0). Tap or click an image to enlarge it.

Get started

From kit to working system in four steps

Buy the kit

Order an OpenTherm Gateway kit from Nodo Shop with the Wi-Fi module you chose above, or the new OTGW32. You also need a good 5 V USB adapter.

Connect it

Switch the heating off. Connect the wires from the boiler to Boiler and the wires from the thermostat to Therm. Within a pair, it does not matter which wire goes where. Nothing in the boiler is changed: you can always connect the thermostat straight back (see the FAQ).

Install the firmware

Download a release, connect the Wi-Fi module to your computer with a USB cable and run the flash script that comes with it (flash_otgw.bat on Windows, flash_otgw.sh on Linux and macOS). The guide below walks you through it. Later updates install over Wi-Fi. Or use the web installer in Chrome, Edge or Firefox.

Connect to Wi-Fi

The gateway starts its own Wi-Fi network (access point). Connect to it with your phone, choose your home Wi-Fi, then open http://otgw.local in your browser. Does that not open? Look up the gateway's IP address in your router's list of connected devices and open that.

FAQ

Common questions

Will it work with my boiler and thermostat?

Only if both support OpenTherm. Look for the OpenTherm logo in their manuals. A simple on/off thermostat sends nothing the gateway can read. The equipment list shows boilers and thermostats that other users have tried; a model that is missing can still work.

The list has boilers and heat pumps from Remeha, Intergas, Nefit, Bosch, Vaillant, Viessmann, ATAG, Baxi, De Dietrich, Ideal, Ferroli, Itho Daalderop and Daikin, and thermostats such as Honeywell (Chronotherm, Round, Lyric, Evohome), Remeha iSense, Nefit Easy, Toon, Tado, Google Nest, Netatmo and Plugwise Anna. Check the result for your exact model.

Do I need internet or an account?

No. The gateway works on your own home network. Internet is only used for optional extras, such as setting its clock.

Do I need a smart-home system?

No. The gateway has its own web page that shows everything. A smart-home system such as Home Assistant is optional, for example if you want to combine your heating with other devices or automate things.

Can it damage my boiler or thermostat?

The gateway passes the messages between thermostat and boiler on and reads along. It changes nothing unless you, or your smart-home system, send it a command. You can always remove it and connect the thermostat directly to the boiler again.

Which version of the software do I need?

That depends on the Wi-Fi module on your gateway. With a Wemos D1 mini or a NodeMCU you use version 1.x, the stable version. With a LOLIN S3 Mini you use version 2.0, currently in beta; 2.0.0 will be its first stable release. The new OTGW32 also uses version 2.0. More in Which version?

All questions and answers →

For tinkerers and developers

Under the hood

The rest of this page is for people who like to build and connect things themselves: the technical features, the hardware versions, the integrations and the documentation.

Features

Technical features

Full OpenTherm insight

All 80+ message IDs decoded live, with a log, statistics and an overview of what your boiler supports.

Home Assistant

MQTT auto-discovery: your boiler shows up as a device with sensors and controls, no YAML needed.

Live graphs

Flow, return, setpoints, room and outside temperature and modulation over time. Export as PNG or CSV.

REST API

A versioned /api/v2 with JSON responses for scripts, dashboards and your own tools.

Extra sensors

DS18B20 temperature sensors with your own labels, an S0 pulse counter and an optional OLED display.

Updates over Wi-Fi

Flash new firmware from the browser. Your settings stay.

Tools you know

A TCP bridge for OTmonitor and the built-in Home Assistant OpenTherm Gateway integration.

Made for people

Help text for every setting, dark and light theme, and a layout that works on your phone.

Which version?

Two lines, one project

The version you need depends on the Wi-Fi module on your OTGW. Not sure? The FAQ helps you check your hardware.

Stable

Firmware 1.x: ESP8266

The proven line for the Wi-Fi module that ships on most OTGW kits: a Wemos D1 mini (board v2.3 and later) or a NodeMCU (older boards).

  • Web interface, MQTT with Home Assistant auto-discovery, REST API
  • OTmonitor and Home Assistant OpenTherm Gateway integration through port 25238
  • Maintained with bug fixes
Beta

Firmware 2.0: ESP32-S3

The new platform for an OTGW with a LOLIN S3 Mini (ESP32-S3) as a drop-in for the Wemos D1 mini. Same board, same PIC. It also runs on the new OTGW32, which has the ESP32-S3 on board and drives OpenTherm without a PIC.

  • New web interface with a live system diagram, graph history and a connection map
  • Safe updates over Wi-Fi: a fallback updater keeps the unit reachable
  • Bluetooth room sensors (Xiaomi LYWSD03MMC, BTHome v2) on boards with PSRAM, such as the LOLIN S3 Mini
  • Optional notice when a new release is out, checked by your browser and off until you allow it
  • SAT: an embedded heating controller, opt-in and off by default
  • Works behind a reverse proxy and in the Home Assistant sidebar

2.0 is a beta until the 2.0.0 release. It changes MQTT topics, REST fields and settings compared with 1.x. Save your settings before you flash and read the release notes, including the breaking changes. If you need a gateway that just works, stay on 1.x for now.

Works with

Your platform, your choice

MQTT is the common language. Home Assistant finds the gateway by itself; other platforms use their MQTT support.