Hi Park,
I am assuming that you want to change the occupancy sensor to smart plug.
You have to make some changes like this.
const uint8 u8MyEndpoint = SMARTPLUG_PLUG_ENDPOINT;
tsHA_SmartPlugDevice sPlug;
****************************************************************************/
teZCL_Status eApp_HA_RegisterEndpoint(tfpZCL_ZCLCallBackFunction fptr)
{
return eHA_RegisterSmartPlugEndPoint(SMARTPLUG_PLUG_ENDPOINT,
fptr,
&sPlug);
}
Also, you have to change some set up the endpoint.
Example

Hope it helps.
Regards,
Mario