Live data from Hacker News

Run Your Home on a Raspberry Pi

pragprog.com

171–180 of 276 posts

Re: Run Your Home on a Raspberry Pi

#171

Am I the only one who still has yet to understand the value proposition of a smart home [outside wifi + sonos]? The trade off isn't a clear win to me for me to automate everything else. If it was I would try a raspberry pi set up.

I approach it like this. As you go through the next week, try and see if you can identify something that you do every day, almost like a habit, and think if automation could remove that task from your life. A few of my favorite examples:

1. Checking front/backdoor is locked every single night, now I have an automation that turns on the front hall light and sends my phone a notification that the door is unlocked.

2. The "did I close the garage thoughts", just being able to check your phone from the airport or wherever you are and see "yep its closed" is "nice" but not necessary of course

3. Everytime I open the garage door, the light turns on with a timer and some logic so that I never touch that light switch

4. auto turn off air purifier in bedroom in the morning (and on at night too)

5. Anytime the doorbell rings and I am not home, I get a phone notification with a picture of who is at the door. Helpful when worried about missing packages, deliveries, etc. Doesn't necessarily "help" solve the problem, but does do something mentally

6. Recently I added one that nudges the volume on the tv up a few clicks and down a few clicks based on the HVAC turning on/off, it was something I found myself doing habitually and now that it works it is extremely seamless and has been great

I have way more complicated scenarios of course, all of which I find compelling, but I really like the automations where you dont know they are doing something necessarily, your brain just forgets they are even automations.

Re: Run Your Home on a Raspberry Pi

#172

Earlier quoted context omitted.

> fan cooled As if that is a benefit. Putting a server in a corner of my home and forgetting about it is an application where I want the machine to be powerful enough to work without active cooling, as small as possible, and with no moving parts. None of these constraints is difficult to accomodate in this day and age.

Ya it's possible to build a fanless system, but Apple or any OEM with those parts is not going to sell you that system The fan ramps based on usage, as I said, Ubuntu server with HASS OS, VS Code Server, Netdata monitoring, NodeRed, Sonos Airplay, InfluxDB and few other containers, it's barely gets to 2% CPU usage and CPU temp at 25C. Look at Pi, they have been at it for SO many years and that shit is slow with no re…

> and that shit is slow with no real storage interface

We were talking about using it for a home automation system, which is just a very low traffic web server with some odds and ends. We are not talking about competing in the TOP500 or something. It's easily doable with a newer Pi.

Re: Run Your Home on a Raspberry Pi

#173
post #165

Earlier quoted context omitted.

How do you setup a separate VLAN and SSID? None of the "pro-sumer" wifi mesh setups under $500 support VLANs

I use Unifi for wifi gear, which supports it out of the box. https://www.ui.com/unifi/unifi-ap-ac-pro/ for the wired AP, https://store.ui.com/products/uap-beaconhd for the extension into the back of the house. Pricy, but not completely outrageous IMO. For an actual router, I run OPNsense in a VM (on the same box as HA, funnily enough). My server has dual 10 gig ports, so I pass through one of them to OPNsense and run…

Do you feel that using a virtualized router with other things on the box puts you at greater risk? I.e. you're putting an awful lot of eggs in that one basket. I've considered setting that up before but shied away from it.

Re: Run Your Home on a Raspberry Pi

#174
I've been wanting to create something for awhile that monitors my driveway, and when there's motion detected (through camera or IR) near my vehicle, it turns on a red light in my room, and possibly include a sound.

Re: Run Your Home on a Raspberry Pi

#175
post #85
post #84

Earlier quoted context omitted.

How is the container version crippled? An anecdotal data point, but I've been running the home-assistant container image on k8s without any issue, and I have a lot of integrations.

You can't run HACS, supervisor mode, Kelvin-sun matching plugin ...

I'm running HACS in the container release right now, it's worked for a long time. So long as you have your HA configuration folder as a volume etc it will preserve across restarts/upgrades.

I'd go as far as to argue the (officially supported!) container release is the best way to get a production quality install of HA - containers are a great way to package and release complex web apps like HA. Mines automatically updates itself every time new container image released, has done so with no intervention from me for over a year. With the container lifecycle/config, you don't really need Supervisor mode either.

To say it is crippled is nonsense, it is literally one of the two officially recommended install paths:

> https://www.home-assistant.io/installation/

Official support for Docker release in HACS:

> https://hacs.xyz/docs/setup/download#home-assistant-containe...

Re: Run Your Home on a Raspberry Pi

#176
post #138

Earlier quoted context omitted.

I gave up on it solely because of the GUI. It's confusing as heck and very far from Apple's Home app, which is the preferred UX of the CFO (Chief Family Officer), even for fairly complex automations. So I just used homebridge for everything, with a smattering of Node-RED for (very few) device shims (it is _very_ easy to do MQTT handling with it). Also, I now have zero YAML to maintain, which is also a boon. Kudos, th…

