projects
/
smartthings-infrastructure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Infrastructure compatible with 2 types of switches.(Normal switches and otherVsGeneri...
[smartthings-infrastructure.git]
/
Location
/
LocationVar.groovy
diff --git
a/Location/LocationVar.groovy
b/Location/LocationVar.groovy
index b2016e839d3469b898e89b256be3d66ba7873bb5..d006c4e70cdce141529b8038f1c1e838134f2346 100644
(file)
--- a/
Location/LocationVar.groovy
+++ b/
Location/LocationVar.groovy
@@
-4,14
+4,19
@@
package Location
class LocationVar {
private int contactBookEnabled
private def modes
class LocationVar {
private int contactBookEnabled
private def modes
+ private def timeZone
+ private def hubs
private String mode
private String mode
+ private String name
private List contacts
private List phoneNumbers
private List contacts
private List phoneNumbers
+ private String temperatureScale
def sendEvent
def sendEvent
-
+
private Phrase helloHome
LocationVar(Closure 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()
this.modes = [[name: "home"],[name: "away"],[name: "night"]]
this.mode = "home"
this.helloHome = new Phrase()
@@
-19,6
+24,9
@@
class LocationVar {
this.contacts = ['AJ']
this.phoneNumbers = [9495379373]
this.sendEvent = sendEvent
this.contacts = ['AJ']
this.phoneNumbers = [9495379373]
this.sendEvent = sendEvent
+ this.timeZone = TimeZone.getTimeZone("America/New_York")
+ this.name = "hub0"
+ this.temperatureScale = "F"
}
//By Model Checker
}
//By Model Checker