MQTT broker: multiple users

Hi guys,
how do I add more users to the MQTT addon?
right now I have 1 user the string looks like the one in example:
{“username”: “testuser”, “password”: “mypw”}
how do I add more users?
Thanks for help

It’s an array, make it look like this:

"logins": [
  {“username”: “testuser”, “password”: “mypw”},
  {“username”: “seconduser”, “password”: “something”}
]

Pay attention to the fact there is a comma after every entry except for the last one.

2 Likes

How do you configure that in the configuration.yaml file for mqtt broker username and password for multiple users ?

You don’t set up multiple usernames in configuration.yaml as HomeAssistant is running as a client.

We had this option in the past but it looks gone with one of the latest versions of hassio