The Raspberry Pi single board computer is the tinkerers best choice for getting started with DIY home automation without vendor lock in. The raspberry pi is widely available and has tons of community support compared to some other single board computers. We'll show you how to get started with home assistant on raspberry pi.
Required Equipment
To start using your raspberry pi with home assistant you will purchase a few accessories.
- Raspberry Pi 4
- Choose the Pi 4 instead of the Pi Zero, you'll need the full sized USB ports to attach your dongles. If you're having a hard time locating a Pi do to the chip shortage use the Raspberry Pi Locator to find it in stock.
- 32 GB Class 10 Micro SD Card
- You need a micro SD card to install your software on. Make sure to get a class 10 card that can handle frequent writes and get a good vendor like Sandisk, Lexar or Samsung. Bigger than 32 GB is recommended if you plan on using your PI for more than just Home Assistant.
- Power Supply
- A high quality power supply is key to stable pi uptime. Although you could use a phone charger it is recommended to use a higher quality power supply made just for your PI. It will minimize wear on the SD card and lead to a more stable platform. Minimum power supply requirements are provided by the Raspberry Pi foundation.
- Z-Wave Dongle
- To connect to your z wave devices you need a radio. Zooz 700 series uses the latest z-wave standard to future proof your home assistant setup.
- Zigbee Dongle
- The best zigbee dongles are based on the TI CC2652 chipset. Sonoff makes a wide range of zigbee products and is a great choice for a dongle.
Software Installation
Plug your new SD card into your computer. Next, install belenaEthcher to install home assistant to your SD card. This is the easiest way to format your SD card for your Raspberry Pi. Open belenaEtcher and select flash from URL. For the Raspberry Pi 4 64 bit the URL is:
https://github.com/home-assistant/operating-system/releases/download/9.2/haos_rpi4-64-9.2.img.xz
Select your SD card and click flash to install on your PI. After the disk is installed eject it from your computer and plug it into your raspberry pi. Install your Z-Wave and zigbee dongles into your computer and connect your PI to your network with an ethernet cable. Then power on your pi by plugging in the power supply. Wait a few minutes for your pi to startup then connect to your PI by visiting homeassistant.local:8123. If the link does not work try locating the IP address of your PI in your router and connecting directly to the IP address with :8123 added at the end.
Configure Home Assistant
Once you connect to your PI you'll start setting up Home Assistant. Create your username and password and set the name for your home. Once you complete your username and location you'll be greeted with the devices that home assistant automatically discovered on your network. You will add other devices not automatically added later. Finally click finish to enter the home assistant home screen. From here you can start your journey into automations and add your smart devices to your new smart home hub powered by Raspberry Pi and Home Assistant.