Installing Home Assistant on a Pi Zero 2 W: Tips and Insights
Home Assistant OS has no image for the Pi Zero 2 W. What works: a light 64-bit system with Home Assistant in a container, and what 512 MB of memory allows.
3 min readBy Smita
Reviewed by the AmazingRDP technical team

Home Assistant belongs on a device in your home. For projects that must be reachable from anywhere, a Linux VPS stays online for you. See Linux VPS from $6.99
Home Assistant puts smart devices from different brands on one dashboard, so you do not need a separate app for each. The Raspberry Pi Zero 2 W is tempting for it: tiny, cheap, and it sips power. It can run Home Assistant, but not in the way the official guide describes. Here is what works, what does not, and what to expect.

What does not work: Home Assistant OS
The usual way to install Home Assistant is to write the ready-made Home Assistant OS image to an SD card. There are images for the Raspberry Pi 3, 4 and 5, but none for the Pi Zero 2 W. Writing an old image made for the first Pi Zero, or the Pi 3 image, to the card does not help either: the board does not start.
The four ways to install, and which are left
| Method | On a Pi Zero 2 W | Add-ons |
|---|---|---|
| Home Assistant OS | No image for this board | Yes |
| Home Assistant Container (Docker) | Works on a 64-bit system | No |
| Home Assistant Core (Python environment) | Works, but no longer supported by the project | No |
| Home Assistant Supervised | No longer supported by the project | Yes |
In May 2025 the Home Assistant project announced the end of official support for the Core and Supervised methods, leaving Home Assistant OS and Container as the supported ones. Earlier guides for this board, including the first version of this one, used the Core method. For a new setup, use the container.
1. Put a light 64-bit system on the card
The Pi Zero 2 W has a 64-bit processor and 512 MB of memory, so use a system without a desktop: DietPi or Raspberry Pi OS Lite, in the 64-bit version.
- Write the image to the SD card with Raspberry Pi Imager or a similar tool.
- Enter your Wi-Fi name and password before the first start (Raspberry Pi Imager asks for them; DietPi reads them from a text file on the card).
- Start the Pi, find its address in your router's device list, and sign in over SSH.
2. Install Docker
On DietPi, run dietpi-software, choose Docker from the list and install it. On Raspberry Pi OS, use Docker's own install script from docker.com.
3. Start Home Assistant
sudo docker run -d \
--name homeassistant \
--restart=unless-stopped \
--privileged \
-e TZ=Asia/Kolkata \
-v /opt/homeassistant:/config \
-v /run/dbus:/run/dbus:ro \
--network=host \
ghcr.io/home-assistant/home-assistant:stable
Replace the time zone with yours. The settings are kept in /opt/homeassistant on the card, so they survive an update of the container. The download and the first start take a while on this board. Be patient before you decide it failed.
4. Open the dashboard
In a browser on the same network, open the Pi's address followed by port 8123:
http://192.168.1.50:8123
If the page does not load, wait a few more minutes, then look at the log:
sudo docker logs -f homeassistant
Create your account, and Home Assistant lists the devices it found on your network.
What you give up: add-ons
Add-ons, the one-click extras in Home Assistant OS, are not available in the Container (or Core) method. Two common needs have other answers:
- Devices Home Assistant does not know. Install HACS, the community store, which adds community-made integrations, for example for some camera brands. HACS needs a GitHub account.
- Access from outside your home. The Tailscale add-on is not available, but Tailscale itself can be installed on the Pi's system (DietPi offers it in
dietpi-software). Do not forward port 8123 from your router to the internet.
Tips for 512 MB of memory
- Use a good SD card and a proper power supply; most "random" crashes on a Pi come from one of the two.
- Keep the number of integrations small. Camera streams in particular are heavy.
- Let the system use swap, so that a short memory peak does not stop Home Assistant.
- Use Home Assistant's own backup function and copy the backup off the card.
- If the dashboard feels slow every day, the honest answer is a Pi 4 or Pi 5 with Home Assistant OS, and the backup moves over.
Is it worth it?
For a handful of devices and a few automations, yes: it is a cheap way to learn Home Assistant. For a house full of cameras and sensors, start on bigger hardware.
Home Assistant should stay on a device inside your home network, close to the things it controls. For projects that need a public address instead, see our Linux VPS plans. Related guides: fix "sudo: command not found" in Linux and copy and paste in Ubuntu Server.
Questions
Can a Raspberry Pi Zero 2 W run Home Assistant?
Yes, as a container on a light 64-bit system. There is no Home Assistant OS image for this board.
Why does Home Assistant OS not start on a Pi Zero 2 W?
No image is made for it. Images for the first Pi Zero or the Pi 3 do not start on this board.
Can I use add-ons on a Pi Zero 2 W?
No. Add-ons need Home Assistant OS. Use HACS for community integrations and install tools such as Tailscale on the Pi's system.
Which port does Home Assistant use?
Port 8123. Open http://ADDRESS-OF-THE-PI:8123 in a browser on the same network.