I am trying to send a OnOff output cluster information to Co-ordinator when a button is pressed in the nrf52840 DK. The problem is the during the initial registration, the OnOff command is correctly sent, but after the button is pressed, I am unable to find the correct method to send the readresponse
Here is the complete program
1. When the image is flashed in DK, it properly registers to the Zigbee2MQTT and send the correct response - please see the the Part 1 in the snapshot below. The Cluster is 'genOnOff, type 'readResponse' and json data {'OnOff':0}
2. After button is clicked - DK BTN3 in this case, the type changes to 'commandOn' with json data being empty - please see the Part 2 in the snapshot below. It is obviously due to the macro ZB_ZCL_ON_OFF_SEND_REQ. But I would need the cluster and the payload sent just like # 1. Which macro should I use to retain the type 'readResponse' for cluster 'genOnOff' and fill in the json data? This is for the OnOff Output ZCL