This article is part of the Home Assistant Series. Other articles in this series:
Home Assistant is an open-source home automation platform that allows you to control and automate devices in your smart home. Running Home Assistant on a Raspberry Pi is an affordable and flexible way to set up a smart home hub. Whether you’re a tech enthusiast or a beginner, this guide will walk you through the process. For more information on Home Assistant, visit the first instalment in this series: Understanding Home Assistant: Your gateway to a smarter home, In this instalment, we are going to get install and get running Home Assistant on Raspberry Pi
A quick sidenote on the Raspberry Pi you will be using: We tried running Home Assistant on a Raspberry Pi Zero W for some time, and although it does work, it was not a smooth and stable experience. We needed to hard restart the Raspberry Pi Zero W (unplugging the power cord) fairly frequently, maybe as much as twice a week. This was due to the Raspberry Pi Zero W not responding at all. and the Home Assistant not being accessible. We would recommend a Raspberry Pi with at least 1Gb of RAM for a stable experience, although we are using a 2Gb version at the moment with absolutely no issues.
What You’ll Need
To get started, ensure you have the following items:
- Raspberry Pi: Raspberry Pi 3, 4, or later is recommended for best performance.
- microSD Card: At least 32GB capacity, Class 10 or higher for reliability.
- Power Supply: A 5V/3A power adapter for the Raspberry Pi.
- Network Access: Ethernet cable for a stable connection or Wi-Fi capability.
- Computer: To flash the Home Assistant image onto the microSD card.
- Card Reader: For writing the Home Assistant image to the microSD card.
Step 1: Install Home Assistant OS on the SD Card
- Download Raspberry Pi Imager:
- Visit the Raspberry Pi Imager download page and install it on your computer.
- Insert the microSD Card:
- Connect your card reader with the microSD card to your computer.
- Launch Raspberry Pi Imager:
- Open the Raspberry Pi Imager application.
- Select the Operating System:
- Click Choose OS.
- Scroll down and select Other specific-purpose OS > Home Assistant and Home Automation.
- If asked, select the version for your Raspberry Pi, not the Home Assistant OS Installer for Yellow



- Select the Storage:
- Click Choose Storage and pick your microSD card from the list.
- Write the Image:
- Click Write to start flashing the Home Assistant OS to your microSD card.
- Wait for the process to complete, then safely eject the microSD card.
By using Raspberry Pi Imager, the installation process becomes seamless and ensures compatibility with your device.
Step 2: Set Up Your Raspberry Pi
- Insert the microSD Card: Place the flashed card into the Raspberry Pi.
- Connect to Power and Network:
- Plug in the power adapter.
- Use an Ethernet cable for a stable connection or ensure your Wi-Fi is ready.
- Boot the Raspberry Pi: Wait for the system to initialize. This can take up to 20 minutes.
Step 3: Access Home Assistant
- Open a web browser on your computer or smartphone connected to the same network.
- Enter the following URL:
http://homeassistant.local:8123
- If this doesn’t work, find the Raspberry Pi’s IP address from your router and replace
homeassistant.local
with it.
- If this doesn’t work, find the Raspberry Pi’s IP address from your router and replace
Step 4: Configure Home Assistant
- Create an Account: Follow the on-screen instructions to set up your Home Assistant account.
- Set Your Location: Configure your location, time zone, and unit preferences.
- Add Devices: Home Assistant will scan for compatible smart devices on your network. You can add them now or later.
Check back in on this series for the full tutorial on setting up Home Assistant
Step 5: Extend and Automate
Now that Home Assistant is running, you can:
- Add Integrations: Access the integrations menu to connect devices like Philips Hue, Google Assistant, or Zigbee hubs.
- Create Automations: Define triggers and actions (e.g., “Turn on the lights at sunset”).
- Use Add-ons: Enhance functionality with add-ons like Node-RED for advanced automations or a file editor for custom configurations.
Tips for a Better Experience
- Backup Regularly: Use Home Assistant’s built-in snapshot feature to back up your configurations.
- Expand Storage: For advanced setups, consider using an external SSD instead of a microSD card.
- Stay Updated: Regularly update Home Assistant to access new features and security patches.
- Explore the Community: Join forums and groups for tips and advice on advanced configurations.
Why Choose a Raspberry Pi for Home Assistant?
- Cost-Effective: Affordable compared to dedicated smart home hubs.
- Customizable: Tailor the setup to your exact needs.
- Expandable: Add more devices and integrations as your smart home grows.
With your Raspberry Pi-powered Home Assistant, you’re now in control of your smart home like never before. Have fun exploring automations and making your home truly smart!