Why Local-First?
Cloud outages have a habit of breaking light switches at the worst moments. A local Home Assistant instance on a Raspberry Pi keeps your automations running even when the internet is down.
What You'll Need
- Raspberry Pi 4 (4 GB RAM recommended)
- 32 GB+ microSD card (Class 10)
- ConBee II or Sonoff Zigbee 3.0 USB dongle
- Ethernet cable (Wi-Fi works, but wired is stabler)
Installation
1. Flash Home Assistant OS
# Download the Raspberry Pi Imager
# Choose "Other specific-purpose OS" → Home Assistant
# Flash to your microSD card
2. First Boot
Connect ethernet, insert the card, power on. After ~5 minutes visit:
http://homeassistant.local:8123
3. Add Your Zigbee Stick
Navigate to Settings → Devices & Services → Add Integration → Zigbee Home Automation (ZHA). Select your USB dongle's port (usually /dev/ttyUSB0) and pair your first device by putting it in pairing mode.
Pro Tips
- Use a UPS — a $25 mini UPS keeps the Pi alive during power blips.
- Enable backups — Settings → System → Backups → Generate. Store off-device.
- Separate IoT VLAN — isolate smart home devices from your main network for security.
Automations Worth Building First
- Motion-activated lights that turn off after 5 minutes of inactivity
- Presence detection via phone app or Bluetooth to trigger arriving/leaving scenes
- Energy monitoring with a Shelly EM clamp on your breaker panel