If you’re looking to take control of your smart home without being locked into a single ecosystem, Home Assistant is the answer — and the Raspberry Pi is the perfect hardware to run it on. In this guide, I’ll walk you through everything from picking the right hardware to creating your first automation.
I’ve been running Home Assistant on my own network for years, managing everything from smart lights to vehicle tracking to security cameras. So here’s the no-nonsense version — just the stuff that actually matters, nothing extra.
What You’ll Need
Before we start, let’s gather the hardware. You don’t need much, but getting the right components matters.
Essential Hardware
- Raspberry Pi 5 (8GB) — The latest Pi is significantly faster than older models and handles Home Assistant beautifully. The 8GB model gives you headroom for add-ons and integrations. Check price on Amazon →
- MicroSD Card (64GB+) — Home Assistant writes logs frequently, so get a high-endurance card. The Samsung PRO Endurance 128GB is purpose-built for continuous read/write and lasts significantly longer than standard cards.
- USB-C Power Supply (27W) — The Pi 5 needs a proper 5V/5A supply. Don’t skimp here — undervoltage causes random crashes. The official Raspberry Pi 27W USB-C power supply is the safe bet.
- Ethernet Cable — Wi-Fi works, but ethernet is more reliable for a device that manages your entire home. Your Pi should be plugged into your router or switch.
Recommended Extras
- A case with passive cooling — The Argon ONE V3 case keeps the Pi cool and looks clean on a shelf.
- An NVMe SSD — For better performance and longevity over a microSD card. The Pi 5 has an M.2 HAT available.
Step 1: Flash Home Assistant OS
Home Assistant OS (HAOS) is the recommended installation method. It gives you the full experience with Supervisor, Add-ons, and automatic updates.
- Download the Raspberry Pi Imager from raspberrypi.com/software
- Insert your microSD card into your computer
- Open the Imager and select:
- Device: Raspberry Pi 5
- OS: Other specific-purpose OS → Home assistants and home automation → Home Assistant → Home Assistant OS (RPi5)
- Storage: Your microSD card
- Click Write and wait for it to finish
- Insert the card into your Pi and power it up
Step 2: Initial Setup
After powering on, wait about 5 minutes for the first boot to complete. Then:
- Open a browser and go to http://homeassistant.local:8123
- If that doesn’t work, find your Pi’s IP address from your router and go to http://[IP]:8123
- You’ll see the Home Assistant onboarding wizard
- Create your admin account
- Set your home location (this enables weather, sun-based automations, etc.)
- Home Assistant will auto-discover devices on your network
Quick heads-up: Give your Pi a static IP address in your router’s DHCP settings. This prevents the address from changing and breaking bookmarks.
Step 3: Install Essential Add-ons
Navigate to Settings → Add-ons and install these must-haves:
- File Editor — Edit configuration files directly in the browser
- Samba Share — Access your HA files from your computer’s file manager
- Terminal & SSH — Command-line access for advanced configuration
- HACS (Home Assistant Community Store) — Unlocks thousands of community integrations and dashboard cards. Install via the HACS website.
Step 4: Connect Your First Devices
Go to Settings → Devices & Services. Home Assistant likely already discovered some devices. Click Configure on any discovered integrations.
Common first integrations:
- Smart lights (Philips Hue, LIFX, Tuya)
- Smart plugs (TP-Link Kasa, Zooz, Shelly)
- Media players (Chromecast, Roku, Apple TV)
- Weather (built-in OpenWeatherMap integration)
If you have Zigbee devices, you’ll need a Zigbee coordinator — I recommend the SONOFF Zigbee 3.0 USB Dongle Plus. It’s affordable, well-supported, and works with ZHA (Zigbee Home Automation) built into Home Assistant.
Step 5: Create Your First Automation
This is where the magic happens. Let’s create a simple automation: Turn on a light when the sun sets.
- Go to Settings → Automations & Scenes → Create Automation
- Click Create new automation
- Add a Trigger: Sun → Sunset
- Add an Action: Call service → Light: Turn on → Select your light
- Save it with a descriptive name
That’s it — your light will now turn on automatically at sunset every day. This is just the beginning. As you add more devices, the automation possibilities become almost limitless.
What’s Next?
Once you have the basics running, here are some natural next steps:
- Build a dashboard — Create a custom Lovelace dashboard to monitor and control everything
- Add Zigbee/Z-Wave devices — Local control, no cloud dependency
- Set up presence detection — Automations based on who’s home
- Install Frigate — AI-powered camera monitoring with object detection
- Integrate vehicle tracking — If you have a connected car (Ford, Tesla, Mercedes, BMW)
I’ll be covering each of these topics in upcoming guides. Subscribe or bookmark this site so you don’t miss them.
Common Issues and Fixes
“I can’t access homeassistant.local”
mDNS doesn’t work on all networks. Find your Pi’s IP from your router’s DHCP table and use that instead.
“The system is slow or crashes randomly”
99% of the time this is a power supply issue. Use the official 27W adapter. Also check that your microSD isn’t a cheap card — high-endurance cards make a huge difference.
“Devices aren’t being discovered”
Make sure your Pi is on the same subnet/VLAN as your smart home devices. If you have VLANs or IoT isolation set up, you’ll need to configure mDNS reflection or manually add integrations by IP.
Wrapping Up
For under $100 in hardware, you get a hub that’s more capable than anything Amazon or Google sells — and it doesn’t spy on you. That’s a pretty good deal.
And when you get stuck (you will — everyone does), the Home Assistant subreddit and Discord are genuinely helpful. It’s one of the best communities in tech.
Got questions? Comments are open. And if you’re wondering which smart home protocol to go with next, I just published a full comparison of Zigbee, Z-Wave, and Matter.