Ouman EH-203 – Bringing a Legacy Heating Controller into the Smart Home

TL;DR

The Ouman EH-203 heating controller can be integrated with Home Assistant without a separate Modbus card, a cloud service or replacing the controller itself.

I have developed an open-source ESPHome component that uses Ouman’s original RS-232 serial interface. The component provides 23 optional Home Assistant entities, adaptively detects the controller’s configuration and reads both three-point and five-point heating curves.

Getting this far was not entirely straightforward, however. At one point, the Ouman LCD went completely blank, I measured unexpected AC voltage differences between devices, and I wondered whether I had managed to damage my test controller.

Ultimately, the solution was found at the interface between hardware and software.

1. How it all began

In early November, I wrote an article, Integrating the Ouman EH-203 with Home Assistant without a Modbus card, covering the installation of Ouman Trend on Windows 11, investigation of the serial communication protocol and an initial ESPHome implementation. Ouman Trend turned out to be of little use for my objective, and even my old USB-to-RS-232 adapter refused to work on Windows 11 due to a missing device driver, despite working perfectly on Linux.

The project then began to expand in a somewhat unexpected direction.

First, I had to investigate repairing the Ouman EH-203 LCD. This was followed by a separate desktop application, Ouman EH-203 Manager, which allows the controller to be examined, monitored, backed up and configured on Linux and Windows.

During the development of Manager, I gathered a considerable amount of information about Ouman’s internal serial communication protocol, the meaning of its parameters and differences between firmware versions.

It was now time to return to the original objective: integrating Ouman with Home Assistant.

2. Why an entirely new ESPHome component?

The ESPHome code published in my earlier blog post relied heavily on C++ code embedded in the YAML configuration, in the form of lambda functions.

It worked, but I saw several problems with this approach in the longer term:

  • The YAML file became unnecessarily long and difficult to maintain.
  • Waiting for serial communication could block other operations.
  • Scheduling individual measurements was difficult.
  • Not every measurement was necessarily enabled on every Ouman controller.
  • Error handling and automatic recovery needed improvement.

I decided to create a separate ESPHome external component that users could install directly from GitHub.

The objective was to keep the user’s YAML configuration as simple as possible and move protocol handling, error handling and adaptive behaviour into the C++ component itself.

I also wanted to retain compatibility with the ESP8266, although I use an ESP32-WROOM-32D development board for my own development work.

3. When the Ouman display went blank

The first problems appeared even before the actual software development began.

Between the ESP32 and Ouman, I used an HW-027/MAX3232 level converter, which converts the ESP32’s 3.3 V UART signals into signals suitable for RS-232 communication.

When I powered the ESP32 through its USB connection, the Ouman LCD went blank. Only the backlight remained on.

It was admittedly a rather tense moment, as I had recently spent time investigating display problems with the EH-203. I now had to determine whether this was an electrical problem, a grounding issue, a faulty level converter or something else entirely.

Test bench The test bench, ESP32, MAX3232 and Ouman EH-203. The green heat-shrink tubing has not yet been shrunk.

Unexpected voltage measurements

I began investigating the problem with a multimeter.

Before connecting the signal grounds, I measured AC voltage differences between the devices:

Measurement conditionsMeasured AC voltage
Laptop connected through a docking stationApproximately 23 V AC
Laptop running on battery powerApproximately 18 V AC
Previously verified USB-to-RS-232 adapterApproximately 25 V AC

Virtually no DC voltage difference was observed during the initial measurements.

Such AC voltage readings may be related to capacitive coupling in power supplies and floating signal grounds, for example. However, a voltage reading from a multimeter alone cannot establish the available current or the safety of the connection.

What was particularly interesting was that the USB-to-RS-232 adapter previously verified to work on Linux exhibited a similar voltage difference.

This was an important observation. The voltage difference alone did not explain the display problem caused by the new connection.

I also checked the level converter’s connections and measured its RS-232 output voltages. The MAX3232 produced approximately ±6 V, whereas my previous USB-to-RS-232 adapter produced approximately ±9 V.

The problem might actually have been in the software

At this point, the ESP32 was still running firmware developed for an entirely different purpose. GPIO16 and GPIO17 had not been configured for UART communication.

The TTL input of the MAX3232 transmitter was therefore connected to an ESP32 pin whose state had not been defined for serial communication, and it was not known whether the pins had software-configured pull-up resistors enabled.

