MQTT doesn't attempt reconnection if broker not up on start-up

Couldn’t see if anyone’s raised this before. problem is that I use containers to start my stuff, and mostly openhab completes before my MQTT docker. When the MQTT binding first initialises, it tries to connect to MQTT but cannot - so it errors out.

Here’s the peculiar thing… if it doesn’t establish a connection at start-up, it won’t try again. But if it establishes one at startup, and loses connection, it will keep attempting to connect.

Anyone worked around this?


1 Like