// This function is where you initialize callbacks for event listeners
def initialize() {
- // The subscribe function takes a input, a state, and a callback method
+ // The subscribe-function takes a input, a state, and a callback method
subscribe(contact, "contact.open", openHandler)
subscribe(contact, "contact.closed", closedHandler)
}