Im trying to work out how to hold an automation open so that the and if option happens wirhin a certain time then it can then trigger.
Example
I have a ultrasonic sensor for sensing car is in the garage but it takes awhile to pickup the car. I also have a tesla vehicle that is in home assistant.
So i want to say
If car changes state from reverse to park “and if” within 5 mins the car presence sensor changes to car is present. Then close garage door.
Is this possible with automations?