Open source ESP32 firmware that replaces the proprietary zone controller of a hydronic heating system.
OpenHydronic turns a cheap ESP32 relay board into the zone controller of an underfloor heating or radiator installation, in place of a Uponor, Danfoss, Watts or Salus box. It drives the thermal actuators and the boiler's room-stat contact, enforces the hydraulic protections that keep the hardware alive, and speaks the encrypted ESPHome native API to Home Assistant. When the server or the network goes down it keeps heating the house on its own, with a standalone web UI on port 80.
The board deliberately knows nothing about temperatures or schedules. Thermostats, hysteresis, presets and the sensor watchdog live in the companion integration, OpenHydronic-HA.
Important
This installation involves 230 VAC and, in most cases, a fuel-burning appliance. If you are not qualified to work on fixed electrical wiring and on the boiler, hire someone who is. Never remove or bypass the existing safety devices. Use at your own risk.
- Safety engine at 1 Hz. Home Assistant and the web UI place requests; the board decides if and when it is safe to apply them. No bug or restart upstream can short-cycle the boiler.
- Power-on safe state. Every relay boots closed. A power cut never leaves a valve open with the burner starting by itself.
- Minimum cycle times. 10 min ON and 10 min OFF per relay by default, protecting the PTC heads. A blocked request stays pending instead of being dropped.
- Master relay for the boiler or circulator, with a thermal start delay, a residual heat purge and a boiler anti-short-cycle timer. Either on a local channel or handled in Home Assistant.
- Circulator protection. A channel can drive a bypass valve that opens whenever the pump would run against a closed circuit.
- Weekly anti-seize routine, so valves do not calcify over the summer.
- Manual air purge: every valve open with the pump running, to bleed the circuit.
- Emergency stop that ignores the minimum timers.
- Its own web interface on port 80: zones, modes, timers and live logs, with a setup wizard on first run. Built for a phone, served from flash, nothing loaded from the internet.
- Runs without the server. Encrypted native API, recovery access point, captive portal, and OTA updates either over the network or by uploading a file to the board. No cloud.
- Parameterised. Channel count, GPIO map, channel roles and every timer are set at the top of the YAML; the timers are also runtime entities, adjustable without a reflash.
| Item | Supported |
|---|---|
| Board | ESP32-WROOM-32 relay boards, 4 or 8 channels |
| Framework | ESPHome 2026.9.0 or newer, ESP-IDF |
| Home Assistant | 2026.8 or newer for the published firmware (no key to type); 2024.10 or newer when you build with your own key. Both go through the ESPHome integration |
| Actuators | 230 V thermal heads, normally closed |
| Boiler interface | Dry room-stat contact (TA) only |
| Zones above 8 | Use a second board, see Scaling the channels |
A commodity ESP32 Relay X8 board (ESP32-WROOM-32 plus 8 relays), sold as "ESP32 8 Channel Relay Module". The reference unit for this project carries an ESP32-WROOM-32E and SRD-05VDC-SL-C relays behind an LM2596 step-down converter.
| Item | Specification | Notes |
|---|---|---|
| MCU | ESP32-WROOM-32, 4 MB flash | 2.4 GHz Wi-Fi |
| Relays | 8 x SPDT, 5 V coil | Contacts typically 10 A / 250 VAC |
| Supply | 7-30 V DC on the screw terminal, or 5 V direct | About 570 mA at 5 V with every relay energised |
| Isolation | Optocoupled drivers | Confirm on your actual board |
Tip
Buy the variant with USB on board if you can. The first flash of an ESP32 is always over serial, and a board with an onboard USB-serial chip needs nothing but a cable: you flash it from the browser in two minutes, and every update after that goes over the air.
Boards without USB work exactly the same once programmed, but that first flash needs a 3.3 V USB-TTL adapter and the wiring in Commissioning. It is the single most frustrating part of building this, and a couple of euros avoids it.
Typical installation, 7 zones plus boiler:
| Qty | Component |
|---|---|
| 1 | ESP32 Relay X8 board, preferably the variant with onboard USB |
| 1 | DIN-rail power supply, 12 V DC 1 A (anything from 7 to 30 V works) |
| 7 | 230 V thermal actuators, NC (normally closed), for the manifold |
| 1 | Two-core cable for the boiler room-stat contact |
| 1 | 2 A breaker plus a DIN-rail enclosure |
| — | Terminals, ferrules, cable glands |
Warning
NC actuators are mandatory. With NO (normally open) heads the whole safety logic is inverted:
a power failure would open every valve. Switching relay_inverted is not enough to fix that.
| Channel | Default GPIO | Suggested role |
|---|---|---|
| Relay 1 | GPIO32 |
Zone 1 |
| Relay 2 | GPIO33 |
Zone 2 |
| Relay 3 | GPIO25 |
Zone 3 |
| Relay 4 | GPIO26 |
Zone 4 |
| Relay 5 | GPIO27 |
Zone 5 |
| Relay 6 | GPIO14 |
Zone 6 |
| Relay 7 | GPIO12 |
Zone 7 (see below) |
| Relay 8 | GPIO13 |
Zone 8 or master relay |
| LED | GPIO02 |
Status LED |
Caution
GPIO12 (MTDI) and GPIO02 are strapping pins, read by the ESP32 during boot. GPIO12 must
be low at boot. If it is high the chip sets the flash regulator to 1.8 V and the board does not
start. With the default relay_inverted: "false" the output is low at boot, which is correct.
On an active-low board (relay_inverted: "true") GPIO12 sits high at boot and the board
stops starting. Remap channel 7 to a free pin:
substitutions:
relay_inverted: "true"
relay_7_pin: "GPIO23" # remapped, GPIO12 unusedCommissioning explains how to tell which polarity your board uses.
Non-negotiable rules:
- Never switch mains directly into the boiler's burner. Use only the appliance's room-stat / dry contact (TA) input.
- Do not remove the existing safety devices — the underfloor high-temperature limiter, the pressure switch, the safety valve. OpenHydronic works downstream of them, never instead of them.
- The floor temperature limiter must cut the actuator supply in series, so that it still works if the ESP32 is locked up.
- Physically separate the 12 V DC and signal wiring from the 230 VAC wiring inside the box.
- Feed the whole assembly from a dedicated, labelled breaker.
- Size the common conductor for the inrush: each thermal head draws about 2 W steady but roughly 250 mA while its PTC warms up. Eight heads on one common is about 2 A of inrush.
All eight relays drive actuators. The boiler is switched by a device that already exists in Home Assistant, which follows the integration's master state machine.
230 VAC UNDERFLOOR MANIFOLD
┌─ L ──┬──────────────────────────────────────────┐
│ │ │
│ ┌──┴──┐ high temperature limiter │
│ │ 55°C│ (safety thermostat, NC) │
│ └──┬──┘ │
│ │ switched L │
│ │ │
│ ┌──┴────────────────────────────────────┐ │
│ │ ESP32 RELAY X8 (COM 1..8) │ │
│ │ │ │
│ │ NO1 ─────────────────────────────────┼─────┼──► Zone 1 actuator (NC) ──┐
│ │ NO2 ─────────────────────────────────┼─────┼──► Zone 2 actuator (NC) ──┤
│ │ NO3 ─────────────────────────────────┼─────┼──► Zone 3 actuator (NC) ──┤
│ │ NO4 ─────────────────────────────────┼─────┼──► Zone 4 actuator (NC) ──┤
│ │ NO5 ─────────────────────────────────┼─────┼──► Zone 5 actuator (NC) ──┤
│ │ NO6 ─────────────────────────────────┼─────┼──► Zone 6 actuator (NC) ──┤
│ │ NO7 ─────────────────────────────────┼─────┼──► Zone 7 actuator (NC) ──┤
│ │ NO8 ─────────────────────────────────┼─────┼──► Zone 8 actuator (NC) ──┤
│ │ │ │ │
│ │ VCC ◄── 12 V DC ── DIN supply │ │ │
│ │ GND ◄── 0 V ──────────┐ │ │ │
│ └────────────────────────┼───────────────┘ │ │
│ │ │ │
└─ N ──────────────────────────────────────────────┴──────────────────────────┘
│ (actuator common
12 V supply: L/N from the dedicated breaker neutral)
zone_count: "8"
master_channel: "0" # no relay reserved for the master
bypass_channel: "0"In Home Assistant, set the master manager to External entity.
Channel 8 stops being a zone and switches the boiler's dry room-stat contact. This keeps working with Home Assistant switched off.
┌───────────────────────────────┐
│ BOILER / HEAT PUMP │
│ │
ESP32 RELAY X8 │ TA input (dry contact) │
┌─────────────────┐ │ ┌──────┐ │
│ COM8 ─────────┼──────────────┼────────┤ TA1 │ │
│ NO8 ─────────┼──────────────┼────────┤ TA2 │ │
│ │ │ └──────┘ │
│ (relay 8 = │ │ NO external voltage on │
│ MASTER) │ │ these terminals. Check the │
│ │ │ manufacturer's manual. │
│ NO1..NO7 ──────┼──► Zones 1..7 (230 VAC, NC actuators) │
└─────────────────┘ └───────────────────────────────┘
Automatic sequence:
A zone calls for heat ─┐
├── 3 min ──► MASTER ON (heads already open)
Last zone closes ──────┴── 2 min ──► MASTER OFF (residual heat purge)
zone_count: "8" # 8 channels populated
master_channel: "8" # channel 8 is the master
zone_8_hidden: "true" # hide the "Zone 8" entityThen switch Master Local Mode on, from Home Assistant or from the web UI. When
OpenHydronic-HA adds the board it asks what switches the boiler: answer The board switches it and
it turns that switch on for you. In Mode A the answer is Another switch in Home Assistant.
Installations with a fixed-speed circulator need a minimum flow. Channel 7 drives a bypass valve that opens automatically whenever the pump would run with no zone physically open.
MANIFOLD RETURN
│ │
Zones 1..6 ══╤══╤══╤══╤══╤══╤═══════════════════► │
│ │ │ │ │ │ │
▼ ▼ ▼ ▼ ▼ ▼ (NC actuators) │
│
┌─────────────────────────┐ │
│ BYPASS VALVE │ │
FLOW ───┤ (channel 7, NC) ├────────────────┘
│ guarantees minimum flow│
└─────────────────────────┘
Channel 8 ──► boiler TA contact (master)
zone_count: "8"
master_channel: "8"
bypass_channel: "7"
zone_7_hidden: "true"
zone_8_hidden: "true"Note
If the manifold already has a mechanical differential bypass, leave bypass_channel: "0". The
electronic bypass is for installations that do not have one.
┌───────────────────────────────────────────┐
│ │
▼ │
┌────────────┐ a zone opens for heat ┌──────────────┐
│ IDLE │ ───────────────────────────► │ START DELAY │
│ master OFF │ │ (3 min) │
└────────────┘ ◄────────────────────────── └──────┬───────┘
▲ demand disappears │
│ delay elapsed and
│ master_min_off met
│ ▼
┌──────┴───────┐ last zone closes ┌──────────────┐
│ HEAT PURGE │ ◄────────────────────────── │ MASTER ON │
│ (2 min) │ │ pump / heat │
└──────────────┘ ──────────────────────────► └──────────────┘
expired demand returns
Overrides applied at the end of every 1 Hz pass, in order:
| Condition | Effect |
|---|---|
Summer Mode on |
Master forced off, valves still work |
Anti-seize with Anti-Seize Runs Pump off |
Master forced off |
Master Min Off Time not met |
Start postponed (boiler anti-short-cycle) |
A zone only counts as demand while it is both calling for heat and open. A request the cycle
guard is still holding back never starts the pump, so it can never run against a closed circuit;
and a valve kept open by Zone Min Run Time after its room is satisfied does not keep the heat
coming. The start delay therefore counts from the moment the valve opens, which is what makes it
match the actuator's travel time.
There are two ways in. The first gets you going: set your own password straight away, as below. For full control of every credential, build your own (second).
Needs Home Assistant 2026.8 or newer. Older ones cannot set the board's key themselves and ask you for one that does not exist.
- Download
openhydronic-vX.Y.Z-factory.binfrom the latest release. - Plug the board in, open ESPHome Web and install that file. Give it your Wi-Fi when ESPHome Web asks.
- Install the OpenHydronic integration through HACS (custom repository), and restart Home Assistant.
- In Home Assistant, Settings → Devices & services, add the ESPHome card first and press Submit. There is no key to type. Then add OpenHydronic and map your zones.
- Set the board's password, 8 to 64 characters: letters, digits, spaces and the symbols of an
English keyboard, no accents. Home Assistant raises a repair for it under
Settings → System → Repairs: open it, type the password and submit.
Or open the board's page at
http://openhydronic-<mac>.local(the name is on its device page in Home Assistant), log in withadmin/adminand use Settings → Security.
Do step 4 right away. Until Home Assistant adopts the board, any device on your network can claim it.
If ESPHome Web does not offer the Wi-Fi step, join OpenHydronic-AP (password openhydronic),
open http://192.168.4.1, log in with admin / admin and pick your network.
Coming from a 1.1.x release? The Wi-Fi saved through its setup page is forgotten once, the web
login becomes admin / admin, and Home Assistant asks for the board's key again if it had one.
What the published build contains. The same file goes on every board, so nothing in it is private:
| Wi-Fi | None. Yours is kept across updates of this build. |
| Home Assistant key | None. The first client that connects sets it, normally Home Assistant. |
| Web login | admin / admin, public until you set a password. The user stays admin. |
| Setup network | OpenHydronic-AP / openhydronic, public. It runs only while the board has no network. |
| OTA password | my-ota-password, public until you set that same password. |
Warning
Those values are public. Set a password before the board controls a real installation: Settings → Security on the board's page, or the repair Home Assistant raises for you. One password then protects the page and the firmware updates. The setup network stays public, and it only runs while the board has no Wi-Fi. For control of every credential, build your own firmware, below, and flash it over USB.
What the password does not cover:
- The page is plain HTTP with basic auth. Anyone who can read your local network traffic can read the password, so keep the board off guest and shared networks.
- Whoever holds the board's Home Assistant key can set a new password without the old one. That is anyone who can call services in your Home Assistant, admin or not, or who holds a token for it.
- Nothing locks out repeated wrong guesses. Choose a long one.
- ESPHome 2026.9.0 or newer (Home Assistant add-on or CLI)
- A 3.3 V USB-TTL cable if the board has no USB on it
Copy the template next to openhydronic-8ch.yaml, or into /config/esphome/secrets.yaml. Every
value in it is public, because it sits in this repository: replace all of them with your own.
cp secrets.yaml.example secrets.yamlwifi_ssid: "MyNetwork"
wifi_password: "my-wifi-password"
# Recovery access point (OpenHydronic-AP), minimum 8 characters
ap_password: "openhydronic"
# 32 random bytes in base64. Generate at https://esphome.io/components/api.html
# or with: head -c 32 /dev/urandom | base64
api_encryption_key: "REPLACE_WITH_A_32_BYTE_BASE64_KEY="
ota_password: "my-ota-password"
web_username: "admin"
web_password: "my-web-password"secrets.yaml is gitignored and must stay that way.
esphome run openhydronic-8ch.yamlThe first flash is over USB; everything after that is OTA over Wi-Fi. Moving a board from the published firmware to your own build:
esphome uploadneeds the password the board answers to now. A board from the published release answers tomy-ota-password, so flash your first build over USB if you changeota_password. If you set a board password, put that one inota_passwordfor the upload. A saved board password overrides the compiled web and OTA passwords until a factory reset.- Home Assistant will ask for the
api_encryption_keyof your build. Paste it. A key set by an earlier adoption is replaced by the one compiled in. - Your Wi-Fi is compiled in, so it survives every update. A Wi-Fi saved through the setup page does not: it is forgotten when the board is updated to a build with a different configuration.
The board announces itself over mDNS as openhydronic-<mac>.local and shows up under
Settings → Devices & Services → Discovered. Accept it and paste the api_encryption_key.
For zone mapping, thermostats and presets, install OpenHydronic-HA through HACS afterwards.
The interface is embedded in the firmware, so the page works with no internet at all. The build
uses about half of its 1.75 MB application slot. If you add components and it runs out, define a larger partition
table under esp32: partitions:.
Everything structural is set through substitutions at the top of the YAML, with no changes to the
logic below.
| Substitution | Default | Description |
|---|---|---|
device_name |
openhydronic |
Base name. The MAC suffix is appended automatically. |
friendly_name |
OpenHydronic |
Entity prefix in Home Assistant. |
| Substitution | Default | Description |
|---|---|---|
zone_count |
"8" |
Channels populated on the board (4 or 8 in this file). |
relay_1_pin … relay_8_pin |
see Pin map | GPIO remapping. |
status_led_pin |
GPIO02 |
Diagnostic LED. |
relay_inverted |
"false" |
"true" on active-low boards. Mind the GPIO12 warning. |
master_channel |
"8" |
Channel reserved for the local master. "0" = none. |
bypass_channel |
"0" |
Bypass valve channel. "0" = disabled. |
zone_1_hidden … zone_8_hidden |
"false" |
Hide that zone entity in Home Assistant. |
| Substitution | Default | Description |
|---|---|---|
default_master_start_delay |
"3" min |
Thermal delay before starting the master. |
default_master_purge_delay |
"2" min |
Residual heat purge after the last zone closes. |
default_master_min_off |
"5" min |
Boiler anti-short-cycle. |
default_min_run_time |
"10" min |
Minimum ON time per relay. |
default_min_off_time |
"5" min |
Minimum OFF time per relay. |
default_air_purge_time |
"30" min |
Manual air purge duration. |
| Substitution | Default | Description |
|---|---|---|
antiseize_days |
"SUN" |
Weekday(s). |
antiseize_hour / antiseize_minute |
"10" / "0" |
Time of day. |
antiseize_minutes |
"5" |
Exercise duration. |
All six timers are also
numberentities in Home Assistant (config category) with persisted values. The substitutions only set the factory default.
Every relay uses restore_mode: ALWAYS_OFF. After a power cut the board starts with everything
closed and the boiler off. It never inherits a previous state.
Thermal actuators use a PTC element that melts a wax plug over 2 to 4 minutes to open the valve. Switching them in short cycles degrades the PTC and never actually opens the valve.
The guard is proportional, not a fixed lockout. It compares the time since that relay last changed against the minimum, and only blocks when the minimum has not been met yet:
| Situation | Result |
|---|---|
| On for 2 hours, asked to close | Closes immediately, the minimum was met long ago |
| On for 30 seconds, asked to close | Waits the remaining 9.5 min |
| Off for 1 hour, asked to open | Opens immediately |
| Off for 1 minute, asked to open | Waits 9 min |
In service you rarely notice it: a zone heating a room runs for far longer than the minimum. On the bench, where you flip a switch and change your mind seconds later, you meet it every time.
The request is never dropped: it stays pending and runs as soon as the lock expires. Two entities report this, and the Lovelace card shows the same thing as a blinking valve:
Zone N Pending— the request differs from the relay's real stateZone N Lock— seconds left before it can be applied,0when the zone is free
Exceptions that ignore the minimum cycle: Emergency Stop, anti-seize and air purge. For bench
testing, switch Cycle Protection off so the relays answer instantly, and switch it back on
before putting the system in service.
The boiler must not start against closed valves. On the first request the master waits
Master Start Delay to give the heads time to open. If the demand disappears meanwhile, the timer
is cancelled.
When the last zone closes the master stays on for another Heat Purge Delay, dissipating the heat
stored in the exchanger and avoiding kettling and overheat lockouts.
The valves are still physically open during the purge: a thermal head takes several minutes to cool down and close. The purge uses that window.
With bypass_channel set, the bypass valve opens whenever the master is on, or counting down to
on, and no other zone is physically open — the classic dead-head situation that causes
cavitation and noise.
Every Sunday at 10:00 all actuators open for 5 minutes. Valves that sit still all summer calcify and seize.
The exercise goes through the normal request path, so the master starts after 3 minutes and purges
at the end, exercising the pump too. To exercise only the valves, without burning fuel, switch
Anti-Seize Runs Pump off or turn Summer Mode on.
The Anti-Seize (run now) button runs it on demand.
Air Purge (start), or the Air Purge Mode switch, opens every valve for 30 minutes with the
pump running, pushing trapped air to the air vent.
The pump still honours the 3 minute delay, so the heads are open before there is any flow. The
duration is set by Air Purge Duration and the mode can be cancelled at any time.
Summer Mode closes every zone and blocks the master, while keeping the anti-seize routine
working. It is the right mode for the months without heating.
Emergency Stop cancels every mode, clears all requests and de-energises every relay immediately,
ignoring the minimum timers.
The board serves its own interface on port 80. It is not the stock ESPHome dashboard: that one is
disabled, and ui/openhydronic.css plus ui/openhydronic.js are embedded in the firmware at build
time. Nothing is fetched from the internet, and the page is built for a phone held in front of the
manifold.
| Tab | What it is for |
|---|---|
| Zones | Valve state per zone, the countdown while the minimum cycle holds a request, and a toggle that shows what you asked for rather than what the relay is doing |
| System | Summer mode, air purge with its countdown, anti-seize, and the emergency stop behind a confirmation |
| Settings | The six timers with a line each explaining what they protect, the protection switches, diagnostics, the board password, firmware upload, restart, moving the board to another network, and a factory reset |
| Logs | The live ESPHome log, coloured by level |
First run. With no network the board comes up as OpenHydronic-AP within a minute (password
openhydronic on the published release, ap_password in your own build). Join it: most phones open
ESPHome's own setup page by themselves, and the interface's wizard is at http://192.168.4.1 once
you log in (admin / admin on the published release). Either one scans, you pick your
network and it saves. The stock page ends on a bare "Saved. Connecting..."; if the board does not
appear on your network, OpenHydronic-AP is still there to join again.
Moving to another network. Settings → Network → Move to another network clears the stored credentials and restarts the board into that same wizard. Until you finish it the board stays in access point mode, which is the price of not having a reset button.
Credentials. The interface is behind HTTP basic auth, user web_username (admin on the
published build). On any build you can set a
password without rebuilding: Settings → Security, or the Board Password entity in Home
Assistant. It is kept across reboots and replaces the web password and the OTA password until a
factory reset, which brings back the compiled ones (admin / admin and my-ota-password on the
published build). Set one before the board controls a real installation: this page can open every
valve and start the boiler.
Once it is set, your own esphome upload needs it as ota_password. In safe mode, which starts
only after repeated failed boots, the OTA password is the one compiled in.
To take both from secrets.yaml instead, edit web_username / web_password and run
esphome run openhydronic-8ch.yaml: it takes seconds and needs no cable. On a board with a saved
password the compiled ones apply only after a Factory Reset, which also forgets the Home Assistant
key, the saved Wi-Fi and the settings. A board flashed from the
published release still answers to my-ota-password, so flash your first build over USB if you
change ota_password. A Wi-Fi saved through the setup page is forgotten when the board is updated
to a build with a different configuration; carry your Wi-Fi in secrets.yaml to avoid that.
Note
If the interface ever fails to load, the ESPHome captive portal still answers on any address the
page does not serve, such as /wifi, and it accepts a firmware upload. There is always a way back.
Prefixed with ${friendly_name} in Home Assistant.
| Entity | Type | Purpose |
|---|---|---|
Zone 1 … Zone 8 |
switch |
Open request. The state read back is the real relay. |
Air Purge Mode |
switch |
Air purge, cancellable. |
Summer Mode |
switch |
Blocks heat production. |
Air Purge (start) |
button |
Starts the air purge. |
Anti-Seize (run now) |
button |
Runs the anti-seize cycle. |
Emergency Stop |
button |
Closes everything now. |
Restart |
button |
Reboots the ESP32. |
Wi-Fi Setup |
button |
Clears the stored network and restarts into the setup wizard. |
| Entity | Type | Default |
|---|---|---|
Master Local Mode |
switch |
off |
Cycle Protection |
switch |
on |
Bypass Protection |
switch |
on |
Anti-Seize Runs Pump |
switch |
on |
Master Start Delay |
number (min) |
3 |
Heat Purge Delay |
number (min) |
2 |
Master Min Off Time |
number (min) |
5 |
Zone Min Run Time |
number (min) |
10 |
Zone Min Off Time |
number (min) |
5 |
Air Purge Duration |
number (min) |
30 |
Board Password |
text |
write-only: sets the password of the page and of the OTA, never shown or published |
Factory Reset |
button |
disabled by default in Home Assistant, on the board's page behind a confirmation. Wipes what the board saved, turns Master Local Mode off and returns the password to the compiled one |
| Entity | Type | Meaning |
|---|---|---|
Master Demand |
binary_sensor |
The board says the boiler or pump should be running. |
Heat Demand |
binary_sensor |
At least one zone is asking for heat, before the delay. |
Zone 1..8 Pending |
binary_sensor |
Request differs from reality: opening or closing. |
Zone 1..8 Lock |
sensor (s) |
Seconds left on the minimum cycle, 0 when free to switch. |
Anti-Seize Active |
binary_sensor |
Exercise cycle in progress. |
Air Purge Active |
binary_sensor |
Air purge in progress. |
Open Zones |
sensor |
Number of zones physically open. |
Default Password |
binary_sensor |
On while the published build still answers to the public admin / admin. |
API Status, Uptime, Wi-Fi Signal, IP Address, SSID, ESPHome Version |
diagnostic | — |
In Mode A the integration runs its own master state machine, with the same delays, and switches the external entity.
Master Demandreports what the board decided and is useful for automations and for debugging; it is not the signal the integration follows.
Callable as esphome.<node>_<action> once the board is adopted by the ESPHome integration.
| Action | Parameters | Effect |
|---|---|---|
zone_set |
zone (int 1-8), state (bool) |
Records a zone request. |
all_zones_off |
— | Clears every request, still honouring Min Run Time. |
start_air_purge |
— | Starts the air purge. |
stop_air_purge |
— | Cancels a running air purge. |
start_anti_seize |
— | Starts the anti-seize cycle. |
emergency_stop |
— | Closes everything immediately. |
action: esphome.openhydronic_a1b2c3_zone_set
data:
zone: 3
state: trueOpenHydronic-HA calls the purge, anti-seize and emergency stop actions itself, so those routines
run on the board and survive a Home Assistant restart. Zones are driven through the Zone N
switches instead, which is equivalent and keeps the state readable.
The firmware is configured never to depend on the server or on the internet:
| Setting | Effect |
|---|---|
api: reboot_timeout: 0s |
Losing Home Assistant never reboots the board. |
wifi: reboot_timeout: 0s |
Losing Wi-Fi never reboots the board. |
wifi.ap plus ap_timeout: 60s |
After 60 s with no network, OpenHydronic-AP comes up. |
captive_portal |
Joining the AP opens the configuration page automatically. |
web_server |
Full interface on port 80, embedded in the firmware, with no external CDN. |
Manual heating procedure:
- Join the local network, or
OpenHydronic-APif there is none (openhydronicon the published build,ap_passwordin your own). - Open
http://openhydronic-<mac>.local, orhttp://192.168.4.1in AP mode. - Log in with the board password and your user name (
adminon the published build). If you never set a password:admin/adminon the published build, or yourweb_username/web_password. - Switch the
Zone Nentries you need on. With a local master, switchMaster Local Modeon too.
Tip
In access point mode http://192.168.4.1 opens the setup wizard once you log in. The ESPHome
captive portal stays available as a fallback on any address the interface does not serve, such
as http://192.168.4.1/wifi, and it accepts a firmware file.
Every hydraulic protection is still active: the web server uses exactly the same request path as Home Assistant.
Note
The anti-seize schedule uses Home Assistant's clock, with SNTP as a fallback. With neither Home
Assistant nor internet the board has no time source and the routine does not fire. The
Anti-Seize (run now) button still works.
| Channels | How |
|---|---|
| 4 | zone_count: "4" plus zone_5_hidden … zone_8_hidden: "true". Channels 5-8 are ignored. |
| 8 | Default configuration. |
| 12 / 16 | This file instantiates 8 channels. Use a second board (recommended) or extend the YAML. |
Multiple boards. Flash the same YAML onto two boards with different device_name values. The
integration handles several boards in one Home Assistant instance and the master manager
coordinates them.
# board-1.yaml
substitutions:
device_name: "openhydronic-floor0"
friendly_name: "OpenHydronic Floor 0"
master_channel: "8"
# board-2.yaml
substitutions:
device_name: "openhydronic-floor1"
friendly_name: "OpenHydronic Floor 1"
master_channel: "0" # the master lives on board 1Extending to 16 channels. ESPHome does not generate blocks conditionally, so the file has to be edited. Four mechanical changes:
- Add
relay_9_pin…relay_16_pinandzone_9_hidden…zone_16_hiddento the substitutions. - Duplicate the
switch: - platform: gpioblocks forrelay_9…relay_16. - Duplicate the
switch: - platform: templateblocks (Zone 9…Zone 16), theZone N Pendingbinary sensors and theZone N Locksensors. - In
globals, widen the arrays from[9]to[17]; in the engine and inemergency_stop_script, change the<= 8bounds to<= 16and widen theR[]array.
Save it as openhydronic-16ch.yaml. The safety engine needs no other change.
Do the polarity test with the board out of the enclosure and no 230 V connected.
Skip this if your board has USB: plug the cable in, open ESPHome Web,
install firmware.factory.bin, done. With a 3.3 V USB-TTL adapter instead, three rules matter
more than anything else, and each of them cost a full evening to learn:
- Enumerate the adapter first. Plug it into the computer with nothing attached to the board and wait for the port to appear. A powered board pushes current back through the data lines and stops the adapter enumerating, which shows up as "Device Descriptor Request Failed".
- Never power the ESP32 from the adapter's 3.3 V pin. That regulator supplies around 50 mA,
which is enough to talk but not enough to write a megabyte reliably. The write reports success
and the image is corrupt. Use the adapter's 5 V pin into the board's
5V, or the board's own supply. - One power source at a time. The adapter's VCC and the screw terminal must never be connected together.
Wiring is GND to GND, adapter TX to board RX, adapter RX to board TX. Hold IO0 low
while the board boots to enter download mode, either with the button or a jumper to GND.
Important
Always write firmware.factory.bin, never firmware.ota.bin, over serial. The factory image
carries the bootloader and the partition table; an application image alone leaves the board
booting whatever was there before, which looks exactly like a flash that silently did nothing.
- Power the board from its own supply. Connect nothing to the contacts.
- Flash with the defaults (
relay_inverted: "false"). - In the web UI, toggle
Zone 1and watch relay 1's LED and listen for the click.- Relay actuates with the switch on → active-high →
relay_inverted: "false" - Relay actuates with the switch off, or sticks at boot → active-low →
relay_inverted: "true"and remaprelay_7_pin.
- Relay actuates with the switch on → active-high →
- Reboot the board and confirm every relay starts de-energised.
With Master Local Mode on and the boiler still disconnected:
| Step | Expected |
|---|---|
Switch Zone 1 on |
Heat Demand on at once, Master Demand still off |
| Wait 3 min | Master Demand turns on |
Switch Zone 1 off |
Blocked, Zone 1 Pending on (10 min minimum) |
| Wait until 10 min | Relay 1 opens, purge countdown starts |
| +2 min | Master Demand off |
To speed the test up, drop Zone Min Run Time and Zone Min Off Time to 0 temporarily, or
switch Cycle Protection off. Restore them before putting the system in service.
- Open a single zone and confirm by touch that only that loop warms up.
- Confirm the actuator opens in 2 to 4 minutes; most heads have a visual indicator.
- With a bypass configured, force the case: run the master with no zone and confirm the bypass opens and the circulator does not cavitate.
- Run a full air purge and check the automatic air vent.
- Cut the mains and restore it: every relay must start off.
| Symptom | Likely cause | Fix |
|---|---|---|
| Board does not start after flashing | GPIO12 high at boot (active-low board) |
Remap relay_7_pin, see Pin map. |
| A zone switch turns itself back off | Minimum cycle lock | Normal. Check Zone N Lock for the minutes left; the request runs by itself when it expires. For bench testing switch Cycle Protection off. |
| Home Assistant asks for an encryption key | A build with its own key, or Home Assistant lost the one it set | Your own build: paste its api_encryption_key. Published firmware: press Factory Reset in the board's Settings, or erase it over USB, and add it again. |
| Home Assistant says the device disabled encryption | The board was reset or reflashed | Press Submit. It sets the key again. |
| Forgot the board password | Nothing recovers it by design | Set a new one from Home Assistant (the Board Password entity, no old password needed), or press Factory Reset (enable it in the device page first), or erase over USB. |
| ESPHome asks for an encryption key right after flashing the published build | Home Assistant is older than 2026.8 and cannot set it | Update Home Assistant, or build the firmware with your own key. |
| The boiler stopped after a factory reset | Master Local Mode goes back to off |
Switch it on again. |
OpenHydronic-AP is back after an update |
A Wi-Fi saved through the setup page is forgotten when the build's configuration changes | Do the setup again, or compile your Wi-Fi in with secrets.yaml. |
| A zone never opens | Channel reserved for the master, or above zone_count |
Review master_channel and zone_count. |
| The boiler never starts | Summer Mode on, or no master configured |
Turn Summer Mode off; switch Master Local Mode on or configure the external entity. |
Master Demand on but the boiler stays cold |
Room-stat wiring | Check the dry contact and polarity in the boiler manual. |
| Noisy circulator with few zones open | No minimum flow | Set bypass_channel or fit a mechanical bypass. |
| Anti-seize never fires | No time source | See Running without Home Assistant. Use the manual button. |
| Never appears in Home Assistant | mDNS blocked between VLANs | Add it by IP under Add Integration → ESPHome. |
Live logs:
esphome logs openhydronic-8ch.yamlOpenHydronic-HA adds the thermal layer on top of this firmware: zone-to-sensor mapping, thermostats with hysteresis and presets, the global master manager, the sensor watchdog, runtime metrics and a Lovelace card. It installs through HACS and discovers the board over mDNS.
See CHANGELOG.md.
Pull requests are welcome. Read CONTRIBUTING.md first, especially the rule about never weakening a protection by default.
GNU General Public License v3.0. See LICENSE.
This software is provided as is, without warranty of any kind, express or implied. It controls mains-powered equipment and a heating system that may involve combustion, pressure and high temperatures.
The authors and contributors accept no liability for property damage, personal injury or consequential loss arising from the use of this project. Installing, verifying and maintaining the safety devices of the hydraulic system is entirely the installer's responsibility, and the installer must hold whatever qualifications the law requires.
Never remove or bypass the original safety devices of the system.