Add changes in events
[smartthings-infrastructure.git] / eventSimulator / switchOnDefaultEvent.groovy
index a25c74fa7b6c2eba01c1f9e785c06adbe52a245f..d7700507ed26893520dda6d0544a099cebb457c8 100644 (file)
@@ -1,2 +1,2 @@
-                       switchObject.setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
\ No newline at end of file
+                       switchObject[0].setValue([name: "switch.on", value: "on", deviceId: "switchID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])