Page 1 of 2

ESP32 zigbee

Posted: Fri Oct 20, 2023 12:58 pm
by haythemjls
Hello,

We plan to design an application that allows connecting lamps (Philips HUE Zigbee) using an ESP32-S3 or ESP32-C6 module through the Zigbee protocol.
Are there any code examples for using the Zigbee protocol with the ESP32?

Re: ESP32 zigbee

Posted: Fri Oct 20, 2023 4:41 pm
by lbernstone
The devices that provide Zigbee (C6, H2) are not yet fully supported in arduino-esp32.
However, if you download 3.0.0-alpha, you should be able to program it with code from the esp32-zigbee-sdk. https://github.com/espressif/esp-zigbee ... b_switch.c
Change app_main() to setup(), and you will probably need to change the assignments to config into two individual lines instead of the C-style struct assignment.

Re: ESP32 zigbee

Posted: Fri Oct 20, 2023 6:56 pm
by lbernstone
On further inspection, this is a very convoluted library. I'll give it a shot, since this does need to be integrated, but it is not going to be as simple as putting the sdk in the sketch folder and compiling.

Re: ESP32 zigbee

Posted: Mon Oct 23, 2023 4:15 pm
by lbernstone

Re: ESP32 zigbee

Posted: Tue Oct 24, 2023 3:48 pm
by haythemjls
Hello,
We need to establish a Zigbee connection between the Hue products made by Philips and the ESP32, is it possible to use ESP-IDF and ESP32-H2 ? any help pls.

Re: ESP32 zigbee

Posted: Tue Oct 24, 2023 4:03 pm
by lbernstone

Re: ESP32 zigbee

Posted: Thu Nov 02, 2023 4:31 pm
by lbernstone

Re: ESP32 zigbee

Posted: Mon Nov 06, 2023 2:59 pm
by haythemjls
I haven't found any examples that show you how to use zigbee between the ESP32-H2 module and other devices, pls any help.

Re: ESP32 zigbee

Posted: Mon Nov 06, 2023 4:27 pm
by lbernstone
You will need to explain better what you mean. There are examples of using the esp as a gateway, or as an end device (light bulb).

Re: ESP32 zigbee

Posted: Tue Nov 07, 2023 8:40 am
by haythemjls
We need to use ESP32-H2 as a gateway for zigbee connexion with other devices like bulb.