You mean like checking if a door is open for more than 5 minutes?
If so, you can use the Device Capabilities app. It has a dedicated flowcard for this purpose.
In the following example this card triggers a flow if the alarm of my front door sensor (Voordeur Sensor) is active for more than 1 minute. It continues to trigger this flow after every 1 minute as long as the door is open:
You can also choose to trigger the flow only once (instead of continuously).
