Hi Nicolas,
As you know, the JN-AN-1171 only supports Zigbee Light Link, so first of all, you have to be sure your Hue Bridge supports ZLL or ZB3.
If you add extra endpoints to a ZLL application all commands will go out using the ZLL Profile ID (assuming you associated it with the new endpoint) rather than the ZHA Profile ID which is necessary to control devices like bulbs.
Our ZDO implementation allows a callback to be registered that is called prior to transmitting any commands and allows the default Profile ID (ZLL) to be overridden if sending commands to bulbs the ZHA Profile ID needs to be used instead. All our ZLL devices already invoke this callback:
ZPS_vAplZdoRegisterProfileCallback(vOverideProfileId);
The code in the callback function in our ZLL devices is similar to the following:
PRIVATE void vOverideProfileId(uint16* pu16Profile, uint8 u8Ep)
{
if (u8Ep == CONTROLLER_COLORCONTROLLER_REMOTE_ENDPOINT)
{
*pu16Profile = 0x0104;
}
}
Regards,
Mario