From: Seyed Amir Hossein Aqajari Date: Sat, 10 Aug 2019 19:15:27 +0000 (-0700) Subject: Update lighting-director.groovy X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=59254c8053e94aa7661c0b20445e467c47ff9bb7;p=smartapps.git Update lighting-director.groovy --- diff --git a/official/lighting-director.groovy b/official/lighting-director.groovy index 984438d..5f42ace 100755 --- a/official/lighting-director.groovy +++ b/official/lighting-director.groovy @@ -429,13 +429,13 @@ def unlockDetected = false def result = false if (motion) { - if (motion.latestValue("motion").contains("active")) { + if (motion.latestValue("motion") == "active") { motionDetected = true } } if (acceleration) { - if (acceleration.latestValue("acceleration").contains("active")) { + if (acceleration.latestValue("acceleration") == "active") { accelerationDetected = true } }