println("the three axis of cube is chagned to $threeAxis!")
}
+ def currentState(String deviceFeature) {
+ currentValue(deviceFeature)
+ }
+
def currentValue(String deviceFeature) {
- if (deviceFeature == "threeAxis")
+ if (deviceFeature == "threeAxis" || deviceFeature == "status")
return threeAxis
}
def latestValue(String deviceFeature) {
- if (deviceFeature == "threeAxis")
+ if (deviceFeature == "threeAxis" || deviceFeature == "status")
return threeAxis
}
}