Expression that’s true for 5 minutes after a location tracker crossed a fence

Is that possible? How? Ideally it’s a template expression that I can use in a binary template sensor helper.

I’d like to show an unlock button in my dashboard for 5 minutes after my Tesla arrived home.

Use a trigger-based Template binary sensor with a defined auto_off variable.