Add changes in events
[smartthings-infrastructure.git] / eventSimulator / switchOnEvent.groovy
index fa1ef3a45575a970798cad0fa3f0cf77b95979e0..b9b778697be54359136679a3395fe63acbd1b0a0 100644 (file)
@@ -1,2 +1,2 @@
-                       switchObject.setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
+                       switchObject[0].setValue([name: "switch", value: "on", deviceId: "switchID0", descriptionText: "",
                                        displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])