1 //Create a class for aeon key fob
3 import SmartThing.SmartThing
5 public class AeonKeyFob extends SmartThing {
6 // id, label, and display name of the device
10 // Possible values for eventsSince method
11 List<String> possibleValues = new ArrayList<String>()
13 AeonKeyFob(Closure sendEvent, String id, String label, String displayName) {
15 labelSmartThing = label
16 displayNameSmartThing = displayName
17 possibleValuesSmartThings = possibleValues
18 sendEventSmartThings = sendEvent
23 this.displayName = displayName
24 possibleValues.add("pushed")
25 possibleValues.add("held")