In RS-232 communication, the transmitter’s idle state is represented by a negative voltage. On the TTL side, this corresponds to a logical one.

If the level converter’s input is left in an undefined state, erroneous signals or a prolonged BREAK condition may occur on the serial interface.

Once I installed new firmware on the ESP32, configuring GPIO17 as the UART transmitter and GPIO16 as the receiver, the problem disappeared. I measured approximately −6 V at the RS-232 transmitter in its idle state.

The Ouman display was working normally again.

The most likely explanation is therefore the previously undefined state of the UART transmitter. However, I did not deliberately reproduce the display problem to conclusively prove this hypothesis.

Not a single electronic component needed to be replaced.

Note: The MAX3232 is a level converter, not a galvanic isolator. For a permanent installation, the need for galvanic isolation and the electrical compatibility of the devices should be assessed separately.

4. The first successful serial communication packets

Before developing the actual component, I wanted to verify that the entire communication chain worked.

The ESP32 was configured with the following UART settings:

ParameterValue
TXGPIO17
RXGPIO16
Baudrate4800
Data bits8
ParityNone
Stop bits1

I first tested the level converter using a loopback test.

Once the data transmitted by the ESP32 was returned unchanged to its receiver, even after RS-232 level conversion, it was time to connect the Ouman controller.

The first actual read request targeted the outdoor temperature, whose parameter ID is 18, or 0x12 in hexadecimal.

The ESP32 transmitted:

02 81 02 00 12 95

Ouman responded:

02 0A 04 00 12 FE 66 84

The temperature value FE 66 in the response is a signed 16-bit integer.

0xFE66 = -410

-410 / 100 = -4.10 °C

The first successful temperature reading was therefore −4.10 °C.

I also tested a read request with an incorrect checksum. Ouman did not respond, but the next correctly formed request worked normally again. The reading was also updated in Home Assistant.

First reading in Home Assistant

The first successful response from Ouman that was also delivered to Home Assistant.

From this point onwards, development had a working and tested foundation.

5. A test bench instead of a live heating system

Since constantly changing the settings of an operational district heating substation is not particularly sensible, I use a separate Ouman EH-203 controller for development.

On the test bench, temperature sensors are simulated using resistors.

This allows me to change individual measurements, disconnect sensors, modify the controller’s configuration and test different actuator types without affecting the heating of my house.

Resistors simulating sensors

Resistors connected to the Ouman measurement inputs.

This also proved extremely useful in verifying the meaning of the serial protocol parameters.

For example, by changing only the resistor connected to measurement input T10 and monitoring serial communication, I was able to confirm that this measurement corresponds to parameter ID 34. Similarly, T11 was confirmed to correspond to parameter ID 41.

Simply finding a parameter name in an old XML file is not enough. I wanted to verify that the value being read actually corresponded to the physical measurement in question.

6. Adaptive behaviour – why read something that is not there?

The Ouman EH-203 is a fairly versatile controller. However, not every installation uses all its functions or measurement inputs.

This led to the idea of an adaptive component.

At startup, the component attempts to read the controller’s identification data, firmware version and measurement configuration.

Based on this information, it can adapt its behaviour.

For example, measurement input T6 can serve several different purposes on the Ouman controller. In addition to temperature measurement, it can be configured for wind or pressure measurement, among other uses.

Automatically interpreting every T6 value received through the serial port as a temperature would be a significant design error.

The component therefore checks the purpose of T6 and publishes a temperature only when its role can be unambiguously identified as a temperature measurement.

Otherwise, Home Assistant displays the value as Unknown.

Where possible, the component also distinguishes between:

  • An active measurement.
  • A measurement disabled in the configuration.
  • A faulty or disconnected sensor.
  • A read request rejected by the controller.
  • A serial communication error.

Temporarily invalid or rejected measurements can be polled less frequently. The configuration is checked again periodically, allowing changes to be detected without restarting the ESP32.

ESPHome debug output

ESPHome debug output showing firmware version detection and other diagnostic information.

7. Individual polling intervals and automatic recovery

It does not make sense to read every measurement at the same interval.

Outdoor temperature generally changes slowly, domestic hot water temperature can change rapidly, and a heating curve may be adjusted only a few times a year.

Each sensor can therefore be assigned its own polling interval.

The component ensures that multiple read requests are not sent to Ouman simultaneously. Serial communication is handled by a state machine without long, blocking wait loops.

I also tested what happens when power to Ouman is disconnected while the ESP32 remains operational.

