How can this door tell me if it's locked or unlocked?

Hello People.
This post may be a solution to your situation. Check out:

My Wyze Smart-ish Lock Another Approach II

Victor Maletic.