SteveyO / Hue-Emulator

A Bridge API Emulator for the Philips Hue (Personal Wireless System)
165 stars 41 forks source link

Emulator returning incorrect XY values #31

Open boardy opened 8 years ago

boardy commented 8 years ago

I've been developing my own Hue App and SDK library but have found that the XY values in the Light State response seem to be incorrect.

In my SDK I have performed a calculation to convert the XY values to RGB so that I can display the light colour in my app.

When I load the emulator I get 3 bulbs, Orange, Green and Red.

When I run my app I get the colours of Blank and two very pale yellows, looking at the LightState, the first bulb XY value is 0,0 which is obviously not correct, unless I am missing something. However, I have proved that my calculation works in my own app as when I connect my app to an actual Hue bridge instead of the Emulator my app displays all of the correct colours (FYI I have different ranges of light bulbs such as blooms, strip lights and standard colour bulbs) they all return the correct colour for my app, so I'm pretty sure its the emulator returning incorrect XY values.