Change in the button controller events to support all the buttons' numbers.
[smartthings-infrastructure.git] / eventSimulator / buttonPushedEvent.groovy
index b14d8e70a58dfd456f3c27bd96a816a6f5356057..a7bbdea4ef1d1a577b034b41f9b20cf0f73ac46e 100644 (file)
@@ -1,2 +1,8 @@
                         buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
                                         displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 1}'])
+                       buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
+                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 2}'])
+                       buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
+                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 3}'])
+                       buttonObject.setValue([name: "button", value: "pushed", deviceId: "switchID0", descriptionText: "",
+                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"buttonNumber": 4}'])