I want to input all devices of a type, for example all motion sensors, in the preference. So no bother to choose one by one. And further more, it would be even better if it has the capability to update the list once the list changes. Is there a way to achieve it? Many thanks.
SmartThings (Inc) does not provide this functionality to Community Developers.
The SmartThings security paradigm ensures that Customers must explicitly authorize each specific Thing (not groups of Things, or “all” Things) to each SmartApp for its access.
The Amazon Echo / Alexa SmartApp is an example exception to this which obviously has been granted access to a private API.