I have an automation that I want to do certain things upon an alarm state change, the alarm is the trigger, but I want to do certain things only after any door or window has been opened after the trigger.
In actions, I have the option to wait for numeric state trigger, or wait for a template. With some google help I build a template that counts the number of open doors, windows and garages:
I dont want above zero, a window could have been left open before the alarm state changed, I want above whatever it was previously.
Anyway, I have a crude solution, I just created a template sensor based on the number of open doors, and I can trigger on a change in that number. Cant really limit that to an increase, but this is good enough for now.