I have defined
But I don't get a button on the device page to enter button number and test. I also send the event on install and configure
sendEvent(name: "numberOfButtons", value: 12, displayed: true)
I also added the corresponding attributes. It shows number of buttons 12 but the button to test is not showing up.