Restricting Device Setup with Multiple Capabilities

Just as a UX thing,

input "lights", "capability.switch", title: "Which Lights?", multiple: true, required: false

Can I specify multiple capabilities in code to restrict the selector? At 200 devices my platform gets unruly.

Kristopher

1 Like

Excellent question – and an excellent “feature request”! :heart_eyes:

Unfortunately, to the best of my knowledge, this is not currently possible.

If you have the time to read (and contribute?), I initiated an extensive relevant discussion.
NB: multiple capabilities filtering is in the discussion, but there are a lot of related things.
I’ve emphasized that not all the ideas / features we discuss need to implemented at once, or ever.

1 Like

BTW: You can filter the list of Devices you use within your SmartApp; but not within the “input()” dialog.

From the initial list of Devices, iterate through and do some Groovy list filtering based on:

Ref: https://graph.api.smartthings.com/ide/doc/device

1 Like

Very helpful – thank you!

1 Like