Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.79k stars 1.64k forks source link

[Feature request]: add MQTT message zigbee2mqtt/<friendly-name>/color-x-y #12144

Closed kaintoch closed 2 years ago

kaintoch commented 2 years ago

Is your feature request related to a problem? Please describe

When subscribing to color bulbs, zigbee2mqtt sends following messages to the subscriber:

zigbee2mqtt/<friendly-name>/color-x 0.4398
zigbee2mqtt/<friendly-name>/color-y 0.405

Unfortunately it's technically impossible to programmatically associate the color-x and -y messages which belong together, without making additional assumptions. Justification: order of messages is not defined, messages are interleaved with other messages. As a consequence it is impossible to display the color value reliably in a MQTT client. It will always be some kind of guessing or heuristic.

Describe the solution you'd like

A new message like zigbee2mqtt/<friendly-name>/color-x-y 0.4398,0.405 would fix that issue.

Describe alternatives you've considered

The feature "json messages" would also fix the issue, but requires json processing. zigbee2mqtt/<friendly-name> {"brightness":254,"color":{"x":0.4398,"y":0.405},"color_mode":"color_temp","color_temp":337,"linkquality":42,"state":"OFF"}

Additional context

None

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days