From: rtrimana Date: Fri, 18 Oct 2019 18:11:54 +0000 (-0700) Subject: A little modification for location.mode. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=smartthings-infrastructure.git;a=commitdiff_plain;h=e35f41403dabb79b83cf24f31910e0226108835c A little modification for location.mode. --- 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) }