I setup a rule where if any of my doors are open then it changes the LED color on my Inovelli light switch. This makes it so that as I'm going to bed I can see if any of my doors have been left open and I can go and shut them. However, I've run into the issue where if I open any of the doors it turns red and if I close said door it will turn back to green. However, if I open one door, let's call it door A, and then I open another door, call it door B, once I close one of the doors (A) it sets the LED to green even though door B is still open. I'm sure this has to do with setting up some sort of loop to make sure all conditions are met before changing it back to green. I'm just not sure how to do that.
Any help is appreciated.