Restricting Device Setup with Multiple Capabilities


(Kristopher Kubicki) #1

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


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #2

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.


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #3

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


(Kristopher Kubicki) #4

Very helpful – thank you!