How to Install Home Assistant on a Raspberry Pi (Step-by-Step Guide)
Home Assistant is a powerful open-source platform that lets you control smart home devices. Installing it on a Raspberry Pi allows for a low-power, always-on smart home hub. Follow this guide to set it up.
What You’ll Need
✅ Raspberry Pi 4 (Recommended) or Pi 3
✅ MicroSD Card (32GB or larger, Class 10)
✅ A microSD card reader
✅ Power supply for Raspberry Pi
✅ Ethernet cable (recommended for stability)
✅ Computer with internet access
Step 1: Download Home Assistant OS
- Open your web browser and go to:
https://www.home-assistant.io/installation/raspberrypi - Scroll down and download the Raspberry Pi image for your model:
- Raspberry Pi 4: Select Raspberry Pi 4 Model B 64-bit
- Raspberry Pi 3: Select Raspberry Pi 3 32-bit
- The file will download as a .img.xz file.
Step 2: Flash Home Assistant OS to MicroSD Card
- Download and Install Balena Etcher (Used to flash the OS to the SD card)
- Download from https://www.balena.io/etcher
- Insert your microSD card into your computer using a card reader.
- Open Balena Etcher and follow these steps:
- Click Flash from file and select the Home Assistant .img.xz file.
- Click Select target and choose your microSD card.
- Click Flash and wait for the process to complete.
- Once done, remove the microSD card safely from your computer.
Step 3: Boot the Raspberry Pi with Home Assistant
- Insert the flashed microSD card into the Raspberry Pi.
- Connect an Ethernet cable for a more stable connection (Wi-Fi can be set up later).
- Plug in the power cable to turn on the Raspberry Pi.
- Wait about 20 minutes for the initial setup to complete.
Step 4: Access Home Assistant from Your Web Browser
- On your computer or smartphone, open a web browser.
- Type in:
http://homeassistant.local:8123
- If this doesn’t work, use the Raspberry Pi’s IP address instead.
- Find the IP by logging into your router or using a tool like Advanced IP Scanner.
Step 5: Create Your Home Assistant Account
- When the Home Assistant page loads, click Create Account.
- Enter a username, password, and name for your smart home system.
- Click Create Account to finish setup.
Step 6: Configure Smart Home Devices
- Home Assistant will automatically detect smart devices on your network.
- Click Settings > Devices & Services to add new integrations.
- Search for popular services like Philips Hue, Google Home, Alexa, Zigbee, and MQTT.
Optional: Set Up Wi-Fi (If Not Using Ethernet)
- Remove the microSD card and insert it into your computer.
- Open the “CONFIG/network” folder.
- Create a new file named my-network.txt and add this:yamlCopyEdit
[connection] id=my-wifi type=802-11-wireless [wifi] ssid=YOUR_WIFI_NAME psk=YOUR_WIFI_PASSWORD
- Save the file and reinsert the microSD card into the Raspberry Pi.
- Restart your Raspberry Pi to apply the Wi-Fi settings.
Step 7: Keep Home Assistant Updated
To ensure security and stability, always update your system:
- Open Home Assistant and go to Settings > System > Updates.
- Click Update if a new version is available.
Alternatively, you can update via SSH with this command:
bashCopyEditha core update
Final Thoughts
Congratulations! You’ve successfully installed Home Assistant on your Raspberry Pi. Now, you can automate your smart home with powerful features.
Home Assistant
Home Assistant is free and open-source software used for home automation. It serves as an integration platform and smart home hub, allowing users to control

Subscribe
Login
Please login to comment
0 Comments