Seam supports backup access codes for time-bound access
codes only.
Before You Begin
To confirm that Seam supports back up code pools for your device, check the device’sproperties by inspecting the response from Get Device or List Devices. Ensure that the device’s properties.supports_backup_access_code_pool is true.
After you’ve done that, come back here and keep reading.
Example Payload:
Enabling and Retrieving Backup Codes
1. Activate the backup access code pool
To activate the backup pool, setuse_backup_access_code_pool to true when creating an access code. After activation, the backup access code pool cannot be turned off for that device. However, if you unmanage the device, any backup access codes are removed.
This activation is a one-time process for each device. Once initiated, Seam consistently maintains a backup code pool for the device. All access codes associated with the device utilize the same backup code pool.
In the smart lock app, backup access codes appear as “Backup
{CODE_ID} (Seam)”.2. Detect when an access code has failed to program
When you receive anaccess_code.failed_to_set_on_device event through your Webhook, or notice a failed_to_set_on_device error on the access code object, that means that the access code has failed to program.
You can retrieve a backup access code to use instead.
3. Confirm the availability of a backup access code
To confirm that a backup access code is available for retrieval, check theis_backup_access_code_available property on the access code by inspecting the response from Get Access Code or List Access Codes. If the backup code pool has been exhausted, this property returns false.
Note that we only support pulling backup codes for
time_bound codes at this
time.4. Retrieve a backup access code
To retrieve a backup access code for an access code, include theaccess_code_id in the Pull Backup Access Codes request. In the response, you receive the new backup access code. Be sure to share the new backup PIN code with the user of the original access code.
Upon executing this action, Seam performs the following additional actions:
- Mark the backup access code as pulled (
"pulled": true), meaning that it has been removed from the pool. - Associate the backup access code with the original access code, ensuring that any future requests to the Pull Backup Access Code request return the same backup access code.
- Update the
ends_atdate for the backup access code to match that of the original access code. - Attempt to refill the backup access code pool with a new backup code.
Troubleshooting
When you have the backup access code pool feature enabled for a device, be on the lookout for the following warnings and errors on the device:Warning: many_active_backup_codes
Multiple back up codes have been pulled from the device. This usually indicates that Seam is having issues programming access codes onto the device. Check if the device is offline or if there are other issues.
Warning: partial_backup_access_code_pool
Seam is having trouble refilling the back up access code pool. This could result from device connection issues or from the device running out of space for new codes.
Error: empty_backup_access_code_pool
There are no more back up codes available in the pool. This can happen when you’ve just enabled the back up pool feature, or when all of the backup access codes have been used.
Supported Brands
All door locks with theaccess_code capability are expected to support this feature, with the exception of Salto locks.
