ESP32 zigbee

haythemjls
Posts: 27
Joined: Mon Apr 06, 2020 1:32 pm

ESP32 zigbee

Postby haythemjls » Fri Oct 20, 2023 12:58 pm

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?

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 zigbee

Postby lbernstone » Fri Oct 20, 2023 4:41 pm

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.

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 zigbee

Postby lbernstone » Fri Oct 20, 2023 6:56 pm

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.

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 zigbee

Postby lbernstone » Mon Oct 23, 2023 4:15 pm


haythemjls
Posts: 27
Joined: Mon Apr 06, 2020 1:32 pm

Re: ESP32 zigbee

Postby haythemjls » Tue Oct 24, 2023 3:48 pm

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.


lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 zigbee

Postby lbernstone » Thu Nov 02, 2023 4:31 pm


haythemjls
Posts: 27
Joined: Mon Apr 06, 2020 1:32 pm

Re: ESP32 zigbee

Postby haythemjls » Mon Nov 06, 2023 2:59 pm

I haven't found any examples that show you how to use zigbee between the ESP32-H2 module and other devices, pls any help.

lbernstone
Posts: 831
Joined: Mon Jul 22, 2019 3:20 pm

Re: ESP32 zigbee

Postby lbernstone » Mon Nov 06, 2023 4:27 pm

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).

haythemjls
Posts: 27
Joined: Mon Apr 06, 2020 1:32 pm

Re: ESP32 zigbee

Postby haythemjls » Tue Nov 07, 2023 8:40 am

We need to use ESP32-H2 as a gateway for zigbee connexion with other devices like bulb.

Who is online

Users browsing this forum: Google [Bot] and 52 guests