functionList.add(FunctionToCall)
} else if (obj == location) {
objectList.add(obj)
- eventList.add("Location")
+ eventList.add("mode")
valueList.add("")
functionList.add(FunctionToCall)
}
def subscribe(Object obj, String event, Closure FunctionToCall) {
if (event == "tamper.tampered") {
event = "contact" //This really should be its own name
- } else if ((event == "mode")||(event == "mode.away")||(event == "mode.home")||(event == "mode.night")) {
- //This really should be fixed also...
- event = "Location"
- } else if (event == "unlocked") {
- return
}
int dot = event.indexOf('.')
def subscribe(Object obj, String event, String FunctionToCall) {
if (event == "tamper.tampered") {
event = "contact" //This really should be its own name
- } else if ((event == "mode")||(event == "mode.away")||(event == "mode.home")||(event == "mode.night")) {
- event = "Location"
- } else if (event == "unlocked") {
- return
}
int dot = event.indexOf('.')