Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignoring prefer_native_scheduling value and creating unset (scheduled) codes? #405

Open
kmander opened this issue Nov 1, 2024 · 0 comments

Comments

@kmander
Copy link

kmander commented Nov 1, 2024

Hello,

I am trying to skip the Native Scheduling feature (codes only sent to the lock 72 hours prior to start time) and instead force the codes to be sent immediately.

The documentation (https://docs.seam.co/latest/capability-guides/smart-locks/access-codes#native-scheduling-supported-providers) says to just set prefer_native_scheduling to false in the request. We do that, but the response is an unset status, when it should be setting/set.

Here's our log output (device_id has been obfuscated):

Creating new access code for booking HM2BSHQFM3 with code 0084 Create request data: { "device_id": "XXXXXXXXX", "name": "HM2BSHQFM3", "code": "0084", "starts_at": "2024-11-26T15:00:00", "ends_at": "2024-11-29T11:00:00", "type": "time_bound", "prefer_native_scheduling": false, "force": true, "sync": true, "attempt_for_offline_device": true, "is_offline_access_code": false, "use_backup_access_code_pool": false, "allow_external_modification": false, "is_external_modification_allowed": false, "is_one_time_use": false } Create response: { "action_attempt": { "status": "success", "action_attempt_id": "df943c80-54db-43f0-b648-249f4582fe82", "action_type": "CREATE_ACCESS_CODE", "result": { "access_code": { "code": "0084", "name": "HM2BSHQFM3", "type": "time_bound", "errors": [], "status": "unset", "ends_at": "2024-11-29T11:00:00.000Z", "warnings": [], "device_id": "XXXXXXXXX", "starts_at": "2024-11-26T15:00:00.000Z", "appearance": null, "created_at": "2024-11-01T05:45:34.542Z", "is_managed": true, "access_code_id": "8defe0bd-0d31-435d-a859-2abafb2a8a5c", "common_code_key": null, "is_one_time_use": false, "is_offline_access_code": false, "is_backup_access_code_available": false, "is_external_modification_allowed": false } }, "error": null },

Any ideas?

Thanks,
Keith

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant