I have an issue starting the MQTT binding within openhab2.
Openhabian is running an old RPI2 and seems to be running as it should.
I can connect with the app and the basic ui is looking OK.
I set up the mosquitto broker and installer the MQTT binding.
An app on my android phine can read the data from the RPI (on port 1883) send by an ESP8266.
But openHAB isn’t connecting.
in MQTT.cfg the following lines are used:
mymosquitto.url=tcp://192.168.0.129:1883
mymosquitto.clientId=openhab2
When I check the openhab.log or events.log I don’t see any connection attempts.
Also mosquitto.log doesn’t show any connection attempts from the RPI.
Restarted the PI and reinstalled the MQTT binding, mosquitto multiple times, but no luck.
My mqtt.cfg is as follows and it is working. mosquitto broker is mosquitto again in my setup. I also created a user and pass under mosquitto. Maybe your setup doesnot allow unauthenticated?? And maybe you should put “mqtt:” in front of every line.
Wow, i am on OH2 snapshot #920, and my setup is like this and funny thing it is working? I should check it again. I only use mqttitude maybe that’s why…
Unfortunatly your solutions didn’t work.
In the end I re-installed openhabian and gues what… everything works now.
So maybe something went wrong during the first installation??
I had a similar issue when I upgraded MQTT to ver 3.1 and it just stopped working for no reason. After uninstalling MQTT action in the PaperUI. everything seems to working fine!!
Thanks for your suggestion!!