#Corrupted zigbee groups?

1 messages · Page 1 of 1 (latest)

quasi yarrow
#

I’m having an issue where commands sent to groups seem to no longer be working.

For example, I have a group called “Family Room Lights” defined in Z2M. It contains 4 light devices. If I toggle a device, it works fine. If I toggle the group containing the device, nothing happens.

Verified through Dev Tools -> Actions.
Action: light toggle
Targets: I choose 2 entities, both the “Family Room Lights” as well as 1 of the contained lights “Family Room Light 1”.
When I click on “Perform action”, the room light 1 toggles but none of the other lights in the group do. If I have only the group as targets, nothing happens.

Additional symptom:
If I go into Z2M Groups and add a new group “Test Group” and add “Family Room Light 1” to it, no issues. I can do “Perform Action” with “Test Group” as the target and it works fine. So… a new group works fine, an existing group doesn’t.
Furthermore, if I try deleting a different test group I made I get an error implying that the group doesn’t actually exist. However, if I delete the “Test Group”, it deletes with on errors.
SOMETHING is messed up with my groups database.
—-log from the last point:

Info 2025-03-16 11:56:31z2m: Removing group 'Family Room Lights 2' (force: false)
Error 2025-03-16 11:56:31z2m: Request 'zigbee2mqtt/bridge/request/group/remove' failed with error: 'Failed to remove group 'Family Room Lights 2' (force: false) (Error: DatabaseEntry with ID '58' does not exist)'
Info 2025-03-16 11:56:31z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/response/group/remove', payload '{"data":{},"error":"Failed to remove group 'Family Room Lights 2' (force: false) (Error: DatabaseEntry with ID '58' does not exist)","status":"error","transaction":"hp40l-1"}'

Any idea how I can fix this?

forest flint
#

I don't use Z2M but recently I was also looking into zigbee.db corruption on ZHA. I'm not sure I can help but am willing to step through the issue with you as it was pretty depressing for me to debug my issue myself.

#

Do you know where the database referred to in the error resides?

#

Additionally, if you have only a few ZigBee groups and the new groups work properly, to restore functionality you can prioritise adding your devices to new groups and using them in your automations first. Then ZigBee database cleanup can come later.

quasi yarrow
forest flint
#

I'm in Singapore. Just drop your findings here and I'll reply when I see it.

quasi yarrow
#

Will do, thanks!