Basic question about mqtt client id

Where do I find the value for the client_id:

mqtt:
broker: 192.168.1.4
port: 1883
client_id:
username: !secret mosquitto_username
password: !secret mosquitto_password

Any random identifier will do.

Interesting. Seems like a worthless field there to cause confusion and frustration :slight_smile: . I have tried 5 iterations of “home assistant”, “home-assistant”, etc., etc. Must be failing on username and password, but when I set this up (for the second time) I made sure I saved off my username and password. Should I go through the routine to set up another user name and password or do you have any other suggestions? Thank you.

I will use the embedded broker until I get more familiar with this stuff.

Now I get it. I thought the client_id was going to match an existing client_id somewhere in the system. Then, after studying for a little while, I understand the client_id is something I provide so the broker can keep track of many clients. Thanks for your help and sorry for my confusion.

4 Likes