Alan Santos

Software Engineer

Installing Home Assistant on Raspberry Pi OS

Home Assistant also called Hass.io is one of the most famous open source home automation software, with it, you can control smart devices of your home with a smartphone, a web browser or a voice assistant like Alexa or Google Assistant. Hass.io perfect to run on Raspberry Pi, that allows us to transform our Raspberry Pi in an automation server.

Prerequisites

For this tutorial, you will need a Raspberry Pi with Raspberry Pi OS and Docker installed, you can find this tutorials on the links bellow:

Summary

What can I do with Home Assistant?

Here at my home, I control my vacuum robot, my TV, my PS4, my Raspberry Pi using Alexa + Home Assistant. In a future post, I will tech how can you setup all this devices in a free and security way, everything can be controlled by distance too.

Here is an example that you can do using Home Assistant + Alexa and smart objects:

“Alexa, open Crash Team Racing” and “Alexa, open God of War”
“Alexa, clean my bedroom”

Installing Home Assistant on Raspberry Pi

To install Home Assisntant, just follow the steps into Raspberry PI OS:

1. Install all Home Assistant dependencies:

sudo apt-get install apparmor-utils avahi-daemon dbus jq network-manager socat

2. Install Home Assitant:

sudo curl -sL https://raw.githubusercontent.com/home-assistant/supervised-installer/master/installer.sh | bash -s -- -m raspberrypi4

On the parameter -m raspberrypi4, you can choose one option of the list bellow based on you Raspberry Pi model and your Raspberry Pi OS:

  • raspberrypi
  • raspberrypi2
  • raspberrypi3
  • raspberrypi4
  • raspberrypi3-64
  • raspberrypi4-64

After the installation ends, you Home assistant is already installed on you Raspberry Pi. You can check access your Portainer using the address http://YOUR_RASPBERRY_PI_IP:9000

Configuring Home Assistant on first access

After install, access the address http://YOUR_RASPBERRY_PI_IP:8123 to configure Home Assistant and follow the steps bellow:

  1. Setup your name, your username and your password and press Create Account
  2. Setup your location and click in Next
  3. Click on Terminate
  4. Done, you Home Assistant is preconfigured
  5. Click on your user name on left bottom side of your screen and on user configuration page, select the option Advanced Mode
    • You can update your language like I did. I changed to English.

Thats it! Now that your Home Assistant is installed, we can move forward and integrate with some smart devices and communicate with Alexa to execute scripts using voice control. Bye!

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
EnglishPortuguês
0
Would love your thoughts, please comment.x
()
x