Home Assistant On Android 6
A glimpse of Redmi Pro
-
Released in August 2016,
-
OS: Android 6.0, MIUI 10 9.3.28,
-
Rooted.
Terminal emulator
-
-
.. from Google Play: Absolutely NOT!
-
.. from F-Droid: No. The latest version on F-Droid was released in January 2022. It is for only android >= 7.
-
.. from
Artifacts
section of Github Build action workflows (A Github account logged in is necessary). Downloadtermux-app_v***+***-apt-android-5-github-debug_universal
and install it on Redmi Pro.
-
-
It is a potential solution. I tried a few times, but failed to deploy a linux on my Redmi Pro.
So Termux for android 5 was which I chose finally.
Home Assistant Operating System, Container, Supervised, and Core
There is a table to compare these installation methods.https://www.home-assistant.io/installation/#compare-installation-methods
Normally, I’d like a most powerful Home assistant. So I tried Operating System, Supervised, Container, and Core, sequentially.
-
Operating System - Not working!
Failed to install a virtual machine.
-
Supervised - Not working!
apt
,pkg
, and … were permanenently locked against running as root.I can NOT install any package from my root access.
I tried install the dependencies using current user. Failed to isntall
udisks2
,libglib2.0-bin
,network-manager
, anddbus
. -
Container - Not working!
Failed to install docker-compose.
-
Core - Not working!
Current user again (not root user).
Python 3.9 or newer is suggested. https://www.home-assistant.io/installation/linux#install-home-assistant-core
While, the latest python in the repos supported by Termux is 3.8 and there is no plan for support or package updates.https://github.com/termux/termux-app/wiki/Termux-on-android-5-or-6
That’s OK. I just ignored them and go on.
Some denpendencies are Not supported. Ignore again.
Finally,
pip install homeassistant
And failed at
ERROR: Failed building wheel for cryptography
. It need a rust>=1.41
, while the latest rust is1.38
.Failed again.
All were not working on Termux for android 5
.
PRoot
-
proot-distro is NOT supported on android 5/6. 💩
Almost no way to proceed.
-
Lucky. I’ve found a ready-to-use script to install Ubuntu from Termux.
It works like a charm.
So I have a Jellyfish on my Redmi Pro. It will be easily to go on.
Home Assistant Core on ubuntu-in-termux
-
su
user access, -
latest
python
(3.10), -
python3-dev
,python3-venv
,python3-pip
,libffi-dev
,libssl-dev
,libjpeg-dev
,zlib1g-dev
,autoconf
,build-essential
,libopenjp2-7
,libtiff5
,libturbojpeg0-dev
, andtzdata
. All dependancies are supported. Perfect! -
pip install homeassistant
worked as well. -
Go with your hass.
Note: Maybe a few bugs. I ignored them.
Enjoy Home Assistant on my Redmi Pro!
Brainstorm
-
Not root? Is it possible to work for ubuntu-in-termux?
-
Refer to the script of ubuntu-in-termux, is it to deply some other Linux distros?
No plan to test.