mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user