1 //Create a class for button
3 import SmartThing.SmartThings
5 public class Buttons extends SmartThings {
6 List buttons = new ArrayList()
8 Buttons(Closure sendEvent) {
12 String id = "buttonID0"
13 String label = "button"
14 String displayName = "buttonController"
16 buttons.add(new Button(sendEvent, id, label, displayName))