Code Monkey home page Code Monkey logo

Comments (8)

tgu avatar tgu commented on June 12, 2024

HAP Spec 2.6.1

Instance IDs are numbers with a range of [1, 18446744073709551615]. These numbers are used to uniquely identify HAP accessory objects within an HAP accessory server, or uniquely identify services, and characteristics within an HAP accessory object. The instance ID for each object must be unique for the lifetime of the server/ client pairing.

When adding more than eight accessories (independent of type) to a device the Home app will protest on the eight accessory and claim that it is an unsupported accessory. Changing the aid numbering

accessory.aid = offset == 0 ? 1 : offset+100

will silent the protest. There seems to be more into this than just using unique aid numbering.

from hap.

Bouke avatar Bouke commented on June 12, 2024

Thanks, I've committed a fix for this in 634d5a2.

from hap.

tgu avatar tgu commented on June 12, 2024

There seems to be more into to this see the fix 8e83fe0

The HAP specs are not clear (too me).

from hap.

Bouke avatar Bouke commented on June 12, 2024

I've tried replicating the issue of your previous comment, but was unable to. On my iPhone (6s / iOS 11.0.3) I'm able to pair with the demo HAP server included with this package. Any idea why you would need the offset, and how this ties into the specs?

from hap.

tgu avatar tgu commented on June 12, 2024

With the demo HAP server and iPhone (6s/iOS 11.0.3) the results for me are

8e83fe0 - OK
c6b9a14 - silently refuse to pairing, the Bridge does not show up at all
9e2df10 - paring is possible but the Toilet window is marked as not supported (Stöds inte, in Swedish)

img_4764

from hap.

Bouke avatar Bouke commented on June 12, 2024

Is this still a problem for you?

from hap.

tgu avatar tgu commented on June 12, 2024

Now it works, thanks!

from hap.

Bouke avatar Bouke commented on June 12, 2024

Most gaps with the specs have been resolved. If any mismatch is found, we can open separate issues.

from hap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.