sendEventSmartThings = sendEvent
// Initialization
+ String mode
helloHome = new Phrase()
contacts = ['AJ']
phoneNumbers = [9495379373]
hubs = [[id:0, localIP:"128.195.204.105"]]
if (init)
- mode.append("away")
+ mode = "away"
else
- mode.append("home")
+ mode = "home"
deviceValuesMap.put("mode", mode)
deviceValuesMap.put("name", "hub0")