Tint Remote control - xy color values to HSB

Have you read thru this topic?

I have no color bulbs to test with but there are several example in the topic that may help.