With the Hub Mode in Controller for HomeKit, a Workflow can help you get a reminder if you forget to close a window after ventilating.
Start Event
Select the contact sensor and specify "open" as the start event.
Steps
Add a Wait Step
Add a “Wait” step with a 10-minute delay. Feel free to adjust the duration as needed.
Add a "Send Notification" Step
Send a notification with the message: “🧺 Window Still Open!”
Stop Event
Set "contact sensor closed" as the stop event.
Final Overview
If the window is left open for more than 10 minutes, you’ll receive a notification reminding you to close it.