Closed TheNetStriker closed 3 years ago
I do have the same issue and (almost same) stacktrace trying to connect to the mqtt.thingspeak.com
broker with 2.5.6-2 (Release Build).
I did not know that the issue might be related to homie auto-discovery but rather an issue with the specific server/broker but your explanation makes sense to me.
Tested #8077 contained in 2.5.8-SNAPSHOT by replacing release version of the addon with current snaphot-build of the plugin. And setting enableDiscovery=false
on my broker of course. Seems to work now! No issues when subscribing and the values are fetched now.
Expected Behavior
OpenHab can directly connect to TheThingsNetwork via MQTT.
Current Behavior
OpenHab cannot connect to the ThingsNetwork via MQTT because the client seems to get kicked from the server because of the HomeAssistant discovery. There is also a thead in the community forum about this problem: https://community.openhab.org/t/connecting-openhab-thethingsnetwork/96936/9
Possible Solution
Add an option to the MQTT broker to disable HomeAssistant discovery.
Steps to Reproduce (for Bugs)
Create a test application in TheThingsNetwork and try to connect to it: https://www.thethingsnetwork.org/docs/applications/mqtt/
Your Environment
OpenHabian with OpenHab 2.5.6.
Logs