Skip to content
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

Make mqtt client id unique #30

Open
spuder opened this issue Jan 14, 2025 · 2 comments
Open

Make mqtt client id unique #30

spuder opened this issue Jan 14, 2025 · 2 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@spuder
Copy link
Owner

spuder commented Jan 14, 2025

[15:07:49][C][mqtt:148]: MQTT:
[15:07:49][C][mqtt:149]:   Server Address: 192.168.81.108:8883 (192.168.81.108)
[15:07:49][C][mqtt:151]:   Username: 'bblp'
[15:07:49][C][mqtt:152]:   Client ID: 'openspool'
[15:07:49][C][mqtt:153]:   Clean Session: YES
[15:07:49][C][mqtt:161]:   Topic Prefix: ''
[15:07:49][C][improv_serial:032]: Improv Serial:

Instead of using name variable, append the Mac address to the name to make client id unique. This would be needed for when multiple esp32s are connecting to the same printer.

client_id: ${name}

@spuder spuder added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 15, 2025
@raihei
Copy link
Contributor

raihei commented Jan 29, 2025

I tried it, but looks like it is not possible. Or is there another way?

Image

@spuder
Copy link
Owner Author

spuder commented Jan 29, 2025

Thanks for trying, if it isn't templateable then it likely isn't possible.
I ran into the same issue with the mqtt broker address not being templatable.

https://discord.com/channels/429907082951524364/524177279270780928/1300834004718587998

That was fixed in esphome/esphome#7716

I suspect it might take a pull request to esphome community to fix this.

Feel free to take this on if you are interested. As it isn't really going to break anything I"m going to mark as wont-fix for now.

@spuder spuder added wontfix This will not be worked on and removed help wanted Extra attention is needed good first issue Good for newcomers labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants