install home-assistant mosquitto-broker and node-red on android

This is Home Assistant, MQTT broker - Mosquitto, Node-RED installation. Requires Android 5.0 and up. Works without root. Install Termux and Termux:API from Play Store or F-droid. Install Hacker’s keyboard. This works for me, why you have a problem with this i don’t have a clue. :)

Start Termux

Update packages

packages update
packages upgrade
packages list-installed
packages install python python-dev coreutils nano ndk-stl clang mosquitto nodejs openssh termux-api

Install HA, Mosquitto, Node-RED

npm i -g --unsafe-perm node-red
npm i -g --unsafe-perm pm2
pip install homeassistant

Start:

node-red
#Stop node-red with ctrl +c or volume down + c

mosquitto
#Stop Mosquitto with ctrl +c or volume down + c

hass
#Wait for a installation to complete then stop HA with ctrl +c or volume down + c

Start at login

If you make mistake in pm2 configuration…

Enjoy!

ref: https://community.home-assistant.io/t/install-home-assistant-mosquitto-broker-and-node-red-on-android/14350

Last updated

Was this helpful?