Try the test version of the hub MQTT Hub | Homey and the client MQTT Client | Homey
They both have fixes to connect more easy. If you don’t succeed in restarting in one go. Disable broker, client and hub and restart in same order.
See MQTT Hub/Gateway - #808 by robertklep for some details.