OH with MQTT binding not restoring connection

After MQTT server hangs (about 5 hours not working), OH doesnt restore connection to broker.

 [WARN ] [o.i.t.m.i.MqttBrokerConnection] - Broker connection not started. Cannot publish message to topic '/esp/esp-oled1/lcd/line0'

How force OH try to restore connection?
oh 1.8 synology

A restart of openHAB will work for sure.

If you run sudo touch /usr/share/openhab/addons/org.openhab.binding.mqtt-1.7.1.jar I think the plug-in loader will reload and that binding and it should reset the connection as part of that process.

In practice I’ve always had openHAB automatically reconnect, but I’ve never has the broker crash for that long.

1 Like

Are there console commands that could be used to trigger a MQTT restart?

I’m sure there is but I am not real comfortable in the karaf console yet.