Skip to Content

OTGateway firmware

OTGateway is a third-party OpenTherm controller by Laxilef that runs on the ESP32-C6 microcontroller in the THRM ONE. Installing it replaces the THRM ONE's ESPHome firmware and turns the device into a standalone OpenTherm gateway that you configure in a browser, without Home Assistant.

Which build to use

Flash the ESP32 C6 (Ethernet) build. It is the only OTGateway build that has both the ESP32-C6 target and the W5500 Ethernet support the THRM ONE needs.

💡

Ethernet support was recently introduced, written specifically for the THRM ONE. It is not yet in a stable release, so the Unstable release must be used until it's ready.

The images in that release are named for the board's build environment, esp32_c6_ethernet. The web flasher writes both for you; the addresses matter only if you flash over USB with Espressif's Flash Download Tool.

File

Address

Purpose

firmware_esp32_c6_ethernet_2.0.0-dev.factory.bin

0x0

Firmware, including the bootloader and partition table. Used for the first installation.

filesystem_esp32_c6_ethernet_2.0.0-dev.bin

0x370000

The web interface and filesystem.

Both images are required, and both have to come from the same release. This build's flash layout fills the board's 4 MB exactly, so it is the correct image set for the THRM ONE's ESP32-C6.

Flash it

  1. Connect the THRM ONE to your computer with a USB-C cable. That port carries power, so no other supply is needed.
  2. Open the OTGateway web flasher in Chrome or Edge, which support Web Serial.
  3. Select Version Unstable, then Board ESP32 C6 (Ethernet).
  4. Click Connect, choose the board's serial port in the browser dialog, then click Flash and wait for the write to finish.
  5. Restart the device once flashing completes.

This replaces the THRM ONE's ESPHome firmware, including its saved Wi-Fi credentials and its pairing with Home Assistant. To go back to the supported firmware, reflash the ESPHome factory image for your THRM ONE: its factory image carries its own bootloader and partition table, so there is nothing to undo in OTGateway first. Make a note of your Wi-Fi details and your Home Assistant setup before you start.

Configure over Wi-Fi

Ethernet cannot be used for the first configuration as the Ethernet port is not configured out of the box. OTGateway cannot bring Ethernet up until it knows which GPIO are used by the W5500 chip, so the initial setup must be done through the device's own access point.

  1. On first boot the device raises a Wi-Fi access point.
  2. Join that access point from a phone or laptop, and open http://192.168.4.1.
  3. Under Network settings → Wi-Fi, choose your home network from the scan results, or enter its SSID and password. Leave Channel at 0 for automatic selection, then save. The device starts connecting immediately.
  4. Reconnect your computer to your home network, and open the address your router assigned to the device.

Keep the Wi-Fi details configured after you move to Ethernet. The device returns to them if the wired link goes away, as described further down.

Configure the GPIOs

Two blocks have to be set before the device does anything useful. The values below are the THRM ONE pinout.

OpenTherm

Under OpenTherm settings, set the two bus pins.

Setting

GPIO

THRM ONE signal

In GPIO

6

OpenTherm receive

Out GPIO

7

OpenTherm transmit

Ethernet

Under Network settings → Ethernet, enter all six W5500 pins. The firmware has no defaults for them, and Ethernet will not start until every one is filled in.

Field

GPIO

THRM ONE signal

SPI clock GPIO

22

W5500 SCK / CLK

SPI MOSI GPIO

20

W5500 MOSI

SPI MISO GPIO

21

W5500 MISO

SPI CS GPIO

23

W5500 chip select

Interrupt GPIO

19

W5500 INT

Reset GPIO

18

W5500 reset

Optional

  • Status LED, GPIO1. The red LED on the front of the device. It is driven high to light.
  • Room temperature, GPIO4. A 10 k NTC (B 3950) against a 10 k pull-up, read on the ADC. Enter it as an NTC sensor under Sensors settings, with 10 k nominal, 10 k reference resistance and a 3950 beta factor, then check the reading against a known temperature.

Check the OpenTherm connection

Open the Dashboard and confirm that OpenTherm connection is active and that the boiler's own readings appear. If it stays inactive, recheck the two OpenTherm pins against the table above, since that pair is the easiest one to swap by mistake.

Switch the connection over to Ethernet

Do this last, while the device is still reachable over Wi-Fi.

  1. Save the six W5500 pins under Network settings → Ethernet.
  2. Plug an Ethernet cable into the THRM ONE, and into your switch or router.
  3. Under Network settings, select Ethernet as the connection method and save. The device reconnects after about five seconds, on the address the wired interface was given.
  4. On the main page, check that Connection reads Ethernet. The Wi-Fi SSID and signal rows are hidden in this mode.

Differences from the ESPHome firmware

  • No Thread/Zigbee. OTGateway supports WiFi and Ethernet only.
  • No native ESPHome entities. OTGateway speaks its own REST API and MQTT, and can publish Home Assistant entities over MQTT. Those are not the ESPHome entities the THRM ONE publishes, so automations and dashboards built around the ESPHome configuration do not carry over.
  • Heating control is configured on-device. Setpoints, weather compensation, sensors and integrations live in OTGateway's web interface, not in the THRM ONE's YAML configuration or Home Assistant.
  • The IP address changes. The Ethernet interface has its own MAC address, so a DHCP reservation made for the Wi-Fi module does not apply to it.

Further reading: