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.
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:
- What can I do with Home Assistant?
- Installing Home Assistant on Raspberry Pi
- Configuring Home Assistant on first access
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:
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:
After the installation ends, you Home assistant is already installed on you Raspberry Pi. You can check access your Portainer using the address
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:
- Setup your name, your username and your password and press Create Account
- Setup your location and click in Next
- Click on Terminate
- Done, you Home Assistant is preconfigured
- 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!