ESPHome Configuration
The THRM ONE ships with ESPHome pre-flashed. Everything the device does - the OpenTherm conversation with the boiler, the Ethernet and WiFi links, the status LED - is described in a YAML configuration that you can read, change and reinstall. This page explains how that configuration is put together, and which parts of it you would touch to change something.
If you have not powered the device yet, start with the setup guide.
What is ESPHome?
ESPHome turns a microcontroller into a smart-home device from a text file. You describe the hardware and the behaviour you want in YAML, ESPHome compiles it into firmware, and that firmware runs on the device itself. It is open source, it runs entirely locally, and Home Assistant integrates with it natively - every sensor, switch and number the THRM ONE exposes appears in Home Assistant as an entity, without a plugin or a bridge.
The shipped firmware
The factory configuration is esphome/thrm-one.yaml in the Codeberg repository. It connects over Ethernet and falls back to WiFi with a hotspot when the cable is out, provisions through Bluetooth or serial Improv, drives the OpenTherm bus and the status LED, and serves the local web interface, the ESPHome native API and OTA updates.
How the configuration is split
The configuration is not one file. thrm-one.yaml imports packages from the repository, pinned to the release tag it names - so a device flashed from a copy of that file builds exactly the firmware the release was tested as, and nothing drifts between what is published and what runs. The files sit in two directories: core/ holds the hardware and the behaviour, connectivity/ holds the three alternative network transports.
| File | Contents |
|---|---|
The entry point: the package that imports the other files, the web server, the API, OTA and the update entity. | |
The hardware only: ESP32-C6, the W5500 Ethernet controller, IPv6, the OpenTherm master, the NTC and the water leak input, the LED PWM output. | |
The boiler entities - temperatures, modulation, pressure, the flag binary sensors, the setpoint numbers and the enable switches. | |
The LED state machine, including the numbered failure codes. | |
The link layer: WiFi with a fallback hotspot, plus the Bluetooth and serial Improv helpers. This is what the shipped configuration imports. | |
The link layer alternative for the 802.15.4 radio: Thread. | |
The link layer alternative for the 802.15.4 radio: Zigbee. |
One link layer at a time
The hardware file carries no network transport of its own, which is why the link is a file of its own: swapping one entry in the list of files the configuration imports is the whole difference between a WiFi, a Thread and a Zigbee build. Everything else, and the release the files are pinned to, stays the same.
packages:
main:
refresh: 4h
url: https://codeberg.org/elvinhome/thrm-one
ref: v${version}
files:
- esphome/core/base.yaml
- esphome/core/status-led.yaml
- esphome/core/opentherm.yaml
- esphome/connectivity/wifi.yaml
# or connectivity/thread.yaml, or connectivity/zigbee.yaml
Only one of the three can be active, as they all use the same radio. They can all be used in combination with Ethernet. WiFi and OpenThread can be configured as a fallback that activates if Ethernet is unavailable. Zigbee operates differently, and will appear as two different devices when used concurrently. See the Zigbee page for more details.
Customising the THRM ONE
The ESPHome Device Builder
The Device Builder is the tool for editing and installing the configuration: a desktop application, or a Home Assistant add-on. Once the THRM ONE is on your network it appears there automatically with its configuration ready for editing.
OTA and USB
The Device Builder installs over the network - ESPHome OTA, plus a second HTTP OTA channel that pulls the published firmware from the repository's releases. A device that is not reachable can be flashed over USB-C. Do not use ESPHome Web to flash the THRM ONE: it installs a blank configuration over the factory firmware.
Behaviour that lives in the configuration
- The control setpoint starts at 0, so central heating stays off until Home Assistant writes a setpoint. There is never a NaN on the bus.
- Home Assistant owns the control room temperature (ID24) while the API link is up - the multizone blueprint writes the controlling zone's value. When the link drops, the configuration takes over and feeds the on-board NTC reading in, so the boiler keeps a sane room temperature instead of the last value it was told.
- The OpenTherm polling is budgeted: seven IDs keep a full conversation cycle near 0.9 seconds. An ID the boiler does not answer is retried forever and starves the bus, so add one polled ID at a time and confirm there is no Timeout while waiting for response in the logs before adding the next.
ESPHome components used
The configuration is built from standard ESPHome components. Each is linked below with a short description of how the device uses it.
| Component | How the THRM ONE uses it |
|---|---|
The ESP32-C6 the device runs on, built with the ESP-IDF framework. | |
The WIZnet W5500 over SPI: the primary network link. | |
The fallback link and its hotspot, in the default build. | |
IPv6, which the Thread file needs, and the interface priority. | |
The master side of the boiler bus, on GPIO6 and GPIO7 behind the optocouplers. | |
ADC, resistance and NTC sensors | The on-board 10 k NTC, converted to a backup room temperature. |
The water leak input, pulled up and read active low. | |
The single red status LED and its effects. | |
Provisioning the WiFi credentials, in the default build. | |
How Home Assistant talks to the device. | |
The local interface, with its sorting groups for boiler, heating, hot water and diagnostics. | |
Wireless updates, including the update entity that compares against the released manifest. |
Which link layer the firmware uses is covered on its own page - Thread and Zigbee in this section.
The repository
The whole configuration is open source and hosted on Codeberg, under esphome/: codeberg.org/elvinhome/thrm-one. It targets ESPHome 2026.10.0 or higher. The ESPHome configurations are licensed under the GPLv3, the hardware under CERN-OHL-S.