It is used to detect closing of door and lock the door once it is closed. You may need it during the initial setup. as long as it can be placed close to the door lock, it should work ok.
otherwise, once integrated with HA, you can probably use your own contact sensor and trigger door lock using HA
btw, i am using ESPHome bluetooth proxy with Switchbot
😢