I'm using @Cobra driver https://cobra-apps.co.uk/ Multi Status Switch & Button. I can use the custom status attribute to control program flow like this
I the next line I want to set the custom 'status' attribute to 'Auto'. I can't see where this can be done. Does anyone know how to set a custom attribute when the driver has the "switch" and "PushableButton" capability?
Thanks for the information. I had a play around with that. I can only see my 'Blind Automation' (which is a vertual Multi Status Switch & Button) under switches or buttons which makes sense to me since as that is what the drivrs capabilities are. When I select either of those I only get the standard button and switch custom commands.
I can't see the Multi Status Switch & Button listed as an action device.
I'm new working with drivers but do program. It sounds like from your comment that the 'Select custom comand' drop down list is populated by the driver that is built and not the commands available in the capabilities assigned to the driver?
If that is the case I added the code as a method above thinking that was logical as the 'off', 'on', 'push' commands showing as a 'custom comand' are also methods. I can't see any other definitions in the driver code defining the existing methods to expose them as a command.
If it's simple enough any assistance would be appreciated.
As an aside,
Is there a link you know of that that describes the internal commands and syntax available like sendLastEvent()
sendEvent(name: "switch", value: "on", isStateChange: true)
log.info
No, it should get all of the commands available for the driver. This can be a combination of commands associated with the capability (e.g. on, off) and custom commands defined explicitly in the driver metadata.