Fixing bug in Mobile Presence class
[smartthings-infrastructure.git] / eventSimulator / switchOffEvent.groovy
index 84e90a41787c1e0507219e85a461b28294ffd393..dd82457b8505c73d4aa66078df5dc5346c74b5e6 100644 (file)
@@ -1,2 +1,2 @@
-                       switchObject.setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
-                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: [info: "info"]])
\ No newline at end of file
+                       switchObject[0].setValue([name: "switch", value: "off", deviceId: "switchID0", descriptionText: "",
+                                       displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])