Live data from Hacker News

DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

olegtarasov.me

1–10 of 28 posts

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#4
esphome is by far the best and most useful piece of software I've encountered in a long time!

Even for non home automation. Simple web API to turn gpio's on or off, coupled with some relays makes for a great easy yaml configurable industrial automation system

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#5
post #3

I was hoping to see some plots of the PID temperature control in action, I'm curious what is the final fluctuation in room temperature with a setup like this.

Thank you for the suggestion! I will try to add some plots if data from winter months is still available in Home Assistant. Based on my observations during winter, room temperature fluctuation is usually ±0.3° C around target temperature, which I consider to be pretty good for a first prototype :)

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#6

esphome is by far the best and most useful piece of software I've encountered in a long time! Even for non home automation. Simple web API to turn gpio's on or off, coupled with some relays makes for a great easy yaml configurable industrial automation system

I completely agree, using ESPHome beats writing firmware from scratch, even though lots of Arduino libraries are available. But the flip side is that ESPHome is in active development with lots of contributors, so sometimes things don't work as you might expect. And if that happens, your only option is to spin up an IDE and dive into source code :) For example, during this project I had to fork an abandoned OpenTherm library and rewrite almost half of it, as well as contribute a couple of bugfixes to ESPHome itself. It was actually fun, and I expected something like that from the beginning, but such a sharp drop from a cliff when YAML config doesn't work, will be a surprise for most people :)

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#7
Nice!

This references a couple of OpenTherm project, so let's add the usual disclaimer:

The OpenTherm protocol is not open.

You can only find the spec for v2, they are now drafting v5. Yearly membership is about 3K if I remember correctly (without testing software, just for the spec).

There seems to be big difference in what you can do after v2, and it includes power delivery, maybe more fine grained control on heating curves and such (unclear, I don't have the spec)

Not all boilers support opentherm (but most should), and those who do don't support all features (but the most basic should always be present).

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#8
post #7

Nice! This references a couple of OpenTherm project, so let's add the usual disclaimer: The OpenTherm protocol is not open. You can only find the spec for v2, they are now drafting v5. Yearly membership is about 3K if I remember correctly (without testing software, just for the spec). There seems to be big difference in what you can do after v2, and it includes power delivery, maybe more fine grained control on heati…

Thanks for the context! I didn't research OpenTherm much, since my boiler is one of the most basic models on the market. It supports just the bare minimum from V2 spec, but it works, so I'm not complaining :) This boiler was already installed when we bought the house, so not needing to replace it was a great way to save some money for remodelling.

Otherwise, I completely agree that charging 3K for the spec is a stupid money grab. When the time comes to build a new house and choose a new boiler, my choice will be influenced by what protocols are available and whether I can control the boiler with my own thermostat.

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#9

esphome is by far the best and most useful piece of software I've encountered in a long time! Even for non home automation. Simple web API to turn gpio's on or off, coupled with some relays makes for a great easy yaml configurable industrial automation system

I completely agree, using ESPHome beats writing firmware from scratch, even though lots of Arduino libraries are available. But the flip side is that ESPHome is in active development with lots of contributors, so sometimes things don't work as you might expect. And if that happens, your only option is to spin up an IDE and dive into source code :) For example, during this project I had to fork an abandoned OpenTherm…

Can confirm, I did some automation on a Ritto TwinBus doorbell using ESPHome, and it is rock stable:

https://keilerkonzept.com/blog/ritto/

Re: DIY Wi-Fi thermostat from scratch with ESPHome and Home Assistant

#10
post #3

I was hoping to see some plots of the PID temperature control in action, I'm curious what is the final fluctuation in room temperature with a setup like this.

Thank you for the suggestion! I will try to add some plots if data from winter months is still available in Home Assistant. Based on my observations during winter, room temperature fluctuation is usually ±0.3° C around target temperature, which I consider to be pretty good for a first prototype :)

Great, thanks for the response. I'm using off-the-shelf radiator TRVs (Aqara SRTS-A01) which use some internal PID program based on the supplied actual and desired temperatures and I experience similar fluctuations in room temperature.
Post reply on HN