Infrastructure compatible with swiches
[smartthings-infrastructure.git] / SmartThing / SmartThings.groovy
index 3e1d4e059bc33d5b62ebba760eccdeea60b93a7c..f2cc9e70a7e7010ffe8330be86bd3ce6f14c3862 100644 (file)
@@ -30,6 +30,10 @@ public class SmartThings {
        }
 
        // Methods to handle events
+       def eventsSince(Date dateObj, LinkedHashMap info) {
+               return smartThings[0].eventsSince()
+       }
+
        def eventsSince(Date dateObj) {
                return smartThings[0].eventsSince()
        }
@@ -43,7 +47,7 @@ public class SmartThings {
                if (smartThings[0] == null)
                        return
                List tmpValues = new ArrayList()
-               tmpValues.add(smartThings[0].getProperty(currentProperty))
+               tmpValues.add(smartThings[0].propertyMissing(currentProperty))
                return tmpValues
        }