The measurement values in Home Assistant eventually became unknown. When Ouman was powered on again, the component automatically returned to normal operation without restarting the ESP32.

I also tested disconnecting an individual temperature sensor. The other measurements continued to operate normally.

In my opinion, these features are particularly important in a system intended to operate for months or years without constant maintenance.

8. Valve commands – what are we actually measuring?

Investigating percentage-based valve commands was one of the most interesting stages of the project.

Ouman can control heating circuit actuators in several ways:

  • Three-point (floating) control.
  • 0–10 V analogue control.
  • 2–10 V analogue control.

With analogue control, the percentage command received through the serial port matched the value displayed on the Ouman LCD in my tests.

With three-point control, the situation was different. When manually commanding the actuator to open or close, the percentage value received through the serial port did not necessarily change at all.

This also makes sense from a technical perspective. Three-point control sends an open or close command to the actuator, and information about the absolute valve position may not be available.

It would therefore be misleading to show a valve as 100% open in Home Assistant if the value was actually left over from a previous operating mode.

The component detects the control type of the L1 and L2 actuators and publishes percentage values only when the configuration supports them.

It is also important to note that even with analogue control, this is the command issued by the controller, not the measured physical position of the valve.

The same principle applies to relay status information. It represents the controller’s commands, not physical feedback from the relay contacts.

Valve command information

Valve commands in Home Assistant when the L1 and L2 actuators are configured for either 2–10 V or 0–10 V control.

9. Heating curves and process analysis

The final major feature I added to the component was the ability to read heating curves.

The Ouman EH-203 supports three-point and five-point heating curves, which define the heating circuit’s supply water temperature in relation to the outdoor temperature.

The component reads these curves and publishes them to Home Assistant in JSON format.

For example, the three-point L1 curve on my test bench looks like this:

{
  "mode": 3,
  "provisional": false,
  "points": [
    [-20, 58],
    [0, 41],
    [20, 18]
  ]
}

The JSON format makes it possible to use the curve later in various visualisations, for example.

The component also uses linear interpolation to estimate what the supply water temperature should be based solely on the base heating curve at the current outdoor temperature.

This makes it possible to monitor three different temperatures in Home Assistant:

  1. The base temperature calculated from the heating curve.
  2. The corrected target temperature calculated by Ouman.
  3. The actual measured supply water temperature.

These are three different things.

Ouman may adjust its target temperature based on room temperature compensation, parallel curve shifts and other control functions. The base curve temperature calculated by ESPHome, on the other hand, is a simple informational estimate that does not include these corrections and may not always match Ouman’s internal calculation method.

Practical testing

On the test bench, I changed both heating circuits from three-point to five-point curves.

I then changed the outdoor temperature of one L1 curve point from −10 °C to −8 °C and its corresponding supply water temperature from 49 °C to 45 °C.

Home Assistant detected the changes automatically.

With an outdoor temperature of −4.10 °C, the results were as follows:

MeasurementL1L2
Estimated base curve temperature43.05 °C46.10 °C
Target temperature calculated by Ouman25.00 °C46.00 °C
Measured supply water temperature41.30 °C41.50 °C

When I restored the three-point curves, the estimated L1 base curve temperature changed to 44.49 °C.

All changes took place without restarting the ESP32.

Heating curve changes

Home Assistant activity history showing the transition between three-point and five-point curves.

Target temperatures

Base curve temperatures, target temperatures and measured temperatures in Home Assistant.

On the test bench, the differences between temperatures are naturally artificial because the measurements are simulated using resistors.

In a real heating system, however, this information offers some very interesting opportunities for process analysis using tools such as InfluxDB and Grafana. My own Home Assistant installation forwards detailed measurement data to an InfluxDB 2 database, allowing me to analyse process behaviour over longer periods independently of the retention periods of Home Assistant’s own history database.

10. What does the integration include?

The component currently provides a total of 23 optional Home Assistant entities.

FeatureEntities
Temperature measurements T1–T1111
L1 and L2 target temperatures2
Domestic hot water temperature setpoint1
Valve commands3
Relay commands2
Heating curves in JSON format2
Estimated base curve temperatures2
Total23

Users do not need to enable all of these. The integration can be configured to include only the measurements relevant to their particular heating system.

11. Getting started with ESPHome

One of the objectives of the project was to make installation as simple as possible.

Users do not need to copy hundreds of lines of C++ code into their YAML files or familiarise themselves with Ouman’s serial communication protocol.

