I have a routine running that checks door sensors to see if they are open for a determined amount of time, if any of them are open for 10 minutes the routine shuts off my AC through my zxt-120, it then re checks every 10 minutes to see if the doors are closed and if any of them are open it sends another command to the AC to shut off, Just in case they turn it one again using the AC remote.
My problem is I need to know that all sensors are closed before I stop sending the AC off command.
Right now I have it setup for mutiple sensors
input “contact”, “capability.contactSensor”, title: “Choose Sensors”, multiple: true
but the routine stops if only one sensor is closed even of there are more than one open. How can I make sure that it only knows its properly closed when all sensors are closed.
I kind of need all the sensors to be effectivaly wired in series so if one or more are open Its “open” and all of them have to be closed for it to be “closed”
any help would be appreciated.