Fixing bug in Mobile Presence class
[smartthings-infrastructure.git] / Methods / setLocationMode.groovy
1 /////////////////////////////////////////////////////////////////////
2 def setLocationMode(String mode) {
3         log.debug "DEBUG: setLocationMode is called. Current mode is: ${location_mode} and new mode is: ${mode}"
4         location.setValue([name: "mode", value: "$mode", deviceId: "locationID0", descriptionText: "",
5                            displayed: true, linkText: "", isStateChange: false, unit: "", data: '{"info": "info"}'])
6         location_mode = mode
7 }
8