MQTT config file?

Hopefully someone can help here, configured MQTT via a Supervisor installation, went to integrations and configured there as well.
But I’m getting the “your password isn’t stored in secrets.yaml” message on restarts. Can’t find where the files are for MQTT to rectify I only seem to find config in the UI which of course doesn’t support secrets. Can anyone point me at which file it saves that config to before I lose my marbles??

Can you post what you have as your Mosquitto config currently?

Just the standard:

logins:
  - username: mymqttuser
    password: mymqttpassword
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

This is via the supervisor page then via the Mosquitto add in and “configuration” at the top. It all works fine, its just this info must be stored in a .yaml type file somewhere for me to be able to change to use secrets surely?

Try this instead:

logins: []
anonymous: false
customize:
  active: false
  folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false

This will make it use your Home Assistant username and password instead of manual ones. I had serious trouble getting a manual username and password to work.

Thanks, I’ll give that a try

That worked, thanks!