This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Zigbee cluster on/off callbacks not working with payload

Dear Nordic team,

I am currently building a Zigbee dimmable light and connect it to my home system (Philips bridge).

The bulb connects fine and receives the "dimming" commands perfectly.

The issue I am encountering is that my bulb receives the cluster ON event and goes in the defined callback functions, but the OFF events do not trigger any sort of callback !

These OFF events are indeed sent by the bridge, here a wireshark recording:

Here the ON event:

The difference I see here is that OFF events have a payload ! 

This payload is probably not handled properly as I configured the cluster like in the SDK example:

Fullscreen
1
2
3
4
5
6
/* On/Off cluster attributes additions data */
ZB_ZCL_DECLARE_ON_OFF_ATTRIB_LIST_EXT(on_off_attr_list,
&m_dev_ctx.on_off_attr.on_off,
&m_dev_ctx.on_off_attr.global_scene_ctrl,
&m_dev_ctx.on_off_attr.on_time,
&m_dev_ctx.on_off_attr.off_wait_time);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Could you please detail how to handle this on the bulb side ?

Configuration:

nRF5_SDK_for_Thread_and_Zigbee_v4.0.0_dc7186b