I am writing an app that turns on my porch lights when the garage door moves (active). But I am also trying to make sure the lights stay on as long as the door is open. Currently I have this working and it seems to be working well. The only thing that bothers me is that I had to require two doors in the preference section of the app. These two doors in the example code below will always be the same two doors (same multi too) so I wanted to combine them. The only problem is I do not know how to look up both the acceleration sensor and the contact sensor. Anyone know how to do this?
section("When this door moves") {
// TODO: I want to be able to combine these into one.
input name: "activeSensor", type: "capability.accelerationSensor", title: "Active?", multiple: false, required: true
input name: "multiSensor", type: "capability.contactSensor", title: "Open?", multiple: false, required: true
}