Home Assistant Core installation

2023.12,I installed Home Assistant Core 2023.12.x in a virtual environment (pip) on a clean Raspberry Pi 3B+ device(debian 12)

Environment

Host system: Raspberry Pi  3b+

Operating system and architecture: Debain 12, arm64

Installation methods: Python virtual environment + Home Assistant Core 2022.9.3

Running method: Running Home Assistant Core in a Python virtual environment

 

System Information

# lsb_release -a

No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

#  cat /etc/debian_version

12.2

@raspberrypi:~# python3 -V

Python 3.11.2

 sqlite3 --version

bash: sqlite3: command not found

 

https://www.home-assistant.io/installation/raspberrypi#install-home-assistant-core

Install the dependencies

sudo apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff6 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev

 

 

Create and change to a virtual environment for Home Assistant Core

sudo useradd -rm homeassistant20230903 -G dialout,gpio,i2c


#create a directory for the installation of Home Assistant Core
sudo mkdir /srv/homeassistant20230903

#change the owner to the homeassistant20230201 account
sudo chown homeassistant20230903:homeassistant20230903 /srv/homeassistant20230903

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

 

Install Home Assistant Core

python3 -m pip install wheel

pip3 install homeassistant==2023.9.3

 

System information

Version	core-2023.9.3
Installation Type	Home Assistant Core
Development	false
Supervisor	false
Docker	false
User	homeassistant20221103
Virtual Environment	true
Python Version	3.11.5
Operating System Family	Linux
Operating System Version	6.1.53-v7+
CPU Architecture	armv7l
Timezone	Asia/Shanghai
Configuration Directory	/home/homeassistant20221103/.homeassistant

 

 

Comments


Comments are closed