Skip to content

Instantly share code, notes, and snippets.

@bmweiner
Last active October 30, 2020 17:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmweiner/9c1c71424f40e9226c0d9497beb7ee41 to your computer and use it in GitHub Desktop.
Save bmweiner/9c1c71424f40e9226c0d9497beb7ee41 to your computer and use it in GitHub Desktop.
# installs home assistant core on raspberry pi
#
# source: https://www.home-assistant.io/docs/installation/raspberry-pi/
#
# pre-requisite
# install Raspberry PI OS
# ssh into pi clone this script and execute
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get -y install python3 python3-dev python3-venv python3-pip libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff5
sudo useradd -rm homeassistant -G dialout,gpio,i2c
cd /srv
sudo mkdir homeassistant
sudo chown homeassistant:homeassistant homeassistant
sudo -u homeassistant -H -s
cd /srv/homeassistant
python3 -m venv .
source bin/activate
python3 -m pip install wheel
pip3 install homeassistant
hass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment