2024-10-29 11:15 PM
Hi,
I am using Zigbee_OnOff_Router_NVM to test the opening and closing function of IasZone Server. I found that by default, the notification generated by modifying the status value is 'Report Attributes'. But according to document 'Zigbee Cluster Library', a 'Zone Status Change Notification Command' should be generated.
I also found that if the following code is commented on, it can generate the 'Zone Status Change Notification Command' notification correctly, but the status value will lose persistence.
/* Allocate the attributes */
// if (ZbZclAttrAppendList(zigbee_app_info.iaszone_server_1, zcl_iaszone_server_attr_list, ZCL_ATTR_LIST_LEN(zcl_iaszone_server_attr_list)))
// {
// ZbZclClusterFree(zigbee_app_info.iaszone_server_1);
// return ;
// }
I want to know how to generate 'Zone Status Change Notification Command' notifications while enabling data persistence.
I provided the source code I used.
Thanks
DL_Weng
2024-11-06 07:30 AM
Hello @DL_Weng,
When using ZbZclAttrAppendList API from the application side, it overrides the default definition of the attribute already done at the cluster level, this is why the write callback allowing to send Change Status notify is lost.
I have raised an internal ticket N°195832 to analyze this case and hopefully, to add the persistable flag to the attribute without overriding the default configuration.
I will come back to you asap once the ticket is analyzed.
Best regards,
Ouadi