this.rate = value.toInteger()
}
}
+
+
+ def currentValue(String deviceFeature) {
+ if (deviceFeature == "level") {
+ return level
+ } else if (deviceFeature == "switch") {
+ return switchState
+ }
+ }
+
+ def latestValue(String deviceFeature) {
+ if (deviceFeature == "level") {
+ return level
+ } else if (deviceFeature == "switch") {
+ return switchState
+ }
+ }
}