Matter: How to add custom attributes and commands into the standard cluster (ex: occupancy cluster server)

Dear Team,

I would like to know if it is possible to add custom attributes and commands to standard clusters, such as the Occupancy cluster. I have reviewed the "Adding a Custom Cluster" guide provided by Nordic, but I am unsure how to proceed with modifying standard clusters.

Could you please advise if this is feasible and, if so, provide some guidance on how to implement it?

Best regards,
Bhavya

  • Hi,

    I saw you created a new ticket here:  Support Needed for Adding Custom Attribute of Struct data type in standard cluster .

    Do you wish to continue in the new ticket or this one?

    I have replied in the other ticket already, so I will copy my response here:

    Can you try changing the type to array and adding RoomSizeCfgStruct as entryType instead? Like this:

    <attribute name="RoomSize" side="server" code="0xfff11000" define="ROOM_SIZE" type="array" entryType="RoomSizeCfgStruct" writable="false" optional="false" storage="external">

    Here is the full XML with this change:

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <configurator>
      <struct apiMaturity="stable" name="RoomSizeCfgStruct">
        <cluster code="0x0406"/> <!-- Occupancy Sensing Cluster -->
        <item name="minMeters" fieldId="1" type="int16u" optional="false"/>
        <item name="maxMeters" fieldId="2" type="int16u" optional="false"/>    
      </struct>
      <clusterExtension code="0x0406">
        <attribute side="server" code="0xfff11004" define="ZONE_OCCUPANCY" type="int16u" writable="true" optional="false" default="0" name="ZoneOccupancy">
          <description>ZoneOccupancy</description>
        </attribute>
        <attribute name="RoomSize" side="server" code="0xfff11000" define="ROOM_SIZE" type="array" entryType="RoomSizeCfgStruct" writable="false" optional="false" storage="external">
          <description>RoomSize</description>      
        </attribute>
      </clusterExtension>
    </configurator>

    Best regards,
    Marte 

  • Hi  ,

    We can continue in the new ticket.

    You can close this ticket.

    Thank you,

    Bhavya

Related