Live data from Hacker News

Run Your Home on a Raspberry Pi

pragprog.com

191–200 of 276 posts

Re: Run Your Home on a Raspberry Pi

#192
Unless it magically cleans and tidies everything I really don't see the appeal of home automation. Pressing a switch is far more convenient to me when walking into a room than fishing out a smartphone - whether it be through a raspberry pi or otherwise. Same with central heating, I rarely need to adjust it and I don't see the appeal of messing around with some integrated interface, i'd rather an old fashioned radiator dial or an independent reliable digital central heating timer I might have to tweak for 2 mins once a year.

None of these things are analogous to the TV remote control, there's a reason why we haven't seen similar precursors such as radiator switches on extension cords, we don't need to constantly adjust these things at high frequency... and when we do, we are literally walking past it (light switch).

Re: Run Your Home on a Raspberry Pi

#193
post #159
post #117

Earlier quoted context omitted.

I like to believe that it's because matter protocol is on its way, so hardware isn't being developed: https://en.wikipedia.org/wiki/Matter_(standard) But, I think it's actually because wifi is easier for the average person to get working. With Zigbee, you need a Zigbee hub, but sometimes you need a brand specific Zigbee hub, sometimes you don't (even though it's advertised that you do), and sometimes the Zigbee compl…

I must be lucky then because I have lot of Zigbee and Zwave devices all running Transmitting to Nortek GoControl USB stick attached to a rPI running Home Assistant. I have several vendors of both Zwave and Zigbee Sensors, HVAC thermostat, Bulbs, Switches, etc.. All of them play nice with each other, and FAR FAR simpler to setup than WiFi which often requires the use of some weird mobile app, and play hopsotch with th…

Yes, but you are not the average consumer, who is making Wi-Fi popular.

> all running Transmitting to Nortek GoControl USB stick attached to a rPI running Home Assistant

> and FAR FAR simpler to setup than WiFi

These two sentences are absolutely silly, for that average consumer. An average consumer can install a proprietary app in a few minutes and is totally uninterested in installing operating systems on little computers.

Re: Run Your Home on a Raspberry Pi

#194
post #61

Earlier quoted context omitted.

I had a terrible experience with Home Assistant. Slow, buggy, unreasonably difficult to implement non-trivial automations. My heuristic since then has been to minimize the amount of node.js in my home automation codebase and this has worked wonders for its reliability and usability; currently the only component I still have that's node-based is zigbee2mqtt, which (possibly not) incidentally gives me more issues than…

I'm not understanding how node.js relates to Home Assistant (written in python)?

I've had mixed experiences with python (mosquitto is fine for example) but more uniformly bad experiences with node stuff.

I would vastly prefer all of this crap to be written in Rust or Haskell or OCaml or anything oriented towards correctness. It's relatively very important that the code which runs your home works correctly.

Re: Run Your Home on a Raspberry Pi

#195
post #95

Earlier quoted context omitted.

Same. I've been a huge Home Assistant fan and minor contributor for many years. My house is among the smartest houses I've ever heard of. HVAC control, security system, air quality monitoring, multi-site IT systems monitoring, lighting controls (including LED strips that update to the right color scheme for the next holiday), whole-house networked audio (including streaming off-site if connected to the VPN), on and o…

Have your written up your implementation? What type of air quality sensors have you used and how are they integrated into the home’s behavior?

+1 for the air quality sensors question. I only found 1 for CO2 levels, and it is not connected. And even that one costed $120.

Re: Run Your Home on a Raspberry Pi

#196
post #124

Earlier quoted context omitted.

At what point does HA get too laggy? Are you doing audio/video transcoding?

Nope, nothing heavy like that. I don't know what the threshold is for every use case, but for me once I got more than maybe 50 devices, HA started to struggle on the Pi. The NUC is lightning fast, however, and I've grown my HA considerably since. Plus it's nice to be able to run ESXi on the NUC and have VMs for other things too, e.g. Grafana, etc.

Did you try changing the CPU governor settings? I've found that light workloads don't always push the governor enough to push the CPU into higher frequencies. I have mine set to 100% CPU, always, for lowest latency. See: https://github.com/home-assistant/operating-system/issues/19...

Re: Run Your Home on a Raspberry Pi

#197

Home Assistant[1] is the best approach I've found for this. It's pretty amazing but has a pretty steep learning curve (although they're getting better and better at this). The real power of HA is the rich integration ecosystem[2], the Community Store[3], and that it runs locally (more reliable and much faster for things like motion sensors, etc). It expresses everything from every integration as an entity in various…

I'm still figuring out Home Assistant. I love that it has a real ecosystem and that it seems to have a decent HTTP/WebSocket API (that I just started playing with). Some things I don't love: * A lot of the integrations seem half-baked or to not quite fit the generic Lovelace cards. I think to some extent this is an inherent problem in supporting a lot of devices that have crappy, non-standardized APIs. Example: if I…

> my house has race conditions after power outages

I'd be inclined to find something with an SNMP counter that counts up either "seconds since boot" or "megabits of traffic passed" or whatever else and have a script that runs shortly after the RPi boots to reboot the Pi if that counter if below some threshold.

Running this from the pi will query the uptime on my router in milliseconds:

  snmpwalk -v 2c -On -c public 192.168.2.1 .1.3.6.1.2.1.25.1.1.0
You could have a startup script on the Pi do something like "wait until you get a valid reading of this uptime and if that reading is less than 180000 [3 minutes], then sleep for N minutes [long enough to not double/triple reboot on a power outage] and reboot the RPi (or restart HA)"

If HomeAssistant needs to be recycled after every router reboot (not just on a power dump), have that script run in a cron job looking for an uptime less than some threshold and rebooting the Pi.

It might feel inelegant or even "gross", but I look at it as just reliably automating the fix and therefore better than what you're doing manually already.

Re: Run Your Home on a Raspberry Pi

#198
post #192

Unless it magically cleans and tidies everything I really don't see the appeal of home automation. Pressing a switch is far more convenient to me when walking into a room than fishing out a smartphone - whether it be through a raspberry pi or otherwise. Same with central heating, I rarely need to adjust it and I don't see the appeal of messing around with some integrated interface, i'd rather an old fashioned radiato…

A well-designed home automation system will still work with manual controls and/or if the system is offline.

I have smart devices everywhere yet I can still adjust the thermostat manually, turn on lights using a normal switch, set the house alarm using the keypad etc. However, I also have a 'Night' scene in Home Assistant which sets my alarm to night mode, turns off all the lights in the house and sets the thermostat to night temperature all with a single tap and all over the local network.

Re: Run Your Home on a Raspberry Pi

#199
post #24

Earlier quoted context omitted.

I've got "TV Pis" that idle LibreELEC/Kodi most of the time and have been running for 4+ years on the same SD cards (updated them a couple times in that time, not recently). My "server Pi" is >3yo old, only turns off when the power fails, and doesn't do a lot with its SD card but the OS, but has never had an issue. What kind of power are you using? I've got these on little 2.5a wall warts; the "server" has a scrounge…

Maybe the power supply is the issue. Every time I have setup I pi I would get the Canakit sets so maybe it is just not suitable?

On the Pi, run

  vcgencmd get_throttled
You're looking for a 0x0 result (not now and never under-volted nor throttled). The result is a bitfield. A script to turn them into human-readable format is here but I just look at the bits: https://gist.github.com/aallan/0b03f5dcc65756dde6045c6e96c26...
Post reply on HN