Infrastructure compatible with 2 types of switches.(Normal switches and otherVsGeneri...
[smartthings-infrastructure.git] / Location / LocationVar.groovy
index a87abe9834197ab321f5b935e41416be893b72b9..d006c4e70cdce141529b8038f1c1e838134f2346 100644 (file)
@@ -5,15 +5,18 @@ class LocationVar {
        private int contactBookEnabled
        private def modes
        private def timeZone
+       private def hubs
        private String mode
        private String name
        private List contacts
        private List phoneNumbers
+       private String temperatureScale 
        def sendEvent
-    
+       
        private Phrase helloHome
 
        LocationVar(Closure sendEvent) {
+               this.hubs = [[id:0, localIP:"128.195.204.105"]]
                this.modes = [[name: "home"],[name: "away"],[name: "night"]]
                this.mode = "home"
                this.helloHome = new Phrase()
@@ -23,6 +26,7 @@ class LocationVar {
                this.sendEvent = sendEvent
                this.timeZone = TimeZone.getTimeZone("America/New_York")
                this.name = "hub0"
+               this.temperatureScale = "F"
        }
 
        //By Model Checker