ZB_ZCL_DECLARE_BASIC_ATTRIB_LIST(basic_attr_list, &g_attr_zcl_version, &g_attr_power_source);
ZB_ZCL_DECLARE_IDENTIFY_ATTRIB_LIST(identify_attr_list, &g_attr_identify_time);
ZB_ZCL_DECLARE_GROUPS_ATTRIB_LIST(groups_attr_list, &g_attr_name_support);
&g_attr_scenes_current_scene, &g_attr_scenes_current_group,
&g_attr_scenes_scene_valid, &g_attr_scenes_name_support);
zb_uint8_t g_attr_current_position_lift_percentage =
zb_uint8_t g_attr_current_position_tilt_percentage =
ZB_ZCL_DECLARE_WINDOW_COVERING_CLUSTER_ATTRIB_LIST(window_covering_attr_list,
&g_attr_window_covering_type,
&g_attr_config_status,
&g_attr_current_position_lift_percentage,
&g_attr_current_position_tilt_percentage,
&g_attr_installed_open_limit_lift,
&g_attr_installed_closed_limit_lift,
&g_attr_installed_open_limit_tilt,
&g_attr_installed_closed_limit_tilt,
&g_attr_mode);
basic_attr_list,
identify_attr_list,
groups_attr_list,
scenes_attr_list,
window_covering_attr_list);
window_covering_ep, HA_WINDOW_COVERING_ENDPOINT, window_covering_clusters);
Registering device list
switch (cmd_info->cluster_id)
{
{
{
default:
TRACE_MSG(TRACE_ZCL2,
"Skip general command %hd", (FMT__H, cmd_info->
cmd_id));
break;
}
}
else
{
{
TRACE_MSG(TRACE_ZCL3, "Got cluster command 0x%04x", (FMT__D, cmd_info->cluster_id));
break;
default:
TRACE_MSG(TRACE_ZCL2,
"Cluster command %hd, skip it", (FMT__H, cmd_info->
cmd_id));
break;
}
}
break;
default:
TRACE_MSG(TRACE_ZCL1,
"SRV role, cluster 0x%d is not supported", (FMT__D, cmd_info->cluster_id));
break;
}