In the case of HomeKit, they connect to your home network, and work with the Home App on your iPhone or iPad. From there, you can unlock the door remotely, program scenes so that the door locks if other parameters are completed, amongst other things. In case that the lock doesn't work, there are always conitgencies like physical keys or keypads.