projects
/
smartthings-infrastructure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6a3a273
)
Adding missing method.
author
rtrimana
<rtrimana@uci.edu>
Sat, 10 Aug 2019 15:48:59 +0000
(08:48 -0700)
committer
rtrimana
<rtrimana@uci.edu>
Sat, 10 Aug 2019 15:48:59 +0000
(08:48 -0700)
ColorControl/ColorControls.groovy
patch
|
blob
|
history
diff --git
a/ColorControl/ColorControls.groovy
b/ColorControl/ColorControls.groovy
index 0ff9cfdf1ae825fca522d4d303fb96319a262fe4..9b003f6189301780896e68525c7b74ecaf455566 100644
(file)
--- a/
ColorControl/ColorControls.groovy
+++ b/
ColorControl/ColorControls.groovy
@@
-212,6
+212,13
@@
public class ColorControls {
}
}
+ def setColorTemperature(long colorTemperature) {
+ if (colorTemperature != this.colorTemperature) {
+ this.colorTemperature = colorTemperature
+ colorControls[0].setColorTemperature(colorTemperature)
+ }
+ }
+
def on() {
if (this.currentSwitch != "on") {
this.currentSwitch = "on"