zigpy-xbee
zigpy-xbee copied to clipboard
XBee as end device
Is it possible to use a XBee S2C as a ZigBee end device with this library? I.e. the XBee should join the network and it should be possible to send Home Automation profile commands to the ZigBee coordinator.
Not out of the box. The library itself does not process received requests. You would need to add a layer which responds and reacts to incoming requests.
@Adminiuga can you provide a bit more context on what's missing? I can try to take a crack at it.
@sybohy I guess no one tried it before.
At the very minimum, you will need to update the ControllerApplication.start_network function to join the network as a router or end device, update the AO
command value to enable bind requests pass-through, and possibly some more configuration.
To handle requests and send messages to the coordinator you will need to implement a custom zigpy.device.Device
class (or may be zigpy.quirks.CustomDevice
) for the coordinator device that would implement your application protocol and add it to the devices list (ControllerApplication.devices
).
However if your use case is simple, you wouldn't need this library at all, just configure XBee for the transparent mode (AP=0) and configure Cluster ID (CI), endpoints (SE, DE) and destination address (DH, DL).
Hope this answers the question.