Enable Reporting for Default Attributes in a Zigbee Cluster

securitatea
Posts: 1
Joined: Tue Jun 18, 2024 4:15 pm

Enable Reporting for Default Attributes in a Zigbee Cluster

Postby securitatea » Tue Jun 18, 2024 4:36 pm

Hello,

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);
Working fine for ESP_ZB_ZCL_ATTR_THERMOSTAT_MAX_HEAT_SETPOINT_LIMIT_ID attribute, but I want to change the acces on the system mode attribute ESP_ZB_ZCL_ATTR_THERMOSTAT_SYSTEM_MODE_ID.
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
)
Any help would be appreciated.

Who is online

Users browsing this forum: No registered users and 98 guests