From 59254c8053e94aa7661c0b20445e467c47ff9bb7 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sat, 10 Aug 2019 12:15:27 -0700 Subject: [PATCH] Update lighting-director.groovy --- official/lighting-director.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } } -- 2.34.1