How to install earlier versions of Mosquitto?

I’m running 2025.12.3 and Mosquitto 6.0.2
I have arduinos and ESP modules in remote locations all over the place and only a few have OTA access. Accessing and re-programming all of them will be a long term project, so when the next mosquitto update stopped talking to the devices I simply restored 6.0.2 and haven’t updated since…
I now find I have to update for newer devices but when I installed 6.5.2 it didn’t want to talk to anything (not even MQTT Explorer!) and anonymous clients are not an option.
Is there a way to install earlier versions with user/pwd options that will also take anonymous clients while I track down and reprogram all my devices?

Thanks in advance.

Anonymous login was removed from the HA add-on ages ago, as you are aware:

Add-ons are not version-controlled, so the only way to do it is via restoring a backup, which will affect your whole system. If you want to do something that the add-on doesn’t support, move it out of HA.

I run the eclipse-moquitto Docker image separately on my NAS with the allow_anonymous option turned on. As I run HA in a Docker container, I don’t even have the option of add-ons and have never missed it…

3 Likes

Thanks for that Troon, a replacement broker seems like the only way forward.

Docker or bare metal install of mosquitto you can install any available version.

You can always change your HA install or run mosquitto on separate PC like RasPi

Thanks tmjpugh, think I’ll run new Broker in Docker or on a spare RPi - BUT - all my devices will be sending their MQTT traffic to my HASSIO’s IP address, will I need to set up a route/port forward to direct that traffic to the IP of the new broker?

You’ll need to do something, yes. Depending what other devices you have, it may be easier to move HA’s IP address and set up the broker at the old IP…

Run 2 broker or change ip

Result will be same
I would run 2 and plan slow migration to password