From d4326b4bab9d594ce887353f5f37ef7050dcc277 Mon Sep 17 00:00:00 2001 From: Anders Heie Date: Fri, 16 Oct 2015 16:57:25 -0500 Subject: [PATCH] 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. --- .../smart-light-timer-x-minutes-unless-already-on.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartapps/pope/smart-light-timer-x-minutes-unless-already-on.src/smart-light-timer-x-minutes-unless-already-on.groovy b/smartapps/pope/smart-light-timer-x-minutes-unless-already-on.src/smart-light-timer-x-minutes-unless-already-on.groovy index 1af9a2d..1164620 100644 --- a/smartapps/pope/smart-light-timer-x-minutes-unless-already-on.src/smart-light-timer-x-minutes-unless-already-on.groovy +++ b/smartapps/pope/smart-light-timer-x-minutes-unless-already-on.src/smart-light-timer-x-minutes-unless-already-on.groovy @@ -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 -} +} \ No newline at end of file