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

hiding accessories #239

Open
thncode opened this issue Nov 3, 2023 · 6 comments
Open

hiding accessories #239

thncode opened this issue Nov 3, 2023 · 6 comments

Comments

@thncode
Copy link

thncode commented Nov 3, 2023

I could'nt find that by searching and experimenting - is it possible to hide accessories at run time?

@d4rkmen
Copy link

d4rkmen commented Nov 3, 2023

If you change config number value in txt record, the controller will reload accessory information.
So, remove accessory or some service from the description, and shift config number

@thncode
Copy link
Author

thncode commented Nov 3, 2023

Sorry, what is 'config number value in txt record'? Could you please paste a code snippet?

@arturlukosek
Copy link

@thncode have you managed to figure out how to hide accessories?

@thncode
Copy link
Author

thncode commented Jan 2, 2024

no - I did'nt understand the comment of @d4rkmen. I had to make a workaround by using two sets of accessories, which of course does not work for all use cases...

@maccoylton
Copy link

maccoylton commented Jan 3, 2024

HomeKit publishes via mdns some info that helps the client app, for example the Apple Home app, discover and use your accessory. Within that mdns record there is information including a config number. I think the suggestion is if you increment that config number then the client will pickup any changes, seem to remember that it mentions this in the homekit spec.

It is stored within the struct you create with arduino_homekit_setup

@d4rkmen
Copy link

d4rkmen commented Jan 3, 2024

Controller will reload accessory information when config number changes. This is the way it works

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

No branches or pull requests

4 participants