X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=blobdiff_plain;f=MotionSensor%2FMotionSensors.groovy;h=c799b0e77766697fd893a67c8bebcdfe314452e5;hp=0ae021a9531fc10f5d3255a7ce3e848f9d90a4d3;hb=a506caeba94b4c035e0c47f29017f07773e3f318;hpb=e9196e0f9b6d29e4f5d9fbe51e15b5a6e7fe00b7 diff --git a/MotionSensor/MotionSensors.groovy b/MotionSensor/MotionSensors.groovy index 0ae021a..c799b0e 100644 --- a/MotionSensor/MotionSensors.groovy +++ b/MotionSensor/MotionSensors.groovy @@ -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) {