2 points
HomeAssistant can do this. Set an automation when you leave your home zone, if door is unlocked notify you.
If you have a smart lock, you can even close it. You should get cameras and an alarm system first, though.
2 points
if door is unlocked notify you.
How do you detect this condition without a motorized smart lock?
1 point
How did you integrate this into your door reliably without interfering with the regular lock mechanism?