MQTT Addon User Management

Hi,
I currently struggeling how do Manage the MQTT user correctly.
As in the documentation shown, I only have to create an HA User and this user would be able to connecto to the mqtt broker addon.

Yes, thats working, but for now, every mqtt user (e.g. for Power-Plugs, Victron, …) will be able to logon to the HA Webinterface.

So is there any way of permission-management?

I tried to add on user only for the addon trough the configuration, but that didn’t work.
Everytime i press the save button i get an unexpect error:
“Fehler beim Speichern der Add-on-Konfiguration, Unknown error, see supervisor logs”

thanks for your help!

I wondered that too when faced with the problem of adding users via the user menu. Does it work if set them as not able to login?

I didn’t try that.

Anyway you can add via the addon. It’s picky about the format. You can do it with or without secrets. If you use secrets you usually have to add the user/pass to the secrets file, then restart, then add them to the addon.

Ps make sure it’s the addon, not the integration.

- username: "!secret mqtt_user"
  password: "!secret mqtt_pass"


Can I suggest a walk-though of all MQTT settings including credentials?:

Users can be configured directly from the Mosquitto Add-On Configuration tab:
http://homeassistant.local:8123/hassio/addon/core_mosquitto/config

My own Mosquito Add-On config has several separate users - e.g for a class of device:

- username: tasmota
  password: ChangeThisPassword1
- username: 3dprinter
  password: ChangeThisPassword2
- username: openhab
  password: ChangeThisPassword3

The question is, what do the supervisor logs show?

Look at the Add-On logs, or if you’ve not installed it, try the Log Viewer:

If this helps, :heart: this post!