MQTT connection lost

try the following:
0) switch to root (sudo su)

  1. stop the OH2 service (systemctl stop openhab2)
  2. move the mqtt.config file to another destination: mv /var/lib/openhab2/config/org/openhab/mqtt.config /root/)
  3. make sure that /etc/openhab2/services/mqtt.cfg is correctly configured
  4. start the OH2 service (systemctl start openhab2)
  5. check logs (openhab & mosquitto)
1 Like