Changes in classes: new concept for latest value + all types of events generated...
[smartthings-infrastructure.git] / Methods / setLocationMode.groovy
index d2dade11e2fb92cf74098d399781e266d23f6e90..aa7424bf19130ccb1c59b1b9502e85da011d27ab 100644 (file)
@@ -1,5 +1,8 @@
 /////////////////////////////////////////////////////////////////////
 def setLocationMode(String mode) {
-       location.mode = mode
+       location.setValue([name: "Location", value: "$mode", deviceId: "locationID0", descriptionText: "",
+                          displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
+       location.setValue([name: "mode", value: "$mode", deviceId: "locationID0", descriptionText: "",
+                          displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
 }