I’ve read through the documentation and there’s no configuration parameter for “last x minutes”.
I would look at doing this with a condition. You’re probably going to have to do something custom with a value template, this thread contains an example which might give you some hints. I’ve never tried this and it would take me quite a while to puzzle it out.
Reading through the docs and the code, it’s only going to act on any new emails that come in, initially seeded with “emails that came in today” at HA start. The logic is here.
Thanks all. Seems i need to have 2fa enabled for this, or even it might not work currently anymore:
To help keep your account secure, from May 30, 2022, Google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.
Important: This deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.