12 ms·
I built an offline smart home
- blagie 3y agoTuya devices are available in Zigbee for about $5, and the Zigbee versions have no way to phone home. The nice thing is you can: 1) Buy eight random Tuya Zigbee outlets ($40) 2) Three PIR presence sensors ($10) 3) Fancy Sonoff Zigbee USB device ($20) 4) Three RGB-CCCW lightbulbs ($15) 5) Three or four temperature/humidity monitors ($15) And you're at the $100 mark with a basic smart home without breaking the bank, with a good path to upgrade if you like it. The main annoyance are shipping times from China.
- minimalist 3y agoOnly thing I'd add is to try to get devices that can be flashed with esphome[0] for future-proofing. There is an onramp[1] for devices that can be flashed with Tasmota. Also be very wary about devices that are not (verifiably) UL listed / CE rated, especially if the device is to be plugged into mains and tucked behind some furniture (or worse yet, installed into the wall). [According to internet folk lore] some of these can be grounds for being denied insurance coverage in the event of a fire or other damage [citation needed]. Personally, I don't mess around with random-china-devices and mains outside of the workbench. [0]: https://esphome.io/index.html https://esphome.io/index.html [1]: https://devices.esphome.io/guides/tuya-convert/ https://devices.esphome.io/guides/tuya-convert/
- ihattendorf 3y ago> Some of these can be grounds for being denied insurance coverage Is there a reason you think insurance wouldn’t pay out because you used a non-listed device? This is something I frequently see people asserting without any basis in reality, and I’m curious where it comes from. People do stupid things that insurance covers all the time. I do agree that you should only use listed devices whenever possible.
- minimalist 3y agoBest include the whole quote: >Some of these can be grounds for being denied insurance coverage in the event of a fire or other damage. Honestly, I don't know and I haven't personally heard of anyone getting denied claims because of stupid things related to DIY repairs/modifications. I think this repeated wisdom comes from things that we read in HOA and rental agreements about DIY modifications. I'll edit my comment with a [citation needed]. Thank you for the question :) It does make me wonder: what if a fire caused by a DIY installation of a ebay gadget resulted in loss of life? If the aggrieved parties went to court, who would be held liable? Here is another discussion: https://old.reddit.com/r/HomeImprovement/comments/7vwe23/does_anyone_have_hard_evidence_that_homeowners/ https://old.reddit.com/r/HomeImprovement/comments/7vwe23/doe...
- efitz 3y agoI am less than impressed with Tuya. They want to be an ecosystem, just like HomeKit or SmartThings, so you either have to go all in on them or use some bridging solution. And they charge (a lot) for their cloud development platform (used to have a free tier), and they change apps from time to time requiring new accounts and reconfiguration, etc. Not a fan.
- XorNot 3y agoI really wish Tuya would just sell products and provide a way to flash them, because under the hood the platform is quite sensible: serial controllers for core functions with a wifi daughter board. So if you can chip swap them, and ESP can drop right in with ESPHome. If they'd just let us flash custom firmware without needing an exploit then you'd be able to run ESPhome without any fuss on the raw chips (the Bekan firmware is included in ESPhome now - it's great). They're sitting on a pile of easy "family and friends" recommendations if they'd just drop the ecosystem aspiration.
- blagie 3y agoThat's a really broad-reaching statement, much more so than might seem to a casual reader. In an ideal case, each of these devices would: 1) Be open-source 2) Be programmable in a stack of kid-friendly languages, with a stack including Blockly, CircuitPython/JavaScript, and full-fledged kernel hacking 3) Clean, clear documentation and web interfaces for doing this 4) Integration with a secure non-wifi protocol like Zigbee 5) Have a standard, maintained back-end, so things like security fixes can hit all devices, no matter the sensors Kids can (and some would) learn to do things much as they do with Scratch or Hour-of-Code projects, and it'd just be a different dynamic. There is a mint to be made there if a platform like Tuya could pivot here. It's a decent chunk of work, but far from astronomical. Step 2 would be to do something similar for HomeAssistant, or for a similar platform, and there ought to be devices which ship with that. The Zigbee coordinator should be programmable, configurable, and kid-friendly to do so. It should also automatically install security updates (ideally, via Ubuntu, rather than the vendor; Ubuntu is looking to make money; a $5-per-device plan for long-term remote maintenance would do it a lot better than giving me warnings about my machine being insecure, and if I won't pretty-please opt into having them track me with their premium platform)
- j45 3y agoThis is really helpful to know - Zigbee for a while was a premium compared to other protocols and it's nice to discover that has drastically changed.
- blagie 3y agoIt's still often double the price. * Wifi spy-on-you-compromise-your-network version: $2 * Zigbee version: $4. I can spare the extra two bucks, though.
- averageRoyalty 3y agoOr buy the wifi one and flash with esphome or similar.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- effnorwood 3y ago[dead]
- smeej 3y agoI keep trying to talk myself out of wanting to do this. I live in a very small studio-style home with a total of four lightbulbs in it. It takes fewer than 20 steps to get from any one corner of the house to any other. But every time I read an article like this, I can't help but think how cool I would feel if my house could tell I was coming and turned my lights on and my heat up, or dimmed and then turned everything off once I got in bed.
- interroboink 3y agoA good one to keep in mind: https://xkcd.com/1205/ https://xkcd.com/1205/ ("Is It Worth The Time") Though of course the fun/cool factor is a separate thing (:
- shermantanktop 3y agoThe tooltip on that comic captures how i feel about nickel-and-diming my own attention. But maybe that just means I think doing HA stuff is fun.
- abnry 3y agoNext thing you know, you're learning how to flash ESP firmware and how Zigbee protocols work. The cool factor is maybe 25% of it for me. It's mainly an obsessive hobby.
- tharne 3y agoI'm not a fan of Smart Homes, but I can appreciate this take on it. Making it all work is the cool part - everything else is just a side effect.
- squeaky-clean 3y agoIt's such a fun hobby, and easy to jump into with just knowledge of nodejs or web-dev based Python. It was my first serious foray into working with any kind of hardware at all. And you're entirely right it's an unstoppable gateway to learning how to code arduino's and then esp32's, and then eventually hardware projects that aren't even smart home related.
- interroboink 3y agoI haven't done a lot of home automation, but I did set up some Amazon Dash buttons to play some music on our house speakers, which was fun. When Amazon discontinued them and actively pushed an update to brick the devices, it was a nice inexpensive wake-up call to not trust phone-home IoT devices. Sometimes the phone-home comes in the guise of over-the-air updates that are supposedly good for security or add features. But sometimes they actually remove features. I think the author of this article has it right — the best security and most trustworthy IoT setup is to host it yourself; never connect things to the internet at large. If your gizmo doesn't support that mode of operation, don't buy it.
- kayodelycaon 3y agoOffline by default is great. It lets me decide which devices are remote controllable (thermostat) and use a VPN to access my home network for everything else. I’ve got a mix of Lutron and Phillips Hue devices with a Honeywell Thermostat tied together with Home Assistant on a raspberry pi. (Lutron needs a hub. The hue devices connect directly to the pi.) It’s been absolutely rock solid. I’m using Lutron Pico remotes as switches. I haven’t had to replace a battery in over a year after installing everything. Hue motion sensors just work. Lutron switches are absolutely critical to my setup. They work (and paired remotes work!) when the network is down, which makes automation a progressive enhancement. Same with the thermostat, it’s offline first. Wifi connectivity is optional. I tried living with smart bulbs but they get really expensive if you’re doing a whole house. And rebooting light switches is absolute insanity. I do not want automation bad enough to make my light switches less reliable to get it.
- karlshea 3y agoThis summer I replaced a couple switches with Lutron and they’ve been very solid, in six months there’s been only twice where an automation didn’t set a state correctly and I don’t even know if I can blame Lutron.
- j45 3y agoOffline first is the only way to go. The cloud is always someone else's computer, and any free service will likely end before your hardware needs changing. Lutron switches are great too, I have them. I am not a super fan that you have to seem to have to buy their pro hub to get telnet access to the lutron switches and also not use the cloud.
- Gyrantula 3y ago[dead]
- Gyrantula2 3y ago>Building my offline smart home took the better part of a weekend Yeah, right. Nobody in their right mind should be making their home "smart" for the convenience or efficiency. It's a hobby. A frustrating, inconvenient, burdensome, potentially expensive, challenging, neverending hobby. It taught me to love light switches.
- corethree 3y agoIt's actually easier now then ever before. Buy smart bulbs for cheap off of temu. They all integrate with alexa or google home automagically. I now never touch a light switch. "Computer dim lights to 40%." I never bother touching a light switch. This guys set up is too complicated. The easy way to do it nowadays is to buy smart devices that integrate with the google or alexa echo system and you just talk to alexa or google to get it to do what you want.
- CharlesW 3y ago> It's actually easier now then ever before. Agreed, but Alexa fails hard if you have no internet, and my understanding is that Google Home also becomes mostly inoperable. I've tried Home Assistant but could never get it to work reliably. HomeKit is great and works offline if you have a home hub (an Apple TV, a HomePod, or an iPad).
- petemir 3y ago> Agreed, but Alexa fails hard if you have no internet It also fails hard with Internet. I’m sick of being on my living room asking Alexa to turn on the light just to get the bedroom light turned on (each room has its own Alexa/Light pair, so there should be no confusion).
- corethree 3y agoTry google assistant. Google assistant actually has a little bit of an LLM in it, so it's a bit smarter.
- Aloha 3y agoI went with the Apple HomeKit compatible camp, because it does indeed all work locally across your local LAN without a network connection - its not foolproof, but it mostly just works, and works well at that - and more importantly works when the internet is out. The biggest thing with Apple is they get that houses have more than one person living in them, and provided everyone has an Apple device, it all just works.
- faeriechangling 3y agoI do not have any faith in Alexa OR Google home, despite Amazon on paper being a juggernaut of market share and Google being a juggernaut of AI. How they are fundamentally architected is bad. Cloud-based services that run over a single WAN connection? That basically guarantees Google Home and Alexa are bound to be only ever used for frivolous things you don't really need because the smart assistants are fundamentally unreliable. Initially I didn't think this was THAT big of a deal, but the more experience I got with smart homes the more I'm thinking the ecosystem's are doomed to plateau while Homekit keeps trucking past them since its reliability problems are not as severe. Amazon and Google are building castles on sand.
- kccqzy 3y agoBefore Google bought Nest, I even remember Nest made sure their products could all communicate with each other on the local network without the Internet. Nest devices set up a local network for themselves in the IPv6 ULA range. IPv6 addresses are so plentiful that a made-up ULA network won't cause any problems. I thought that was a pretty clever technique to ensure falling back to offline use. It did generate some questions on various online forums when people discuss Nest home devices were sending out IPv6 RAs. I guess but cannot confirm that Google has continued this practice. It didn't seem like the problems you mention exist, unless Google did something stupid and disabled all of this perfectly working functionality.
- faeriechangling 3y agoBesides what you mentioned there’s the local home SDK. Google is still using the actual Nest app and I’m pretty sure what you mentioned works through that app. There’s also matter now for local control. The thing is that there’s this mishmash because unlike Apple they weren’t local first across the board from the get go. In any case, I’m holding out for a HomePod mini refresh because if they throw a s9 chip in there it’s going to be able to do basic voice recognition offline Maybe matter can save Alexa/Google home and I’m too pessimistic but I don’t like how they work now.
- aldanor 3y agoLoxone is a pretty nice all-in-one solution, or as a base that can be then connected to HA, from lighting controllers to heating etc, and fully offline, especially in Europe where Lutron and the like aren't being used en masse (or are simply not compatible). The only downside is that it's pretty hard to configure by hand since the system is pretty complex.
- rolisz 3y agoBut Loxone is also a very different system, living in it's own bubble. When I talked to my local Loxone representative, they told me you have to get their special bulbs (costing 80$ a piece), running over their own wiring (24V, not 240 as everything else), their own light switches, their own everything. They literally told me I would have to have everything electrical done by them. In the end I passed and I'm going to slowly move things to ZigBee compatible stuff.
- efitz 3y agoSmart Home has kind of been my hobby for the last 7-8 years. I have well over 100 devices controlled by my smart home setup. Before I installed the first smart device in my home, however, I had a single requirement: EVERYTHING MUST FAIL NORMAL. By this I mean that if the internet went out or a vendor went out of business or I rage quit a vendor, then the device in question had to act like it was a normal non-smart device. I avoided things where you had to configure power-on default behaviors, and where you had to cycle power or disconnect the device to reset it. For this reasons I have no smart light bulbs in my house. I replaced every light switch with a smart light switch, and if anything goes wrong, walking over and using the switch will turn the light on or off. Most of my automation is "zero touch" flavored - I want the house to do what I want without me triggering anything. For instance, I have luminance sensors in several rooms and during the day if it gets gloomy or overcast, or near dusk, it turns lights on. I also use occupancy sensors to turn lights on and off, and have multiple rules to set lights to the appropriate brightness based on time of day (after bedtime, the lights still come on when someone goes in the bathroom, but very dim, etc.). All this happens locally via HomeKit or HomeAssistant. And, if automation fails, then the switches still work.
- zzo38computer 3y ago> EVERYTHING MUST FAIL NORMAL. By this I mean that if the internet went out or a vendor went out of business or I rage quit a vendor, then the device in question had to act like it was a normal non-smart device. I do not need smart home, but if you do, then I think that you are right. This is a good idea and is the most important idea.
- moandcompany 3y ago> EVERYTHING MUST FAIL NORMAL This is a solid principle. Another rule I include with this is that the "Smart Home" should still be able to operate and be controlled like a non "Smart Home" by a regular person. (e.g. light switches, thermostat, door locks)
- efitz 3y agoYes, this was the natural consequence of my rule. I have to travel on business from time to time and didn’t want a tech support call in the middle of the night when I’m halfway around the world because my family couldn’t turn the lights on :-)
- corethree 3y agoThe futuristic idea of a smart home is that you can talk to your smart home. "Computer, dim lights by 30%" "Computer, open curtains." "Computer, vacuum the floor." "Computer, play some jazz" All of these are phrases are actual literal phrases that I use in my home, some on a daily basis. It can only be done, with current consumer tech, through the internet. All you need is a roomba, some 4$ smart bulbs, a spotify account, a 30$ auto curtain robot, and an alexa. For google home you can do the same but you can't call it a "computer." In the future they will most likely be hooking up some LLM super computer to the home. In that case it can only be online. The idealistic version of a smart home involves what we see in Star Trek TNG. Talking to the computer and only an online version of that can fulfill this vision currently and in the future. If you go offline, what you get is what I term a "programmable home" more than a "smart home".
- tiltowait 3y agoModern phones could easily handle every example you just gave. Heck, even the most recent Apple Watch could.
- j45 3y agoTasker on Android is wonderful :)
- paranoidrobot 3y agoHave you looked into Assist with Home Assistant? It's offering local voice control with custom wake words. https://www.home-assistant.io/voice_control/ https://www.home-assistant.io/voice_control/
- aussieguy1234 3y ago>In the future they will most likely be hooking up some LLM super computer to the home. In that case it can only be online. Well, not necessarily. The open source LLMs i.e. Mistral/Llama 2 can be run offline if you have a good consumer grade GPU. I'd like to see an open source LLM control home devices Alexa style.
- deleted 3y ago[deleted]
- tharne 3y agoThe Smart Home is the ultimate triumph of capitalism. A product that nobody needs who's biggest value is mining user's data in order to sell that user more shit they don't need.
- paranoidrobot 3y ago> mining user's data The article is about offline Smart Homes. Using something like HomeAssistant, and products supporting integrations with local control you can eliminate data going to third parties.
- j45 3y agoYou'd be surprised how much time you can actually save yourself and get back for living towards other things by automating the right few things for yourself. Get a stopwatch and try it out.
- paranoidrobot 3y agoI am planning to do this soon(TM). Probably starting with ESPHome to control my heat pumps over IR. The remote works but I forget to turn it off when not in one of the rooms, and it can't do smarts like keeping temperatures in desired bounds. An ESP32 running ESPHome with high power IR LED, a presence sensor, temperature sensor, and some pre-built library to control heat pumps[1]. it looks like it should be fairly simple to implement with Home assistant. Now if I could only disable the beep from the heat pumps receiving commands. I would like to do smarter lighting, but the lack of decent smart light switches that support local control and are also licenced for use in AU are a blocker there. [1] https://github.com/crankyoldgit/IRremoteESP8266/wiki#ir-sending https://github.com/crankyoldgit/IRremoteESP8266/wiki#ir-send...
- nanolith 3y agoA dozen years ago, I designed and architected a "smart lock", back when that was a thing. Anyway... one of the most important features that we didn't advertise was the ability to use it without registering with the Internet service. It could be used entirely in offline mode. In fact, in most cases, you could use this device without it ever connecting to the Internet. I think that consumers should have a choice, and they should only need to connect to additional services or a subscription model if there are useful reasons to do so. Most consumers simply do not need their "smart lock" to phone home. If you wanted to do more interesting things, like issue temporary keys to run an Airbnb, then sure, it makes financial sense to pay a small subscription fee. But, most folks just want a little convenience. Of course, it helps that I'm generally distrusting of businesses and of how behaviors will change after my departure. If you want your products to be ethical, the ethics must be built in from the beginning.
- squeaky-clean 3y agoI work at a place that does smart locks (for businesses though) and my first question to them during the interview was what happens when the internet is out. Thankfully they thought of that and it can even be taken offline permanently after the first time setup. What I heard from other people in the industry is that when Facebook had that huge multi-day outage, it was partly because their smart locks couldn't open externally without an internet connection, and it was relying on Facebook's DNS which was the source of the huge outage.
- nanolith 3y agoI had long and contentious arguments about this. It really opened my eyes to how little innovators really think about these problems. From the beginning, I was concerned about ensuring that our product fails safe, that we had good ESD protection, that our encryption protocols were industry standard, and that we went through third party security auditing. As I liked to say, I wanted to build a product that I'd feel confident about giving to my grandmother. She should be able to use it even if she lacks familiarity with current technology, and I should feel that she's safer for having it.
- culebron21 3y agoI've tried some advanced lighting at home, when I refurbished apartments in 2011-2018, before smart home became commodity, and quickly understood that I don't need any kind of these "advancements", because it adds little value but it fails a lot more often and needs an order of magnitude more maintenance. Regarding lights, I understood any spot lights are nearly impossible to plan ahead correctly, and are used rarely. what is really needed is multiway switch for the ceiling light, and 2 levels (1 dim bulb for dim light, more bulbs for bright). The rest -- local spotlights, dimmers, adjustable hue -- add very little value, but need maintenance and are hard to repair (try finding a rotating knob for a dimmer). Use table-top lamp or one with a clamp to save space, with yellowish light for local lighting, same for bed light. That's it. Using smartphone may have seemed ok when they were new in 2010. Now I see they're pain to use, apps live their own life, you have many distractions, and it often takes equal amount of time to walk to the switch to check/turn off, as to browse to it in the phone. Same if you have kids -- you get distracted out of the phone, but phone won't save you time, it's much harder to use smartphone with kids nearby.
- zubairq 3y agoOne of the best discussions in a long time I have seen about smart homes, thanks
- yftsui 3y agoBuilding an offline smart home using Home Assistant is signing yourself to an unpaid SRE and nobody at home appreciate your work, it maybe a fun activity but don't expect too much out of it. I did about 20% of the article's setup which took about a weekend of time, then randomly after Home Assistant update certain things start not functioning, i.e. I bought some $2 Xiaomi BLE temperature sensors and the key I setup just somehow stopped working, then its another half day wasted on trouble shooting them. I regret my time wasted on them, especially given Home Assistant's data retention is not as great as I was expecting, i.e. default storage is only 14 days for temperature sensor and that sqlite DB is huge with this limited data.
- aaronax 3y agoI thought the limited history was weird too and had bumped up my retention to 1000 days or something. Fortunately I only got a couple hundred days into that before they released just recently an update that includes trends in the history graphs. Apparently that data was there all along, just not being shown. It is not full data but enough to fill in the graph. Just thought I would mention it.
- archagon 3y agoI recently bought some smart devices and I've been playing around with plugging/unplugging my cable internet connection to see what continues to work and what doesn't. It's nice to have evidence of Matter-over-Wi-Fi (not just Thread) continuing to work even when there's no internet connection, though this may vary depending on the hub in use. TP-Link Tapo devices can also be controlled over Wi-Fi without internet, separately from Matter. Even if you ignore the privacy ramifications, it's pretty magical when tapping a button on your phone toggles a light with nearly zero delay.
- kkfx 3y agoI've done something very similar, NOT with ZigBee or any other wireless devices, but with wired ShellyPro, a Victron p.v. inverter, some WaveShare ModBUS RS485/tcp etc, and my few notes are: - HA have a slick UI, but it's a MONSTER, less monstrous maybe then OpenHAB but still a monster, I HATE it's YAML config, it's use of SQLite is well... And it's less horrific way to deploy, by pip in a virtual environment is meh, at best; - wires are needed for reliability, but while ShellyPro and WaveShare seems to be reliable (in few years almost no issues) they are still limited, damn expensive and not much comfy to keep them up to date automatically and centrally. In general most IoT products are crap at best, badly documented, buggy, dysfunctional and damn expensive; - most sound reasons for home automation lay in energy saving/automation, I normally see no sound reason to switch on the lights from a mobile phone instead of a physical switch for instance, but most appliances seems to be designed without any clue on how they can be used and integrated. A small example, I have a Daikin/Rotex heat pump for domestic hot-water, it's not really a small economic device, well: just to read water temp to makes decision I need a 300+€ extra card, my take was a far cheaper pt100 inserted via the hot-water return intake I do not use. Remote piloting can choose "do not heat", "heat full power, heat-pump if possible + classic resistive heater", "try heating with the heat pump for 15' than goes full power", "choose automatically what to do". WHY THE HELL not offering a simple: - try heating with ONLY the heat pump - try heating with ONLY the resistence - do not heat - heat full power leaving the extra bit for "choose internally what to do"? I still have not answer, and to heat only with the heat pump, for instance because I have just 600-800W spare from my p.v. I have to switch any 10' "do not run" for a minute, than "start with the heat pump" in a loop. My VMC is even worse: it's only ModBUS, native, but various registers store/read different values than those documented, a small set of them are totally undocumented, some fails to read or write randomly so I need a bit of extra logic to try again few times. IoT can be a nice addition, but so far there is simply too much crap both on electronic side and on the digital side.
- Salazarlavelle 3y ago[dead]
- deleted 3y ago[deleted]