MSA-628: Hi Guys. Earlier in the year one of your API updates broke "Smart Lights Timer". I'm not sure why, but this version seems to work again in the simulator. Please update the previously published version.

This commit is contained in:
Anders Heie
2015-10-16 16:57:25 -05:00
parent d2ece83b47
commit d4326b4bab

View File

@@ -102,7 +102,7 @@ def contactHandler(evt) {
}
def motionHandler(evt) {
log.debug "motionHandler: $evt.name: $evt.value"
log.debug "motionHandler: $evt.name: $evt.value (current state: " + state.myState + ")"
if (evt.value == "active") {
if(state.myState == "ready" || state.myState == "active" || state.myState == "activating" ) {
@@ -145,4 +145,4 @@ def scheduleCheck() {
}
}
log.debug "state: " + state.myState
}
}