PROB-1352 Hue colors rendering incorrectly

-Disable color conversion algorithm for hue/sat
This commit is contained in:
Lars Finander
2016-08-24 13:56:06 -06:00
parent 9d65150bf7
commit cfe25607ac

View File

@@ -1043,6 +1043,7 @@ def setColor(childDevice, huesettings) {
else
value.sat = Math.min(Math.round(childDevice.device?.currentValue("saturation") * 254 / 100), 254)
/* Disabled for now due to bad behavior via Lightning Wizard
if (!value.xy) {
// Below will translate values to hex->XY to take into account the color support of the different hue types
def hex = colorUtil.hslToHex((int) huesettings.hue, (int) huesettings.saturation)
@@ -1050,6 +1051,7 @@ def setColor(childDevice, huesettings) {
// Once groups, or scenes are introduced it might be a good idea to use unique models again
value.xy = calculateXY(hex)
}
*/
// Default behavior is to turn light on
value.on = true