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_Temp_Hum_Sensor_Sleepy/README.md
+8-12
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Arduino-ESP32 Zigbee Temperature Sensor Example
1
+
# Arduino-ESP32 Zigbee Temperature and Humidity Sensor Sleepy Device Example
2
2
3
-
This example shows how to configure the Zigbee end device and use it as a Home Automation (HA) temperature sensor.
3
+
This example demonstrates how to use the Zigbee library to create an end device temperature/humidity sensor and use it as a Home Automation (HA) extended temperature sensor.
4
4
5
5
# Supported Targets
6
6
@@ -11,23 +11,19 @@ Currently, this example supports the following targets.
11
11
12
12
## Temperature Sensor Functions
13
13
14
-
Note:
15
-
* This board means the board (e.g. ESP32-H2 / C6) loaded with `Zigbee_Temperature_Sensor` example.
16
-
* The remote board means the board (e.g. ESP32-H2 / C6) loaded with `Zigbee_Thermostat` example.
17
-
18
-
Functions:
19
-
* After this board first starts up, it would be configured locally to report the temperature on 1 degree change and no periodic reporting to the remote board.
20
-
* By clicking the button (BOOT) on this board, this board will immediately send a report of the current measured temperature to the remote board.
14
+
1. Initialize a Zigbee temperature and humidity sensor.
15
+
2. Measure temperature and humidity values.
16
+
3. Report the measured values to the Zigbee network.
17
+
4. Put the device to sleep to save power.
21
18
22
19
## Hardware Required
23
20
24
-
*One development board (ESP32-H2 or ESP32-C6) acting as Zigbee coordinator (loaded with `Zigbee_Thermostat` example)
21
+
* ESP32-H2 or ESP32-C6 development board
25
22
* A USB cable for power supply and programming
26
-
* Choose another board (ESP32-H2 or ESP32-C6) as Zigbee end device and upload the `Zigbee_Temperature_Sensor` example
27
23
28
24
### Configure the Project
29
25
30
-
In this example, the internal temperature sensor task is reading the chip temperature.
26
+
In this example, to demonstrate the funcionality the chip temperature is used and reported as temperature and humidity.
31
27
Set the Button GPIO by changing the `BUTTON_PIN` definition. By default, it's the pin `9` (BOOT button on ESP32-C6 and ESP32-H2).
_cluster_list = esp_zb_on_off_light_clusters_create(&light_cfg); // use esp_zb_zcl_cluster_list_create() instead of esp_zb_on_off_light_clusters_create()
0 commit comments