-
Notifications
You must be signed in to change notification settings - Fork 26
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
Using analog input clusters in esp-zigbee-sdk (TZ-1142) #431
Comments
I have an example here, it's a bit rough, but it does show how to use an Analog Input. https://github.com/prairiesnpr/esp_zha_test_bench |
Thank you for the example it was very helpful. Unfortunately I keep having this error which I don't know how to fix. I've followed exactly the example and I get this error For context I'm running this code on the ESP32C6 as an end device type. Any help would be very much appreciated :) |
I just flashed this to an ESP32C6 mini and it runs without issue. I'm have mine configured as a router, but that shouldn't matter, I've tested as an end device also. You are flashing the project as cloned from github or did you just follow as a general outline? Would need sample code to comment further, if it's not the same project. |
This is the config I used on mine, maybe compare to what you have? |
Ok, I think your issue is you need to update main.h to reflect you are building an end device. https://github.com/prairiesnpr/esp_zha_test_bench/blob/fcad8d2fe90ae8f3a62bffb625988fd6e84d5f01/main/main.h#L36 Change |
I've finally managed to get your example working :) The issue was not about using the incorrect zigbee endpoint type, however it was the fact that I did not initialise the nvs hence why you see an error in the previous image I've shown. I have inserted the nvs init code before the // Initialize NVS Many thanks for the example which I will now use as a boilerplate code for my presence sensor! I will leave the issue open incase of any other errors (hopefully no more!). |
Hello this is a follow up incase anyone has any issues with this. If you are writing Zigbee code and you are changing the endpoints, clusters and attribute ids. You MUST always erase the chip flash before flashing your new code with the new updated ids. As I think the old ids are not being cleared out if you don't erase the flash. For example in esp-idf you should run the command Many thanks again for this code sample it is much appreciated! |
Question
Hello,
I'm currently trying to create a presence sensor in zigbee where, I am trying to advertise presence detection, detection distance etc. I'm attempting to use the analog input clusters provided by the ZCl but, I am struggling to get it working. I've looked everywhere for a possible example using analog input clusters but, to no luck.
I'm using zigbee sdk version ~1.5.0 and esp-idf version 5.1.3
Any help would be much appreciated :)
Additional context.
No response
The text was updated successfully, but these errors were encountered: