What you'll build
A local smart-home hub running Home Assistant OS: lights, sensors, energy monitoring and automations that keep working when the internet doesn't.
- Difficulty
- Beginner
- Build time
- About an hour
- Parts
- 9 parts to choose
Build total
$276.19
Shopping list
One recommended part for each job, checked against the others. Swap any of them, or skip what you already own.
Your setup
Tell us what you have. We check the build against it and change the steps to match.
-
See all Raspberry Pi Boards
Board Required
Home Assistant OS runs on Raspberry Pi 5 and Raspberry Pi 4 with at least 2GB of memory. 4GB runs it and a sensible set of apps comfortably. Change the board and the power supply, case and storage change with it.
-
See all Power Supplies
Power Required
Use the official supply made for your board: 27W for Raspberry Pi 5, 15W for Raspberry Pi 4. Home Assistant warns that a computer's USB port can't supply enough power.
-
See all Storage
Storage Required
Home Assistant writes history all day. Its guide asks for an A2 microSD card of at least 32GB. On Raspberry Pi 5 an NVMe SSD on the M.2 HAT+ lasts longer, but needs a case with room for the HAT.
-
See all Cases
Case Required
Each case fits one board. The official Raspberry Pi 5 case has a built-in fan; with the SSD kit choose a case with room for the M.2 HAT+.
-
See all Cables & adapters
Ethernet Required
Home Assistant needs Ethernet to install, and stays more dependable on a cable than on Wi-Fi. A ZigStar Zigbee gateway needs its own lead to your router too.
Up to 5 -
See all Networking & PoE
Zigbee coordinator Optional
Zigbee devices talk to Home Assistant through a coordinator. The ZigStar UZG-01 is a network gateway: it sits on your router by Ethernet, powered by PoE or USB-C, and Home Assistant's Zigbee integration finds it on the network. Home Assistant advises against running a coordinator over Wi-Fi.
-
See all Sensors for Raspberry Pi
Sensor Optional
Home Assistant no longer reads a BME680 wired to the Pi itself, so this one reports through ESPHome on a Pico WH over Wi-Fi. Choosing it adds the Pico WH and the wires; you solder the sensor's header.
-
See all Raspberry Pi Pico
Sensor board Optional
A Raspberry Pi Pico W runs ESPHome, which Home Assistant talks to directly on your network.
-
See all Prototyping & components
Jumper wires Optional
Four female-to-female wires join the sensor to the Pico WH's pins.
Your build
Raspberry Pi 5 4GB
- Raspberry Pi 5 4GB $178.42
- Raspberry Pi 27W USB-C Power Supply White $26.37
- Raspberry Pi A2-Class microSD Card, 32GB, Blank $47.00
- Raspberry Pi 5 Case Red/White $17.95
- Ethernet Lead CAT 5E 3m $6.45
Worth checking
- No backup location chosen yet. Backups kept only on the Pi are lost with its card or SSD.
Fits are checked against the makers' documentation and our own case records. Anything we haven't confirmed says “Not checked”.
Link to this build: bookmark or share it to come back to these choices.
5 parts
$276.19
How the build goes
For the parts in your shopping list. Change a part and these change with it.
-
Write Home Assistant OS to the microSD card
On your computer, open Raspberry Pi Imager and select OS, then Other specific-purpose OS › Home automation › Home Assistant, and choose the Home Assistant OS for your board (RPi 5 or RPi 4). Select the microSD card, then Next and Write.
It worked if Imager finishes the write and lets you eject the card.
-
Close it up in the case
Put the board in its case as the case's instructions describe, then put the card in if you're using one.
-
Plug in Ethernet, then power
Connect the Pi to your router with the Ethernet lead (Home Assistant needs it to install), then plug in the power supply.
-
Open Home Assistant
On a computer or phone on the same network, go to homeassistant.local:8123. On Raspberry Pi 4 or 5 it should appear within a minute; if it hasn't after 5 minutes, write the card again.
It worked if the Home Assistant welcome screen opens.
-
Create your smart home
Choose to create a new smart home (or restore one from a backup), create your account, which is the administrator, and set your home location, which sets the time zone, units and currency.
It worked if you see the devices Home Assistant found on your network, or All set!
-
Build your first automation
Go to Settings › Automations & scenes and select Create automation › Create new automation. Start with the one below.
It worked if testing the automation does what you set it to.
-
Back it up off the Pi
Go to Settings › System › Backups and select Set up backups. Download the emergency kit, which holds the encryption key, and keep it somewhere safe; set the schedule; and choose a location that isn't only the Pi. Home Assistant recommends a copy on another system and ideally one off-site.
It worked if a backup shows in the location you chose. To restore onto a new card or Pi, choose to restore from a backup on the welcome screen, enter the encryption key, then log in as you did on the old system.
Checked against these on 22 October 2026
Where the makers' instructions differ from ours, follow theirs.
- Home Assistant — Raspberry Pi installation
- Home Assistant — Onboarding
- Home Assistant — Your first automation
- Home Assistant — Backups
- Home Assistant — Zigbee (ZHA)
- Home Assistant — Z-Wave
- Home Assistant — Thread
- Home Assistant — Matter
- Home Assistant — ESPHome
- ESPHome — RP2040 (Pico W)
- ESPHome — BME680
- Raspberry Pi — M.2 HAT+ (booting from NVMe)
Your first automation
Lights on before sunset
- When
- 30 minutes before sunset
- Then
- Turn on the lights in an area
Without the internet: Home Assistant's own first automation. Sunset is worked out on the Pi. Lights whose integration says Local Push or Local Polling keep working without the internet; Cloud Push or Cloud Polling ones don't.
Guides for this build
Questions
Raspberry Pi 5 or Raspberry Pi 4?
Both run Home Assistant OS. Raspberry Pi 5 is two to three times faster and can boot from an NVMe SSD, so it's the better buy for a new hub. While it's out of stock the list switches to Raspberry Pi 4, with its own power supply and case.
Which radios do I need?
Wi-Fi and Ethernet devices need nothing extra. Zigbee needs a coordinator, Z-Wave a Z-Wave adapter, and Thread a Thread border router. Tick what you have under "What will Home Assistant control?" and the list adds what we sell and names what we don't.
Does it need the internet?
No. Home Assistant runs on the Pi. Each integration's page on home-assistant.io gives its IoT class: Local Push and Local Polling talk to the device directly, Cloud Push and Cloud Polling need the internet. Updates and Home Assistant Cloud need it too.
Can I install it with Docker or Supervised instead?
Home Assistant ended support for Supervised and Core installs with release 2025.12. Home Assistant OS, which this build uses, is the installation it recommends; Container is the other supported one, without apps.
Why doesn't the BME680 plug into the Pi?
Home Assistant removed its BME680 integration, so a sensor wired to the Pi's own pins isn't read by Home Assistant OS. ESPHome on a Pico WH reads it and sends it to Home Assistant over your network.
More for this build
Fits Raspberry Pi 5KKSB Case for Raspberry Pi 5 and M.2 NVMe HAT
SKU: PH-106463 | Brand: PiHut
A premium aluminium enclosure for your Raspberry Pi 5 with M.2 NVMe HAT. Crafted from sandblasted black anodised aluminium, this case provides excellent protection, efficient heat dissipation, and a sleek professional...
Delivered by Wed 9 Dec