Hi,
I have a problem, I would like to implement a light dimmer endpoint witch I could bind via coordinator to bulb(or something else...). I do not known how to implement this, because to send a on/off zigbee request I need to know a adres of bulb.
Hi,
I have a problem, I would like to implement a light dimmer endpoint witch I could bind via coordinator to bulb(or something else...). I do not known how to implement this, because to send a on/off zigbee request I need to know a adres of bulb.
Hi,
Are you using the nRF Connect SDK or nRF5 SDK?
We already have light switch and light bulb examples in both SDKs, so I would suggest starting by looking at one of those. For nRF Connect SDK you can find the documentation here: Zigbee: Light Switch sample. If you are new to the SDK you should start with the Getting started guide to learn how to download and install required tools and the SDK, and how to build and program samples. If you instead are using the nRF5 SDK, you can find documentation for the example here: Zigbee Light Control example.
I do not known how to implement this, because to send a on/off zigbee request I need to know a adres of bulb.
In the existing examples, the light switch finds the light bulb by sending a match descriptor request looking for a device with the ON/OFF cluster, and getting the address from the resulting match descriptor response.
BUT I don't know how to receive this request
This is handled automatically by the Zigbee stack in our SDKs, so when you send a bind request to the device, the device should handle this internally and send a response back. However, I am not sure what you want to send the bind request for in this case. If you just want to get the address of the light bulb, then you should use a match descriptor request instead, as in the examples.
Best regards,
Marte
Hi, thanks for reply :)
I'm using nRF5 SDK for thread and Zigbee. I saw all of this examples but like you said, a light switch find a bulb. What in case if I have many bulbs? How to handle it. Generaly I want to make a device for home automation and I would like to bind two devices together from application via sending them this binding request. I have a Philips Hue dimmer and it reacts properly for this binding request and "pairs with specific bulb" and I want to apply this function into my solution.
Hi,
You can also use this if you have multiple bulbs. When sending a match descriptor request all devices that match the request will respond. The example light_switch_groups (located under <SDK_ROOT>/examples/zigbee/experimental/light_control/light_switch_groups) does this. You can read about using this example in Testing Zigbee Light Switch with ZCL Groups.
Best regards,
Marte