projects
/
smartapps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update lighting-director.groovy
[smartapps.git]
/
official
/
lighting-director.groovy
diff --git
a/official/lighting-director.groovy
b/official/lighting-director.groovy
index 984438de4f28d1c18ec0785680c17376bacf9a8e..5f42ace64ba39a3d369c64a5a046842cd109b0fa 100755
(executable)
--- a/
official/lighting-director.groovy
+++ b/
official/lighting-director.groovy
@@
-429,13
+429,13
@@
def unlockDetected = false
def result = false
if (motion) {
def result = false
if (motion) {
- if (motion.latestValue("motion")
.contains("active")
) {
+ if (motion.latestValue("motion")
== "active"
) {
motionDetected = true
}
}
if (acceleration) {
motionDetected = true
}
}
if (acceleration) {
- if (acceleration.latestValue("acceleration")
.contains("active")
) {
+ if (acceleration.latestValue("acceleration")
== "active"
) {
accelerationDetected = true
}
}
accelerationDetected = true
}
}