It's possible that my use of an extra large SD card has allowed the card to write to previously-unused memory cells rather than erase and overwrite memory cells, helping the card last longer. I wonder if anyone has studied that.
SSDs have something like this. Not sure if SD cards or if it could be done on the Linux side.
I have a raspbian cups fileserver thats ignoring all this and keeps running for 3 years on the same cheap sd: have it set up to offload almost all writes to tmpfs to reduce wear: /tmp, /var/run, /var/tmp, /var/log, the cups spool folder and more (/var/spool/*). Noatime mount option.
I would never do this at my job, even if I ship logs. I might do this on cheap hardware at home though.
> Noatime
What makes noatime better than relatime?
> relatime
Sits somewhere between atime and noatime, where "somewhere" is tunable. I wanted the least writes, so i went with noatime.
https://community.home-assistant.io/t/zigbee2mqtt-getting-ri...
(I can personally vouch for Scott Darby's ability to put together a device for UK users - see comment 162. I've got one of his)
Well, I learned something about HN today!
For starters, you need to ditch all those hubs and apps and that means you need to look into Z Wave and Zigbee. Briefly and in my experience and testing, Z Wave devices are more expensive but more compatible with each other. Z Wave has a longer range without any relays. Both are very well supported but I think Z Wave is better supported. Philips Hue is Zigbee as is Tradfri (Ikea). I've got both USB dongles plugged into a VMWare esxi in a VMware cluster at work and both survive vMotion and are very stable. I'm using this for Z Wave: https://www.amazon.co.uk/gp/product/B00YETCNOE/ref=oh_aui_de... (£43) and people on the forums offer to make up Zigbee USB devices with ready flashed firmware for about £20 or you can buy your own bits from Alibaba and DIY for a bit more for one but a lot less for more than say five.
You should also investigate the MQTT protocol and consider say Mosquitto and proper SSL for it for external stuff like Owntracks. Internal only access can be satisfied by using the built in MQTT broker in Home Assistant.
Also, consider ESP8266 (or ESP32) devices. You can get two for £8 on Amazon with pins etc already to slap in a small breadboard. Note that you can power them using PoE and a PoE to USB converter to get them up to 100m away. You can fit these things inside the sort of wall mount box you might have for a light switch or ethernet ports.
When I've finished testing at work (!) I'll be looking to control my underfloor heating, lights (note that you need three wires (live, neutral, switched neutral) for switch box controls or something like this: https://www.amazon.co.uk/Fibaro-FGS-213-Single-Switch-Black/... that can go in the light fitting itself. I'm in the UK BTW. Also I'll be putting in window and door open/shut detectors and a fair few of something like this: https://www.amazon.co.uk/gp/product/B0141FQDJQ/ref=oh_aui_de... to see what is going on in a room. I aim to defang my Sonos speakers eventually. The TVs already go through Squid with quite a lot of monitoring and a lot of pfSense keeping an eye on things.
ZoneMinder is well supported for cameras.
Proper home automation is not cheap but is very cool if done right. Do your research very carefully. If you have a SO, then be very, very careful and test, test, test otherwise you will be kicked into touch very quickly. I'm aiming to have manual overrides (switches etc) for nearly everything and will be putting in a lot more wifi and UPS, RAID etc along with proper backups. If you are going to do more than a toy lighting system than do it right.
I don't fear my IoT stuff because they live on VLANs with names like THINGS and SEWER (for the really scary ones) but I'm not your average home owner (IT-wise) and am extremely pissed off at the vendors of these things for the frankly cynical approach taken to security and your privacy.
I'm curious what kind of sensors you're using and what kind of battery life you get out of them. Every z-wave sensor I tried had abysmal battery life at any kind of reasonable update rates.
I’ve been looking to replace my RPi with something a bit beefier. Some of the components I’m running are memory heavy, and my pi is struggling to stay responsive.
You can easily buy a mid-level desktop computer for $200 (either brand new, or off ebay/craigslist/newegg). I would recommend getting an i7 with at least 8 gigs of RAM and an SSD. As of right now, newegg has no less than i7 30 desktop pcs for sale under $200.
Slap linux on it, plug it into your power and ethernet under your desk and forget about it.
You will have a dedicated server whatever you want. Home automation, gaming servers, docker containers, whatever. Just leave it running 24/7.
If you really want to get fancy, plug it into a backup UPS for in case the power goes out.
There's kind of a quick progression in the bill for an always on device from irrelevant to noticeable to large.
I was unsure if it was a random failure or attributable to my use of the card. The parent comment cleared that up for me.
What I would share is that in the couple of years I've been running it, I've been through a dozen Sandisk and Samsung MicroSDs on my Pis _even though_ I was running my time-series database, and my MQTT server on a separate server.
Running on Raspberry Pi it's a nice toy, but when you get serious, install it on a proper box with an SSD/spinning rust.
I bought a NUC-like device which is what most people will recommend to run it on, installed Arch (you can use whatever you like, Debian is probably best supported) and get going.
Briefly though, I log all of the temperatures and light levels in each room of my home using Z-Wave sensors, store them in Influx and graph them in Grafana.
I have my desk lamp turn on when motion is detect at or around my desk, I have my cameras start recording when nobody is home (based on location reporting from our mobiles using Owntracks back to my self-hosted MQTT server).
I have hue lights in every light socket in the home so I can switch them to various moods based on motion, time of day, lux, whether the TV is on, the weather, the temperature, etc etc.
The Home Assistant dashboard shows my server load in my rack , temperature in my rack (via a temperature sensor connected to an ESP8266 talking MQTT back to the server), all info on my UPS, load on various power meter wall plugs (Z-Wave) which can also be controlled on/off via HA, it shows the current temperature and light level and motion in each room via Z-Wave motion sensors.
Most importantly, the community that sit on Discord are a friendly and helpful bunch so it's nice and easy to get started.