Skip to content

HKSV: Fix default pin differing from schema - #2395

Open
rrroyal wants to merge 1 commit into
AlexxIT:devfrom
rrroyal:fix/hksv-pairing
Open

HKSV: Fix default pin differing from schema#2395
rrroyal wants to merge 1 commit into
AlexxIT:devfrom
rrroyal:fix/hksv-pairing

Conversation

@rrroyal

@rrroyal rrroyal commented Aug 2, 2026

Copy link
Copy Markdown

Summary

Restore the default HomeKit pairing PIN to 19550224, matching www/schema (homekit.*.pin.default) and the existing documentation.

This fixes hap: VerifyClientAuthenticator errors caused by the HKSV server using a different default PIN.

  • Move the shared default to hap.DefaultPIN
  • Update HKSV and example defaults
  • Add regression coverage for the default setup code

AI disclosure

This implementation was developed with assistance from ChatGPT 5.6 Sol running under GitHub Copilot. Its architecture, acceptance criteria, and engineering standards were human-directed. The final branch was reviewed, tested, and exercised on physical cameras.

Comment thread pkg/hksv/example/main.go
//
// Then open the Home app on your iPhone/iPad, tap "+" → "Add Accessory",
// and scan the QR code or enter the PIN manually (default: 270-41-991).
// and scan the QR code or enter the PIN manually (default: 1955-0224).

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS has been using XXXX-XXXX for a while now, so I figured it's a good occasion to update it

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

Successfully merging this pull request may close these issues.

1 participant