Yes–trying to change the color by just typing it into the Service Simulator for Ask Alexa. I don’t think it’s the Hue/Saturation as from my logs for Sea Green, H41S50 is exactly what is being called for.
So just to see the effect on “invalid” ST colors here are a couple of logs showing commonality in the xy transform errors:
Peru:
3:29:11 PM: debug NO Update Needed for level.
3:29:11 PM: trace Hue B Smart Bulb: updateStatus ( bri:254 )
3:29:11 PM: debug NO Update Needed for switch.
3:29:11 PM: trace Hue B Smart Bulb: updateStatus ( on:true )
3:29:11 PM: debug NO Update Needed for transitionTime.
3:29:11 PM: trace Hue B Smart Bulb: updateStatus ( transitiontime:25 )
3:29:10 PM: debug newHue = 62, newSat = 0
3:29:10 PM: debug colorData from XY = [hue:0.6154037886340992, saturation:3.0602159267618245E-4]
3:29:10 PM: debug HS from XY = [hue:0.6154037886340992, saturation:3.0602159267618245E-4]
3:29:10 PM: debug colorData = [hue:0.6154037886340992, saturation:3.0602159267618245E-4]
3:29:10 PM: trace getHSfromRGB ( 99.99217, 100.00159, 100.02278):
3:29:10 PM: debug RGB colorData = [red:72.27135992018889, green:72.27419726850489, blue:72.28058418098786]
3:29:10 PM: trace Hue B Smart Bulb: updateStatus ( xy:[0.3227, 0.3290] )
3:29:10 PM: debug NO Update Needed for transitionTime.
3:29:10 PM: trace Hue B Smart Bulb: updateStatus ( transitiontime:25 )
3:29:08 PM: debug Setting level to 254.
3:29:08 PM: trace Hue B Smart Bulb: setLevel ( 100 ):
3:29:08 PM: debug Sending [transitiontime:25, xy:[0.32272673, 0.3290229]]
3:29:08 PM: debug xy from HSB = 0.32272673 , 0.3290229 .
3:29:08 PM: debug red = 5.2494684E7 / r = 65025.0
3:29:08 PM: trace colorFromHSB ( 8, 59, 100): really h 28.80, s 0.59, v 1
3:29:08 PM: trace sendToHub: no XY values, so get from Hue & Saturation.
3:29:08 PM: trace Hue B Smart Bulb: sendToHub ( [hue:8, saturation:59] ):
3:29:08 PM: debug Hue B Smart Bulb: setColor( [hue:8, saturation:59] ).
Wheat:
3:26:58 PM: debug NO Update Needed for level.
3:26:58 PM: trace Hue B Smart Bulb: updateStatus ( bri:254 )
3:26:58 PM: debug NO Update Needed for switch.
3:26:58 PM: trace Hue B Smart Bulb: updateStatus ( on:true )
3:26:58 PM: debug NO Update Needed for transitionTime.
3:26:58 PM: trace Hue B Smart Bulb: updateStatus ( transitiontime:25 )
3:26:58 PM: debug newHue = 62, newSat = 0
3:26:58 PM: debug colorData from XY = [hue:0.6154037886340992, saturation:3.0602159267618245E-4]
3:26:58 PM: debug HS from XY = [hue:0.6154037886340992, saturation:3.0602159267618245E-4]
3:26:58 PM: debug colorData = [hue:0.6154037886340992, saturation:3.0602159267618245E-4]
3:26:58 PM: trace getHSfromRGB ( 99.99217, 100.00159, 100.02278):
3:26:58 PM: debug RGB colorData = [red:72.27135992018889, green:72.27419726850489, blue:72.28058418098786]
3:26:58 PM: trace Hue B Smart Bulb: updateStatus ( xy:[0.3227, 0.3290] )
3:26:58 PM: debug NO Update Needed for transitionTime.
3:26:58 PM: trace Hue B Smart Bulb: updateStatus ( transitiontime:25 )
3:26:57 PM: debug Setting level to 254.
3:26:57 PM: trace Hue B Smart Bulb: setLevel ( 100 ):
3:26:57 PM: debug Sending [transitiontime:25, xy:[0.32272673, 0.3290229]]
3:26:57 PM: debug xy from HSB = 0.32272673 , 0.3290229 .
3:26:57 PM: debug red = 5.2494684E7 / r = 65025.0
3:26:57 PM: trace colorFromHSB ( 11, 77, 100): really h 39.60, s 0.77, v 1
3:26:57 PM: trace sendToHub: no XY values, so get from Hue & Saturation.
3:26:57 PM: trace Hue B Smart Bulb: sendToHub ( [hue:11, saturation:77] ):
3:26:57 PM: debug Hue B Smart Bulb: setColor( [hue:11, saturation:77] ).
Looking at all four problematic colors logs, the bottom five log lines up to the “trace debug red…” look correct. Problem starts with the “debug xy from HSB…” line when it looks like all of them from then on have exactly the SAME calculations eventhough they should be different. They all say “debug xy from HSB = 0.32272673 , 0.3290229 .”
Here are the correct “xy from HSB…” ones for red, blue, and green:
red: debug xy from HSB = 0.7006062 , 0.29930097 .
green: debug xy from HSB = 0.17257804 , 0.74665946 .
blue: debug xy from HSB = 0.13552798 , 0.039890125 .
Looks like to me the transform to xy from HSB doesn’t work for many of the colors. Not sure where this is done. @infofiend may have an idea as well?
Actually, the colors have been broken for awhile–weeks actually. I just didn’t have time to track it down to see what was happening since I usually use “scenes” and those colors all seem to work fine. Also, setting colors using numerous hue apps on android works. So does actually using the color “wheel” in the ST app.
I remembered I had some limited problems originally with Smatthings colors and just got round to checking them all again on different bulbs to see whether it was a driver issue.
So investigating further, if I am in the ST control page, and Colormode for the bulb is set to HS (Hue & Saturation), when I try to change the Saturation, the level goes to where I touched on the bar, then immediately goes to zero! Then when I change the hue, the saturation bar immediately jumps to 100. Then the Colormode itself changes to “xy” for a moment, and all the sliders (Hue, Sat, Color Temp) all move, then resets itself back to Colormode: HS.