How to install Home Assistant on Raspberry Pi?

I want to install Home Assistant on my Raspberry Pi and I have followed the official instructions: https://www.home-assistant.io/installation/raspberrypi/#install-home-assistant-core

However, I had very little luck. So, I had decided to make my own instructions on how to install Home Assistant on Raspberry Pi.

First of all – install at least Python 3.10. You can follow my guide on how to update Python 3 on Raspberry Pi.

DO NOT install

sudo apt-get install python3-dev python3-venv python3-pip

As you’d revert libraries back to Python 3.9.

Then follow the tutorial:

# Add required libraries
$ sudo apt-get install -y bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev

# From official guide
$ sudo useradd -rm homeassistant -G dialout,gpio,i2c
$ sudo mkdir /srv/homeassistant
$ sudo chown homeassistant:homeassistant /srv/homeassistant 
$ sudo -u homeassistant -H -s
$ cd /srv/homeassistant
$ python3 -m venv .
$ source bin/activate
$ pip3 install homeassistant==2023.7.1

Now edit /home/homeassistant/.bashrc and at the very end add:

# ... The rest of file...
export PATH="/home/homeassistant/.local/bin:$PATH"

Execute:

$ source /home/homeassistant/.bashrc
$ hass

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *