diff --git a/src/app/clusters/groups-server/groups-server.cpp b/src/app/clusters/groups-server/groups-server.cpp index 7318523c118fbe..10aa34351230b7 100644 --- a/src/app/clusters/groups-server/groups-server.cpp +++ b/src/app/clusters/groups-server/groups-server.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,8 @@ static Status GroupAdd(FabricIndex fabricIndex, EndpointId endpointId, GroupId g } if (CHIP_NO_ERROR == err) { + MatterReportingAttributeChangeCallback(kRootEndpointId, GroupKeyManagement::Id, + GroupKeyManagement::Attributes::GroupTable::Id); return Status::Success; } @@ -109,6 +112,8 @@ static EmberAfStatus GroupRemove(FabricIndex fabricIndex, EndpointId endpointId, CHIP_ERROR err = provider->RemoveEndpoint(fabricIndex, groupId, endpointId); if (CHIP_NO_ERROR == err) { + MatterReportingAttributeChangeCallback(kRootEndpointId, GroupKeyManagement::Id, + GroupKeyManagement::Attributes::GroupTable::Id); return EMBER_ZCL_STATUS_SUCCESS; } @@ -322,7 +327,7 @@ bool emberAfGroupsClusterRemoveAllGroupsCallback(app::CommandHandler * commandOb provider->RemoveEndpoint(fabricIndex, commandPath.mEndpointId); status = Status::Success; - + MatterReportingAttributeChangeCallback(kRootEndpointId, GroupKeyManagement::Id, GroupKeyManagement::Attributes::GroupTable::Id); exit: commandObj->AddStatus(commandPath, status); if (Status::Success != status)