private int hue
private int currentHue
private int saturation
+ private int currentSaturation
private String switchLatestValue
def sendEvent
def timers
this.hue = hue
this.currentHue = hue
this.saturation = saturation
+ this.currentSaturation = saturation
this.switchState = switchState
this.currentSwitch = switchState
this.switchLatestValue = switchLatestValue
this.hue = metaData["hue"]
this.currentHue = metaData["hue"]
this.saturation = metaData["saturation"]
+ this.currentSaturation = metaData["saturation"]
println("the switch with id:$id is setted to level $level and hue to $hue and saturation to $saturation!")
sendEvent([name: "level", value: "$level", deviceId: this.id, descriptionText: "",
displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
private int hue = 30
private int currentHue = 30
private int saturation = 70
+ private int currentSaturation = 70
private String switchState = "on"
private String currentSwitch = "on"
private String switchLatestValue = "on"
this.hue = 30
this.currentHue = 30
this.saturation = 70
+ this.currentSaturation = 70
this.switchState = "off"
this.currentSwitch = "off"
this.switchLatestValue = "off"
this.hue = 50
this.currentHue = 50
this.saturation = 90
+ this.currentSaturation = 90
this.switchState = "on"
this.currentSwitch = "on"
this.switchLatestValue = "on"
this.hue = metaData["hue"]
this.currentHue = metaData["hue"]
this.saturation = metaData["saturation"]
+ this.currentSaturation = metaData["saturation"]
switchLevels[0].setColor(metaData)
}
}