Did you configure mosquitto to use username and password?
Yes, with this:
mosquitto_passwd -c passwordfile user
I can acces the passwd file created.
And this is in mosquitto.conf?
password_file /path/to/mosquitto/passwd
allow_anonymous false
Yes, both lines with the correct path.
Then check indentation in configuration.yaml. This config works for me.
mqtt:
broker: localhost
port: 1883
username: test
password: test
client_id: mqttha
keepalive: 60
The problem persist. Typing netstat -a I’m unable to see a localhost/1883 address. Could this be related?
Can you subscribe to mosquitto?
mosquitto_sub -h localhost -p 1883 -t topic -u test -P test
Txs for your efforts.
I can’t subscribe to mosquito.
Error: connection refused
Try to reinstall mosquitto and set it without user and password.
Done.
mqtt:
broker: localhost
port: 1883
Same results… I don’t know what I’m missing
Is mosquitto started at all?
pm2 show mosquitto
pm2 logs mosquitto
Did you follow all steps in my tutorial?
Yes, I did follow your tutorial. I’m running mosquitto first with this lines:
Pm2 start mosquitto – -v -c /data/data/com.termux/files/usr/etc/mosquitto/mosquitto.conf
But “pm2 show mosquitto” shows: mosquitto doesn’t exist
I will try to reinstall mosquitto
Finally I get it. There was an extra “-” in the tutorial command. Txs for your help!!
hi, i am trying to install it on my minix android streamer but after i type
pm2 start hass --interpreter=python – --config /data/data/com.termux/files/home/.homeassistant
i get a pm2 error that says: script not found : /data/data/com.termux/files/home/hass
what do i need to do to solve this problem?
thnx
There are two dashes after
--interpreter=python
not one. Try that.
It seem that this tutorial not work anymore from the version 0.76.
I’m trying with the version 0.75 is OK but I got the error when upgrade to version 0.76.
I got this errror.
Does anyone know this error and how to fix this?
Thanks
It seems there is a problem with installing cryptography on termux.
ye that’s it…
I’m trying edit the openssl.conf file but I cannot find it
hi,
my apologies if this is a daft question,
i’m trying to follow your tutorial above and all appears to be going fine up to
“pip install homeassistant”
i get the error
“no command ‘pip’ found, did you mean:
command ‘php’ from package ‘php’
command ‘zip’ from package ‘zip’
command ‘ip’ from package ‘termux-tools’
$”
also apears to be a lot of errors and warnings after installing node-red is this right?
my aim is to us this to enable my broadlink rm pro+ to be opperated by my amazon echo plus (the skill isn’t available in the uk) am i correct in thinking this will enable it via ifttt or am i wasting my time on this project?
thank you all for your time and help.
kind regards
Robin
I’m not sure what you are trying to achieve with this. But to install homeassistant run pip like this
python3 -m pip install wheel
python3 -m pip install homeassistant==0.75.3
You can’t install latest version of homeassistant because of problem with cryptography on termux.
Yes, node-red gives lots warnings when installing but if it work after it’s all good.