Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XBee as end device #87

Open
dbruggner opened this issue Mar 24, 2020 · 3 comments
Open

XBee as end device #87

dbruggner opened this issue Mar 24, 2020 · 3 comments

Comments

@dbruggner
Copy link

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.

@Adminiuga
Copy link
Collaborator

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.

@sybohy
Copy link

sybohy commented Apr 2, 2020

@Adminiuga can you provide a bit more context on what's missing? I can try to take a crack at it.

@Shulyaka
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants