You can install Home Assistant on Raspberry Pi 5 with a microSD card, an Ethernet cable and Raspberry Pi Imager. Home Assistant OS turns the Pi into a dedicated smart-home hub, with setup and everyday control handled in your browser. Start at http://homeassistant.local/; try :8123 if that address does not open.
Set up automatic backups and save the backup encryption key before adding lots of devices. A reliable power supply and an off-device backup matter more than buying extra RAM for a small smart home.
Why a Raspberry Pi 5 is still a good Home Assistant box
Home Assistant runs your smart home locally. Compatible lights, plugs, sensors, cameras and other devices can report to one hub in your house, so automations using local integrations can keep working when the internet drops. Cloud-based devices and integrations still depend on their providers. The Companion app gives you phone access on your home network. Access from elsewhere needs the cloud or VPN setup covered below.
The Raspberry Pi 5 is a sensible host because it is small and power-efficient; a cooling fan can add some noise, which matters for a box that runs all day. Home Assistant officially supports the Pi 5 and Pi 4 with at least 2 GB of RAM, and Home Assistant OS (HA OS) is the installation type the project recommends for most people. HA OS bundles Home Assistant Core, the Supervisor that keeps everything updated, and support for apps.
Older guides call these add-ons; they are now called apps, and you install them from Settings > Apps. And since Home Assistant 2026.11, the old HACS community store is built in as the Marketplace under Settings > Marketplace. We covered what changed for existing HACS users in our HACS to Marketplace upgrade guide.
Which Home Assistant install should you choose?
Use HA OS if the Pi will be a dedicated smart-home hub. If it already hosts Docker services, Container can share that machine, but you must manage the operating system and companion services yourself.
| Option | What you run | Apps support | Effort | Best for |
|---|---|---|---|---|
| Home Assistant Green | Ready-made hub with HA OS preinstalled | Yes | Lowest: plug in power and Ethernet | People who want zero tinkering |
| Raspberry Pi 5 with HA OS | HA OS on microSD or SSD | Yes | Low: flash a card, then use the browser | Most DIY users; this guide |
| Mini PC or old laptop with HA OS | HA OS on x86-64 hardware | Yes | Medium: write image to the internal drive | Bigger homes, cameras, local voice |
| Home Assistant Container | Docker container on an existing Linux server | No | Medium to high | People already running a home server who manage their own containers |
If you already run Proxmox, a fifth option is HA OS in a virtual machine, which keeps the full apps experience while sharing hardware with other services. Our Proxmox VE install guide covers the VM basics.

What you need before you start
A keyboard and monitor are optional for a normal installation. They help if you need to read boot errors.
- Raspberry Pi 5 (or Pi 4) with at least 2 GB of RAM. A 4 GB model is a reasonable starting point; heavier apps need more resources.
- A proper power supply. Home Assistant warns that phone chargers may not deliver full power and that computer USB ports must not be used. For a Pi 5, the official 27W USB-C supply is the safe choice. Our USB-C charging explainer explains why a random PD charger can fall short.
- A microSD card of at least 32 GB, rated A2. Home Assistant recommends A2 for better performance with small reads and writes.
- An SD card reader on the computer you will use for flashing.
- An Ethernet cable. Home Assistant says it is required for installation. You can switch to Wi-Fi later, but wired is more reliable and is what I would keep.
- A computer running Windows, macOS or Linux for Raspberry Pi Imager.
Unreliable power is a risk for any always-on hub. A sudden power loss in the middle of a database write is the classic way SD cards get corrupted. If your area has frequent cuts, put the Pi and your router on a small UPS or inverter line, and keep a backup away from the Pi.
Step 1: Flash Home Assistant OS with Raspberry Pi Imager
- Download Raspberry Pi Imager from Raspberry Pi’s official software page and install it on your computer.
- Insert the microSD card into your computer. Everything on it will be erased.
- Open Raspberry Pi Imager and select OS.
- Go to Other specific-purpose OS > Home automation > Home Assistant.
- Pick the Home Assistant OS image that matches your board, RPi 5 in this case. The Pi 4 has a separate image, so do not mix them up.
- Choose your SD card as the storage target.
- Select Next, then Write, and wait for the write and verification to finish.
- Select Finish and eject the card.


If Imager does not run on your computer, use the Raspberry Pi 5 image linked on Home Assistant’s installation page with another imaging tool. Choose the rpi5 image rather than the separate Pi 4 image.
Step 2: Boot the Pi and open Home Assistant
- Insert the flashed card into the Raspberry Pi 5.
- Connect the Ethernet cable to your router, on the same network as your computer.
- Plug in the power supply. Connecting power normally starts the Pi automatically.
- Wait a few minutes, then open a browser on your computer and go to
http://homeassistant.local/.
The first page can appear before installation has finished. On Home Assistant OS, start with the address without a port number. If port 80 is already in use, Home Assistant uses port 8123. If the hostname does not load, try these alternatives:
http://homeassistant.local:8123
http://192.168.1.50/
http://192.168.1.50:8123Replace 192.168.1.50 with the IP address your router gave the Pi. You can find it in the router’s connected devices list, usually under DHCP clients.
You will first see a Preparing Home Assistant screen while it downloads the latest version. The docs warn this can take 20 minutes or more depending on your hardware and connection. Keep it powered while preparation runs. If no page appears at all after five minutes, check the Pi’s IP address, Ethernet connection and power first. A monitor on HDMI can show boot errors. Reflash the card if those checks point to a failed image write.
Step 3: Complete onboarding
Onboarding takes a few minutes and happens entirely in the browser.
- On the welcome screen, select Create my smart home. If you are moving from an older install, use Upload backup under Or restore instead.
- Enter a Name, a Username and a Password. The username must be lowercase with no spaces.
- Select Create account. This becomes the owner account with full administrator rights.
- Set your home location by searching for your address, using Detect, or dragging the marker on the map.
- Confirm your Country and Time zone if asked. Choose your actual location and time zone so sunrise, sunset and timed automations work correctly.
- On Help us help you, choose what anonymous data to share. Everything is off by default.
- Review the devices Home Assistant discovered on your network, then select Finish.

Save the owner username and password in your password manager right now. A forgotten owner password can be reset from the device’s local Home Assistant console; keep the credentials safe so you do not need that recovery step.
Step 4: Add your first devices
After onboarding, Home Assistant opens the default dashboard. Many devices on your Wi-Fi network show up automatically as discovered integrations under Settings > Devices & services. Typical examples are Chromecast and Google TV devices, smart TVs, printers, some Wi-Fi plugs and network-connected AC controllers.

To add something that was not discovered:
- Go to Settings > Devices & services.
- Select Add integration.
- Search for the brand or protocol, for example Philips Hue, Tuya, Matter or Google Cast.
- Follow the prompts. Some integrations need you to sign in to the vendor’s cloud account, while others connect locally.
Prefer local integrations where you have a choice. A device that talks to Home Assistant directly keeps working during an internet outage, which is one of the main reasons to run Home Assistant in the first place. Matter devices are a good example of this local-first approach, and our Matter and Thread explainer covers which hubs and devices work together.
Integrations versus apps
Home Assistant uses two words that sound similar but do different jobs.
- Integrations run inside Home Assistant and connect it to devices or services. They work on every installation type.
- Apps are separate programs that run next to Home Assistant on HA OS, each with its own settings and log. The File editor app lets you edit configuration files in the browser, and the Samba share app lets you open Home Assistant folders from your computer.
Each app uses disk space, memory and CPU, so install only what you need. Apps live under Settings > Apps > Install app. Community integrations, dashboard cards and themes now come from Settings > Marketplace, which shows a warning the first time you open it because community projects are not reviewed by the Home Assistant team.

Try a first automation
Once a light is integrated and assigned to an area, try turning it on before sunset. It gives you a useful first automation without writing YAML.
- Open Settings > Automations & scenes > Create automation > Create new automation.
- Under When, add a Sunset trigger. Set the offset to Before and the duration to 30 minutes.
- Under Then do, add Turn on light and choose the area containing your light as its target.
- Save it with a clear name, such as Living room lights before sunset. Check it at the next sunset and adjust the offset to suit your room.
Step 5: Set up automatic backups
A backup on the same card cannot help if that card fails. Home Assistant backups are encrypted by default and saved as .tar archives. On HA OS they sit in the /backup folder on the same card, which is exactly why you also want a copy somewhere else.
- Go to Settings > System > Backups.
- On the Set up backups card, select Set up backups.
- On the Encryption key step, select Download under Download emergency kit and store the file safely, ideally in your password manager and one offline place. Without this key you cannot restore your encrypted backups.
- Select Next.
- Choose Recommended for the default plan, or Custom to set your own schedule.
Choose a schedule and retention
The Recommended plan backs up everything daily except media, the share folder and the local apps folder, and keeps the last three backups. It stores them on the Pi and on Home Assistant Cloud if you are signed in to a Nabu Casa subscription.
With Custom, you can choose Daily or specific days, let Home Assistant pick a System optimal time after its nightly database clean-up, and set retention by number of backups or days. Those retention settings apply to automatic backups on locations that support them. Home Assistant Cloud is an exception: it keeps only the latest uploaded backup, including a manual upload.

To get backups off the Pi without paying for the cloud, add a network share from a NAS or another computer as a backup location. On HA OS, open Settings > System > Storage > Add storage, enter the share details and select Backup as its usage. Connect the storage, then enable it under the backup settings’ Locations. Pick a backup time when that NAS is awake, because a location that is unavailable at backup time simply fails.
Check what you will restore
Two habits keep backups small and useful:
- Watch the database size. Under Settings > System > Repairs, open the three-dots menu and choose System information. The Recorder section shows the estimated database size. By default Home Assistant keeps 10 days of history; raising that is the most common reason backups balloon.
- Uninstall apps you no longer use. Their data is included in backups when you back up all apps.
Restoring is the payoff. On a fresh card, flash HA OS again, open the onboarding screen and choose Upload backup under Or restore. The same method is how you move from the SD card to an SSD or a mini PC later.
Step 6: Add Zigbee devices (optional)
Many sensors, buttons and bulbs use Zigbee. The Pi does not have a Zigbee radio, so you need a USB coordinator. Home Assistant’s built-in Zigbee Home Automation (ZHA) integration is the simplest way to use one, and the project recommends its own Home Assistant Connect ZBT-2 adapter for new networks. Other compatible adapters can work with ZHA or Zigbee2MQTT. Check the exact model and firmware before buying.
- Plug the Zigbee adapter into the Pi through a USB extension cable, ideally into a USB 2.0 port.
- Home Assistant usually discovers it. Open Settings > Devices & services and configure the discovered Zigbee integration, or add Zigbee Home Automation manually.
- Follow the prompts to create a new network.
- Put your first device in pairing mode and add it from the Zigbee integration page. Confirm that you can control it before pairing the rest.
The extension cable is not a nice-to-have. Home Assistant’s ZHA documentation specifically recommends a USB extension cable, a USB 2.0 port and keeping the adapter away from USB 3.0 devices, because USB 3.0 ports and SSDs interfere with the 2.4 GHz radio. Moving the coordinator away from the Pi and SSD is a useful first check when devices drop off.
Many mains-powered Zigbee devices, including compatible smart plugs, act as routers and extend the mesh, so add a few of those before battery sensors in far rooms.
Step 7: Reach Home Assistant from outside your home
By default Home Assistant is only reachable on your home network, which is the safest starting point. For remote access, Home Assistant’s documentation lists these options:
- Home Assistant Cloud (Nabu Casa subscription): a single toggle, no router changes, encrypted remote URL, and it funds the project.
- A VPN such as Tailscale or ZeroTier, so your phone joins your home network before talking to Home Assistant.
- A reverse proxy, where you must enable Trust X-Forwarded-For and add the proxy to Trusted proxies under Settings > System > Network.
- Port forwarding, which exposes Home Assistant directly and is the option I would avoid.
A connection behind carrier-grade NAT cannot use ordinary inbound IPv4 port forwarding. If that is your situation, a VPN or tunnel is the practical route, and our guide to reaching a home server behind CGNAT compares Tailscale and Cloudflare Tunnel.

Keeping Home Assistant updated
Updates show up under Settings as notifications for Home Assistant Core, the operating system and any apps. Read the release notes for breaking changes before major monthly updates, and make sure a recent backup exists first. Home Assistant can also create a backup automatically before an app update.
Check operating-system updates as well as the monthly Home Assistant release. Hardware support and security fixes can arrive in HA OS updates independently of new dashboard features.
Troubleshooting common problems
homeassistant.local does not open. Older Windows versions and some routers do not resolve .local names. Try the Pi’s IP address without a port first, then with :8123, and check that your computer is not on a guest Wi-Fi network that isolates devices.
Stuck on Preparing Home Assistant for a long time. Initial preparation can take twenty minutes or more. If no page appears at all, check the IP address, network and power before reflashing. A monitor on the Pi’s HDMI port shows the console and any boot errors.
The Pi keeps rebooting or the SD card gets corrupted. Check the power supply first. Under-powering a Pi 5 causes random behaviour that looks like software bugs. Then check whether your area has frequent power cuts, and add a UPS if it does.
Zigbee devices drop off. Use a USB extension cable, move the adapter away from USB 3.0 devices and Wi-Fi routers, and add mains-powered Zigbee repeaters.
Backups fail to the NAS. The backup location must be online at backup time. Pick a custom time when the NAS is awake, then check that a completed backup exists on another device or cloud location. A local-only copy leaves you exposed to card failure.
You forgot the owner password. Connect a keyboard and monitor to the Pi and use the Home Assistant console’s auth reset --interactive command. This is the local console on the device, not the Terminal app inside Home Assistant. Follow the official locked-out recovery instructions.
Worth considering
If you are buying hardware for this build, these are the parts I would pick. Prices and stock change often on Amazon India, so check the listing before you buy.
- Raspberry Pi 5 8GB: the board this guide is written for. A 4 GB model is a reasonable starting point for a modest setup.
- Official Raspberry Pi 27W USB-C Power Supply: the supply Raspberry Pi designs for the Pi 5, and the simplest way to avoid power-related crashes.
- SONOFF Zigbee 3.0 USB Dongle Plus: a popular Zigbee coordinator that works with ZHA and Zigbee2MQTT. Check which variant the listing ships before you buy.
Disclosure: Techzei earns a commission from qualifying purchases made through Amazon links on this page, at no extra cost to you. This does not affect which products we list.
FAQ
Is a microSD card good enough, or do I need an SSD?
An A2-rated card of at least 32 GB is what Home Assistant recommends and is fine for most homes, especially with automatic backups to another machine. An SSD is faster and more durable for long-term use. Restore time depends on the backup size and hardware, so you can start on microSD and move to an SSD later.
Does Home Assistant work during an internet outage?
Yes, for anything controlled locally. Automations, dashboards on your home network and local integrations such as Zigbee, Matter and many LAN devices keep working. Cloud-based integrations and remote access stop until the connection returns.
How do I move Home Assistant to new hardware later?
Create a full backup, download it along with your emergency kit, install HA OS on the new device and choose Upload backup during onboarding. Before migrating, check the database size and remove unused apps so the backup stays small.
- SourceHA OS 18.5 release notes
- SourceRemote access options
- SourceNetwork backup storage
- SourceRaspberry Pi Imager

