Home Assistant On Android 6

Posted by Bruce Liu on June 23, 2022

🏷️ Tags: home assistant , android , Redmi Pro , Termux , Ubuntu

A glimpse of Redmi Pro

  • Released in August 2016,

  • OS: Android 6.0, MIUI 10 9.3.28,

  • Rooted.

Terminal emulator

  • Termux

    • .. 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). Download termux-app_v***+***-apt-android-5-github-debug_universal and install it on Redmi Pro.

  • Linux Deploy

    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, and dbus.

  • 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 is 1.38.

    Failed again.

All were not working on Termux for android 5.

PRoot

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, and tzdata. 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

No plan to test.

Reference


Share on:

« PREVIOUS: Free ways to access home assistant remotely
NEXT: Calculator for loan and repay »