Do device.on and agent.on accept wildcards

Can you use wildcard subscription with device.on and agent.on. Something like

device.on('button*", callback)

to handle events buttonOn and buttonOff

cheers
jima

They do not.

However, in the example you gave, you could create a handler for “button” and pass the state of the button as a variable.