Notify if a contact sensor has been in state open for too long


i have a number of contact sensors for my doors and windows. I would like to run a general automation that checks if any sensor has been in state open for more than two hours and if so, notifies me on my phone that a window might have been forgotten open.

There are a few quirks with this, I want the automation to check all sensors using wildcards it captures eventual new contact sensors added to the house. The other quirk is that it needs to track and notify me about them individually.

Any ideas on blueprints I can start with and build out from there?