What door sensor can I use with a Schlange lock to change the auto relock?

I have a Schlange lock paired to Wink that I am looking to migrate over to HA. Right now, it autolocks after 30 seconds, but sometimes we leave the door open for a while (especially with guests here) and I want it to not autolock when the door is open. First - is this doable? Second - I am guessing the best route would be a sensor inside the door frame. Does anyone have recommendations for that?