Fixing some bugs
[smartthings-infrastructure.git] / MotionSensor / MotionSensors.groovy
index 0ae021a9531fc10f5d3255a7ce3e848f9d90a4d3..c799b0e77766697fd893a67c8bebcdfe314452e5 100644 (file)
@@ -63,7 +63,10 @@ public class MotionSensors {
        def collect(Closure Input) {
                motionSensors.collect(Input)
        }
-
+       
+       def currentState(String deviceFeature) {
+               currentValue(deviceFeature)
+       }
 
        def currentValue(String deviceFeature) {
                motionSensors[0].currentValue(deviceFeature)//It is called if we have only one device
@@ -74,7 +77,7 @@ public class MotionSensors {
        }
 
        def statesSince(String info, Date dateObj) {
-               return motionSensors[0].statesSince(info, dateObj)
+               return motionSensors[0].statesSince()
        }
 
        def getAt(int ix) {