Skip to content

Frequently Asked Questions

Robert van den Breemen edited this page Nov 9, 2026 · 4 revisions

Nederlands: Veelgestelde vragen

Frequently asked questions

🟢 New user · 🟡 Tinkerer · 🔵 Developer

These are the questions people asked most in the community over the last years. The short answer is here. The full explanation is on the linked page.

Your question is not here? Ask it on Discord or open a GitHub issue.

Contents

New user 🟢

  1. What is the OTGW and what does this firmware do?
  2. What hardware do I need?
  3. Will it work with my boiler and thermostat?
  4. How do I connect the OTGW?
  5. How do I install the firmware for the first time?
  6. How do I connect to WiFi or change WiFi later? Can I use 5 GHz?
  7. I cannot find the web page of my OTGW
  8. How do I upgrade without losing my settings?
  9. What do the blue LEDs mean?
  10. The OTGW sees no thermostat or no boiler
  11. My OTGW keeps restarting
  12. How do I ask for help and which logs do you need?

Tinkerer 🟡

  1. How do I connect the OTGW to Home Assistant?
  2. An entity I expect does not show up or shows unknown
  3. Entities are unavailable or appear twice
  4. Can I use the built-in OpenTherm Gateway integration of Home Assistant?
  5. Does it work with Domoticz, Homey, openHAB or Node-RED?
  6. How do I send a command to the OTGW?
  7. My thermostat ignores the room setpoint I send
  8. How do I control the flow temperature myself?
  9. How do I send the outside temperature to my thermostat?
  10. How do I control hot water?
  11. A value is missing or shows ??? or ignored
  12. Modulation shows 0 percent. Is my boiler off?
  13. What is the difference between gateway mode and monitor mode?
  14. What do Error 01 to Error 04 in the log mean?
  15. Which PIC firmware should I run and how do I update it?
  16. Where do I connect a DS18B20 temperature sensor?
  17. How do I use OTmonitor or the Domoticz plugin with this firmware?
  18. Can I read or change boiler settings through the OTGW?
  19. My boiler switches on and off a lot. Can the OTGW fix that?

Developer 🔵

  1. Where is the REST API and why do old examples fail?
  2. How do I talk to the PIC directly over the network?
  3. What does the telnet debug port show?
  4. How do I build the firmware myself?
  5. Can I put my own files on the file system?
  6. Is there an endpoint for Telegraf or InfluxDB?

New user

🟢 New user

1. What is the OTGW and what does this firmware do?

The OpenTherm Gateway (OTGW) sits between your thermostat and your boiler. OpenTherm is the language they use to talk to each other. The OTGW reads every message and can change some of them.

Schelte Bron designed the OTGW. Nodo Shop sells it as a kit. A small chip on the board, the PIC, does the OpenTherm work.

This firmware runs on the WiFi board on the OTGW: a Wemos D1 mini with an ESP8266 chip. It gives you a web page, MQTT for Home Assistant and other systems, a REST API, and a network port for OTmonitor.

More: Home, Schelte's OTGW site

2. What hardware do I need?

  • An OTGW board from Nodo Shop.
  • A Wemos D1 mini (ESP8266).
  • A good 5 V USB power adapter and a short USB cable. A weak supply often causes restarts. Schelte's troubleshooting page says: if you measure less than 4.75 V on the board, use another cable.
  • Boards before v2.3 need a 19 to 24 V DC adapter. Check the manual of your board version.
  • A boiler and a thermostat that both speak OpenTherm.

The ESP8266 only works with 2.4 GHz WiFi. The OTGW with the Ethernet module (USR-TCP232) has no ESP8266, so this firmware does not run on it.

More: Versions of the OTGW hardware

3. Will it work with my boiler and thermostat?

Both must speak OpenTherm. A simple on/off thermostat (two wires, no OpenTherm) sends nothing the OTGW can read.

Check the equipment matrix on Schelte's site. It lists boilers and thermostats that people uploaded a log for. A missing model does not mean it fails: it only means nobody uploaded a log yet.

More: Equipment matrix

4. How do I connect the OTGW?

  1. Connect the thermostat wires to the Therm contacts.
  2. Connect the boiler wires to the Boiler contacts. Do not swap the two connectors.

Polarity does not matter: OpenTherm wires can go either way round.

Some thermostats use a separate boiler module (for example Toon). Then place the OTGW between the boiler and that module. Never place it between the module and the display.

More: Versions of the OTGW hardware

5. How do I install the firmware for the first time?

Download the latest release. Use flash_otgw.bat (Windows) or flash_otgw.sh (Linux, macOS) to flash over USB. The script flashes both files: the firmware (*.ino.bin) and the file system (*.littlefs.bin).

