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}"
11 println "installed() is called!"
15 // This function is where you initialize callbacks for event listeners
17 // The subscribe function takes a input, a state, and a callback method
18 //subscribe(contact, "contact.open", openHandler)
19 //subscribe(contact, "contact.closed", closedHandler)
20 println "initialize() is called!"
23 static void main(String[] args) {
25 Empty emp = new Empty();
26 //int result = emp.installed();
33 println "End of call!"