DVCSMP-1716 Philips Hue: Invalid hue parameter used in setColor

-Replaced transition with transitiontime according to Hue API
This commit is contained in:
Lars Finander
2016-04-19 15:05:21 -07:00
parent 33ef75091b
commit 327f8dfb00

View File

@@ -824,7 +824,7 @@ def setColor(childDevice, huesettings) {
value.bri = Math.min(Math.round(huesettings.level * 255 / 100), 255)
}
value.alert = huesettings.alert ? huesettings.alert : "none"
value.transition = huesettings.transition ? huesettings.transition : 4
value.transitiontime = huesettings.transitiontime ? huesettings.transitiontime : 4
// Make sure to turn off light if requested
if (huesettings.switch == "off")