public class SmartThing {
List nonStoredDevices = ["aeonKeyFob", "appTouch", "button", "momentary", "nfcTouch"] // Devices with no stored value
+ List locationTimeFeatures = ["sunset", "sunrise", "sunriseTime", "sunsetTime"]
def sendEventSmartThings
StringBuilder idSmartThing = new StringBuilder()
} else if (nonStoredDevices.contains(name)) {
println("the $name with id:$tmpID is triggered to $value!")
sendEventSmartThings(eventDataMap)
+ } else if (locationTimeFeatures.contains(name)) {
+ return System.currentTimeMillis()
+ println("This is $name!")
+ sendEventSmartThings(eventDataMap)
}
}