A little modification for location.mode.
[smartthings-infrastructure.git] / Location / LocationVar.groovy
index e2cf09b65f50a6d30c7b34ba99ebc0292c83ea4b..88f34d6a4c0578be1766c8994900fbe2d30d9069 100755 (executable)
@@ -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)
                }