I am working on an ESP32-H2 Zigbee project and need to enable attribute reporting for the default attributes within a Zigbee cluster, specifically the Fan Control cluster. I have successfully enabled reporting for optional attributes but am unsure how to correctly configure reporting for the default attributes included in the cluster.
Code: Select all
esp_zb_cluster_add_attr(thermostat_cluster,
ESP_ZB_ZCL_CLUSTER_ID_THERMOSTAT,
ESP_ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID,
ESP_ZB_ZCL_ATTR_TYPE_16BIT,
(ESP_ZB_ZCL_ATTR_ACCESS_REPORTING
| ESP_ZB_ZCL_ATTR_ACCESS_READ_WRITE),
&max_heat_setpoint_limit);
I also tried to modify the zb_zcl_thermostat.h file, added it to a new components folder, and updated CMakeLists.txt as shown below, but it was not successful:
Code: Select all
set(EXTRA_COMPONENT_DIRS
${CMAKE_CURRENT_SOURCE_DIR}/../../common/temp_sensor_driver
${CMAKE_CURRENT_SOURCE_DIR}/../../common/switch_driver
${CMAKE_SOURCE_DIR}/components
)