Home Assistant database growing and SD card wearing out: tune the recorderwarning · unverified · The recorder writes every state change to home-assistant_v2.db and keeps 10 days by default. Exclude noisy entities, raise commit_interval, and keep the database off SD cards to save disk space and storage life.
Prevent SD card corruption on Raspberry Pi IoT devicesguide · unverified · Sudden power loss and bad supplies corrupt SD cards. Combine a good power supply, fewer writes, a read-only root with overlayfs (raspi-config), a UPS where possible, and SSD/NVMe boot on Pi 5.
Shut down a headless Raspberry Pi safely: a button instead of pulling the plugprocedure · unverified · Pulling the power risks SD card and file system damage. Give headless devices a shutdown button: the onboard power button (or J2 pads) on Pi 5, the gpio-shutdown overlay on earlier models. The default GPIO3 button also powers the board back on, but GPIO3 is the I2C clock pin.