Thank you @vladosam for this thread and introducing us to the termux/ha environment. It feels like it is one of the hidden gems and highly underrated.
I would like to contribute to this with a thread with a recent requirement I had and got working within the termux/ha ecosystem: Adding letsencrypt certs (wildcard) to your ha deployment running under termux and have them autorew.
This is not a beginners guide and it assumes the user is familiar with:
command line, pip, cron
has access to DNS (for TXT record changes)
make changes to their configuration.yaml for http on their own
is capable of using a search engine
This should serve as a sufficient starting point to adopt the commands issue a single domain cert.
In short:
Create venv for certbot
Install requirements for certbot to compile (rust)
Install certbot via pip
Run certbot with command line arguments to generate wildcard cert
Install crontab to update certs (untested to see if it does updates correctly)
From 2.0 version of mosquitto you need to define listeners to bind on specific interface or on all interfaces. If listener is not defined mosquitto listens only on localhost. You need to add something like this in mosquitto config to listen on all interfaces:
Sorry but i can’t help you. My phone is now on android 10 version and it’s not rooted. And google is locking down android with every new version. Now i can’t install hass on termux I’m afraid homeassistant install in termux will become impossible eventually.
Hmmm
It seems incredible to me that this is practically the only post (and therefore you the only good person) to do a tutorial on this.
Everyone takes for granted using a Rasberry Pi, while an old android could cost even less, be more beautiful (aesthetically) and functional. Sin!
Thanks anyway for trying!
@vladosam
could you please check on your backup installation on Android if upgrading to 2021.5.x brings errors with dhcp and zeroconf? I know about one more user having it too, everything else is working fine.
edit: only now I see you couldn´t install hass on Termux anymore, nevermind, time to move on, thanks, it´s been a ride!
You can still run it on android versons < 10. But eventually it will hit the wall. It’s a shame i always had termux as a backup if something happens to my main machine.
Just out of interest, what main machine do you use? And which from several oficially supported options would you recommend as most future-proof in your opinion?
I used rpi 2-3 and now i’m on libre computer le potato board. My setup is small an without cameras, so i don’t need to much power. A couple of my friends runs everything on unraid machines. And they say it works great for them. So in the future i will probably go in that direction.