RTL433 not posting to MQTT

I have RTL433 to listen out for a Oil Sensor. This works fine when running as the log is showing the messages it receives…
It seems to not post anything to MQTT. I have rtl_433 MQTT Auto Discovery which says it is listening for messages but doesn’t receive anything.

There is an error in the rtl433 log which points to an error connecting to MQTT.
[rtl_433] [MQTT] MQTT connect error: Connection refused

My conf (saved in /homeassistant/rtl_433/rtl_433.conf.template) is

#protocol 43
output mqtt://192.168.68.149:1833,user=mqttuser,pass=xxmypassword

output kv

I have a user set up in homeassistant with that username and password.

Any ideas where I am going wrong?

If I manually post events to MQTT of the correct topic they appear in the autodiscovery listener log correctly, so definately a problem publishing.

Using this as the output line for mqtt seems to fix it - this is from the rtl433 next documenation. Basically you put in the template and it enters the correct values for your system.

output mqtt://${host}:${port},user=${username},pass=${password},retain=${retain},devices=rtl_433/9b13b3f4-rtl433/devices[/type][/model][/subtype][/channel][/id],events=rtl_433/9b13b3f4-rtl433/events,states=rtl_433/9b13b3f4-rtl433/states

My MQTT uses the username homeassistant configured in its UI, visible on the reconfigure option. I don’t have a user configured with that username so not sure what that should match to. It works so I’m not changing it!

What I was pointing out with that 2nd link is add a password in the Mosquitto config and use that.
It works better for me.
You don’t have to use secrets, plain text there is fine.