3 // This function runs when the SmartApp is installed
5 // This is a standard debug statement in Groovy
6 //log.debug "Installed with settings: ${settings}"
14 // This function is where you initialize callbacks for event listeners
16 // The subscribe function takes a input, a state, and a callback method
17 //subscribe(contact, "contact.open", openHandler)
18 //subscribe(contact, "contact.closed", closedHandler)
21 static void main(String[] args) {
23 //Empty emp = new Empty();
24 //int result = emp.installed();