-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
More Zigbee examples for ESP32-C6 #9480
Comments
@P-R-O-C-H-Y - PTAL, Thanks! That may be a nice new task. |
Nice one. :) Looking forward to it. |
A scanner would be an extremely useful example |
For those looking for the link: https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Zigbee |
Zigbee examples got updated to work with latest esp-zigbee-sdk.
Everything mentioned is included in the latest release 3.0.0-rc3. |
Great! |
For reference; here are the links: https://github.com/espressif/arduino-esp32/tree/master/libraries/ESP32/examples/Zigbee Synchronized from esp-zigbee-sdk examples: https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/ PS: Also see related discussion here: |
@P-R-O-C-H-Y maybe a good idea to add a few more simple "Zigbee HA" profiles (ZHA profile specs) from the esp-zigbee-sdk? https://github.com/espressif/esp-zigbee-sdk/tree/main/examples/esp_zigbee_HA_sample |
@Hedda I think there is no need to port more IDF zigbee-sdk examples, anyone can easily port them as you can use the 4 examples I ported as a reference. There is no much to change in the example. It's just about adding But also if anyone does port any new example from zigbee-sdk, I will be really happy to see a PR adding it to the repo :) |
Hi @P-R-O-C-H-Y I am really looking forward to a wrapper that makes this easier to use as to be fair I'm so confused on what needs setting where as I'd like to extend the temp sensor example to include luminosity but have no idea how to start/where to add it into the existing cluster. Do we have any ideas when the wrapper will be available for testing? Thanks in advance! |
What is the status of that wrapper and can we follow the development of it anywhere? |
Hi, thank you all for the interest for the wrapper. If you want, you can follow my dev branch in my fork. Its still in early stages, but if you have any suggestions, feel free to open comment here on open an issue in my fork :). Any help or suggestions are welcome. I have not done much on Zigbee wrapper for last month, as there was a lot of other higher priority tasks, but I am now starting to do some progress again :). I have no estimated time for now, when it should be in some "almost done" stage. |
@Hedda Update pushed to the branch. You can test the on_off light (ED) + switch(Coordinator). Very simple sketches now :) |
Oh my! This looks amazing, super simple easy enough for anyone to use! Thanks for the effort :) |
One thing I did notice.. how do you set the Manufacturer and model name? IE
|
I am not at this moment, that's something I still need to implement :) Feel free to add any requests or questions there :) |
@lbernstone @lboue Zigbee network scan have been implemented in the dev branch. |
Thanks, I'll try it as soon as I can. |
@P-R-O-C-H-Y: Can you please share a few words on how to use your ZigBee examples with Arduino? Do I have to compile and install the library first? I tried to compile the examples but got reference errors to the ep header files. |
same here, i'am not able to get the example compiled. ( Error, see here:
|
Hi @estegewr, there is a PR opened for Zigbee wrapper library for Arduino. You can checkout that PR and try the examples which are included. You can take a look to the README of the examples to check what setup is needed. The esp-zigbee-sdk libraries are precompiled and included with the esp32 arduino core. |
@labmaster I see you are on the 3.1.0-RC1 and Zigbee sdk libraries were not updated there probably yet to the last version. Thats why it cannot be compiled. I will ask to update the libs also there :) EDIT: There is PR pending for 3.1 branch with the 1.5.0 Zigbee sdk libraries: #10272 |
...
Hmmm, thats what it shows when compiling: |
@labmaster Are you using git install or the release of 3.1.0-rc1 in Board Manager? |
@P-R-O-C-H-Y |
On both cases you have same compilation error? If you use master or 3.0.5 release + the Zigbee PR compilation should be fine. Also 3.1 branch got updated libs now. So if you use git and the 3.1 branch you should be good too. |
Still getting:Detecting libraries used... Compilation error: ZigbeeCore.h: No such file or directory And the additional "examples" are gone: |
This is really weird. How did you added the Zigbee library to the core? (as its still a PR and not merged yet) |
i downloaded zip of https://github.com/P-R-O-C-H-Y/arduino-esp32/blob/feature/zigbee-library/package.json Problem seems to be that i'am doing something wrong with it. Sketchbook location is ESP32 location is: |
@P-R-O-C-H-Y Simply tried to use the "Zigbee_on_Off_Light" example from the "File"->"Examples"->"ESP32"->"Zigbee" I get a new error now:Compiling library "Zigbee" Using library Zigbee at version 1.0.0 in folder: C:\Users\m\AppData\Local\Arduino15\packages\esp32\hardware\esp32\libraries\Zigbee Compilation error: exit status 1 |
Hi @labmaster you need to select previous commit. I have pushed changes that are not finished that's why it's failing to compile. It's in progress and I am switching laptops so I pushed unfinished work. Can you please try without last commit? |
for now i found the problem. So you are right, it seems to be there is work in progress from your site . ;-) I'am not 100% familiar with git, so i am not pretty sure what you mean with "you need to select previous commit". You mean i should use an older commit ? |
Hi everyone, I am closing this issue as there are now 8 examples for the new and easy to use Zigbee library. The old examples which were just port from esp-zigbee-sdk were removed. All the examples can be found here: https://github.com/espressif/arduino-esp32/tree/master/libraries/Zigbee/examples |
Related area
Zigbee
Hardware specification
ESP32-C6
Is your feature request related to a problem?
There is just two (pretty much hidden - not visible in Arduino IDE examples list) examples regarding Zigbee on the ESP32-C6. I would like some more examples, especially for a temperature, humidity, pressure and CO2 sensor.
Describe the solution you'd like
There is just two (pretty much hidden - not visible in Arduino IDE examples list) examples regarding Zigbee on the ESP32-C6. I would like some more examples, especially for a temperature, humidity, pressure and CO2 sensor.
Describe alternatives you've considered
No response
Additional context
No response
I have checked existing list of Feature requests and the Contribution Guide
The text was updated successfully, but these errors were encountered: