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
Copy file name to clipboardExpand all lines: libraries/Zigbee/examples/Zigbee_Power_Outlet/README.md
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
@ -0,0 +1,68 @@
2
2
# Arduino-ESP32 Zigbee On/Off Power Outlet Example
3
3
4
-
This example shows how to configure Zigbee Coordinator and use it as a Home Automation (HA) on/off power outlet.
4
+
This example shows how to configure Zigbee Router device and use it as a Home Automation (HA) on/off power outlet.
5
5
6
6
# Supported Targets
7
7
@@ -12,38 +12,30 @@ Currently, this example supports the following targets.
12
12
13
13
## Hardware Required
14
14
15
-
* One development board (ESP32-H2 or ESP32-C6) acting as Zigbee end device (loaded with Zigbee_Power_Outlet example).
16
15
* A USB cable for power supply and programming.
17
-
* Choose another board (ESP32-H2 or ESP32-C6) as Zigbee coordinator and upload the Zigbee_On_Off_Switch example.
18
16
19
17
### Configure the Project
20
18
21
-
Set the Button Switch GPIO by changing the `GPIO_INPUT_IO_TOGGLE_SWITCH` definition. By default, it's the pin `9` (BOOT button on ESP32-C6 and ESP32-H2).
19
+
Set the Button GPIO by changing the `button` definition. By default, it's the pin `9` (BOOT button on ESP32-C6 and ESP32-H2).
22
20
23
21
#### Using Arduino IDE
24
22
25
23
To get more information about the Espressif boards see [Espressif Development Kits](https://www.espressif.com/en/products/devkits).
26
24
27
25
* Before Compile/Verify, select the correct board: `Tools -> Board`.
* Select Partition Scheme for Zigbee: `Tools -> Partition Scheme: Zigbee 4MB with spiffs`.
27
+
* Select Partition Scheme for Zigbee: `Tools -> Partition Scheme: Zigbee ZCZR 4MB with spiffs`.
30
28
* Select the COM port: `Tools -> Port: xxx where the `xxx` is the detected COM port.
31
29
* Optional: Set debug level to verbose to see all logs from Zigbee stack: `Tools -> Core Debug Level: Verbose`.
32
30
33
31
## Troubleshooting
34
32
35
-
If the End device flashed with the example `Zigbee_Power_Outlet` 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.
33
+
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 appication code.
36
34
You can do the following:
37
35
38
36
* In the Arduino IDE go to the Tools menu and set `Erase All Flash Before Sketch Upload` to `Enabled`.
39
37
* In the `Zigbee_Power_Outlet` example sketch call `Zigbee.factoryReset();`.
40
38
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
39
***Important: Make sure you are using a good quality USB cable and that you have a reliable power source***
48
40
49
41
***LED not blinking:** Check the wiring connection and the IO selection.
0 commit comments