I am amazed that Philips does not publish any data on how to convert RGB colors to their xy values.
I have codes a conversion matrix and its reverse but the values are not quite correct so I am looking for the correct matrix that is used.
I also battled to make the reverse conversion (xy to RGB) so that I could pick up the current values from the bridge and show the same colors on the computer.
Eventually I converted every RGB value to my (poor) xy value to 2 decimals places and I use that to construct a look-up table to convert back to RGB, but I would rather get a proper matrix formula in order to round trip the color values properly.