You may want to consider using the stock Notifications app for this use case. It can send repeated notifications and there are restriction options such as a switch being in a specific state.
Would the Notifications app allow me to display how long the contact sensor has been open?
Iām personally not seeing how to do that, so Iām using Rule Machine. The rule I posted earlier is an early version which I will modify to show elapsed time.