Konnected Alarm Panel PRO Outputs

@nate - Nice to hear from you as well!

The only change that I would make is to remove the 'command "push"' line. That is already implied by including the PushableButton and Momentary capabilities.

Here is the very slightly modified version.

metadata {
    definition(
        name: 'Konnected Button Trigger',
        namespace: 'konnected',
        author: 'Konnected Inc.',
        singleThreaded: true,
        importUrl: 'https://github.com/konnected-io/konnected-hubitat/blob/master/drivers/konnected-button-trigger.groovy'
    ){
        capability "Momentary"
        capability "Actuator"
        capability "PushableButton"
    }
}

def installed() {
    initialize()
}

def updated() {
    intialize()
}

def initialize() {
    sendEvent(name: "numberOfButtons", value: 1)
}

public void push(_) {
    parent?.componentPush(this.device)
}
1 Like