projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding missing methods and condition.
[smartthings-infrastructure.git]
/
ColorControl
/
ColorControls.groovy
diff --git
a/ColorControl/ColorControls.groovy
b/ColorControl/ColorControls.groovy
index
9b003f6
..
90223c5
100644
(file)
--- a/
ColorControl/ColorControls.groovy
+++ b/
ColorControl/ColorControls.groovy
@@
-205,6
+205,14
@@
public class ColorControls {
}
}
}
}
+ def setLevel(long level) {
+ if (level != this.level) {
+ this.currentLevel = level
+ this.level = level
+ colorControls[0].setLevel(level)
+ }
+ }
+
def setColorTemperature(int colorTemperature) {
if (colorTemperature != this.colorTemperature) {
this.colorTemperature = colorTemperature
def setColorTemperature(int colorTemperature) {
if (colorTemperature != this.colorTemperature) {
this.colorTemperature = colorTemperature