Skip to content
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

Support of Zigbee protocol #8807

Closed
5 tasks done
P-R-O-C-H-Y opened this issue Oct 25, 2023 · 8 comments · Fixed by #9024
Closed
5 tasks done

Support of Zigbee protocol #8807

P-R-O-C-H-Y opened this issue Oct 25, 2023 · 8 comments · Fixed by #9024
Assignees
Labels
Status: In Progress Issue is in progress Type: Feature request Feature request for Arduino ESP32
Milestone

Comments

@P-R-O-C-H-Y
Copy link
Member

P-R-O-C-H-Y commented Oct 25, 2023

This issue tracks support of Zigbee protocol (supported by ESP32C6 and ESP32H2 chips)

Initial steps:

@P-R-O-C-H-Y
Copy link
Member Author

Tasks have been updated.

@Hedda
Copy link

Hedda commented Nov 17, 2023

@P-R-O-C-H-Y Off-topic; just wondering if you might be interested in looking at Zigbee for Tasmota? -> arendst/Tasmota#20045

For reference, Tasmota's Zigbee2Tasmota (Z2T) implementation already supports Texas Instruments ZNP and Silicon Labs EZSP Zigbee stacks/interfaces with respective Zigbee Coordinator adapter running Zigbee NCP (Network Co-Processor) host firmware:

https://tasmota.github.io/docs/Zigbee/

Tasmota itself is a arduino-esp32 based open source firmware for DIY devices (especially popular for home automation solutions):

https://tasmota.github.io/docs/

PS: While Tasmota itself is mature, the ESP32-C6 support in Tasmota is still experimental, however you can follow its progress here:

arendst/Tasmota#19350

@lbernstone
Copy link
Contributor

lbernstone commented Nov 17, 2023

arduino-esp32 is developed as a HAL for the hardware capabilities provided by the Espressif frameworks. This makes it much easier to maintain support, since the Espressif teams are being paid for that work. The zigbee (and zboss) library does provide support for gateways/coordinators, but the primary hardware support is for the 802.15.4 radio itself. ESP32-C6 and ESP32-H2 have the ability to be actual zigbee devices, and the libraries being developed will expose those capabilities for integration into OOP/C++/Arduino projects.

@P-R-O-C-H-Y
Copy link
Member Author

Update: Ported 2 simple Zigbee examples from ESP-Zigbee-SDK (esp-idf) #9024.
Creating a wrapper or a library is not planned for now, so after merging the examples we are closing this issue.

@fillibar
Copy link

With the Arduino examples, are there any plans to make them able to connect to another hub/controller and not just another esp32c6 acting as a coordinator?

While it looks like that might be possible, at this time they just hang (monitor shows it is stuck at "Network steering was not successful"). This seems very similar to the issue here:
espressif/esp-idf#10662

With the IDF example a heavily revised esp_zb_task seemed to help (also updating the dependencies since the ones for those examples are a bit behind).

Making a similar change to the esp_zb_task in the .ino file did not work even after copying that section from code that works when flashed with the idf.

Another thing that might help is if Serial output was provided for more of the functions. Beyond just an initial bit of information when the ESP32C6 starts up, nothing further is recorded in the Arduino IDE's Serial Monitor (vastly less than what the idf's monitor shows).

@Hedda
Copy link

Hedda commented Jan 24, 2024

FYI, it seems that Espressif devloper(s) are working on an Zigbee NCP radio library for zigpy (Python based Zigbee framework with Zigvee Stack/CLI abstraction API) so can be used as a Zigbee Coordinator NCP for projects like Home Assistant and Domoticz that depend on zigpy. Check out:

zigpy/zigpy#1052

and

zigpy/zigpy-cli#42

and

espressif/esp-zigbee-sdk#124

With the Arduino examples, are there any plans to make them able to connect to another hub/controller and not just another esp32c6 acting as a coordinator?

You should really be posting any Zigbee related question and requests to Espressif’s ESP Zigbee SDK repository instead:

https://github.com/espressif/esp-zigbee-sdk

https://github.com/espressif/esp-zigbee-sdk/issues

@fillibar
Copy link

I figured this was the place to post about the Arduino question because this is where I found the links to the Arduino examples.

@ilker-aktuna
Copy link

@Hedda
since you asked to write on zigbee sdk repo, I created this issue:
espressif/esp-zigbee-sdk#228

But nobody seems to be interested there...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Issue is in progress Type: Feature request Feature request for Arduino ESP32
Projects
Development

Successfully merging a pull request may close this issue.

6 participants