Home Assistant Core (Python) on Armbian

:warning: This guide has been migrated from our website and might be outdated. Feel free to edit this guide to update it, and to remove this message after that.

armbian runs on a wide variety of ARM development boards. Currently, there are around 50 boards supported inclusive the OrangePi family, Cubieboard, Pine64, and ODROID.

Setup Python and pip:

sudo apt-get update
sudo apt-get install python3-dev python3-pip libffi-dev libssl-dev

Now that you installed python, there are two ways to install Home Assistant:

  1. It is recommended to install Home Assistant in a virtual environment to avoid using root, using the VirtualEnv instructions
  2. Alternatively, you can install Home Assistant for the user you created when first booting Armbian:
sudo pip3 install homeassistant
hass --open-ui

Running these commands will:

  • Install Home Assistant
  • Launch Home Assistant and serve the web interface on http://localhost:8123
  • The configuration files will be created in /home/{user}/.homeassistant

Tested on a Banana Pi M1 running Armbian Ubuntu 20.04 ( Dual Core, 1Ghz~ 1GB Ram )
Installation takes some time, further dependency installation of homeassistant takes about an hour,
most is it is pynacl

As root user:

mkdir -p /opt/homeass
cd /opt/homeass
apt install python3-dev python3-pip python3-venv libffi-dev libssl-dev
apt-get install libtiff5-dev libjpeg8-dev libopenjp2-7-dev zlib1g-dev \
    libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python3-tk \
    libharfbuzz-dev libfribidi-dev libxcb1-dev libimagequant-dev 
pip3 install --upgrade virtualenv wheel setuptools
python3 -m venv .
source bin/activate
pip3 install homeassistant colorlog

Runs perfectly fine

1 Like