//Create a class for color temperature package ColorTemperature import SmartThing.SmartThings public class ColorTemperatures extends SmartThings { List colorTemperatues = new ArrayList() ColorTemperatures(Closure sendEvent, boolean init) { // Only initialize one time since we only have one device for each capability colorTemperatues = smartThings // Initialization String id = "colorTemperatureID0" String label = "colorTemperature" String displayName = "light" Integer colorTemperatue if (init) colorTemperature = 10000 else colorTemperatues = 15000 colorTemperatues.add(new ColorTemperature(sendEvent, id, label, displayName, colorTemperature)) } // Methods to set values def setColorTemperature(int newValue) { colorTemperatues[0].setColorTemperature(newValue) } }