Skip to content

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

Open
@NorthernMan54

Description

@NorthernMan54

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions