Skip to main content

OpenTherm Gateway smart home integration, free and open source

OpenTherm Gateway integration for Gladys Assistant

OpenTherm boilers and thermostats through the OpenTherm Gateway (OTGW), locally.

Overview​

This integration brings your OpenTherm boiler and room thermostat into Gladys through an OpenTherm Gateway (OTGW), the board that sits on the two OpenTherm wires between them. Gladys sees what they say to each other (flame, temperatures, modulation, water pressure, faults), can impose a room setpoint on the thermostat, send it the outside temperature and drive the hot water. Everything stays on your local network.

Unofficial integration, not affiliated with the OpenTherm Association, NodoShop or the boiler and thermostat brands.

Requirements​

  • Gladys Assistant 5.3.0 or later.
  • An OpenTherm Gateway wired between an OpenTherm room thermostat and an OpenTherm boiler.
  • Its serial port reachable on the network: on a NodoShop OTGW board, turn on Legacy TCP port 25238 in its web page; on a USB or serial gateway, share the port with ser2net in raw mode.
  • To change the room setpoint from Gladys: a thermostat that supports the remote override (most modulating OpenTherm thermostats) and the gateway in gateway mode (GW=1), not monitor mode.

Configuration​

Gateway​

  • Address of the gateway: the IP address or the name of the OTGW board, or of the machine running ser2net. localhost does not work: Gladys runs the integration in its own container.
  • TCP port: 25238 on a NodoShop board, the port of ser2net otherwise.
  • Press Test the gateway: it shows the firmware of the gateway, its mode, and the OpenTherm values already seen. If none is seen yet, check that the thermostat is wired to the gateway and the boiler is on.

Setpoint and language​

  • Setpoint set from Gladys: until the next program change of the thermostat, or until cancelled.
  • Language of the names and texts: Gladys does not tell integrations the language of its users; choose the one of the device and feature names and of the error messages.
  • Detailed log: writes every command sent to the gateway and its answer, to look into a problem.

Usage​

Devices​

In the Discover tab, add the Boiler and the Room thermostat. Their features are the OpenTherm values your thermostat and your boiler actually exchange: flame, heating and hot water active, fault and its details, modulation, flow, return, hot water, outside and exhaust temperatures, water pressure, burner and pump starts and hours, room temperature and setpoint. When a new value shows up (a thermostat asks for some values only from time to time), press Update in the Discover tab.

You can change the room setpoint (5 to 30 °C), the hot water target (35 to 70 °C, at most once a minute: the gateway keeps it in its memory) and turn the hot water on or off.

Widgets​

The two widgets of the integration (illustration generated by the integration's code, not a screenshot)

  • Boiler: flow, return, room and hot water temperatures, modulation, pressure, then the fault, the burner, heating and hot water states, and the setpoint imposed by Gladys with a Back to the program button.
  • Boiler curves: flow, return, room and hot water temperatures over 24 hours, 3 or 7 days.

Scenes​

Triggers: the boiler reports a fault (with its code and the flags low water pressure, gas or flame, air pressure, water too hot), the fault is cleared, the boiler asks for maintenance, the thermostat is disconnected, the gateway stops answering, the gateway answers again.

Actions: impose a room setpoint, give the thermostat its program back, send the outside temperature, stop sending it, set the hot water (on, off, as the thermostat decides), set the maximum flow temperature.

Examples:

  • When the boiler reports a fault → send me a message with the fault code.
  • When the outdoor temperature sensor changes → send the outside temperature to the thermostat.
  • When everybody leaves → impose 17 °C until cancelled; when someone comes back → give the thermostat its program back.

Troubleshooting​

  • The gateway does not answer: check the address and the port, and that the TCP serial port is turned on. OTmonitor or another program connected to the same port may hold the only connection.
  • Something answers, but not an OpenTherm Gateway: wrong port (the web page is on 80, the telnet log on 23), or ser2net not in raw mode.
  • Monitor mode: the gateway only listens; switch it to gateway mode (GW=1) from OTmonitor or the OTGW web page.
  • The setpoint comes back: the thermostat does not support the remote override, or a temporary setpoint ended at its next program change.
  • A value is missing: your thermostat never asks the boiler for it.
  • Look at the Logs tab of the integration; turn on Detailed log to see every command and its answer, and attach these lines to an issue on GitHub.

Configuration settings​

These are the settings OpenTherm Gateway asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Your OpenTherm GatewaysectionNoThe OpenTherm Gateway (OTGW, by Schelte Bron) sits on the two wires between your OpenTherm room thermostat and your boiler. Gladys reads it through its serial port on the network: on a NodoShop OTGW board, turn on “Legacy TCP port 25238” in its web page; on a USB or serial gateway, share the port with ser2net (raw mode). Everything stays on your local network. Not affiliated with the OpenTherm Association, NodoShop or the boiler brands.
Address of the gatewaystringNoThe IP address or the name of the OTGW board, or of the machine running ser2net (“localhost” does not work: Gladys runs the integration in its own container).
TCP portnumberNo25238 on a NodoShop OTGW board; the port you chose in ser2net otherwise.
Changing the setpointsectionNoWhen you change the room setpoint in Gladys, the gateway imposes it on the thermostat (remote override). The thermostat must support it: most modulating OpenTherm thermostats do. The gateway must be in gateway mode, not monitor mode.
Setpoint set from GladysselectNo
Language of the names and textsselectNoGladys does not tell integrations the language of its users: choose the one of the device and feature names and of the error messages.
TroubleshootingsectionNoThe integration writes what it does in the Logs tab of this page: connection to the gateway, lost connection with the reason, values found, commands accepted or refused.
Detailed logbooleanNoAlso writes every command sent to the gateway and its answer. Turn it on to look into a problem, then off again.

How to install OpenTherm Gateway in Gladys​

  1. In Gladys, open Integrations: OpenTherm Gateway appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/william-de71/gladys-opentherm-gateway:0.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/William-De71/gladys-opentherm-gateway.

OpenTherm Gateway requires Gladys >=5.3.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

OpenTherm Gateway is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by William-De71, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