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

Door lock attributes sending

Hello Nordic!

I'm starting to develop my own Zigbee device with the nrf52840DK and I need to send some attributes to my coordinator, initially the door lock status is enough. I'm not using any other nrf board as coordinator, instead I'm using a CC2531 with Zigbee2MQTT firmware flashed in it. I've already configured my board as a supported device for Zigbee2MQTT and receiving at least the Zigbee linkquality.

The board seems to set the attribute (DoorLock state) correctly but the sending process to my cordinator does not work. I have also tried other examples as the zigbee_light_switch_groups and send the on_off request but when I tried to emulate the sending process in my door lock example it doesn't work.

I use the built-in buttons of the board to set the lock/unlock attribute. A button handler reads the pressed button (works properly) which calls a sending function using: zb_buf_get_out_delayed_ext(send_doorlock_status, ZB_ZCL_ATTR_DOOR_LOCK_LOCK_STATE_UNLOCKED, 0); Then, in the send_doorlock_status function I use ZB_ZCL_DOOR_LOCK_SEND_LOCK_DOOR_REQ or ZB_ZCL_DOOR_LOCK_SEND_UNLOCK_DOOR_REQ. I know there is another funcion to send responses, but I think that's not what I need.

Anyway, if it's possible, I would like to see some example of this process implemented. I've tried the Zigbee_Door_Lock_Nus and worked as expected, but the example doesn't have a sending status function to the coordinator.

Thanks to all.

Parents Reply Children
No Data
Related