Note: this script erases the whole chip. WiFi and settings are gone. That is fine for a first install. For upgrades, use OTA (an upgrade over WiFi, see question 8).

More: How to install the firmware, Releases

6. How do I connect to WiFi or change WiFi later? Can I use 5 GHz?

First time: the OTGW opens its own WiFi network, for example OTGW-AA:BB:CC:DD:EE:FF. It has no password. Connect to it and open http://192.168.4.1. Choose your home network and enter the password. After 240 seconds without a choice, the OTGW restarts.

Change later: click "Reset WiFi" next to the SSID on the Settings page. Or go to Advanced > File system contents and click "Reset Wireless". The OTGW restarts and opens its setup network again.

5 GHz: no. The ESP8266 only supports 2.4 GHz.

More: Configure WiFi

7. I cannot find the web page of my OTGW

  • Try http://otgw.local. This needs mDNS (finding devices by name on your network), and not every device supports it. Did you change the hostname? Then use <hostname>.local.
  • On Windows, also try http://OTGW (or your own hostname).
  • Look in your router's list of connected devices. The OTGW shows up with its hostname (default OTGW). Then open the IP address in your browser.

More: Configure WiFi

8. How do I upgrade without losing my settings?

Upgrade over WiFi (OTA):

  1. Go to Advanced > File system contents and click "Update Firmware".
  2. Flash the *.ino.bin file with "Flash Firmware". Wait for the restart.
  3. Flash the *.littlefs.bin file with "Flash LittleFS".

Your settings and WiFi stay. After the file system flash, the OTGW writes its settings back by itself. Keep "Download backups" ticked, so you also have a backup.

Coming from 1.3.x or older? Then use the opposite order: first *.littlefs.bin, then *.ino.bin. The file system layout changed in 1.4.0, so you may lose your settings. Save settings.ini first.

On a phone or small tablet the "Update Firmware" button is hidden. Open http://<ip-of-your-otgw>/update directly instead.

More: Upgrade over the air

9. What do the blue LEDs mean?

  • LEDs stay on: the OTGW is starting or waiting for WiFi.
  • LED1 switches on or off every second: the firmware is running.
  • LED2 blinks: a message came in from the PIC. Only a NodeMCU has LED2. A Wemos D1 mini has only LED1.

You can switch the blinking off with the setting "Heartbeat LED".

More: The meaning of the blue LEDs

10. The OTGW sees no thermostat or no boiler

In the log, lines with T come from the thermostat and lines with B from the boiler. No T or B lines means no OpenTherm signal arrives.

  • Check the wiring and the screw terminals.
  • Check that the boiler is switched on. The boiler side of the OTGW gets its power from the boiler.
  • Check the power supply (see question 11).
  • Errors in the log? See question 26.

Schelte's site has a step-by-step troubleshooting guide and a special diagnose firmware for the PIC.

More: How to debug, Troubleshooting, Diagnose firmware

11. My OTGW keeps restarting

Often the cause is the power supply. Try another good 5 V adapter and cable first.

  • The PIC restarts: the log shows OpenTherm Gateway x.y. Send the command PR=Q to see why. The answer B means brown-out: the voltage dropped too low.
  • The ESP restarts: see Advanced > Debug Information. It shows "Number of Reboots" and the last crash under "Stored Crash / Reboot Diagnostics".
  • Did you turn on "Scheduled Nightly Restart"? Then one restart per night is normal.

More: How to debug, Power supply checks

12. How do I ask for help and which logs do you need?

Ask on Discord or open a GitHub issue. A problem is only taken into analysis with a capture in which it actually happened: the OpenTherm traffic and the firmware log. A screenshot or a short description is not enough. Send:

  • A capture made with the capture script. On 2.x it is in the flash zip: capture-mqtt-debug.bat (Windows) or capture-mqtt-debug.sh (Linux, macOS); post the upload zip it makes. On 1.x use capture-mqtt-debug.bat (Windows) or capture-otgw.sh (Linux, macOS) from the release files. See How to debug and ask for help.
  • Start it before the problem happens and let it run until it has happened.
  • Say which firmware version and PIC version you run.

Note: a capture contains your WiFi name, MQTT user name and broker address. Check it before you share it in public.

More: How to debug


Tinkerer

🟡 Tinkerer

13. How do I connect the OTGW to Home Assistant?

