Skip to content
GEEKnodes

Raspberry Pi

Home Assistant on Raspberry Pi: Install, SSD and First Steps

Install Home Assistant on your Raspberry Pi: HA OS or container, which model and drive to use, Raspberry Pi Imager, Zigbee USB coordinator and backups.

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”.
Home Assistant on the Raspberry Pi as a hub that integrates bulbs, plugs, thermostat and sensors from different protocols
A single local hub that talks to devices from any maker.

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 OSHome Assistant Container
What you installA complete dedicated operating systemA Docker image on your system
Can the Raspberry do other thingsNo, it is dedicatedYes, alongside other services
Apps (formerly add-ons)Yes, one click from the interfaceNo, you run each service in its own container
UpdatesFrom the interface, system includedYou update the image and system yourself
BackupsBuilt in, completeConfiguration only; the rest is on you
Who it is forMost usersThose 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

microSD versus SSD for Home Assistant: the database writes nonstop and wears out the card
The database writes nonstop: an SSD lasts far longer than a microSD.
ComponentRecommendedWhy
BoardRaspberry Pi 5 or Pi 464-bit and plenty of power for a normal home
Memory4 GB or more2 GB works but gets tight with many apps
DriveUSB or NVMe SSDThe database writes constantly and wears the microSD
Power supplyThe official one for the modelA weak one causes freezes and corruption
NetworkEthernet cableMore 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

  1. Download and install Raspberry Pi Imager on your computer.
  2. Connect the SSD (with a USB adapter) or microSD to the computer.
  3. Under Device, choose your Raspberry model.
  4. Under Operating System, go to Other specific-purpose OS, then Home assistants and home automation and choose Home Assistant with your board’s version.
  5. Under Storage, select the drive. Double-check it is not your computer’s disk: it is erased completely.
  6. Write the image and wait for verification to finish.
  7. 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.

Zigbee coordinator connected with a USB extension away from the SSD; bulbs and plugs act as repeaters for battery sensors
Coordinator on an extension and mains devices as mesh repeaters.

You have two routes:

ZHAZigbee2MQTT
What it isIntegration built into Home AssistantSeparate app using an MQTT broker
SetupVery simpleA bit more configuration
CompatibilityBroadVery 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:

  1. Keep the encryption key Home Assistant shows you. Without it you cannot restore the backup on another machine.
  2. Get backups off the Raspberry. If the drive dies, a backup stored on it is useless.
  3. 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

ProblemCause and fix
homeassistant.local does not loadStill preparing, or your network does not resolve .local names: use the IP
Random freezes and rebootsInsufficient power supply or damaged microSD
Interface gets slower and slowerHuge database; reduce the days of history kept
Zigbee sensors drop offCoordinator next to USB 3; use an extension and add repeaters
An integration stops working after updatingRead the release notes before updating; breaking changes are flagged there
Backup impossible to restoreYou lost the encryption key; keep it in your password manager

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor