Configure that your door is automatically locked at a specific time eg. at 10pm every day.
This Trigger fires every single day at a specific time set by you.
This action will lock the door.