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
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
Excellent question – and an excellent “feature request”!
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.
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:
Very helpful – thank you!