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

You could use mqtt bridge to connect to smartthings then.

Yeah, that might make the most sense.

Or use raspberry pi. :slight_smile:

Heh :slight_smile: Well ST hub is about the same cost as a pi and adapter… And a snapdragon 820 is much faster than a pi 3

Yes. Hass runs very fast even on older phones. Just that usb port…

Hmm, what about this? might congest wifi pretty badly though.

Need a second host too…

Edit, wonder if this could bridge between Android and termux. No network traffic or external host needed…

Not sure there is a client for usbip on termux.

Darn… Well at least it’s a conceptually possible avenue.

What about something like this? You could plug the adapter into another machine on your network then access it through your network

Whoops just saw the previous post, LOL I would think this would work though not sure I have the experience to make it happen I’m still trying to Simply get to my configuration. Yamyl

Ok, traveling at the moment but going to try a libusb solution via docker (likely using this: and see if that gets me anywhere.

There is also debian, ubuntu and arch for termux. Maybe debian and ubuntu is better for you because it’s more like termux. Apt vs dnf.

Cheers, you’re likely right, going to try ubuntu. It’s not totally clear to me if just docker alone will fix it:

" Your Linux kernel needs the USB/IP drivers compiled in. If VirtualHere cannot access this driver it will complain. Most versions of Linux have these drivers already compiled in, however some embedded Linuxes and come cloud vendors don’t. You would then need to obtain the Linux kernel source then use make menuconfig and select Drivers->USBIP and check those then make the kernel. That will produce vhci_hcd.ko and usbip-common.ko. Copy these to the lib modules directory on your Linux client. then type modprobe vhci_hcd type lsmod | grep vhci to confirm the driver was loaded into the kernel."

As far as I understand containers, the kernel itself is shared. That being said, perhaps I can manually load the driver into the kernel with the above steps. Anyway, I’ll report back in a few days once I’m home and have had time to experiment. Previous gen cellphones with broken screens on ebay could become the most cost-effective HA servers if this works out (need to also transition to a docker install so I can run hassio, but that’s a project for later).

1 Like

Wow, interesting project, thanks vladosam to share it!
I’ve installed Home assistant on my android tvbox and I can access the webserver on my lan (even HASS gives me some errors on launch).
What i would ask is: is there a way to install on Termux too?

No. You can’t install on termux.

Hello, I am new on Hass.
I installed Hass on my old android phone already, now I want to install cloud9, I entered pkg install cloud9 and got the response ‘E: Unable to locate package cloud9’.
What will I do now?
P/S: can I use the camera on the phone as a security webcam on Hass?

Thank you.

There is no cloud9 package for termux. To see available packages

pkg list-all

You can take jpeg images with termux-api
there is no video stream support.

1 Like

Do you want to remotely access your android? Use SSH.

Is there easy way to add config from github repo?

You want to download github repo to termux? There is git package in termux. And why did you delete your other question?

So if I pull someone project from git that will override my configuration?