Time Since Event with Grace Period

Hi

I've looked for documentation on this and am still confused. I am trying to create a Time Since Event trigger with a grace period, if you will.

0:00 Initial Sensor Event.
0:00-3:00 minutes Potential Sensor Event /= trigger automation
3:01 -5:00 Sensor Event = trigger automation
5:01+ /= trigger automation

Thank you for all of your help! This is a wonderful community and some life changing tech :relaxed:

Could you describe what you want to do in more detail? Because I don't understand what you want.

1 Like

So, if I open the door a bunch of times with in 3 minutes, I am probably just trying to bring in a package or pizza and prevent my pet from getting out. If I open the door a bunch of times and it's longer than 3 minutes I probably have guests over and forgot to change the lights

How many times? A minimum number is required.

What is the exact action you need?

1 Like

So there isn't a way to prevent it running for the first 3 minutes whether the door opens or not? It may open, it may not open, it's sort of up to chance

There are likely other ways to do this, but here’s how I would do it:

Required Expression: Rule’s Private Boolean = true

Trigger: Contact Open

Actions:
Set Rule’s Private Boolean to false
Delay 3 minutes
if contact open then
…Do actions
Endif
Set Rule’s Private Boolean to true

4 Likes

Sweet! Thanks!

1 Like