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

HAP-Client uniqueId is different when a device is removed then added, even though HomeKit thinks its the same device #15

Open
NorthernMan54 opened this issue Dec 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@NorthernMan54
Copy link
Contributor

Current Situation

service.uniqueId = createHash('sha256')
.update(${service.instance.username}${service.aid}${service.iid}${service.type})
.digest('hex');

AID increments when a accessory is removed and added

Proposed Change

This creates the same token for the same device when deleting and adding - ${service.instance.name}${service.instance.username}${service.accessoryInformation.Manufacturer}${friendlyName}${service.uuid.slice(0, 8)}

Additional Context

No response

@NorthernMan54 NorthernMan54 added the enhancement New feature or request label Dec 23, 2024
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

1 participant