Installing Home Assistant Core 2023.2.2 on Raspberry Pi 3B+ step by step
I installed Home Assistant Core 2022.11.3 in a virtual environment (pip) on a clean Raspberry Pi 3B+ device(debian 11).
I canโt guarantee that the new version will install and run successfully, so I decided to do a fresh install first in order not to affect the operation of the existing system. After all problems are resolved, the existing system will be upgraded. This article is the problems encountered during the installation process and the solutions. It took me days for my peers to refer to.
Environment
- Operating system and architecture: Debain 11, arm64
I tired following this official guide: Installation - Home Assistant
Iโve updated to Python 3.10 and installed 2022.11.3
In summary there is a couple of steps involved, but from a High-Level, this is whatโs required:
Create and change to a virtual environment for Home Assistant Core
sudo useradd -rm homeassistant20230201 -G dialout,gpio,i2c
#create a directory for the installation of Home Assistant Core
sudo mkdir /srv/homeassistant20230201
#change the owner to the homeassistant20230201 account
sudo chown homeassistant20230200:homeassistant20230200 /srv/homeassistant20230200
sudo -u homeassistant20230201 -H -s
cd /srv/homeassistant20230201
python3.10 -m venv .
source bin/activate
before install Home Assistant Core(in a virtual environment)
You have to install wheels first. Try following this official guide: Installation - Home Assistant
pip install --upgrade pip
python3 -m pip install wheel
Install Home Assistant Core
#Stop the Homeassistant service for free port 8123
sudo systemctl stop home-assistant@homeassistant
pip3 install homeassistant==2023.2.1 (in a virtual environment)
resolve some errors
pip3 install cryptography (in a virtual environment)
curl https://sh.rustup.rs -sSf | sh (in a virtual environment)
sudo apt -y install rustc (not in a virtual environment)
pip3 install pyOpenSSL --upgrade
Other:checklist
(homeassistant20230201) homeassistant20230201@raspberrypi:/srv/homeassistant20230201 $ python3 -m pip --version
pip 22.3.1 from /srv/homeassistant20230201/lib/python3.10/site-packages/pip (python 3.10)