In part 1 the controller learned to listen to the eBUS line and send read requests, and the boiler answered it with an “ACK”. In this part it takes over control. First, though, I had to answer the question that anyone building their own boiler controller should ask themselves: what happens when my controller dies?
Home Assistant as an add-on
On 2 November the controller got its own Home Assistant integration. It reads the controller’s API, shows sensors and a thermostat for every room, and in the other direction passes the temperatures from my sensors to the controller. The assumption is that Home Assistant is an add-on. If it goes quiet, the controller carries on with its own schedules. The first comparison with ebusd after rollout: flow 47.0 against 47.00 °C, pressure 1.65 against 1.647 bar.

One fault from that day is worth mentioning. With 10 rooms, the response containing the room list stopped fitting into a 2200-byte buffer. The device reported no error at all. The settings page simply stopped loading, because it was getting truncated data.
What the boiler does when nobody tells it anything
The factory vSMART was given its power from a smart plug, so during tests I could just switch it off automatically while my module only watched. The result: the boiler holds the last command for about 15 minutes (measured: 15 min 15 s, and 15 min 25 s on the repeat run), and then starts heating on its own. It does so even when the last command forbade heating.
It heated with water at 60 °C, and for a long time it was not clear where it got that number from. I turned the setting on the boiler’s panel to 61 and then 62 °C. None of the 153 parameters read by ebusd changed, and neither did any of the controller’s 31 registers. Only a repeat of the test settled it: once the command expired, the boiler set itself 62 °C. So the knob on the boiler is an emergency temperature that is not visible on the bus.
A controller failure will not let the house go cold, but it will mean continuous heating with water at the temperature set on the boiler. Mine is 60 °C (62 °C was only for the test), which is too hot for underfloor heating – fortunately the RTL valves protect it. We built all the later safeguards on this result.
The first heating command: 45 °C
On 3 November, with vSMART switched off, the controller sent three commands by hand, in exactly the same shape as the factory ones: a block, a 45 °C setpoint and a block again. The boiler fired up after 10 seconds. The flow temperature rose from 25.5 to 40.4 °C in 70 seconds. After the block, the burner went out within 40 seconds. The boiler does not check who is transmitting: a command from a new participant on the bus works just the same as one from the factory controller.
The manual command function refuses to work if vSMART has spoken within the last minute. Two controllers at once means contradictory commands.
vSMART looks at the weather from the internet
To change only one thing at a time during the switchover, the controller was at first meant to request water exactly the way vSMART did. From 15,156 minutes of data covering more than 10 days (24 October to 3 November) we fitted the formula the factory controller used to choose the water temperature:
water = 26.1 + 1.60 × (20 − outdoor temperature) + 0.73 × boost
The boost is the amount my Home Assistant automation added on top of the setpoint, and it grew the more any room fell short of its target. Calculated from my own outdoor thermometer, this formula was off by 1.9 °C on average. Calculated from the temperature in the manufacturer’s cloud, it was off by 0.75 °C. So vSMART was taking its weather from the internet, not from its own thermometer. It also never requested more than 55 °C, and we kept that limit.
The first night and 48 bytes

On 4 November at 23:54 the controller took over the boiler for the night. A script with a failsafe kept watch over it: back to vSMART on a failure, on a cold hot water cylinder or on missing readings, with reports sent via Telegram.
| Night under the controller | Night under vSMART | |
|---|---|---|
| burner starts | 12 | 24 |
| gas per degree day | 2.77 kWh | 3.04 kWh |
| children’s room more than 0.3 K below setpoint | 10% of the time | 0% of the time |
This is one night in different weather, so I treat these numbers as an observation. Of 865 commands, 853 were transmitted correctly and there was not a single alarm. Comfort in one room was nevertheless worse than under the factory controller.
In the morning something worse turned up. During the night the lowest amount of free memory had dropped to 48 bytes. The device did not freeze, but it was lucky. The notifications were to blame: an encrypted connection to Telegram needs a large contiguous block of memory, and the first version kept 11 kB of buffers allocated permanently. The test board had about 93 kB free, the module at the boiler about 56 kB. Since then we measure memory on the module that is actually doing the work. Even before the takeover, on 4 November at 23:40, the module also restarted by itself, and to this day we do not know why.
No week of trials
The plan called for a week of trials and a week of evaluation. On 5 November I decided otherwise: we move to the target system straight away. The controller runs the boiler, calculates setpoint temperatures for the radiator valves in the four rooms with radiators, and has −/+ buttons with a manual override for 2 hours.
Over the following days a trait of the boiler I had not known about showed up. In mild weather (8 °C) the boiler heated at minimum power and the water temperature rose slowly, no matter how much we asked for. In three days of data, 44 out of 77 cycles never reached the set temperature, and it had been the same under vSMART. While we were at it, we established that the register ebusd calls “modulation” is the requested power, not the measured one: it showed 16% even with the burner off. The real measure of power is the fan speed, 1220–1320 rpm when heating and up to 5440 when charging the cylinder.
The page crawled at 1 kB/s and it wasn’t the Wi-Fi
After I added last-hour charts for every room, the controller’s page (154 kB) started loading at about 1 kB/s. The symptom looked like a network problem: the big page slow, small requests fast. The first fix disabled the Wi-Fi modem’s sleep mode, and the notes say outright that this diagnosis was wrong. A static 14 kB buffer had eaten half of the free internal memory, and the network stack was choking for lack of room. After 55 kB of buffers were moved to the extra PSRAM memory, the free space on the test board went up from 28 to 84 kB.

Hot water from the controller
On 8 November the controller learned to do what the cloud had refused me: it writes the hot water setpoint to the boiler (within 35–60 °C, with a read-back check) and tops up the cylinder on demand. The boiler has its own hysteresis: it only starts charging at about 7 K below the setpoint. A “top up to 50” command with 45 °C in the cylinder would therefore do nothing. My controller briefly raises the setpoint to 7 °C above the requested temperature, which forces charging to start at once, and then restores it.

In part 3 I describe what went wrong once the controller started working day in, day out.




Leave a comment