Guide ยท Home Assistant

Home Assistant on Raspberry Pi 4: Complete Setup Guide

Updated March 2025 ยท 12 min read ยท By SmartWired Editors

๐Ÿ“‹ Table of Contents

  1. Why Use a Raspberry Pi 4 for Home Assistant?
  2. What Hardware You Need
  3. Choosing Your Installation Method
  4. Step 1: Flash the SD Card
  5. Step 2: First Boot
  6. Step 3: Onboarding & Initial Setup
  7. Step 4: What to Do Next
  8. Pro Tips & Common Mistakes
  9. Verdict

Why Use a Raspberry Pi 4 for Home Assistant?

The Raspberry Pi 4 remains one of the most popular platforms for running Home Assistant, and for good reason. It strikes the ideal balance between cost, performance, and community support. At $55โ€“75 for the board alone, it's significantly cheaper than dedicated hardware like the Home Assistant Green or Yellow, while offering enough power to run a full Home Assistant OS installation with dozens of add-ons simultaneously.

The Pi 4 brings meaningful upgrades over its predecessors: a 64-bit quad-core processor, USB 3.0 ports, true Gigabit Ethernet, and up to 8GB RAM. For Home Assistant, the 4GB model is the sweet spot โ€” plenty of headroom for the core platform, add-ons like Zigbee2MQTT, Node-RED, ESPHome, and MariaDB without breaking a sweat.

There's also the matter of flexibility. Unlike purpose-built HA hardware, the Pi 4 can be repurposed if you later upgrade to dedicated HA hardware. It's a learning platform as much as it is a production device.

๐Ÿ’ก Note: If you'd prefer plug-and-play simplicity, consider the Home Assistant Green โ€” it's pre-configured and ready out of the box. But if you enjoy tinkering, the Pi 4 route is deeply rewarding.

What Hardware You Need

ComponentRecommendationNotes
BoardRaspberry Pi 4 (4GB)4GB is the sweet spot; 8GB if you run many add-ons
SD CardSamsung 64GB Endurance or SanDiskGet an endurance card โ€” regular cards wear out fast
Power SupplyOfficial RPi 4 USB-C PSU (3A)Don't skimp โ€” underpowering causes instability
CaseAny Pi 4 case with ventilationArgon ONE M.2 if you want SSD boot
Ethernet CableCat5e or Cat6Wired connection is strongly recommended
Optional: USB StickSanDisk Ultra Fit 32GBFor Zigbee dongle (Sonoff, ConBee, etc.)

Raspberry Pi 4 (4GB)

The ideal board for Home Assistant. Quad-core 64-bit, Gigabit Ethernet, USB 3.0, and enough RAM for a full HA stack with add-ons.

View on Amazon โ†’

As an Amazon Associate we earn from qualifying purchases.

Samsung 64GB Endurance SD Card

Built for continuous read/write cycles โ€” essential for a Home Assistant SD card that writes logs and state data constantly.

View on Amazon โ†’

As an Amazon Associate we earn from qualifying purchases.

Choosing Your Installation Method

Home Assistant offers four installation methods. For the Raspberry Pi 4, we strongly recommend Home Assistant OS (HAOS):

MethodEaseAdd-on SupportRecommended?
Home Assistant OSโญโญโญโญโญFullโœ“ Best for most users
Home Assistant ContainerโญโญโญNo add-ons (manual)Advanced users only
Home Assistant CoreโญโญNo add-onsDevelopers only
Home Assistant SupervisedโญโญโญFullComplex โ€” not recommended for Pi

HAOS is a purpose-built operating system that takes over your Pi entirely. It handles updates, backups, and add-ons automatically. If you want to also use your Pi for other things (e.g., a media server), the Container method is an option โ€” but HAOS is the gold standard for reliability and ease.

Step 1: Flash the SD Card

1 Download Raspberry Pi Imager

Download the official Raspberry Pi Imager from raspberrypi.com/software. It's available for Windows, macOS, and Linux. Install and launch it.

2 Select Device, OS, and Storage

In Raspberry Pi Imager:

When prompted about OS customisation, click "No" โ€” HAOS handles its own first-boot configuration.

3 Write the Image

Click Write and confirm. The Imager will download and flash the image โ€” this typically takes 5โ€“10 minutes depending on your internet speed. Once complete, safely eject the SD card.

๐ŸŒŸ Pro Tip: For better long-term reliability, consider booting from a USB SSD instead of an SD card. SD cards wear out over time. An Argon ONE M.2 case + 120GB SSD gives you a much more durable setup.

Step 2: First Boot

4 Insert SD Card and Connect

Insert the flashed SD card into your Raspberry Pi 4. Connect an Ethernet cable from the Pi to your router. Finally, plug in the power supply. Do NOT connect a keyboard or monitor โ€” Home Assistant runs headless.

5 Wait for First Boot

The first boot takes 5โ€“20 minutes as Home Assistant downloads and installs the latest version. Do not interrupt this process. You can check progress by navigating to http://homeassistant.local:8123 in your browser โ€” it will show a progress indicator once the web interface is available.

If homeassistant.local doesn't resolve, find the Pi's IP address in your router's connected devices list and navigate to http://[IP-ADDRESS]:8123 instead.

Step 3: Onboarding & Initial Setup

6 Create Your Account

Once Home Assistant loads, you'll see the onboarding screen. Create your owner account โ€” this is your local admin account. Choose a strong password. This account stays local; you don't need a Nabu Casa or cloud account to use Home Assistant.

7 Set Your Location & Units

Home Assistant will ask for your home's location (used for sunrise/sunset automations), timezone, and unit system (metric/imperial). Set these accurately โ€” they affect many automations and dashboards.

8 Discover Devices

Home Assistant will automatically scan your network and present discovered devices for onboarding. Common auto-discovered devices include Philips Hue bridges, Sonos speakers, Chromecast devices, and any mDNS-advertised smart home hardware. Add the ones you want to integrate.

Step 4: What to Do Next

With a working Home Assistant installation, here's what we recommend doing first:

  1. Set up backups โ€” Go to Settings โ†’ System โ†’ Backups and configure automatic backups to network storage or a USB drive. Do this before anything else.
  2. Install HACS (Home Assistant Community Store) โ€” Unlocks hundreds of community integrations and themes not in the official store.
  3. Add a Zigbee coordinator โ€” If you use Zigbee devices, plug in a Sonoff or ConBee dongle and set up Zigbee2MQTT or ZHA.
  4. Enable remote access โ€” Either through Nabu Casa's cloud subscription ($6.50/month) or a free option like Cloudflare Tunnel or Tailscale.
  5. Explore add-ons โ€” Node-RED (visual automations), ESPHome (DIY sensors), Frigate (local AI camera), and more.

Pro Tips & Common Mistakes

Common Mistakes to Avoid

Performance Tips

โญ SmartWired Verdict

The Raspberry Pi 4 + Home Assistant OS combo remains one of the best DIY smart home setups available. It's affordable, flexible, well-supported, and endlessly expandable. If you're willing to spend an afternoon getting set up, you'll end up with a local, private, cloud-independent smart home hub that runs circles around commercial alternatives.

For those who prefer a true plug-and-play experience, check out the Home Assistant Green โ€” but for tinkerers, the Pi 4 is where the fun is.

Affiliate Disclosure: SmartWired participates in the Amazon Associates Program and other affiliate programmes. We may earn a commission when you click links and make purchases, at no extra cost to you. This does not influence our editorial recommendations. Read our full disclosure.