Skip to content

Commit c6cab65

Browse files
authored
Merge pull request #1 from Here-Be-Dragons/patch-1
Added 1% and 5% options for brightness
2 parents 355e284 + db0b95a commit c6cab65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

smartapps/erocm123/button-controller-enhanced-lighting.src/button-controller-enhanced-lighting.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def configureLight(params) {
108108
break
109109
case ~/.*Dimmer.*/:
110110
input "lights_${params.buttonNumber}_${params.lightId}_power", "bool", title: "Turn the light on or off", submitOnChange: false
111-
input "lights_${params.buttonNumber}_${params.lightId}_lightLevel", "enum", title: "Light Level?", required: false, options: [[10:"10%"],[20:"20%"],[30:"30%"],[40:"40%"],[50:"50%"],[60:"60%"],[70:"70%"],[80:"80%"],[90:"90%"],[100:"100%"]]
111+
input "lights_${params.buttonNumber}_${params.lightId}_lightLevel", "enum", title: "Light Level?", required: false, options: [[1:"1%"],[5:"5%"],[10:"10%"],[20:"20%"],[30:"30%"],[40:"40%"],[50:"50%"],[60:"60%"],[70:"70%"],[80:"80%"],[90:"90%"],[100:"100%"]]
112112
break
113113
case ~/.*Color.*/:
114114
input "lights_${params.buttonNumber}_${params.lightId}_power", "bool", title: "Turn the light on or off", submitOnChange: false
@@ -118,7 +118,7 @@ def configureLight(params) {
118118
["Daylight":"Daylight - Energize"],
119119
["Warm White":"Warm White - Relax"],
120120
"Red","Green","Blue","Yellow","Orange","Purple","Pink","Random"]
121-
input "lights_${params.buttonNumber}_${params.lightId}_lightLevel", "enum", title: "Light Level?", required: false, options: [[10:"10%"],[20:"20%"],[30:"30%"],[40:"40%"],[50:"50%"],[60:"60%"],[70:"70%"],[80:"80%"],[90:"90%"],[100:"100%"]]
121+
input "lights_${params.buttonNumber}_${params.lightId}_lightLevel", "enum", title: "Light Level?", required: false, options: [[1:"1%"],[5:"5%"],[10:"10%"],[20:"20%"],[30:"30%"],[40:"40%"],[50:"50%"],[60:"60%"],[70:"70%"],[80:"80%"],[90:"90%"],[100:"100%"]]
122122
break
123123
}
124124
}
@@ -477,4 +477,4 @@ private hex(value, width=2) {
477477
s = "0" + s
478478
}
479479
s
480-
}
480+
}

0 commit comments

Comments
 (0)