Skip to content

[Feature Request]: Bridge UUID based on persistent data #396

Open
@Shaquu

Description

@Shaquu

According to Hap docs some fields should be persistent through the life of an Accessory (or Bridge).
It is why it was also planned to use those fields' id creation:
image

Looks like this is not implemented for Bridge.
Implementation must be backward compatible.

self.bridgeUsername = macify(self.id)
const hostUUID = uuid.generate(self.id)
const hostTypeName =
self.hostType == HostType.BRIDGE ? 'Bridge' : 'Standalone Accessory'
log.debug(`Creating ${hostTypeName} with UUID ${hostUUID}`)
if (self.hostType == HostType.BRIDGE) {
self.host = new Bridge(self.name, hostUUID)
} else {
self.host = new Accessory(self.name, hostUUID)
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions