Home Assistant Core on Android Tablet

Had some issues. This is how I installed it on Termux:

# If you get errors run: "termux-change-repo" and change the sources mirrors to ex. termux.me
pkg update

# Upgrade current packages
pkg upgrade -y

# Install required packages
pkg install nano openssh termux-api make libjpeg-turbo wget rust python -y

# Export build target for Rust
export CARGO_BUILD_TARGET="$(rustc -Vv | grep "host" | awk '{print $2}')"

# There's a bug where python 3.10 is being detected as lower than 3.6 (minimumn build version)
# Will cause error: cargo failed with code: 101
# Remove python 3.10 (But keep dependencies)
pkg remove python -y

# We have to install python 3.9.7, but we need to know the system architecture first
# Get your current architecture, based on that choose the next step
echo $CARGO_BUILD_TARGET

# Choose only one, based on the architecture you got (arm or aarch64)
# For arm
wget https://raw.githubusercontent.com/Termux-pod/termux-pod/main/arm/python/python-3.9.7/python_3.9.7_arm.deb
dpkg -i python_3.9.7_arm.deb

# For aarch64 
wget https://raw.githubusercontent.com/Termux-pod/termux-pod/main/aarch64/python/python-3.9.7/python_3.9.7_aarch64.deb
dpkg -i python_3.9.7_aarch64.deb

# Upgrade pip
pip install --upgrade pip

# Install homeassistant
pip install wheel homeassistant

Still, lots of errors when starting hass which I’m trying to solve.

1 Like