You have bulbs from one brand, plugs from another and a thermostat with its own app, and nothing talks to anything. Home Assistant brings all those devices into a single dashboard, runs in your home without depending on the cloud, and a Raspberry Pi is enough to run it comfortably. This guide shows which installation type to choose, what hardware suits it, how to install it with Raspberry Pi Imager and what to do in the first hour.
In short
- Home Assistant is a local, open source smart home platform that integrates thousands of devices and services.
- On a Raspberry Pi the recommendation is Home Assistant OS: apps, updates and backups from the browser.
- Use a Raspberry Pi 4 or 5 with an SSD instead of microSD if you want it to last years without scares.
What Home Assistant is
It is software that runs on a computer on your network and does three things:
- Integrates devices from different makers: Wi-Fi, Zigbee, Z-Wave, Bluetooth, Matter and cloud services.
- Shows everything on dashboards you can customize, from the browser or the phone app.
- Automates: “if the door opens at night, turn on the hallway light”.

The key point is that the logic lives in your home. If the internet goes down, local automations keep working. Only integrations that depend on a maker’s cloud fail.
Home Assistant OS or container installation
Today the project maintains two officially supported installation methods: Home Assistant OS and Home Assistant Container. The old Core (manual Python environment) and Supervised methods lost support at the end of 2025, along with 32-bit systems. If you find tutorials using them, avoid them for a new install.
| Home Assistant OS | Home Assistant Container | |
|---|---|---|
| What you install | A complete dedicated operating system | A Docker image on your system |
| Can the Raspberry do other things | No, it is dedicated | Yes, alongside other services |
| Apps (formerly add-ons) | Yes, one click from the interface | No, you run each service in its own container |
| Updates | From the interface, system included | You update the image and system yourself |
| Backups | Built in, complete | Configuration only; the rest is on you |
| Who it is for | Most users | Those comfortable with Docker |
In version 2026.2 add-ons were renamed apps. They are the same thing: helper programs like Mosquitto, Zigbee2MQTT or a file editor. If a tutorial mentions the “add-on store”, look for Settings, Apps.
If in doubt, choose Home Assistant OS. It is documented first, most used and needs least maintenance.
Which Raspberry Pi and what storage

| Component | Recommended | Why |
|---|---|---|
| Board | Raspberry Pi 5 or Pi 4 | 64-bit and plenty of power for a normal home |
| Memory | 4 GB or more | 2 GB works but gets tight with many apps |
| Drive | USB or NVMe SSD | The database writes constantly and wears the microSD |
| Power supply | The official one for the model | A weak one causes freezes and corruption |
| Network | Ethernet cable | More stable than Wi-Fi for a 24/7 server |
The microSD is the weak point. Home Assistant stores every sensor’s history in a database that updates constantly, and cards are not made for that write rate. It will work, but when it fails it does so without warning. A USB 3 SSD, or on the Pi 5 an NVMe with an M.2 HAT, is much more reliable and faster.
Install with Raspberry Pi Imager
- Download and install Raspberry Pi Imager on your computer.
- Connect the SSD (with a USB adapter) or microSD to the computer.
- Under Device, choose your Raspberry model.
- Under Operating System, go to Other specific-purpose OS, then Home assistants and home automation and choose Home Assistant with your board’s version.
- Under Storage, select the drive. Double-check it is not your computer’s disk: it is erased completely.
- Write the image and wait for verification to finish.
- Connect the drive to the Raspberry, plug in the network cable and then the power.
The first time it takes a few minutes to prepare everything. From a computer on the same network, open:
http://homeassistant.local:8123
If that name does not respond, find the Raspberry’s IP on your router and go to http://IP:8123. You will see a preparation screen until it is ready.
If you boot from a USB SSD on an older Pi 4, you may need to update the bootloader first so it boots from USB. Pi 5 and recent Pi 4 boards do it out of the box.
If you prefer the container
On 64-bit Raspberry Pi OS with Docker installed (if not yet, follow the Docker on Raspberry Pi guide):
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=America/New_York \
-v /home/pi/homeassistant:/config \
-v /run/dbus:/run/dbus:ro \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
The /config folder is the only thing you need to copy to keep your configuration safe.
First steps
Create the account and location
The initial wizard asks for username, password, home location and units. Location is used for sunrise and sunset, weather and zones. When done, Home Assistant detects devices on your network (printers, TVs, Chromecast, some plugs) and offers to add them.
Integrations
Everything comes in through Settings, Devices & services, Add integration. Some are local, others use the maker’s cloud with your account. Whenever possible, prefer the local integration: it responds faster and does not depend on the maker keeping its server up.
Reserve a static IP for the Raspberry on the router. Many phone apps and automations rely on it.
Zigbee with a USB coordinator
Zigbee is the protocol of many cheap door, temperature and motion sensors. They use very little battery and form a mesh network, but you need a USB coordinator connected to the Raspberry.

You have two routes:
| ZHA | Zigbee2MQTT | |
|---|---|---|
| What it is | Integration built into Home Assistant | Separate app using an MQTT broker |
| Setup | Very simple | A bit more configuration |
| Compatibility | Broad | Very broad, with more options per device |
A tip that saves hours: connect the coordinator with a USB extension cable, away from the USB 3 ports and the SSD. USB 3 creates interference in the 2.4 GHz band and the Zigbee network becomes unstable. Pair mains-powered devices first (bulbs, smart plugs): they act as repeaters and give coverage to battery ones.
Backups
In Home Assistant OS go to Settings, System, Backups. You can schedule automatic backups and choose where to store them: on the device, on a network folder or other destinations added through integrations.
Three rules:
- Keep the encryption key Home Assistant shows you. Without it you cannot restore the backup on another machine.
- Get backups off the Raspberry. If the drive dies, a backup stored on it is useless.
- Try restoring now and then. A backup you have never restored is a hope, not a backup.
On a new install you can restore a full backup from the wizard’s first screen. It is the quickest way to move from microSD to SSD: back up, install on the SSD and restore.
Common mistakes
| Problem | Cause and fix |
|---|---|
homeassistant.local does not load | Still preparing, or your network does not resolve .local names: use the IP |
| Random freezes and reboots | Insufficient power supply or damaged microSD |
| Interface gets slower and slower | Huge database; reduce the days of history kept |
| Zigbee sensors drop off | Coordinator next to USB 3; use an extension and add repeaters |
| An integration stops working after updating | Read the release notes before updating; breaking changes are flagged there |
| Backup impossible to restore | You lost the encryption key; keep it in your password manager |



