access_codescapability lets you program pin-codes. These codes then let a user unlock the door without keys.
lockcapability provides two actions:
UNLOCK. It also has a
lockedproperty to know its current status.
access_codecapability lets you program pin code on a lock. This code can used to unlock the door without keys.