-
Notifications
You must be signed in to change notification settings - Fork 38
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
Update On Off attribute value doesn't work (TZ-1417) #514
Comments
Hi @grebenyuk51 , Could you please refer to the temperature sensor example which is similar with your project? |
in that example there is no ESP_ZB_ZCL_CLUSTER_ID_ON_OFF. Thus, no ESP_ZB_ZCL_ATTR_ON_OFF_ON_OFF_ID. Or you want to tell me, that I need manage value of ESP_ZB_ZCL_ATTR_ON_OFF_ON_OFF_ID and do reporting like in example? But why I can only change ESP_ZB_ZCL_ATTR_TEMP_MEASUREMENT_VALUE_ID via esp_zb_zcl_set_attribute_val, and zigbee will do all magic stuff under hood? |
What I mean is that the SDK can only provide typical examples to demonstrate API usage rather than covering every possible case. The temperature sensor and thermostat example share the similar application logic with your use case, differing only in the cluster. You can review it to understand the runtime logic of attribute setting and reporting, and then use it as a foundation to design or modify your application. |
@xieqinan, wait a minute. In temperature measurement cluster I don't need to manage reporting. All I need is to change value But! OnOff cluster doesn't have such magic. If this is expected behavior, I will close this issue |
The esp-zigbee-sdk aims to provide flexible APIs, allowing users to develop applications based on their unique requirements. As a result, the SDK does not manage all reporting functionalities internally. However, if you are interested, you can integrate the provided APIs to implement this functionality. |
Answers checklist.
IDF version.
5.3
esp-zigbee-lib version.
1.6.1
esp-zboss-lib version.
1.6.1
Espressif SoC revision.
ESP32-C6
What is the expected behavior?
esp_zb_zcl_set_attribute_val updates value and sends report (if configured) about changed status
What is the actual behavior?
After call esp_zb_zcl_set_attribute_val neither value changed nor report genereted
Steps to reproduce.
Code for change value on device (procedure is called in FreeRTOS Task):
Same issue described on forum: http://esp32.io/viewtopic.php?t=41047
More Information.
No response
The text was updated successfully, but these errors were encountered: