Live data from Hacker News

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

olegtarasov.me

11–20 of 28 posts

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

#11
Have to say with my background individual room control and measurement always seemed the nirvana, but it seems like a lot of heating design is moving away from this to more constant input / constant loss with outside temperature curve adjustment. Take a look at heat geeks.

You’ve got quite a complicated system there. Some of the key design parameters are about getting balanced flow (proportional) rather than bang bang controllers so that you optimise the delta flow return and operate the heat source at lowest realistic flow return values for efficiency.

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

#12

Have to say with my background individual room control and measurement always seemed the nirvana, but it seems like a lot of heating design is moving away from this to more constant input / constant loss with outside temperature curve adjustment. Take a look at heat geeks. You’ve got quite a complicated system there. Some of the key design parameters are about getting balanced flow (proportional) rather than bang ban…

> Take a look at heat geeks.

Is this them? https://www.heatgeek.com/

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

#13

Have to say with my background individual room control and measurement always seemed the nirvana, but it seems like a lot of heating design is moving away from this to more constant input / constant loss with outside temperature curve adjustment. Take a look at heat geeks. You’ve got quite a complicated system there. Some of the key design parameters are about getting balanced flow (proportional) rather than bang ban…

This is called outdoor air temperature reset. It's been commonly used in medium to large size buildings (ie multi residential buildings) back 100 plus years.

Originally there might have been an operator doing the adjustment daily, later mechanical automation, later electronic control.

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

#14

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

Thanks! We're continuously improving it and nowadays have two people full-time working on it.

If you want to hear about the future of ESPHome, make sure to tune into the State of the Open Home next week: https://www.youtube.com/live/oa__fLArsFk

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

#15
So at the end of the day -- I understand this is a satisfying project to undertake. Operationally how is it functioning through the winter and how much upkeep is required from you?

I've looked at doing something similar for my home system but the LOE + upkeep make me think the reward to work ratio isn't right.

That said I also know that I probably can't find anyone to help build the proper system at my house -- so its a situation where if I want it right I need to do it myself :'(

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

#16
post #15

So at the end of the day -- I understand this is a satisfying project to undertake. Operationally how is it functioning through the winter and how much upkeep is required from you? I've looked at doing something similar for my home system but the LOE + upkeep make me think the reward to work ratio isn't right. That said I also know that I probably can't find anyone to help build the proper system at my house -- so it…

Also do you have any concerns about software maintainability say 10-20-30 years from now? Can someone else pick up this system and run it if you sell your house?

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

#17
I came into this expecting to see a questionably reliable implementation of a thermostat that could damage equipment or burn the user’s house down.

Instead, I found something closer to what I’d do. The boiler has its own thermostat and control system. If home assistant goes down, everything is still in a safe state.

I have home assistant hooked up to a rather dumb “smart” thermostat. It’s just smart enough to be remotely controlled. I’d far rather use that than have a raspberry pi flipping relays.

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

#18
post #16
post #15

So at the end of the day -- I understand this is a satisfying project to undertake. Operationally how is it functioning through the winter and how much upkeep is required from you? I've looked at doing something similar for my home system but the LOE + upkeep make me think the reward to work ratio isn't right. That said I also know that I probably can't find anyone to help build the proper system at my house -- so it…

Also do you have any concerns about software maintainability say 10-20-30 years from now? Can someone else pick up this system and run it if you sell your house?

Not OP but I have a lot of home automation. I did all of the work myself. It’s easy enough to swap the wall switches and the thermostat back to what came with the house.

A lot of my stuff is set and forget. Home Assistant doesn’t need to be updated or monitored. As long as nothing talks to the internet, all I need is backups of the config and spare SD cards.

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

#19
post #12

Have to say with my background individual room control and measurement always seemed the nirvana, but it seems like a lot of heating design is moving away from this to more constant input / constant loss with outside temperature curve adjustment. Take a look at heat geeks. You’ve got quite a complicated system there. Some of the key design parameters are about getting balanced flow (proportional) rather than bang ban…

> Take a look at heat geeks. Is this them? https://www.heatgeek.com/

yes they have quite active YouTube channel

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

#20

I came into this expecting to see a questionably reliable implementation of a thermostat that could damage equipment or burn the user’s house down. Instead, I found something closer to what I’d do. The boiler has its own thermostat and control system. If home assistant goes down, everything is still in a safe state. I have home assistant hooked up to a rather dumb “smart” thermostat. It’s just smart enough to be remo…

Yes, safety and robustness were my primary concerns while designing this project. This house is more like a vacation home, and we don’t live there permanently. So my main goal is being able to control remotely as much of my heating system as possible, making sure not to burn the house down at the same time :) Here is what I took into consideration:

1. My device interfaces with the boiler through optocouplers, so I don’t touch boiler circuits with my crappy engineering skills.

2. The boiler itself, as well as OpenTherm protocol, seem to be able to recover automatically from many failure modes. It doesn’t matter much if some frames are dropped or mangled, since full set of control signals is repeated every couple of seconds.

3. I rewrote critical parts of OpenTherm component for ESPHome to make code more resilient to failure. The whole firmware is designed in a way that incorrect values or broken frames don’t bring anything down catastrophically. I also made sure that boiler has its own maximum temperatures set to sensible values, so that incorrect signals from the thermostat will be discarded.

4. The device is designed to be completely self-contained and doesn’t rely on Home Assistant or Wi-Fi being up.

There are a couple of things that I plan on adding to this setup, like a Shelly relay on boiler power input to be able to do a hard restart remotely.

Ideally, I would also prefer not to McGyver a custom device, but unfortunately, there are no such dumb smart thermostats for my boiler that would allow remote control.

Post reply on HN