Use MQTT. MQTT is a message system: a broker (a small server) passes messages between devices.

  1. Install an MQTT broker, for example the Mosquitto add-on in Home Assistant.
  2. In the OTGW Settings, fill in "MQTT Broker Host/IP", "MQTT User" and "MQTT Password".
  3. Tick "MQTT Enabled". After a fresh install it is off.
  4. Keep "MQTT Auto-Discovery Prefix" on homeassistant.

Home Assistant then finds the OTGW by itself.

More: Home Assistant and others

14. An entity I expect does not show up or shows unknown

  • Is "MQTT Enabled" ticked?
  • The OTGW creates an entity only after it has seen that value on the OpenTherm bus. Some values take a few minutes.
  • The OTGW only sees what your thermostat asks the boiler. If the thermostat never asks for a value, it does not appear. See question 23.
  • Unknown: values are not kept (retained) on the broker. When Home Assistant restarts, the OTGW sends each value again as soon as it sees it on the OpenTherm bus. An unchanged value is also sent again once per "MQTT Interval" (default 60 seconds).

More: Home Assistant and others

15. Entities are unavailable or appear twice

Unavailable: all entities go unavailable when the OTGW loses its connection to the MQTT broker. Check WiFi and the broker.

Twice, or with _2: Home Assistant often keeps an old device from an earlier setup. Remove the old device, clear the old retained discovery messages, and restart Home Assistant. The guide below explains this step by step.

More: Clean up stale MQTT topics

16. Can I use the built-in OpenTherm Gateway integration of Home Assistant?

Yes. That integration talks to the OTGW over port 25238. This port is off by default.

  1. Tick "Legacy: enable otmonitor TCP port 25238" in the Settings.
  2. In Home Assistant, add the "OpenTherm Gateway" integration with socket://<ip-of-your-otgw>:25238.

Do not use this integration and MQTT discovery at the same time. Then you get double entities and two systems that both send commands. Choose one.

More: Home Assistant and others

17. Does it work with Domoticz, Homey, openHAB or Node-RED?

Yes, all through MQTT.

  • Domoticz: add the hardware "MQTT Auto Discovery Client Gateway with LAN interface".
  • openHAB: use the MQTT binding and accept the found Things from the Inbox.
  • Homey: use the OpenTherm Gateway MQTT app.
  • Node-RED: read the topics under <prefix>/value/<node-id>/ and send commands to <prefix>/set/<node-id>/.

<prefix> is the setting "MQTT Base Topic" (default OTGW). <node-id> is "MQTT Unique ID" (default otgw- plus the MAC address, for example otgw-AABBCCDDEEFF).

More: Home Assistant and others, Domoticz guide, openHAB guide

18. How do I send a command to the OTGW?

A command looks like XX=value, for example TT=20.5. You can send it in three ways:

  • Web page: type it in the command box under the log and click "Send".
  • MQTT: publish TT=20.5 to <prefix>/set/<node-id>/command (see question 17 for <prefix> and <node-id>). There are also named topics, such as .../setpoint with payload 20.5.
  • REST: POST /api/v2/otgw/commands with {"command":"TT=20.5"}.

Test a command by hand first. Then automate it.

More: Send commands, MQTT set commands, All PIC commands

19. My thermostat ignores the room setpoint I send

TT changes the setpoint until the next program change. TC changes it permanently. TT=0 or TC=0 cancels.

This only works if your thermostat asks for the remote override (OpenTherm message 9). The OTGW puts your value in the answer to that question. Some thermostats never ask, and then it cannot work.

  • Some thermostats need permission first. For a Remeha iSense, allow remote control in the installer menu.
  • It can take a while before the thermostat shows the new value. With some thermostats this takes 10 minutes or more.
  • Send the command once. Do not repeat it every few seconds.

Remeha iSense: TC=0 does not bring back the clock program. This is a known quirk. The iSense takes over a remote setpoint once and does not follow later changes on message 9 reliably; that is why the PIC firmware clears an old override before it sets a new one. If TC=0 does nothing:

  1. Check that the iSense accepts external input: Menu > Settings > Installer > Remote input (Dutch menu: Externe ingang) must be set to allow. Allow is the factory setting, so this only matters if someone changed it.
  2. Give it a few minutes. The thermostat asks for messages 9 and 100 at its own pace, not every second.
  3. Still on the override? Send SR=99:0,1. Message 99 is the remote override operating mode, and a low byte of 1 means "Auto (time switch program)" in the OpenTherm specification. A community member confirmed that this sends the iSense back to its clock program.
  4. A configured response stays active until you clear it. Once the iSense is back on its program, send CR=99.

Over MQTT, send these as the payload of <base topic>/set/<node-id>/command. Does it still not work, share a few minutes of log around the command (see question 12).

