Hello, I try to write a driver for a virtual push button device (push only, not on-off) based on the button device class with a button capability. I have problems finding out how add an event handler to be fired when the user press the button in the Homey app.
I have tried to use registerCapabilityListener(‘button’) but no event is fired when I press the button in the Homey App. I also notice that the Homey app tells me that the device is not controllable.
I have also looked into adding an action listener using registerRunListener, but I do not find any way to related the action the a specific device.