You can use the free “lock manager” smart app. It’s very popular.
You should ask any follow-up questions in that thread.