Giter Site home page Giter Site logo

Comments (1)

jvmahon avatar jvmahon commented on May 27, 2024 1

As an initial point, Zap lets you do a lot of stuff that doesn't strictly conform with the Matter specs (at least it didn't in earlier versions - I haven't checked lately). So Zap permitting it doesn't make it conforming.

Section 9.2 ("Endpoint Composition") of the Matter Specification Version 1.2 addresses the type of combination you are attempting. This is the statement:
image

Sensors are simple endpoints in the Matter data model, and since none of the sensor types you are combining have all the clusters of the other types (i.e., none of the types is a superset of the others), you should not combining them on the same endpoint. Each should be its own Endpoint with its specific application device type.

The ability to combine multiple types on one endpoint is likely to be rare. An example that comes to mind is for Color Dimmer Switch, Dimmer Switch, and On/Off Switch. If Color Dimmer Switch is the Primary, you can put "Dimmer Switch" or "On/Off Switch" as secondary. This is allowed since Color Dimmer Switch contains all the clusters of Dimmer Switch and On/Off Switch. Similarly, if you put "Dimmer Switch" as Primary, then "On/Off Switch" is permitted as the secondary since Dimmer contains all its clusters, but Color Dimmer Switch would not since Dimmer is missing the color control cluster. I'd say never do such combining if you can avoid it - setting up discrete endpoints is comparatively easy.

from connectedhomeip.

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.