Trigger after event has been true for a specific length of time

I am using HA with a GPS position and fencing. Right now it works so that if the position is outside of the fence the automation is triggered. What I would like is for it to only trigger after it has been outside the fence for specific length of time.

Any idea how to accomplish this?

Use the for option for the state trigger.

Thank you for that. I’m sorry, I’m so new to this I still need some help. With this bit of code where would I put it?

entity_id: device_tracker.boat_location
zone: zone.anchor_zone
event: leave
enabled: true
trigger: zone

I don’t think Zone triggers support the for option. See if you can use a state trigger using the device tracker entity_id instead.