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"]
}
def installed() {
log.debug "Installed with settings: ${settings}"
subscribeToEvents()
+ // Initialize input value
+ color = "Pink"
}
def updated() {
}
def subscribeToEvents() {
- subscribe(app, appTouchHandler1)
+ subscribe(app, appTouchHandler)
subscribe(contact, "contact.open", eventHandler1)
subscribe(contactClosed, "contact.closed", eventHandler1)
subscribe(acceleration, "acceleration.active", eventHandler1)
}
def scheduledTimeHandler() {
- eventHandler1(null)
+ //eventHandler1(null)
}
def appTouchHandler(evt) {