Sources: OpenTherm specification v4.2, MsgID 9 and 99, PIC commands TC, SR, CR, equipment matrix (every listed iSense version reads messages 9, 99 and 100), the Remeha iSense installation manual (installer settings table, Externe ingang), and the OTGW Discord support channels.

More: TT command, Send commands

20. How do I control the flow temperature myself?

  • CS=<temp> sets the control setpoint: the water temperature the boiler aims for. CS=0 gives control back to the thermostat.
  • A CS value of 8 or higher must be repeated at least every minute. Otherwise the OTGW gives control back to the thermostat. This is a safety check in case your program crashes. It exists since PIC firmware 5.2. Up to 5.7 (PIC16F88) and 6.4 (PIC16F1847), lower values expire too.
  • To stop heating: send a low CS and CH=0.
  • MM=<0-100> limits the maximum modulation. MM=0 means minimum power, not off. A non-numeric value (for example MM=T) clears it.

Warning: taking over from the thermostat can confuse its own control. Test with care.

More: CS command, MQTT set commands

21. How do I send the outside temperature to my thermostat?

Send OT=<temp>, for example OT=7.3. Allowed values are -40 to +64. A non-numeric value (for example OT=-) clears it.

Over MQTT: publish 7.3 to <prefix>/set/<node-id>/outside.

The thermostat only uses it if it asks for the outside temperature. Not every thermostat does.

More: OT command, MQTT set commands

22. How do I control hot water?

  • HW=1 tells the boiler to keep water warm, HW=0 not to. Any other single character (for example HW=T) gives control back to the thermostat. This only works if the boiler lets the room unit control this.
  • HW=P heats the water once (push). PIC16F1847 only, and experimental.
  • SW=<temp> sets the hot water temperature. SW=0 gives it back to the thermostat. Not every boiler supports it.
  • BW=1 blocks all hot water functions, for example when a solar boiler makes your hot water. BW=0 gives it back to the thermostat. PIC16F1847 only.

More: HW command, BW command

23. A value is missing or shows ??? or ignored

  • Missing: the OTGW only sees what the thermostat asks. Send AA=<id> once to let the OTGW ask the boiler for that message itself. The PIC remembers this, also after a power cut. DA=<id> removes it again.
  • Do not put AA in the boot command. Each AA adds one more entry to the PIC's list (32 entries at most). With AA in the boot command, the list grows at every restart until it is full.
  • AA needs free slots. Read the "additional" section on Schelte's site.
  • ???: this firmware does not show ???. Other tools show it when the boiler answers "Unknown-Data-Id": the boiler does not support that value. In the log of this firmware you see Unknown-Data-Id with "(boiler does not implement)" instead.
  • <ignored>: a label that this firmware adds in the log. The OTGW replaced this message with its own version: the next line (R or A) shows what was really sent on. The label also shows on a message with a parity error. It is not a decision by the boiler.

More: AA command, Free slots

24. Modulation shows 0 percent. Is my boiler off?

Not necessarily. Modulation (OpenTherm message 17) is relative: a percentage between the minimum and the maximum power of the boiler. So with the flame on, 0% means the boiler burns at its lowest power.

To see whether the boiler is really burning, look at the flame status instead.

More: OpenTherm specification

25. What is the difference between gateway mode and monitor mode?

  • Gateway mode (GW=1): the OTGW receives each message and sends it on. It can change messages. You need this mode for commands such as TT or CS.
  • Monitor mode (GW=0): the signal goes straight through. The OTGW only listens and cannot change anything. This is useful to test the wiring.

The PIC stores the mode, so it keeps it after a restart. On a PIC16F1847 this works from firmware 6.3. The web page shows the mode at the top of the OpenTherm Monitor panel. If you want to set it at every start, use "Boot Command" with GW=1 and tick "Run Boot Command".

More: GW command

26. What do Error 01 to Error 04 in the log mean?

The PIC reports these when it receives a broken OpenTherm message.

  • Error 01: the signal changes level too fast. Off by default.
  • Error 02: the stop bit was 0 instead of 1.
  • Error 03: a bit did not arrive when expected. Up to about one per minute is not a problem.
  • Error 04: a parity error. Many of them mean the data may be wrong.

Do you see many Error 01 or Error 03 lines? Then the reference voltage of the PIC may be wrong. PR=V shows the setting and VR=<0-9> changes it.

More: Errors, VR command, Troubleshooting

27. Which PIC firmware should I run and how do I update it?

There are two PIC chips:

  • PIC16F88: gateway firmware 5.x (or older).
  • PIC16F1847: gateway firmware 6.x.

