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
}
def statesSince(String info, Date dateObj) {
- return motionSensors[0].statesSince(info, dateObj)
+ return motionSensors[0].statesSince()
}
def getAt(int ix) {