I am trying to create a zigbee device using ESP32C6 module.
There is a Color Dimmable Light example here:
When I use it on ESP32C6 , on/off and level commands from Hubitat (Generic Zigbee RGB Bulb) work fine.
However, color change commands do not work.
When I debug on the device side, I see that R,G,B values are not received.
I guess the device driver on Hubitat is sending HSL instead of RGB
Is there a device code that sends RGB values in zigbee ?
Yes, that is normally how color in Zigbee works: cluster 0x0300 (color control), command 0x06 (move to hue/saturation), that or xy with command 0x07 (move to color). My understanding is that xy is technically all that is required, but hue/saturation is nearly universal regardless.
The driver is definitely not sending RGB, and it's quite unlikely that the device is expecting RGB, either. More likely, you've run into a case where only xy is accepted. You'd probably need a custom driver to handle that since it's not Hubitat's native color model and conversion is pretty difficult (but it can be worked with directly pretty easily if you know the xy values you want).
But the Advanced RGBW Driver might get you somewhere (still probably won't work with color -- at least not if this the reason) if you run "Configure," which could be part of the problem with this driver for you previously.
The above is just a guess based on what Zigbee supports. The real answer would be knowing what your device actually supports, which you'll probably find in your Arduino code if nowhere else -- but I'd assume xy if it doesn't like hue/saturation.
Actually the Arduino code is looking for RGB values. I contacted the team who's developing Arduino Zigbee libraries. They confirmed the situation and said that they will work on adding Hue/Sat