As promised, a series about Home Automation, as mentioned before I decided to use Home Assistant for this job. For more info see my previous post;

First of all, to use Home Assistant correct we need some hardware. The Raspberry PI 3 B+ is a good model, but I decided to go for the future and buy an updated version, the PI 4. I got it from the coolest store in the Netherlands, but of course in every country you can find it.

You also need some other stuff, let me sum it up;
– SD Card, preferably at least 32GB and application class 2
– Adapter
– Mini-HDMI to HDMI for connecting to your screen.

I assume you have the Raspberry installed with an OS to your choosing, I would recommend something like NOOBS its easy and understandable.

Lets get started with a running RPI.
Get to the terminal, either via SSH or physically.

First and foremost, lets secure this RPI, the default password is to easy to use. In terminal, type in:passwd

With this done, lets update the RPI;
sudo apt update
sudo apt upgrade

Next, install depending packages
sudo apt-get install python3 python3-venv python3-pip libffi-dev libssl-dev autoconf

Add a user for homeassistant
sudo useradd -rm homeassistant -G dialout,gpio,i2c

We are doing great, half of the work is done ✅

Lets create an directory where HomeAssistant will live and work
cd /srv
sudo mkdir homeassistant
sudo chown homeassistant:homeassistant homeassistant

Next step, creating the virtual enviroment where we will install this awesome tool;

sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate

We need wheel installed to help us out here;
python3 -m pip install wheel

As soon as ‘wheel’ is installed we can actually start with the install of Home Assistant!
pip3 install homeassistant

This will take some time, but when its done we are ready to boot up for the very first time, this is the easiest part… in terminal, type

There you go! The first time will take some time because it will download some extra libraries and some dependencies.
Now navigate in a browser to the IP given to your RPI and use port 8123 to reach Hass.

If all went well you should see a running instance of Home Assistant. If not, post a comment here and I will try to help you out.

Upcoming is adding some lights to be controlled, configuring Hass to be available from outside your house/network and a lot more.

Happy Hacking!

Want to get an email when a new post is placed? Subscribe!