Fixing bug in Mobile Presence class
[smartthings-infrastructure.git] / AeonKeyFob / AeonKeyFobs.groovy
1 //Create a class for aeon key fob
2 package AeonKeyFob
3 import SmartThing.SmartThings
4
5 public class AeonKeyFobs extends SmartThings {
6         List aeonKeyFobs = new ArrayList()
7                 
8         AeonKeyFobs(Closure sendEvent) {
9                 aeonKeyFobs = smartThings
10                 
11                 // Initialization
12                 String id = "aeonKeyFobID0"
13                 String label = "button"
14                 String displayName = "aeonKeyFob"
15
16                 aeonKeyFobs.add(new AeonKeyFob(sendEvent, id, label, displayName))
17         }
18 }