this.goal = value.toInteger()
}
}
+
+ def currentValue(String deviceFeature) {
+ if (deviceFeature == "steps")
+ return steps
+ else if (deviceFeature == "goal")
+ return goal
+ }
+
+ def latestValue(String deviceFeature) {
+ if (deviceFeature == "steps")
+ return steps
+ else if (deviceFeature == "goal")
+ return goal
+ }
}