I am really starting to get the hang of HA until I have now created a local MQTT service and trying to do more with it.
Coding and development is not my strongest and I am muddling through but I am really struggling with MQTT,
I have sorted Owntrack tracking but I am trying to now detect battery level via Owntracks and a local MQTT service. I’m sure I’m missing something but cant work out what.
It is showing in the frontend like so, but the actual % isn’t being pulled in.
Sorry if this is a simple one I just can’t find the answer anywhere and as I said dev and coding is not my strongest so I’m struggling to understand the doc’s around MQTT.
I did for my android it was just me being stupid and not having the correct owntracks/name/name details. But for my mrs iPhone I had no joy! It managed to show it but would never update from the original figure it gave me!
Honestly I can’t really remember as I don’t have HA setup anymore it just wasn’t working for me and I have moved systems completely to smartthings which I am getting on with much better
From memory I think it was just owntracks/Mike/mike for me (note the capital M on the first Mike) but sorry mate I can’t really remember!
on your mosquitto-server, try to listen whats going on: mosquitto_sub -u USERNAME -P PASSWORD -v -t \#
with this, you can see everything going through. Maybe this helps.
Keep an eye on slashes and such things.
@KvRajan , same issues happened to me as well. There are number of things need to be checked.
First double check your created users and passwords. As the passwords are encrypted in the file, if you forgot then best to just create a new password, it will replace the old.
Check the mosquitto configuration file.
Then do a restart. If all good, you should be able to connect to the server. If still problem persists, do a clean install again. By the way, which OS you are on ?