The contact sensor will tell you when the door is opened or closed.
A Lock Manager smart app of some sort will allow you to find out which code (and/or presence sensor, if you choose to go that route) unlocked the lock.
The combination of smart lock plus door sensor allows all sorts of things.
- you can have Webcore keep the lock unlocked as long as the door is open.
- you can have a ‘simulated’ lock that depends on both the door being closed AND the lock being locked to indicate that you are secure (or not).
- you can have the lock automatically re-lock itself after X minutes if it has been unlocked, but the door has remained closed.
- you can have the fact that a valid code or presence sensor unlocked the door turn off Smart Home Monitor so you don’t need a separate security keypad.
- you can schedule codes/sensors to only be valid at certain times, on certain days.
The only reason I got Smartthings in the first place was because I had gotten the Schlage lock as a convenience, and wanted to program it intelligently. lol