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

Homekit qrcode #1138

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Homekit qrcode #1138

wants to merge 4 commits into from

Conversation

mnakada
Copy link

@mnakada mnakada commented May 25, 2024

HomeKit QR-Code
This request is an additional proposal to the following puru request.
homekit-server: add pairing API #1128

Current problem:
HomeKit's QR-Code registration requires that the DeviceID and SetupHash information be announced in mDNS.
The SetupHash is a string Hash value that combines the SetupID and DeviceID.
In the current code, the SetupHash is a Hash value of DeviceID only.
For this reason, QR-Code reading does not recognize it as a HomeKit accessory.

Suggested fixes:

  1. Add setup_id to homekit's option in the config file and add it when SetupHash is calculated.
  2. Add API to get string for QR-Code using these values.
  3. Add a HomeKit section to the web's links page.

mnakada and others added 4 commits May 20, 2024 22:57
- GET api/homekit/pairing
-   get the pairing information.
- DELETE api/homekit/pairing?[stream='stream' | name='mDNSname' | device_id='deviceID' ]
-   remove the pairing that has been deleted by Query.
Co-authored-by: Sergey Krashevich <[email protected]>
…s it waits a long time to be notified of updates.

That will cause a MultiCast Query and Response in mDNS to update the homekit information.
Current problem:
HomeKit's QR-Code registration requires that the DeviceID and SetupHash information be announced in mDNS.
The SetupHash is a string Hash value that combines the SetupID and DeviceID.
In the current code, the SetupHash is a Hash value of DeviceID only.
For this reason, QR-Code reading does not recognize it as a HomeKit accessory.

Suggested fixes:
1. Add setup_id to homekit's option in the config file and add it when SetupHash is calculated.
2. Add API to get string for QR-Code using these values.
3. Add a HomeKit section to the web's links page.
@AlexxIT AlexxIT self-assigned this May 28, 2024
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.

2 participants