-
|
geopulse fully working, using OwnTracks on my Android phone. traefik terminates TLS on port 8883. Now I was trying to get mosquitto running on my HA instance to bridge to geopulse's mosquitto and subscribe to my phone's topic. remote_username and remote_password are set to the same OwnTracks on my phone uses. I don't see why the connection doesn't work or is this user only allowed to publish, but not to subscribe? DeviceID is the DeviceID I chose in my the OwnTracks configuration. I also tried subscribing to all devices of my user but that also failed:
The example OwnTrack gives for bridges, looks just like mine: https://owntracks.org/booklet/guide/bridge/ |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Geopulse has the following MQTT settings (default values):
https://github.com/tess1o/geopulse/blob/main/mosquitto_entrypoint.sh#L106 This is a superuser who can read any topic and it's used by On the other hand each user can create their See configuration: https://github.com/tess1o/geopulse/blob/main/mosquitto_entrypoint.sh#L69 I hope it clear things out and helps you to figure out how to do the configuration. Thanks. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for all that help. I had obviously taken a look at all local config files and was trying to avoid using the geopulse_mqtt_admin since as you also explained, we can use the user we created for a Location Source to subscribe to its own topic. The missing point for me was that I did not supply this option top my bridge: I had successful connected with MQTT explorer, but the same settings didn't work for this bridge. I do not need to supply any TLS certificate BUT it turns out, you need to point mosquitto to the certs of the server. Here is a summary in case anyone googles the same problem: geopulse fully working, using OwnTracks on Android phone as location source. On the HA side, mosquitto needs to be configured as follows:
keep in mind, some of these variables are pasted here with their defaults, as this took me quite some time to figure out. |
Beta Was this translation helpful? Give feedback.
Thanks for all that help. I had obviously taken a look at all local config files and was trying to avoid using the geopulse_mqtt_admin since as you also explained, we can use the user we created for a Location Source to subscribe to its own topic.
The missing point for me was that I did not supply this option top my bridge:
bridge_capath /etc/ssl/certsI had successful connected with MQTT explorer, but the same settings didn't work for this bridge. I do not need to supply any TLS certificate BUT it turns out, you need to point mosquitto to the certs of the server.
Here is a summary in case anyone googles the same problem:
geopulse fully working, using OwnTracks on Android phone as locatio…