Install Home Assistant on Raspberry Pi 4
This guide will help you get Home Assistant running on a Raspberry Pi, turning your Raspberry Pi into the ultimate home automation hub.
Follow this guide if you want to get started with Home Assistant easily or if you have little to no Linux experience. For advanced users (or if you don’t have a device that is supported by this guide), check out our alternative installation methods. Once you finish your alternative installation, you can continue at the next step.
SUGGESTED HARDWARE
We will need a few things to get started with installing Home Assistant. The Raspberry Pi 4 Model B is a good, affordable starting point for your home automation journey. Links below lead to Amazon US. If you’re not in the US, you should be able to find these items in web stores in your country.
- Raspberry Pi 4 Model B (2GB) + Power Supply (at least 2.5A)
- Micro SD Card. Ideally get one that is Application Class 2 as they handle small I/O much more consistently than cards not optimized to host applications. A 32 GB or bigger card is recommended.
- SD Card reader. This is already part of most laptops, but you can purchase a standalone USB adapter if you don’t have one. The brand doesn’t matter, just pick the cheapest.
- Ethernet cable. Home Assistant can work with Wi-Fi, but an Ethernet connection would be more reliable.
SOFTWARE REQUIREMENTS
- Download and extract the Home Assistant image for your device.
- Download balenaEtcher to write the image to an SD card.
INSTALLATION
- Put the SD card in your card reader.
- Open balenaEtcher, select the Home Assistant image and flash it to the SD card.
- Unmount the SD card and remove it from your card reader.
- The most reliable networking setup for your Raspberry Pi is to connect it using an Ethernet cable, however, if you want to configure Wi-Fi or a static IP address (this step requires a USB stick) you can try this:
- Format a USB stick to FAT32 with the volume name
CONFIG
. - Create a folder named
network
in the root of the newly-formatted USB stick. - Within that folder, create a file named
my-network
without a file extension. - Copy one of the examples to the
my-network
file and adjust accordingly. - Plug the USB stick into the Raspberry Pi.
- Format a USB stick to FAT32 with the volume name
- Insert the SD card into your Raspberry Pi. If you are going to use an Ethernet cable, connect that too.
- Connect your power supply to the Raspberry Pi.
- The Raspberry Pi will now boot up, connect to the Internet and download the latest version of Home Assistant. This will take about 20 minutes.
- Home Assistant will be available at
http://homeassistant.local:8123
. If you are running an older Windows version or have a stricter network configuration, you might need to access Home Assistant athttp://homeassistant:8123
orhttp://X.X.X.X:8123
(replaceX.X.X.X
with your Pi’s IP address). - If you used a USB stick for configuring the network, you can now remove it.