I am trying to create a rule where if a few contact sensors are open for 5 mins, I can turn off my Thermostat. But, if the contacts are all closed, then the thermostat is back on.
The problem I am facing is, that if I open my window for less than 5 mins, and close it, then the rules naturally goes into the "ELSE" part, and there as the window is now closed, it executes setting the thermostat, and sends an annoying notification that the thermostat has been restored. What is an efficient way for me to skip the else condition completely, if the If condition duration was not satisfied? The other way to think about this requirement is that the
ELSE logic should be triggered, only if the IF logic was earlier trigerred.
I am almost sure that I am thinking this problem incorrectly.