-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to configure MQTT Client Id? #148
Comments
Isn't this just the |
I did a quick bit of research: https://stackoverflow.com/questions/27174271/what-is-the-clientid-needed-for https://stackoverflow.com/questions/49796461/how-do-i-get-clientid-with-nodered Sent with GitHawk |
@ryanbeaton thanks! I've added support for the MQTT client in branch: https://github.com/Koenkk/zigbee2mqtt/tree/issue_148 You can configure it via: mqtt:
base_topic: zigbee2mqtt
server: 'mqtt://localhost'
client_id: 'my_client_id' @aaamitsingh can you test if it works? |
@ryanbeaton 👍 : Yes you are right and without client_id an MQTT connection cannot be established. Normally broker generates a random client_id for every connection. But some cases where the user needs to validate the client_id or only allow a connection with the prefix client_id there it is mandatory to pass the client_id. @Koenkk 👍 : Thank you so much for the quick enhancement. Still now I havent used this library I was just checking the configuration that it will support my system or not. So give me some time I will test and let you know the status. |
@Koenkk |
Merged and documented: https://github.com/Koenkk/zigbee2mqtt/wiki/Configuration |
Add support for MQTT client ID. Koenkk#148
Some MQTT broker requires "client id" for authentication. In "data/configuration.yaml" there is no any option to enter the Client Id. Can anyone tell me how to pass the Client Id?
The text was updated successfully, but these errors were encountered: