Skip to content

Commit bd56b00

Browse files
authored
Update ZigbeeWindSpeedSensor.cpp
Use ESP_ZB_HA_SIMPLE_SENSOR_DEVICE_ID device id
1 parent efa1c46 commit bd56b00

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libraries/Zigbee/src/ep/ZigbeeWindSpeedSensor.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
#include "ZigbeeWindSpeedSensor.h"
22
#if SOC_IEEE802154_SUPPORTED
33

4-
// CLUSTER_FN_ENTRY(wind_speed_measurement, ESP_ZB_ZCL_CLUSTER_ID_WIND_SPEED_MEASUREMENT),
5-
4+
// There is no device_id for wind speed sensor, we use a generic one
65
ZigbeeWindSpeedSensor::ZigbeeWindSpeedSensor(uint8_t endpoint) : ZigbeeEP(endpoint) {
7-
_device_id = ESP_ZB_HA_TEMPERATURE_SENSOR_DEVICE_ID;
6+
_device_id = ESP_ZB_HA_SIMPLE_SENSOR_DEVICE_ID;
87

98
esp_zb_windspeed_sensor_cfg_t windspeed_sensor_cfg = ESP_ZB_DEFAULT_TEMPERATURE_SENSOR_CONFIG();
109
_cluster_list = esp_zb_windspeed_sensor_clusters_create(&windspeed_sensor_cfg);
1110

1211
_ep_config = {
13-
.endpoint = _endpoint, .app_profile_id = ESP_ZB_AF_HA_PROFILE_ID, .app_device_id = ESP_ZB_HA_TEMPERATURE_SENSOR_DEVICE_ID, .app_device_version = 0
12+
.endpoint = _endpoint, .app_profile_id = ESP_ZB_AF_HA_PROFILE_ID, .app_device_id = ESP_ZB_HA_SIMPLE_SENSOR_DEVICE_ID, .app_device_version = 0
1413
};
1514
}
1615

0 commit comments

Comments
 (0)