-
Notifications
You must be signed in to change notification settings - Fork 37
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
Problem with Reporting Multistate Value (TZ-1330) #491
Comments
Hi, I believe the issue is caused by the incorrect address mode: Could you please try using the |
@xieqinan Thank you so much for your help! Your assistance resolved my issue. I have another question regarding ESP_ZB_ZCL_ATTR_MULTI_VALUE_STATE_TEXT. Do you know when this feature will be added? If not, do you have any other suggestions that could substitute this feature? I need to solve this problem as soon as possible. Thanks again for your help! |
The |
I'm trying to build a Zigbee to UART dongle similar to the PTVO UART firmware for CC2652. My goal is to transfer an array of numbers using Zigbee. I observed the outputs of the PTVO firmware on Z2M logs, and they were as follows:
And that's how I know that I should use the |
I was looking for a replacement and found this document. I tested the code provided Custom Cluster:
Custom Command
|
The attribute will still not be supported in the upcoming release. I would like to discuss the solution you provided.
The first two bytes indicate the length of the array; refer to here.
|
Thank you very much for your guidance. This code worked correctly, but I realized that the |
Hi @mahdi1-kh ,
This issue is similar with the link, I think you can follow it and check whether your issue also can be resolved. |
hi @xieqinan, The way I understood the issue you mentioned that the length of the list should be stored in the first byte of the first list. I did the same thing as the code you modified here
and increased the size in the initial definition but it didn't resolve the issue and I still don't get reports in Z2M for messages with a size bigger than 154. Here's the modified code:
Although 150 meets my needs, I'm just curious to understand the reason behind this issue. |
Question
Description: I am attempting to create a Zigbee to UART dongle similar to the one described here.
Based on my research and observing the PTVO firmware clusters on Z2M, I concluded that I should use the MultistateValue cluster. I have read the ZCL documentation and this GitHub issue.
I have also tried making code changes based on this example.
However, after connecting the device to my Z2M network and pressing the key, no report is sent to Z2M.
I experimented with different modes of using
esp_zb_zcl_report_attr_cmd_req
andesp_zb_zcl_set_attribute_val
. I tried these together and separately, but no report was sent.Could you help identify the issue in my code or provide an example of using a multistate value?
Here is the code I tested:
Additional context.
The text was updated successfully, but these errors were encountered: