| ▲ | Home Assistant waters my plants(finnian.io) |
| 86 points by finniananderson 4 days ago | 34 comments |
| |
|
| ▲ | davemp 3 hours ago | parent | next [-] |
| Fun project. Though it’s kind of unreal how complicated it is to set up HA and I literally do this for a living, both embedded sw and backend web dev. Docker compose with a zwave management server, reverse proxies for TLS, vlan isolation for the server, macvlan for HA container so it does see the host network, etc, etc. All to turn on and off a lightbulb with the sun. All the while AI is telling me to configure things insecurely. I think when I get some more spare time, I’d like to write a statically linked program that handles a zwave controller and basic automation scripting. No IP networking needed for my lightbulbs. Then it wouldn’t feel risky to just make a system user and udev rule to give it permissions to the controller, and run with systemd. |
| |
| ▲ | randusername 2 hours ago | parent | next [-] | | I also feel overwhelmed with HA homelab stuff. HA on my RPI is just not reliable, requiring a reboot 4-6 times a year for reasons I don't understand. Frustration at being in the literal dark doesn't translate to the right mindset to root cause. What I need is an opinionated guide on minimum viable virtualization, but so much of the resources online are from folks that are homelabing maximalists. I feel the same temptation as parent to create a spartan solution. | | |
| ▲ | _flux 2 hours ago | parent | next [-] | | I got myself a NUC. It's been worth it: tiny, has 16 GB of memory and 504 days of uptime. I have servers for running VMs and containers but I felt like it would be nice to have this one as a separate device. It's also easy to plug in radio devices. | |
| ▲ | benmanns 2 hours ago | parent | prev [-] | | Same. The complexity of HA also leaves my family with a bus factor of one re: keeping the lights on. |
| |
| ▲ | briHass 3 hours ago | parent | prev [-] | | You're making it complicated with all the VLANs. HAOS in a VM (proxmox helper scripts for one-line install), and HA has plugins for all the other things. Just deny WAN access to the IoT junk you don't trust at the router, or for things like cameras, a separate switch for those. That usually makes sense, since they're one of the few devices that must be powered with PoE and doesn't require gig+ bandwidth. A cheap 100mbit PoE switch will handle a good number of cameras. | | |
| ▲ | davemp 3 hours ago | parent [-] | | I’m not giving untrusted devices unfettered access to my lan and an airgapped network sounds more complicated tbh. VLANs aren’t really that bad with good networking gear. | | |
| ▲ | vladvasiliu 2 hours ago | parent [-] | | I have HASS running on a dedicated VLAN, IoT junk on its own, separate VLAN without internet access, through a managed switch. OPNsense sits in between and does the routing. Didn't have to mess around with anything, just ran the "vm appliance" or whatever it's called for hass and I was off to the races. Wireguard on the firewall gives me access from outside the house. Actually, both OPNsense and Hass are VMs on the same machine, with the latter's network not even connected to any physical port outside the box. I'm not even running Proxmox or anything fancy, just libvirt on Arch. The only "fancy" thing is a 2nd hand Mellanox NIC I got off eBay for 30 €, which presents virtualized interfaces to the VMs, but HASS doesn't actually use those. There's also no need to manually screw around with any reverse proxy for TLS; HASS does it with the Let's Encrypt add-on. The only missing piece when I set this up a while ago was something to regularly renew the cert (the add-on would only get started at boot-up). |
|
|
|
|
| ▲ | PetitPrince 5 hours ago | parent | prev | next [-] |
| > I think I need more Zigbee repeaters to get a reliable mesh network, but to date I haven’t found any consumer-grade devices certified for use in NZ. Since many devices are also Zigbee router (it's a mesh network after all), maybe some additional lightbulb for exterior would suffice ? |
| |
| ▲ | richardlblair 2 hours ago | parent | next [-] | | This - the move is to grab some zigbee smart plugs. Once you have HA up and running there are so many applications for these. I have a door sensor that monitors my kids bedroom door, and when it opens it turns on a desk lamp in my room. This allows me to get to him before he gets to my partner who's sleeping with the new born. | |
| ▲ | theshrike79 5 hours ago | parent | prev [-] | | Pretty much all mains powered Zigbee devices also act as routers in the mesh. | | |
| ▲ | calgoo 5 hours ago | parent [-] | | Exactly! I prefer the small power plugs that lets me control fans and other power systems as relays. Family has a habit if switching of light bulbs using light switches and i have not gotten the change approval to disable the physical switches in the house :) | | |
| ▲ | yoavm 5 hours ago | parent | next [-] | | For me the best solution was to use smart switches (mainly dimmers) and dumb lightbulbs. People can use the switches like any other if they want, but I can still have my automations and remote control. | | |
| ▲ | stavros 3 hours ago | parent [-] | | Agreed, people get very frustrated if they have to remember to not use certain switches. Using smart switches fixes this. |
| |
| ▲ | liam_krewer 4 hours ago | parent | prev | next [-] | | I can recommend Shelly for light switches over smart bulbs. It's a relay that fits inside the wall switch with zigbee to sit between the light and the switch. | | |
| ▲ | rubzah 3 hours ago | parent [-] | | That's what I am doing too, though I did have to drill out some wall to fit it, in some cases. There is another option that I don't think many people are aware of: You can put a battery powered relay downstream of the (dumb) switch, and have it broadcast events when power comes on and off, to control other smart devices, which just have to listen for the events (via a broker like HA). |
| |
| ▲ | navigate8310 4 hours ago | parent | prev | next [-] | | I wouldn't recommend anyone to yank out physical controls for accessibility purposes. | |
| ▲ | squigz 4 hours ago | parent | prev [-] | | It seems like quite the hassle to have to pull out one's phone every time one enters or leaves a room just to turn on lights? Let's hope you don't have to get to the bathroom quickly late at night... | | |
| ▲ | PetitPrince 3 hours ago | parent | next [-] | | As a another comment said, the smarter way to have a smart light is to replace the switch with a smart one or even better put a relay behind the existing dumb switch to smartify the switch. For me it's important to have a manual override; you shouldn't need an app for a thing as basic as turning the lights on. | |
| ▲ | ga_to 4 hours ago | parent | prev [-] | | Disabling the physical light switch should usually only come after setting up a different way of controlling the light by hand, without a phone. Most likely there is some sort of motion or presence sensor that turns on the lights which then turn themselves off after some time or no more presence is detected.
There are also small wireless switches that could be used in place of the actual wall switch. I have done so in my apartment for example. Since the bedroom light switch is for some reason outside of the room I taped it down and put a wireless switch in a more reasonable spot.
Another example is the hallway light, which only turns on by motion sensing when the sun is starting to go down. |
|
|
|
|
|
| ▲ | zerof1l 4 hours ago | parent | prev | next [-] |
| I wanted home assistant compatible plant watering solution that works on a solar panel and does not require being connected to the water line and is Zigbee compatible. Unfortunately, I could not find any. So I did a DIY solution: a big barrel which I manually fill with water, a 12V pump (usually sold for camper vans), some rechargeable batteries, 10W solar panel, a solar charging controller, and Tuya ZG-2002-RF switch. |
| |
| ▲ | mmsimanga 3 hours ago | parent | next [-] | | I dabbled in hydroponics for some years. Due to my inability to get my Rasberry Pi and Arduino working I ended up using a 12V pump and one of those cheap $10 electric timers on Aliexpress. I estimated how much time it took for my hydroponics system to drain and that's what I set on the timer. Other people I followed had all sorts of sensors rigged up, which I would have done if I had the time and skill but I failed, so in the end it was just the timer. I too had single solar panel and battery and the system worked for over 7 years with no issues. I just replaced the pump once or twice. | |
| ▲ | atoav 4 hours ago | parent | prev [-] | | An art student of mine once needed a way to electrically control precise small amounts of water. We solved that using: 1. Water tank and gravity
2. Medical IV flow regulator¹
3. Servo hooked up to that IV flow regulator via a 3D-printed part
It worked very well. In medical applications off must be really off, so it was also quite safe in that regard as well. Her 3D-printed part had a little bit too much flex in it, but in principle this works quite well. If it is really, really safety critical I would still recommend a mechanical fallback that protects in case of power loss or when the servo fails open (e.g. bending the hose with the force of a spring if electricity is gone).¹: see https://www.gvs.com/en/catalog/iv-flow-regulators | | |
| ▲ | stinos 4 hours ago | parent [-] | | > If it is really, really safety critical Your suggestions should be fine for hardware failure but I'd be more concerned about software failure: what if a bug in your software makes it unresponsive and stuck in the state with the flow open? Maybe a watchdog or some other system running in parallel checking for a heartbeat or a max amount of time water can be flowing? |
|
|
|
| ▲ | denkmoon 4 hours ago | parent | prev | next [-] |
| Cron waters my plants :) |
| |
| ▲ | H8crilA 4 hours ago | parent [-] | | HA is essentially a better cron. It unsurprisingly uses the cron syntax where appropriate. | | |
| ▲ | denkmoon 3 hours ago | parent [-] | | HA is monstrously complex. cron just works. The same can’t be said for my homebrew esp32 pump relay controller, but at least scheduling is never the problem. |
|
|
|
| ▲ | longtermemory 3 days ago | parent | prev [-] |
| Nice!
For the hardware, why didn't you considered using a Raspberry Pi? |
| |
| ▲ | H8crilA 4 hours ago | parent [-] | | I used to run HA on an RPi, but eventually migrated it to a similar NUC. The RPi eventually just wasn't powerful enough (peak compute needs), while the NUCs are still quite cheap. And you can run a surprising amount of Proxmox VMs and LXCs on barely a few cores and gigabytes of RAM. | | |
| ▲ | davemp 3 hours ago | parent | next [-] | | I use an RPi 4 w/ 4GB of RAM and a 1TB usb 3.2 SSD and it flies through all my workloads. Though I don’t do any video encoding things. | | |
| ▲ | randusername 2 hours ago | parent | next [-] | | Thanks for sharing, your comment helped me track down that my RPI HA was disk constrained. I didn't think to add a USB. | |
| ▲ | H8crilA 3 hours ago | parent | prev [-] | | The cool thing is that it's very easy to migrate it to better hardware. HA backup and restore system is highly reliable. For this reason I can definitely recommend an RPi to start with, and who knows perhaps it will be enough forever, but if not then moving is a matter of ~one evening. |
| |
| ▲ | mytailorisrich 3 hours ago | parent | prev [-] | | Wow, not sure how to interpret your experience that an RPi wasn't powerful enough to manage watering a few plants. I can only suspect the overall software setup is massively bloated. | | |
| ▲ | briHass 3 hours ago | parent [-] | | If you want to run EspHome inside HA, and you recompile the devices (every release of EH), you want a decent processor/disk. The ESP stuff is a surprisingly heavy compile for a puny microcontroller. | | |
| ▲ | H8crilA 2 hours ago | parent [-] | | A recent RPi is sufficient to handle a few plants - though, yes, recompilation will take time. The ESP is a beautiful piece of software, hence I highly recommend it. My native language has an expression that describes this situation perfectly: the appetite grows with eating. Next thing you know you have 2k or more entities, and your HA even handles some video feeds. The important thing is that it's pretty much always easy to make an upgrade thanks to the good design of the backup system. Don't forget to set up backups in either case, it's a sin to not use such a complete system :) |
|
|
|
|