From: rtrimana Date: Sat, 10 Aug 2019 15:48:59 +0000 (-0700) Subject: Adding missing method. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=55f57d1619271ede7bbd5c83e6218df6772afc89;hp=6a3a273e5f6e06ccc341797135741e70ead78fd3 Adding missing method. --- diff --git a/ColorControl/ColorControls.groovy b/ColorControl/ColorControls.groovy index 0ff9cfd..9b003f6 100644 --- a/ColorControl/ColorControls.groovy +++ b/ColorControl/ColorControls.groovy @@ -212,6 +212,13 @@ public class ColorControls { } } + def setColorTemperature(long colorTemperature) { + if (colorTemperature != this.colorTemperature) { + this.colorTemperature = colorTemperature + colorControls[0].setColorTemperature(colorTemperature) + } + } + def on() { if (this.currentSwitch != "on") { this.currentSwitch = "on"