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