You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example shows how to configure the Zigbee end device and use it as a Home Automation (HA) window covering or port.
4
+
5
+
To see if the communication with your Zigbee network works, use the Serial monitor and watch for output there.
6
+
7
+
# Supported Targets
8
+
9
+
Currently, this example supports the following targets.
10
+
11
+
| Supported Targets | ESP32-C6 | ESP32-H2 |
12
+
| ----------------- | -------- | -------- |
13
+
14
+
## Hardware Required
15
+
16
+
* A USB cable for power supply and programming
17
+
* Board (ESP32-H2 or ESP32-C6) as Zigbee end device and upload the Zigbee_Window_Covering example
18
+
* Zigbee network / coordinator (Other board with switch examples or Zigbee2mqtt or ZigbeeHomeAssistant like application)
19
+
20
+
### Configure the Project
21
+
22
+
#### Using Arduino IDE
23
+
24
+
To get more information about the Espressif boards see [Espressif Development Kits](https://www.espressif.com/en/products/devkits).
25
+
26
+
* Before Compile/Verify, select the correct board: `Tools -> Board`.
27
+
* Select the End device Zigbee mode: `Tools -> Zigbee mode: Zigbee ED (end device)`
28
+
* Select Tools / USB CDC On Boot: "Enabled"
29
+
* Select Partition Scheme for Zigbee: `Tools -> Partition Scheme: Zigbee 4MB with spiffs`
30
+
* Select the COM port: `Tools -> Port: xxx` where the `xxx` is the detected COM port.
31
+
* Optional: Set debug level to verbose to see all logs from Zigbee stack: `Tools -> Core Debug Level: Verbose`.
32
+
33
+
## Troubleshooting
34
+
35
+
If the End device flashed with this example is not connecting to the coordinator, erase the flash of the End device before flashing the example to the board. It is recommended to do this if you re-flash the coordinator.
36
+
You can do the following:
37
+
38
+
* In the Arduino IDE go to the Tools menu and set `Erase All Flash Before Sketch Upload` to `Enabled`.
39
+
* Add to the sketch `Zigbee.factoryReset();` to reset the device and Zigbee stack.
40
+
41
+
By default, the coordinator network is closed after rebooting or flashing new firmware.
42
+
To open the network you have 2 options:
43
+
44
+
* Open network after reboot by setting `Zigbee.setRebootOpenNetwork(time);` before calling `Zigbee.begin();`.
45
+
* In application you can anytime call `Zigbee.openNetwork(time);` to open the network for devices to join.
46
+
47
+
***Important: Make sure you are using a good quality USB cable and that you have a reliable power source***
48
+
49
+
***LED not blinking:** Check the wiring connection and the IO selection.
50
+
***Programming Fail:** If the programming/flash procedure fails, try reducing the serial connection speed.
51
+
***COM port not detected:** Check the USB cable and the USB to Serial driver installation.
52
+
53
+
If the error persists, you can ask for help at the official [ESP32 forum](https://esp32.com) or see [Contribute](#contribute).
54
+
55
+
## Contribute
56
+
57
+
To know how to contribute to this project, see [How to contribute.](https://github.com/espressif/arduino-esp32/blob/master/CONTRIBUTING.rst)
58
+
59
+
If you have any **feedback** or **issue** to report on this example/library, please open an issue or fix it by creating a new PR. Contributions are more than welcome!
60
+
61
+
Before creating a new issue, be sure to try Troubleshooting and check if the same issue was already created by someone else.
62
+
63
+
## Resources
64
+
65
+
* Official ESP32 Forum: [Link](https://esp32.com)
66
+
* Arduino-ESP32 Official Repository: [espressif/arduino-esp32](https://github.com/espressif/arduino-esp32)
67
+
* ESP32-C6 Datasheet: [Link to datasheet](https://www.espressif.com/sites/default/files/documentation/esp32-c6_datasheet_en.pdf)
68
+
* ESP32-H2 Datasheet: [Link to datasheet](https://www.espressif.com/sites/default/files/documentation/esp32-h2_datasheet_en.pdf)
69
+
* Official ESP-IDF documentation: [ESP-IDF](https://idf.espressif.com)
0 commit comments