Two "triggers" in one rule?

..Sort of. Now that I have a presence device I was hoping I could set up a rule I used all the time in ST. Basically, I want to turn on different lights depending what door I use to enter my house. If memory serves, the trigger was the contact on a door opening, but only if my presence sensor had changed from away to present in the past 5 minutes. I can't figure out how to make that part of the presence sensor's condition.

For example, arrive home, have kitchen lights go when I open the door to the garage, maybe play greeting from the kitchen Google Home.

Not sure of a good way to search for this so I haven't found much on the forums. Hoping this is an easy thing, so feel free to point me in the right direction if it's already been answered. Thanks!

When I want to do things like that I make a virtual device as a switch. Make a rule that looks for presence state change and turns on the virtual switch, and turns off after X minutes.

Then I use that virtual switch in the other logic as a condition.

1 Like

Super easy. Thank you!