deviceValuesMap.put("mode", mode)
deviceValuesMap.put("Location", mode)
- deviceValuesMap.put("sunset", sunset)
- deviceValuesMap.put("sunrise", sunrise)
}
// Methods to return values
- def currentValue(String deviceFeature) {
- if (deviceFeature == "sunsetTime" || deviceFeature == "sunset")
- return System.currentTimeMillis()
- }
-
def getMode() {
return mode.toString()
}