Install Home Assistant on a Raspberry Pi

Getting your smart home devices to play well together can pose a real challenge. In steps Home Assistant. Home Assistant is an open source software that you can use to automate your house. It can integrate with devices made by different manufacturers. While there are a lot of install options, Home Assistant recommends the Raspberry Pi as an affordable and easier way to get started. This guide will walk you through the install and onboarding process for installing Home Assistant onto a Raspberry Pi.

Supplies

Hardware

  1. Raspberry Pi – The computer that will run Home Assistant.
  2. Ethernet cable – To connect the Raspberry Pi to your home network.
  3. Micro SD card  – The Micro SD card will hold the Home Assistant operating system and information.
    • A 32 GB card is recommended.
    • Definitely use a Class 10 card. Lower class cards can cause the system to crash often.
  4. Micro SD card reader to connect the card to your computer.

Software

  1. Etcher – The program will flash Home Assistant onto the Micro SD Card.
  2. Home Assistant – You will need to download the correct version of Home Assistant for your Raspberry Pi.

Prepare Your Micro SD Card

To begin you will first need to prepare your SD card. To do this, you will download Home Assistant and put it on a micro SD card.

After you download your file, open Etcher
Click Flash from file and choose your Home Assistant file.
  1. Visit Home Assistant’s GitHub page to find the install package for your device.
    • If you’re using the Raspberry Pi 4, scroll down to select the file hassos_rpi4-X.XX.img.xz. The X.XX represents the current version available. This example will show hassos_rpi4-5.12.img.xz
    • The 8GB version of the Raspberry Pi 4 should use the hassos_rpi4-64-X.XX.img.xz file indicating 64-bit.
  2. After you download your file, open Etcher.
  3. Click Flash from file and choose your Home Assistant file.
Insert your blank Micro SD card, and find it in the Select target screen.
Click Flash!
  1. Insert your blank Micro SD card, and find it in the Select target screen.
  2. Click Flash!
Etcher will begin by decompressing your file.
Next, it will flash the file to the Micro SD card.
Finally, Etcher will validate the flashing and unmount the card.
  1. Etcher will begin by decompressing your file.
  2. Next, it will flash the file to the Micro SD card.
  3. Finally, Etcher will validate the flashing and unmount the card. 
When you see this screen, the flashing is complete. Etcher will automatically unmount your Micro SD card, so it is safe to remove.
  1. When you see this screen, the flashing is complete. Etcher will automatically unmount your Micro SD card, so it is safe to remove.

Install Home Assistant

With the micro SD card prepped, you’re ready to set up Home Assistant. This next section will cover the installation process, finding Home Assistant’s IP address, and walk you through the Home Assistant onboarding process. 

After plugging in your Raspberry Pi,  log in to your modem/router device and look for homeassistant among your connected clients. Make note of the IP address.
  1. Insert the micro SD card into your Raspberry Pi.
  2. Plug the Raspberry Pi into a network port on your switch or modem/router device. Then connect the Raspberry Pi to a power outlet.
    • Home Assistant will start updating as soon as it is plugged in.
  3. Log in to your modem/router device and look for homeassistant among your connected clients. Make note of the IP address.
    • It may take 5-10 minutes of loading before homeassistant is visible among the rest of your connected clients.
Open a new tab and navigate to Home Assistant. You should see the Home Assistant icon and a notice that it is Preparing Home Assistant and may take up to 20 minutes; depending on your internet speeds and Raspberry Pi choice.
  1. Open a new tab and navigate to Home Assistant.
    • If your computer is on the same network as your Raspberry Pi, then you can access Home Assistant at http://homeassistant.local:8123/.
    • If your computer is on a different subnet than Home Assistant, you will need to use the device’s IP address instead. http://YOURIPADDRESS:8123/
    • You can see in the example image, this instance is found at http://192.168.1.6:8123/.
    • You should see the Home Assistant icon and a notice that it is Preparing Home Assistant and may take up to 20 minutes; depending on your internet speeds and Raspberry Pi choice.
When Home Assistant is finished with updates, you will likely lose connection. After reconnecting you should see the Create Account page.
  1. When Home Assistant is finished with updates, you will likely lose connection. After reconnecting you should see the Create Account page.

Home Assistant Onboarding

During Home Assistant’s onboarding process, you will tell it who you are, where you are, and can even set up some smart devices you may already have connected to the network. 

Provide your name, a username, and password to create an account.
  1. Provide your name, a username, and password to create an account.
    • This is a local username and password used to log in to your specific Home Assistant instance.
Name your home, save your location, and select your preferred unit system.
This next section is optional. Here you can click More and connect some of your smart devices. This option is also available inside of Home Assistant, so it is safe to skip.
  1. Name your home, save your location, and select your preferred unit system.
  2. This next section is optional. Here you can click More and connect some of your smart devices. This option is also available inside of Home Assistant, so it is safe to skip.
Lastly, you will be taken to your new default view.
  1. Lastly, you will be taken to your new default view. 

Conclusion

Home Assistant is a great system for connecting and controlling all of your smart home devices. Now that you have it set up, you can add smart devices, connect your subscriptions, and start automating your smart home. If you’re ready to get started, check out Smart Home Hobby’s Quick Overview of Home Assistant.

Leave a Reply