Temperature inside boiler - Shelly Pill
For a long time, I wanted a way to know how hot the water is in our boiler used for the house. I wanted to estimate how much energy it could store still, and how much hot water remained for the house. I wanted more than an analog thermometer: I wanted the data in our Victron system, Home Assistant, and elsewhere. So I started looking for a way to measure it.
We have a standard Drazice boiler at home: OKC NTR/HP 300. We have two heating elements: the top one (TJ 6/4 3.75 kW) and a bottom one (RDW 18-7.5 kW). We use the bottom element when surplus solar power is available, and the top element is scheduled, like a HDO, but smarter and managed with Shelly relays and set up in the Shelly app. I will create a separate blog post about this.
The boiler has three measuring points on the back: one near the top, one around two-thirds of the height, and one around one-third. Cold water enters at the bottom and warm water leaves at the top, so these three readings provide a fairly good estimate of the state. I first considered Ruuvi, which Victron integrates with, but Ruuvi tags are more suitable for ambient measurements than for measuring inside boilers. I then looked at the temperature options Victron provides but did not find a suitable solution. The Cerbo GX and MPPT devices have temperature inputs, but they use older standards for which I could not find matching sensors with cables fitting the boiler. People usually seem to make these themselves with a soldering iron and rubber; that was not for me :-)
Some time ago, Victron added support for discovering and integrating Shelly devices, starting with Venus OS 3.70. Only the common Shelly devices are supported, so I bought several relays, and it works fairly well. Provided that both the Cerbo GX and the Shelly devices are on the same local subnet of course.
I looked at the temperature-measuring options among Shelly devices. I first found the Shelly Add-on, but it seemed too clumsy and expensive because I did not need a relay. Then the AI assistant on the Shelly website suggested the Pill. It was perfect: it is powered via USB-C and therefore needs no batteries, Combined with a 1-to-5 splitter and three Shelly temperature sensors DS18B20, it was all I needed. The temperature sensors fit perfectly into the measuring shafts on the Drazice boiler: simply unscrew the plastic cover, insert the Shelly sensor, and screw the piece back in.
You have three temperature sensor slots on the back of the boiler. Just plug the jacks into the splitter, plug the splitter into the Pill and you are done. The only remaining cable is the USB-C cable for the Pill. Connect it to a nearby outlet and register the Pill in the Shelly app like any other device.
For the pill to work with Victron, you actually need Venus OS v3.90-beta14 or newer. The pill is then supported in Victron like any other native temperature sensor. After enabling the pill's temperature channels in Integrations, the temperatures appear in your Victron system as if they were read by Victron's native temperature sensors. This means the temperatures become available in:
- the Cerbo GX display, on the main screen -- a new Levels tab appears under Environment and renders values nicely;
- VRM, where the readings also appear automatically.
So far, it has worked reliably.