Closed ahk97 closed 10 months ago
That's not a bug. It rises historical. And is used in lots of functions.
Standard Prefix/Client is a unique ID if you don't change it.
This behavior will not be changed because now hundreds of users would need to change their systems.
Just use different prefix to all your awtrix. It's also easier for you to differ the clocks in your automations.
Thanks for the feedback. But whats the purpose of using MQTT then. Then I could stick with HTTP. If I need to send the same app to 10 different displays in my house, I need 10 MQTT publish commands. The goal is to have one publish and all awtrix show the same information.
Should I submit a feature request for a configurable "subscribe to" topic?
Let me think about it this afternoon. The Webinterface is shit and every change to it would force all users to reset their config.
I checked the MQTT documentation and it says the client identifier must be unique: https://www.ibm.com/docs/en/ibm-mq/9.3?topic=concepts-client-identifier
Also, just changing the client ID in the code to a unique value should not break any behavior. As long as the standard prefix (MQTT subscription topic) stays the same the functionality would stay the same as well.
Thanks!
I know how mqtt works, but since today you're the first out of thousands users with this "issue".
HA discovery also uses the client ID. But as said before I need to check it if this could break something for existing users.
Bug report
Describe the bug
Awtrix light uses the configured "MQTT prefix" as the client ID when connecting to the MQTT broker.
This prevents two Awtrix devices with the same prefix connecting to the same broker
Additional information
To Reproduce
Steps to reproduce the behavior: Configure MQTT and check mosquitto log.
Expected behavior
The client should choose a unique ID (for example based on the MAC Address or hostname) or the Client ID should be configurable.
Additional context
It is necesessary to use the same prefix on two Displays to have them display the same content