TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Building my own HomeKit Thermostat

190 点作者 frenchie4111超过 4 年前

14 条评论

MarkusWandel超过 4 年前
I&#x27;ve been running homemade HVAC control for 12 years now. A few points:<p>1. Have &quot;can&#x27;t fail&quot; safeties. In my case, that&#x27;s the existing thermostat in parallel with the relay (so that the house can&#x27;t freeze up if my system fails) and a second extra thermostat in series with it (so that if it fails stuck on, things won&#x27;t overheat too badly). The second safety thermostat can be out of the way, like in the basement.<p>2. Assuming you live in a northern area and have a furnace that&#x27;s less than a decade old, it may well be a two-stage (i.e. high and low heat mode) one set up for autostaging (run on low for 5 minutes, then fire up full blast) because the installers were too lazy to fish the extra wire to run a proper 2-stage thermostat. My homemade system has a 0.3 degree Celsius difference between the low and high stage cut-in, plus some hysteresis to avoid short cycling, and it keeps the temperature wonderfully stable (within 0.2 degrees of the set point) with the furnace only ever switching to high if you turn up the temperature (on the very most brutally cold winter days it might run almost continuously on low). At least here in Canada, installers have to leave the technical manual with the furnace, so you know which DIP switch or jumper to change to disable autostaging.<p>3. Mechanical thermostats have something called an &quot;anticipator&quot; which slightly warms the sensing element as the furnace runs, so it tends to turn off below the set point. This is to avoid overshoot. Digital thermostats do it in software by pulse width modulating the furnace enable as the temperature nears the set point. In my case it&#x27;s completely unnecessary to code this up - I guess the thermostat location is just perfect - but if you do get overshoot, just simulate it in software.<p>4. AC units can be damaged by short-cycling and sure enough an early version of my system had a bug that caused this. Luckily I noticed right away. Now it&#x27;s full of safeties like minimum run and rest times and probably much more conservative than a real thermostat. Longer AC run times are better for dehumidification anyway. I also enforce minimum run times on the furnace.
评论 #25555654 未加载
评论 #25555064 未加载
评论 #25558912 未加载
评论 #25554179 未加载
评论 #25555004 未加载
评论 #25553885 未加载
评论 #25556128 未加载
kokx超过 4 年前
For anyone looking to tinker with automating their thermostat, I highly recommend looking at the OpenTherm Gateway[1] (OTGW). It uses the OpenTherm protocol which is supported by a lot of heating systems.<p>Though the protocol is backwards compatible with the old type of thermostat which would simply turn on and off for heating, OpenTherm works with modulation as well. Not simply turning the heating on at 100% capacity and turning it off again when the target temperature was reached, but taking a bit more of a gradual approach.<p>The OTGW fits in here beautifully. It sits in the middle between your heating system and your existing (OpenTherm-speaking) thermostat. Listening to all the messages being sent between your heating system and thermostat. And if the onboard firmware fails, it should even fall back to that behavior completely.<p>For me, it allows to get a ton of information from my thermostat and heater, and automate heating and cooling down my home. All in a much better way than a simple relay with an ESP8266&#x2F;ESP32 could do. It also retains my (non-smart) home thermostat functionality, including the ability to change setpoints on it. Which is much appreciated by my partner.<p>Third party support for the OTGW is relatively good as well. Home Assistant and Domoticz both support the OTGW, and the serial protocol it speaks is quite simple as well. Best of all, its opensource and has no need for any cloud connection you don&#x27;t want.<p>[1]: <a href="https:&#x2F;&#x2F;otgw.tclcode.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;otgw.tclcode.com&#x2F;</a>
评论 #25556542 未加载
jennyyang超过 4 年前
I have to say that HomeKit really does a good job in unifying the Home IoT experience. I used to use Philips Hue exclusively, but the HomeKit app is just so much nicer. And since then I&#x27;ve branched out considerably, and the only unifying factor is HomeKit. It&#x27;s great.
评论 #25555201 未加载
评论 #25555261 未加载
评论 #25554992 未加载
dpeck超过 4 年前
It would be nice if more hardware vendors got out of their own way and supported HomeKit. It’s not perfect, at all, but it is far ahead of the typical vendor provided software experience.
评论 #25554807 未加载
评论 #25556966 未加载
评论 #25554942 未加载
评论 #25554856 未加载
sircastor超过 4 年前
I’ve been quite frustrated that both of the houses I’ve lived in in the past decade have used “communicating” systems, meaning that the products exploring this space are out of reach. HVAC professionals describe these systems “Ferraris” of thermostat control, but their remote features, API, etc are awful - I’m stuck with what I can only describe as a touch thermostat made by the lowest bidder.
评论 #25554206 未加载
评论 #25554170 未加载
covercash超过 4 年前
I’ve had a very good experience using one of these to provide HomeKit compatibility to Nest devices: <a href="https:&#x2F;&#x2F;www.starlinghome.io" rel="nofollow">https:&#x2F;&#x2F;www.starlinghome.io</a>
评论 #25553943 未加载
评论 #25553917 未加载
vmception超过 4 年前
HomeKit often times is better than the OEM&#x27;s app for their own product.
评论 #25554236 未加载
评论 #25554023 未加载
thangalin超过 4 年前
A related question regarding Wi-Fi line voltage thermostats:<p><a href="https:&#x2F;&#x2F;iot.stackexchange.com&#x2F;questions&#x2F;2895&#x2F;wi-fi-line-voltage-thermostat-for-baseboard-heaters" rel="nofollow">https:&#x2F;&#x2F;iot.stackexchange.com&#x2F;questions&#x2F;2895&#x2F;wi-fi-line-volt...</a><p>The question lists a number of commercial thermostats that may be of interest, as well as a nod to WebThings:<p><a href="https:&#x2F;&#x2F;iot.mozilla.org&#x2F;gateway&#x2F;" rel="nofollow">https:&#x2F;&#x2F;iot.mozilla.org&#x2F;gateway&#x2F;</a>
EricE超过 4 年前
Complains about not having a common wire for an ecobee, cobbles together a separate box with a USB cable draping down around the door jamb - love it :)<p>As others pointed out, put a plain old bi-metallic thermostat in parallel with these confounded computerized thermostat as a fail safe. Frozen pipes are no joke! I have one in parallel with my Nest and would probably do it with a &quot;normal&quot; thermostat anyway as I&#x27;ve had those fail in weird ways in the past too. Redundancy on critical systems is never a bad thing.
justinph超过 4 年前
This is neat. I’ve often thought of building my own since no smart thermostats support the millivolt system my 50 year old boiler uses.
评论 #25554969 未加载
mattowen_uk超过 4 年前
Neat, this dovetails into a recent comment of mine quite nicely..<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25465667" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25465667</a>
评论 #25553886 未加载
runjake超过 4 年前
It doesn’t render on my iPad but which esp32 HomeKit library is the author using?<p>I have an esp32 sensor system in my garage I’d like to add HomeKit functionality to.
评论 #25554038 未加载
bombcar超过 4 年前
This is ingenious (and thermostats are notoriously simple) but I&#x27;m surprised it was easier than just running a neutral wire for an Ecobee.
评论 #25554008 未加载
评论 #25553862 未加载
aliljet超过 4 年前
Honestly, if HomeKit was something that we could use in an operating system that wasn&#x27;t owned by Apple (~70% of devices on the planet ride Android, to be clear), the title here would feel a little bit more reasonable, but alas, Apple is the truest of true closed ecosystems. Open doesn&#x27;t look like HomeKit and those boycotting walled gardens should know better than to find themselves trapped inside Apple.
评论 #25555635 未加载
评论 #25556381 未加载
评论 #25554262 未加载