projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding integer input.
[smartthings-infrastructure.git]
/
ColorTemperature
/
ColorTemperatures.groovy
diff --git
a/ColorTemperature/ColorTemperatures.groovy
b/ColorTemperature/ColorTemperatures.groovy
index 77f01753b04f03a1f4c4892d1905ffbd82ea7e1e..a1e19dc44035280258505854e06a71a47fddfd5a 100644
(file)
--- a/
ColorTemperature/ColorTemperatures.groovy
+++ b/
ColorTemperature/ColorTemperatures.groovy
@@
-99,6
+99,13
@@
public class ColorTemperatures {
colorTemperatues[0].setColorTemperature(colorTemperature)
}
}
colorTemperatues[0].setColorTemperature(colorTemperature)
}
}
+
+ def setColorTemperature(int colorTemperature) {
+ if (colorTemperature != this.colorTemperature) {
+ this.colorTemperature = colorTemperature
+ colorTemperatues[0].setColorTemperature(colorTemperature)
+ }
+ }
def on(String currentSwitch) {
if (currentSwitch != this.currentSwitch) {
def on(String currentSwitch) {
if (currentSwitch != this.currentSwitch) {