-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Cluster write Callback (TZ-114) #22
Comments
@diazmanuel The attribute callback are now only supported changes from ON/OFF, LEVEL, COLOR attribute change, not the customized attribute callback. For the customized cluster related, we supported custom cluster command callback, read attribute callback. We will support your need in the future release. |
Thanks for the answer. I would like to know when you plan to support this functionality since it seems to be something simple, the sdk already correctly identifies the cluster and the attribute, it also allows you to modify it and the warning that it launches is executed when the attribute is edited, so the only thing that would be missing is to enable the call to the callback function |
@diazmanuel The issue has been fixed in latest main branch, please try it out, thanks for reporting the issue. |
hello, i try using the custom cluster write callback again and still doesnt works i get the same message : W (236902) ESP_ZIGBEE_CORE: cluster ID:65534, attribute ID:0 is currently not supported for updating! I am also sure that I am using the latest version since another change that you request (issue (TZ-117) #23 ) works correctly |
hi @diazmanuel for a quick fix you need to use esp_zb_add_custom_cluster_command_cb(HA_ESP_LIGHT_ENDPOINT, ESP_ZB_ZCL_CLUSTER_ID_CUSTOM, NULL); in your example code to register custom cluster id as in our internal implementation we are currently using custom_cluster_command_cb to register custom cluster id . Later we can workaround to change it. |
@diazmanuel Hi, the latest release has been fixed the recently error you faced, please try it out. |
@likunqiao097304 Perfect, now it works correctly |
hello @likunqiao097304 , I still have problems with this callback, when using the signed data type 16 (0x29) it informs me that it does not support that data type, I tried it with unsigned 32 and it works correctly (0x23) |
@diazmanuel Currently , only u8, u16, u32 data types are supported for custom cluster write attr callback. |
Hai @diazmanuel |
Hello!
I am trying to add a callback when an attribute of a custom cluster is modified
the custom cluster is created correctly and I can modify its attributes with another zigbee device but the callback is not called and returns the following message:
ESP_ZIGBEE_CORE: cluster ID:65534, attribute ID:0 is currently not supported for updating!
iam ussing the master sdk.
This means that the sdk does not support the callback for custom clusters, is there a solution to this?
I am registering the callback as follows:
void attr_cb(uint8_t status, uint8_t endpoint, uint16_t cluster_id, uint16_t attr_id, void *value)
{
ESP_LOGI(TAG,"Callback");
}
static void esp_zb_task(void *pvParameters)
{
esp_zb_cfg_t zb_nwk_cfg = ESP_ZB_ZED_CONFIG();
esp_zb_init(&zb_nwk_cfg);
}
The text was updated successfully, but these errors were encountered: