how zigbee ha profile device control?payload format for different device etc.

I am using xbee s2c and I need to control zigbee ha profile devices like bulb,read datas from sensors etc.what i needed is the format of control frame in which contain profile id,cluster id,
payload data.If there is any tuitorial or documentation available please share it.Thank you