**This is an old revision of the document!**
Space Door Lock
The space door lock is a Yale Assure lock. It has Z-Wave capabilities and is connected to our local Home Assistant.
Door Code Provisioning
The lock can hold 200 codes in its memory in total. Each code can be set via Home Assistant using the zwave_js.set_lock_usercode(code_slot, code) service call. Code slots are 1-based, not 0-based. These 200 codes are partitioned like so:
[ 1, 50]- arbitrary and/or legacy codes, codes may be changed[51, 200]- member-specific code (150 total), allocated entirely by the Monolith
Door codes generated by ButterflyMX for each member are automatically set into the door as well. With this, whenever door access is provisioned for a member via ButterflyMX, the Monolith automatically sets the same code as the space door code as well, so the member only has to memorize one code.
Note that because of the theoretical 150 codes total limit, the system should keep track of what 150 codes were used most recently and be able to automatically provision an old code that hasn't been used the moment it detects that member entering via ButterflyMX.