Pre-check input devices in preferences pages

(sami) #1

Hello everyone,

Is there a way to preselect all the user sensors for an input capability?

For exemple :
input “contactSensors”, “capability.contactSensor”,
title: “Select Open/Close sensors”, multiple: true, required:false

I want all the user contact sensors to be checked already.

Best regards,

(Eric R) #2

I don’t think there is. I vaguely remember somebody from ST stating that they wanted users to have to select devices rather than auto selecting them for security reasons.

(Eric R) #3

@Jim - Maybe you know the official answer?

(Jim Anderson) #4

@baldeagle072 you are correct. The end-user must always select the devices that a SmartApp can interact with.