I’d like to create a custom capability that can be used by different devices.
Some devices support only a subset of commands. I think I need something similar to windowShade’s supported commands, where the device during initialization will provide the list of supported values/commands.
Is such functionality supported for custom capabilities?
My use case is for wall switch backlight support.
There are 2 values (on,off) that are supported by all devices. However, some switches allow the third mode, where the color of backlight changes, depending on the switch state.
I’d like to allow setting the third mode only for devices that actually support it.