MQTT No Data
I recently had MQTT turned on for my account. I can connect using the information provided but receive no data on the topic.
I have been trying to connect using MQTT Explorer and Home Assistant, both of which will connect but not receive data.
This is my Moskito bridge configuration:
connection glowmqtt
address glowmqtt.energyhive.com:8883
try_private false
notifications true
start_type automatic
keepalive_interval 300
cleansession true
bridge_protocol_version mqttv311
remote_username EMAIL
remote_password PASSWORD
topic SMART/HILD/C82B96A2DF38/ in 0
bridge_capath /etc/ssl/certs
local_clientid raspi_mosq
remote_clientid raspi_glow
Any help would be appreciated
Matt
Comments
Change
To
Thank you Dougie, for your recommendation.
Unfortunately this doesn't seem to be working
Then you'll need to run Wireshark / tcpdump to see what's going up and down the wire.
Since it's using port 8883 (mqtts) you'll need to look at doing bad things with a pre-master key (so you can decrypt the traffic when you analyse it). https://gitlab.com/wireshark/wireshark/-/wikis/TLS#using-the-pre-master-secret
There's a lot to be said for running with
mosquitto_sub
to pull every topic from your local Mosquitto server.I think there might be a problem if someone else is using the same clientid as you.
I was using something generic and it broke.
I changed it to something else and now it works.
Thank you Bruce.
I have just tried changing the client ID and no luck.
Looking in the logs I get "1619190938: Connecting bridge glowmqtt (glowmqtt.energyhive.com:8883)" without any errors.
Matt
Sorry I didn't see this earlier
Please change your topic to SMART/IGLOO/C82B96A2DF38
It is working fine.
Hi All,
I got waylayed with other projects.
I can confirm changing the topic to SMART/IGLOO did the trick.
Thank you for all your help
Matt