Fixing a bug: unlock is supposed to be recognized as lock event.
[smartthings-infrastructure.git] / PresenceSensor / PresenceSensor.groovy
index c1553fb942d1ac05e3d71d7c02ea40ac306c39e9..b3707361e2aa3fb86d334935fd93a7a4d05fd3c4 100644 (file)
@@ -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") {