package ColorTemperature
import SmartThing.SmartThings
-//Importing mutable integer class
-import MutableInteger.MutableInteger
-
public class ColorTemperatures extends SmartThings {
List colorTemperatues = new ArrayList()
colorTemperatues = smartThings
// Initialization
- StringBuilder id = new StringBuilder("colorTemperatureID0")
- StringBuilder label = new StringBuilder("colorTemperature")
- StringBuilder displayName = new StringBuilder("colorTemperature0")
- MutableInteger colorTemperatue = new MutableInteger()
+ String id = "colorTemperatureID0"
+ String label = "colorTemperature"
+ String displayName = "light"
+ Integer colorTemperatue
if (init)
colorTemperature = 10000
def setColorTemperature(int newValue) {
colorTemperatues[0].setColorTemperature(newValue)
}
-
- // Methods to return values
- def getCurrentColorTemperature() {
- List tmpValues = new ArrayList()
- tmpValues.add(colorTemperatues[0].getCurrentColorTemperature())
- return tmpValues
- }
}