Repository navigation
Pair devices into a Hub-saved draft - #21
Merged
Merged
Conversation
pair_device takes the Hub's draft and returns it filled; check_device_id guards the final id. Document unpair as the pairing rollback, fetch as the idempotent health check and device_uuid uniqueness.
The Hub-owned id is read-only; integrations look devices up, check collisions and report by physical_id. device_uuid and parameter_uuid normalise strings and take raw bytes.
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pairing rework, SDK 0.4.0. Part of one change across the SDK, the Hub and the 5 integrations; release the SDK first.
pair_devicefills a draft the Hub builds and saves only once paired; it is idempotent, likefetch.idis the Hub's (read-only),physical_idis the integration's lookup key.unpairis also the rollback of a failed pairing: best effort, safe to call again; raises the newDeviceUnreachableErrorwhen it can't reach the device.DeviceIdTakenErrorand the platform id check.controller_did_connect_device/controller_did_lose_devicetake exactly one keyword id,physical_id=ordevice_id=.Tested: unit tests (429 passed); hardware suites on the cage rig through the Hub. Reviewed.