X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=blobdiff_plain;f=Location%2FLocationVar.groovy;h=88f34d6a4c0578be1766c8994900fbe2d30d9069;hp=e2cf09b65f50a6d30c7b34ba99ebc0292c83ea4b;hb=e35f41403dabb79b83cf24f31910e0226108835c;hpb=9fc661fe4078c2e34d5a983c09f1641e210f6255;ds=sidebyside diff --git a/Location/LocationVar.groovy b/Location/LocationVar.groovy index e2cf09b..88f34d6 100755 --- a/Location/LocationVar.groovy +++ b/Location/LocationVar.groovy @@ -59,9 +59,12 @@ class LocationVar { } else if (sentMode == "away") { this.mode = "away" this.locationMode = "away" - } else { + } else if (sentMode == "night") { this.mode = "night" this.locationMode = "night" + } else { + this.mode = sentMode + this.locationMode = sentMode } sendEvent(eventDataMap) }