Install Home Assistant, Mosquitto broker and Node-Red on android

I have one additional repository from its-pointless

deb termux extras

noob question, where is the sources list in termux and do I use pkg to install this or apt? I wasn’t aware that debian repos worked on termux.

See this

Ok, really beating my head against this one. We have virtually identical installed packages now (diff list here: left is my install, right is yours). All my packages are arch64 while yours are arm, could that matter? Even our package versions are identical.

It could be architecture problem. Try to install netdisco manualy in your hass venv before running hass.

pip install netdisco

No change (and pip install netdisco just returned some requirement already satisfied messages). This is on a Snapdragon 820 Galaxy S7 Edge btw.

As this is discovery issue you can disable discovery and run it like that. Did you try it allready.

Might punt on that. I’m brand new to HASS and not sure I want to try setup without air of discovery. Thank you so much for your help btw, really appreciate it.

You can easily add devices manually. Don’t let discovery to be a showstopper.

All right, fair enough :slight_smile: I’ll give it a whirl tonight.

Out of curiosity I tried to set homeassistant on aarch64 and x86 android and i can’t get that discovery error. So lets try again. :smiley:
Clear data for termux app or uninstall - install to start fresh. Then install only these pkgs.

pkg install python-dev libffi-dev openssl-dev coreutils clang

Create python venv and activate it.

python -m venv homeassistant
source homeassistant/bin/activate

Install homeassistant and run it without pm2.

pip install homeassistant
1 Like

Still not working but… I decided to try on my primary phone (snapdragon GS9 Edge) and discovery works fine… It seems to only be an issue on the GS7 I have. Really odd.

Strange. Some app restrictions on phone? Firewall? Turn off wifi and cellural data transfer and try again.

First of all thanks for an awesome idea that I believe will fix all my problems. I have several old Android phones that I would like to use for device tracking in different areas on my property and I believe this is the answer. I have read pretty much the entire thread but I get lost about half way through there are so many changes would it be possible to upload an updated install method with all the recent recommended packages and procedures Etc… thanks in advance

To install homeassistant in python venv:

pkg update
pkg install python-dev libffi-dev openssl-dev coreutils clang
python -m venv homeassistant
source homeassistant/bin/activate
pip install homeassistant

run it once with hass command and wait few minutes


Open browser and go to


Ok, fixed my problem!

PSA for anyone with discovery issues, you need a recent android version!

The old GS7 I was using had no SIM in it and apparently many US carriers won’t allow updates to phones with no sim. I unlocked the bootloader, flashed an Oreo image and boom, problem solved.

TLDR: Make sure your device has Oreo.

1 Like

Thanks alot !!! I’ll give it a spin

Anyone gotten a Zigbee adapter working from Termux? Is libusb (I’d need to root obviously) sufficient?

I’m not sure you can use usb port for anything other then keyboard, mouse or usb flash drive. See this on github.

Darn, might grab a smart things hub the connect HA with zwave/Zigbee then…