zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

Group Table Overflow Results in Uncontrollable Endpoints for Higher Group IDs

Open CubeZ2mDeveloper opened this issue 1 year ago • 4 comments

What happened?

I am working with a three-gang switch device, model CK-BL702-MSW-01 (7012). I added 8 groups to each of its three endpoints. However, I observed the following behavior:

  • For the first five groups, all three endpoints respond and can be controlled normally.
  • For the sixth group, only endpoint 1 responds.
  • For the seventh and eighth groups, none of the endpoints respond to group commands.

What did you expect to happen?

My expectation is that every device endpoint that successfully joins a Zigbee group should be able to respond to and be properly controlled by group commands.

How to reproduce it (minimal and precise)

You can reproduce the issue by adding a device to multiple Zigbee groups until its internal group table is fully populated.

Zigbee2MQTT version

2.4.0

Adapter firmware version

7.4.4

Adapter

ember

Setup

windows

Device database.db entry

No response

Debug log

No response

Notes

No response

CubeZ2mDeveloper avatar Dec 01 '25 07:12 CubeZ2mDeveloper

During my investigation, I sent the GetMembership command from Z2M and found that:

Endpoint 1 supports up to 6 groups

Endpoints 2 and 3 support up to 5 groups each

I also checked the response of the addGroup command, which returned:

{"status": 137, "groupid": 11}

The status code 137 corresponds to INSUFFICIENT_SPACE, indicating that the device’s group table is full and no additional groups can be added.

However, Z2M does not appear to handle this error code correctly. As long as the device sends a response, Z2M treats the group addition as successful. As a result, some endpoints are shown in Z2M as successfully added to a group, while in reality they are not. Once the device reaches its group table limit, the newly added groups fail to control the device properly.

This is my current modification approach:

Image

CubeZ2mDeveloper avatar Dec 01 '25 08:12 CubeZ2mDeveloper

Can you try with z2m 2.7.0?

Koenkk avatar Dec 01 '25 20:12 Koenkk

Yes, I tested with Z2M version 2.7.0 today, and this version still has the issue I mentioned earlier: when the group table of a device endpoint is already full, even though the endpoint can no longer join any new groups, Z2M still reports the operation as successful.

CubeZ2mDeveloper avatar Dec 02 '25 03:12 CubeZ2mDeveloper

Fixed in https://github.com/Koenkk/zigbee-herdsman/pull/1573

Changes will be available in the dev branch in a few hours from now and in the next release which is every 1st of the month.

Koenkk avatar Dec 02 '25 20:12 Koenkk