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

Update the way AccessoryInformationService is merged #2472

Merged

Conversation

Supereg
Copy link
Member

@Supereg Supereg commented Apr 3, 2020

The definition of the AccessoryInformationService changed lately:
https://github.com/KhaosT/HAP-NodeJS/blob/a3a49491c00e91ffb2a6dd4d3628e917cf61ddba/src/lib/gen/HomeKit.ts#L3651-L3664

This change makes the whole process a bit more future proof.

Currently pretty much all Characteristics are READ only and are meant to not change over the time, except of ConfiguredName (READ, WRITE, NOTIFY) and ProductData (READ, NOTIFY).
I would guess that ConfiguredName could be used to listen for any name changes done inside the Home App.
What the PR does not cover currently is, that event handlers are transferred as well (only really useful for those mentioned services). Don't know what would be the best practice for that.

@donavanbecker donavanbecker requested a review from a team April 3, 2020 13:25
Copy link
Contributor

@donavanbecker donavanbecker left a comment

Choose a reason for hiding this comment

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

I have tested this locally and see no issues.

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.

None yet

2 participants