shimmeringbee / da

Abstractions of common device functionality for Shimmering Bee, written in Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Color Conversion Is Inaccurate

pwood opened this issue · comments

I'm unhappy with the behavour of the conversion of CIE xyY colors into HSV/RGB, and reversed. I'm not actually sure how well this is going to work anyway in ZDA, given that the Color cluster does not actually take the Lumance component of HSV or Y2 in xyY.

Any correction specific to ZDA must happen there, there may be other data available on the Zigbee devices which helps to calculate the Y2.