projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing a bug: unlock is supposed to be recognized as lock event.
[smartthings-infrastructure.git]
/
PresenceSensor
/
PresenceSensor.groovy
diff --git
a/PresenceSensor/PresenceSensor.groovy
b/PresenceSensor/PresenceSensor.groovy
index c1553fb942d1ac05e3d71d7c02ea40ac306c39e9..b3707361e2aa3fb86d334935fd93a7a4d05fd3c4 100644
(file)
--- a/
PresenceSensor/PresenceSensor.groovy
+++ b/
PresenceSensor/PresenceSensor.groovy
@@
-26,6
+26,9
@@
public class PresenceSensor {
this.currentPresence = value
}
+ def currentState(String deviceFeature) {
+ return [rawDateCreated: [time: System.currentTimeMillis()]]
+ }
def currentValue(String deviceFeature) {
if (deviceFeature == "presence") {