To update: go to Advanced > PIC firmware. Click ↺ to download the new version, then ↓ to flash it. Flashing the ESP does not change the PIC.

Flashing the PIC with OTmonitor over the network is discouraged.

More: PIC firmware, PIC changelog

28. Where do I connect a DS18B20 temperature sensor?

You have two options:

  • On the Wemos (ESP): connect it with a pull-up resistor, tick "GPIO Sensors Enabled", and restart. The OTGW finds sensors only at startup. The values go to MQTT and Home Assistant.
  • On the PIC: the PIC uses the value in the OpenTherm messages. It is the outside temperature or the return water temperature (TS=O or TS=R). With a PIC16F1847 and firmware 6.6 or newer, the setting "PIC Temperature Sensor" also publishes the reading to MQTT.

More: DS18B20 sensors

29. How do I use OTmonitor or the Domoticz plugin with this firmware?

Both connect to port 25238. It is off by default: tick "Legacy: enable otmonitor TCP port 25238". Then connect OTmonitor to <ip-of-your-otgw>:25238. Two clients can connect at the same time.

The Domoticz plugin sends PS=1. Then the PIC stops sending each message. It only sends a summary line when the plugin asks for one. The firmware reads that summary line and publishes its values to MQTT. You get fewer updates than with normal messages. Send PS=0 to go back.

More: How to use with OTmonitor, OTmonitor

30. Can I read or change boiler settings through the OTGW?

You can read some values. Some boilers offer extra parameters (Transparent Slave Parameters). PM=10 asks for them. PM=12 asks for the fault history (the error memory). With a PIC16F1847, TP reads or writes a single parameter.

Each boiler maker decides what these parameters mean, and not every boiler supports them. Usually you change boiler settings on the boiler itself.

More: PM command, TP command

31. My boiler switches on and off a lot. Can the OTGW fix that?

Not by itself. Schelte says it like this: the controller (your thermostat) must prevent short cycling (switching on and off too often). The firmware does not do that. Check the settings of your thermostat and boiler, or ask your installer.


Developer

🔵 Developer

32. Where is the REST API and why do old examples fail?

The API lives under /api/v2/. Old examples with /api/v0/ or /api/v1/ get HTTP 410: those versions were removed in 1.2.0.

Example: curl http://otgw.local/api/v2/device/info

If you set a "Protected Endpoints Password", changes (and reading the settings) need HTTP Basic Auth with user admin.

More: How to use the REST API, API reference

33. How do I talk to the PIC directly over the network?

  1. Tick "Legacy: enable otmonitor TCP port 25238".
  2. Open a TCP connection to <ip-of-your-otgw>:25238.
  3. You receive every line the PIC sends.
  4. Send a command and end it with a carriage return (\r).

Two clients can connect. Only one can write at a time. This is the same port that OTmonitor and the Home Assistant integration use.

More: Send commands

34. What does the telnet debug port show?

Connect with telnet (for example PuTTY) to port 23. You see the debug output of the firmware. Press h for the menu. Each key does one thing:

  • 1 to 6: switch debug output on or off for OpenTherm, REST, MQTT and more.
  • D: dump all settings and state.
  • F: send MQTT discovery for all values again.
  • R: restart the OTGW.

More: How to debug

35. How do I build the firmware myself?

Clone the repository with git (git clone --branch v1.7.7 https://github.com/rvdbreemen/OTGW-firmware.git). Do not use a ZIP download, because the build script gets two libraries with git. Do not add --recurse-submodules: one submodule is private and the clone then fails. Then run build.bat (Windows) or ./build.sh (Linux, macOS). Besides git you only need Python 3. The script installs arduino-cli, the ESP8266 core 2.7.4 and all libraries. It creates the .ino.bin and the .littlefs.bin.

More: How to compile

36. Can I put my own files on the file system?

Yes. Go to Advanced > File system contents and use the "Upload File" box.

  • Your own PIC hex file goes into the folder /pic16f88/ or /pic16f1847/, not the root. Then it shows up on the PIC firmware page.
  • A .bin file uploaded here is only stored, not flashed. Use "Update Firmware" for that.
  • A "Flash LittleFS" update replaces the whole file system. Your settings and sensor labels come back, but other files you added do not. Keep a copy.

More: Upload files to LittleFS

37. Is there an endpoint for Telegraf or InfluxDB?

Yes: GET /api/v2/otgw/telegraf. It returns the same data as /api/v2/otgw/otmonitor.

It is rate limited: about one request per 1.5 seconds. Faster requests get HTTP 429 with a Retry-After header. So do not poll more often than once every 2 seconds.

More: How to use the REST API

Clone this wiki locally