X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartapps.git;a=blobdiff_plain;f=official%2Fnotify-me-with-hue.groovy;h=1416478518b33eb5a23b0c172b00690f060cb500;hp=e2b60549e16d23efce8c723f9d63ca6b8a79f856;hb=43659d03ac598264663ff4010cf5a43f5dfd5aa4;hpb=8ec82cc4d848a04cdfe6ddd6ff6ef73535356853 diff --git a/official/notify-me-with-hue.groovy b/official/notify-me-with-hue.groovy index e2b6054..1416478 100755 --- a/official/notify-me-with-hue.groovy +++ b/official/notify-me-with-hue.groovy @@ -50,7 +50,7 @@ preferences { section("Choose light effects...") { input "color", "enum", title: "Hue Color?", required: false, multiple:false, options: ["Red","Green","Blue","Yellow","Orange","Purple","Pink"] - input "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%"]] + input "lightLevel", "enum", title: "Light Level?", required: false, options: [10,20,30,40,50,60,70,80,90,100] input "duration", "number", title: "Duration Seconds?", required: false //input "turnOn", "enum", title: "Turn On when Off?", required: false, options: ["Yes","No"] } @@ -63,6 +63,8 @@ preferences { def installed() { log.debug "Installed with settings: ${settings}" subscribeToEvents() + // Initialize input value + color = "Pink" } def updated() { @@ -117,7 +119,7 @@ def modeChangeHandler(evt) { } def scheduledTimeHandler() { - eventHandler1(null) + //eventHandler1(null) } def appTouchHandler(evt) {