The component is retrieved directly from GitHub:

external_components:
  - source: github://ollavarma-create/ha-esphome-ouman-eh203@main
    components: [ouman_eh203]

For example, the UART can be configured on an ESP32 as follows:

uart:
  id: ouman_uart
  tx_pin: GPIO17
  rx_pin: GPIO16
  baud_rate: 4800
  data_bits: 8
  parity: NONE
  stop_bits: 1

If only the outdoor temperature, L1 supply water temperature and domestic hot water temperature are to be monitored, the following sensor configuration is sufficient:

sensor:
  - platform: ouman_eh203
    uart_id: ouman_uart
    update_interval: 60s
    auto_probe: true

    outdoor_temperature:
      name: Ulkolämpötila

    l1_supply_temperature:
      name: L1 menovesi
      update_interval: 30s

    dhw_supply_temperature:
      name: Käyttöveden lämpötila
      update_interval: 15s

The above is only an example of how to configure the component. A complete ESPHome configuration also includes the development board definition, Wi-Fi settings, API and OTA update settings, among other things.

Ready-to-use example configurations and more detailed wiring instructions are available in the GitHub repository.

12. Why read-only?

Ouman’s serial communication protocol also allows settings to be written. This capability is used in the separate Ouman EH-203 Manager desktop application.

For the ESPHome integration, however, I made a deliberate design decision: at least in its first version, the integration is entirely read-only.

Ouman remains independently responsible for heating and domestic hot water temperature control.

Home Assistant, the Wi-Fi network and the ESP32 are not prerequisites for heating operation.

In my opinion, this is a good starting point for building automation. The monitoring system and the actual control system do not need to be the same system.

If Home Assistant is unavailable, monitoring data is lost, but heating is intended to continue operating normally. The suitability of the electrical connection must, of course, still be verified separately.

13. Predictive maintenance

What particularly interests me about this project is what can be done with the collected data over the longer term.

An individual temperature reading may not tell us very much about the condition of a system. Months or years of measurement history, however, may reveal changes that go unnoticed in normal day-to-day operation.

Potential areas for further investigation include:

  • Deviations between target and actual supply water temperatures.
  • The dynamics between valve commands and temperature changes.
  • Changes in heat exchanger performance.
  • District heating return water temperature and temperature drop, and comparison with data delivered to Home Assistant through the Salon Kaukolämpö API.
  • Domestic hot water temperature behaviour.
  • The effect of heating control parameters on process stability.

Could a gradually increasing valve command under similar outdoor temperature conditions, for example, indicate deteriorating heat exchanger performance?

Or could a change in the deviation between supply water temperature and its target indicate a problem with an actuator or valve?

Such changes do not in themselves prove that equipment is faulty, but they may provide a reason for closer investigation before an actual failure occurs.

This is precisely where I see the potential of data collection and predictive maintenance.

14. Compatibility and the first alpha release

For development, I have used an ESP32-WROOM-32D development board, ESPHome 2026.11.2 and Ouman EH-203 firmware version 2.15.

The component’s automated tests are run using GitHub Actions. In addition, I have tested its functionality in practice with a real controller.

Compatibility with the ESP8266 and older Ouman firmware versions is the next area to be tested.

A friend of mine has an ESP8266 and older EH-203 versions. Separate testing instructions and ready-to-use ESPHome configurations have been prepared for him.

The purpose of the first public alpha release is to gather practical experience from other hardware and firmware combinations as well.

Development has benefited from the earlier protocol research carried out in the Ouman EH-203 Manager project. However, compatibility with all firmware versions has not yet been verified on physical hardware.

15. Old equipment does not have to be obsolete

The Ouman EH-203 is not a modern IoT device.

It has no Wi-Fi, REST API, MQTT, cloud service or mobile application. Its communication relies on an old RS-232 serial interface operating at a modest 4800 bits per second.

Yet the device provides a surprising amount of useful information and continues to perform the task for which it was originally designed.

Why replace a perfectly functional heating controller simply because it lacks a modern network interface?

With a few euros’ worth of electronics, open-source software and a little serial protocol research, a legacy controller can be integrated into a modern home automation system.

At the same time, we can gain a better understanding of how it operates and potentially extend its useful life.

Technological progress does not always mean replacing the old with the new. Sometimes it means learning to make better use of what we already have.

This is an independent open-source project and is not an official Ouman product or integration.