For folks here I strongly recommend installing the appdaemon integration and just writing python scripts. The downside is there is a good bit of learning curve and time investment just to get the hello world going (turn on a light at sunset?). Once you are there, you can write shared libraries, abstract away whatever you want, have legit tests, and just do anything you would normally want in your coding environment (…

I can do that with homebridge-mqtt (I just stopped doing it in Python because Node-RED did what I needed and gave me a dead easy chart for temperature sensors).

Re: Run Your Home on a Raspberry Pi

#177

Am I the only one who still has yet to understand the value proposition of a smart home [outside wifi + sonos]? The trade off isn't a clear win to me for me to automate everything else. If it was I would try a raspberry pi set up.

I approach it like this. As you go through the next week, try and see if you can identify something that you do every day, almost like a habit, and think if automation could remove that task from your life. A few of my favorite examples: 1. Checking front/backdoor is locked every single night, now I have an automation that turns on the front hall light and sends my phone a notification that the door is unlocked. 2. T…

What's kept me from trying this stuff out is a few interrelated factors:

1) There's no possible way setting up and managing this stuff manually is going to be worth it if it only controls a couple things.

2) Doing enough to overcome point 1 seems to begin with "step 1: spend lots of money and time to replace tons of stuff that already works completely OK" and/or a bunch of research (I've used enough AirBnB IoT "actuate the existing deadbolt" add-ons to know that a bunch of them are time-wasting crap that barely works, plus I've never seen one that didn't look bad)

3) Taking a "just do it as you replace things" approach still results in spending more money (IoT will be more expensive than dumb, just about every time), plus lots of things will probably never need to be replaced while I own this house, plus that means potentially years before I hit any kind of reasonable pay-off period.

4) I have a feeling I could solve several of the problems faster and cheaper with a dumb approach of low-voltage LEDs hooked to the right things and run to the right places, or outlet timers, or whatever, if I were so inclined—which I'm clearly not, because I haven't.

Every time I get the urge, I think back to that automation effort/payoff chart from XKCD and then... don't, because I can't see how I'll ever get on the good side of the line. Doubly so if any part of it can't go years without any kind of attention or maintenance related to the IoT aspect of it.

[EDIT] The calculation would change if I enjoyed that kind of thing as a hobby, of course.

Re: Run Your Home on a Raspberry Pi

#178
post #74
post #73

Earlier quoted context omitted.

> [...] Currently running a HP G2 [...] Great, except it's fucking huge and noisy. I'm running a kubernetes cluster on a pair of raspberry pi and a 4-bay NAS as storage. What kind of lunatic would store data on a single, non-redondant, disk or an SD card ?

Pi's don't have SATA or PCI - what's the I/O of the drives? Is it noticeable?

Perhaps late, but I'm using PXE to boot and run my pihole at home. Works quite well IMO

Re: Run Your Home on a Raspberry Pi

#179
post #67

I'm curious about other people's experiences with this stuff, especially if you're someone who likes simple scripting and found Home Assistant to be too clunky. Basically, I've bought a lot of these little devices, and am much more interested in doing this in a more "Unix Way" way; give me text streams/web APIs and let me figure it out. I think there are things like Huginn and there's a like a Perl one or something?…

I did. I haven't sorted out proper ventilation for my laundry room yet. Using a pi zero with a dht22 to control a dehumidifier via a tradfri power switch when needed was quick, fun, functional, and offline with no vms or GUIs needed.

Logging the data elsewhere to influxdb was a fun little addition for a few pretty graphs.

I'm a fan of nats.io but it isn't necessary. A private network via zerotier makes life easy but is also completely optional.

Re: Run Your Home on a Raspberry Pi

#180
post #173
post #165

Earlier quoted context omitted.

I use Unifi for wifi gear, which supports it out of the box. https://www.ui.com/unifi/unifi-ap-ac-pro/ for the wired AP, https://store.ui.com/products/uap-beaconhd for the extension into the back of the house. Pricy, but not completely outrageous IMO. For an actual router, I run OPNsense in a VM (on the same box as HA, funnily enough). My server has dual 10 gig ports, so I pass through one of them to OPNsense and run…

Do you feel that using a virtualized router with other things on the box puts you at greater risk? I.e. you're putting an awful lot of eggs in that one basket. I've considered setting that up before but shied away from it.

Availability risk? Sure, but that's 99.9% my own doing (constant experiments, etc)

Security risk? Not in the slightest. I'm running an up to date proxmox which is just KVM+QEMU with some scripting and a website on top, basically. I know how to setup IOMMU groups and such. If it's good enough for the big cloud providers, it's good enough for me.

Post reply on HN