This video shows you how to calibrate a Scandinavian auto deadlock - also known as a slam-lock, "Smæklås", Auto-locking lock.
This calibration method requires the lock to have version 0.23.14 or later of the lock firmware. This is currently not supported by the HomeKit model.