Homeassistant core on android

Hello everyone got home assistance core running on termux proot but with lots of issues, nevertheless if you want to try here are the steps

1- update termux

yes | apt update && apt upgrade

2- install proot

apt install proot
apt install proot-distro

3- install ubuntu

proot-distro install ubuntu
proot-distro login ubuntu
4- update ubuntu packages

apt update && apt upgrade -y

5- installation of dependency

apt install python3 python3-pip python3-venv python3-dev build-essential libffi-dev libssl-dev libjpeg-dev zlib1g-dev

6-create a virtual environment

python3 -m venv homeassistant

7-activate the virtual environment

source homeassistant/bin/activate

8-install home assistance core

pip install homeassistant
(It will take a while)

9-start home assistance

hass

Open up your browser and navigate to http://localhost:8123
I tasted on galaxy note9 (exynos)
I am not good in linux,if you know better please try to improve the installation method and help out others and me as well😊
Thank you

1 Like

Take a look here:

Trust me that if you follow that guide that will give pain more then you can handle :slightly_smiling_face:
I think you didn’t have tried the guide that you replied with
Thank you

1 Like


i try, but it stop in here

Still no success, but anyway this method looks much tidier and easier than two others I tried before.
Three additional steps I had to add:

7.1. pip install --upgrade pip
7.2. apt install cargo   #(additional 400MB!)
7.3. apt install pkg-config

The error I get is:

[homeassistant.util.package] Unable to install package PyQRCode==1.2.1: error: No virtual environment found; run `uv venv` to create an environment, or pass `--system` to install into a non-virtual environment

Actually there is lots of those - not only PyQRCode. But they say essentially the same.

Probably just some variables or paths needed to set, but I’m not familiar with python and venv.

Work on my old android device , original rom and not root. (19.12.24).
Termux F-Driod version

termux-tools version: 1.44.1
Android version: 8.1.0
Kernel build information: Linux localhost 4.4.78-perf+ #1 SMP PREEMPT Sat Jul 7 00:12:00 CST 2018 aarch64 Android
Device manufacturer: Xiaomi
Device model: MI PAD 4
HA Core : 2004.11.3

step 5 Install the dependencies chang to : https://www.home-assistant.io/installation/linux/

root@localhost:~# apt install python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev
root@localhost:~# apt install autoconf build-essential libopenjp2-7 libtiff6 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev

Can install and run hass.



HA-InvalidConfig

I was finally able to get HASS working on my rooted Mi 11. Installation notes here.