X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Location%2FLocationVar.groovy;h=403055d6b6dc331315d6aa2d7de4491a1d1f415f;hb=b6faf6d7663cbbca0606424d04c9fc89317a8941;hp=6a8e6d3065d6535e60b39f7402ec9f27977cf187;hpb=2d26e7af07daad1394408bdcf76150b5aacf3a8a;p=smartthings-infrastructure.git diff --git a/Location/LocationVar.groovy b/Location/LocationVar.groovy index 6a8e6d3..403055d 100755 --- a/Location/LocationVar.groovy +++ b/Location/LocationVar.groovy @@ -27,6 +27,7 @@ public class LocationVar extends SmartThing { sendEventSmartThings = sendEvent // Initialization + String mode helloHome = new Phrase() contacts = ['AJ'] phoneNumbers = [9495379373] @@ -35,9 +36,9 @@ public class LocationVar extends SmartThing { hubs = [[id:0, localIP:"128.195.204.105"]] if (init) - mode.append("away") + mode = "away" else - mode.append("home") + mode = "home" deviceValuesMap.put("mode", mode) deviceValuesMap.put("name", "hub0")