libraries/Zigbee/examples/Zigbee_Power_Outlet/README.md
@ -0,0 +1,68 @@
This example shows how to configure Zigbee Router device and use it as a Home Automation (HA) on/off power outlet.
Currently, this example supports the following targets.
| Supported Targets | ESP32-C6 | ESP32-H2 |
|---|
Set the Button GPIO by changing the button definition. By default, it's the pin 9 (BOOT button on ESP32-C6 and ESP32-H2).
To get more information about the Espressif boards see Espressif Development Kits.
Tools -> Board.Tools -> Zigbee mode: Zigbee ZCZR (coordinator/router).Tools -> Partition Scheme: Zigbee ZCZR 4MB with spiffs.Tools -> Port: xxx where the xxx` is the detected COM port.Tools -> Core Debug Level: Verbose.If the device flashed with the example Zigbee_Power_Outlet is not connecting to the coordinator, erase the flash of the device before flashing the example to the board. It is recommended to do this if you re-flash the coordinator or do some big changes in the application code.
You can do the following:
Erase All Flash Before Sketch Upload to Enabled.Zigbee_Power_Outlet example sketch call Zigbee.factoryReset();.Important: Make sure you are using a good quality USB cable and that you have a reliable power source
If the error persists, you can ask for help at the official ESP32 forum or see Contribute.
To know how to contribute to this project, see How to contribute.
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!
Before creating a new issue, be sure to try Troubleshooting and check if the same issue was already created by someone else.