MQTT binding not connecting to mosquitto

Is the MQTT Broker on the same host (the rPi2) ?
If yes, use: mymosquitto.url=tcp://localhost:1883

Do the following:

  1. Enable debug in the openHAB console: log:set DEBUG org.openhab.binding.mqtt & log:set DEBUG org.openhab.io.transport.mqtt
  2. Uninstall from PaperUI the MQTT Action add-on (if installed)
  3. Shut down OH2
  4. Delete file /var/lib/openhab2/config/org/openhab/mqtt.config and
  5. Start OH2

Also, make sure that the clientId (openhab2) is not used by any other client

Which release of OH2 are you using?

3 Likes