Hello,
I've a Zigbee network at home, the coordinator is a RaspBee II from deCONZ. I plan to develop my own end modules (in principle, this is just for fun) to do things I miss and are not available in the market. I've knowledge in programming, hardware and software so I feel comfortable reading specifications and all this stuff.
I recently purchased a Digi XBee Zigbee mesh kit that includes 3 devices and I started experimenting with XCTU, reading about micropython and understanding how the pieces work. At this point I think I have an understanding of what I really have.
I've been able to configure one device to join the network, It is visible as a "Range Extender 27" (I don't know where that name comes from and I don't know why it is not using the name I put using ATNI command...) The device operates as a router and it looks like it implements only endpoints E6 and E8 (proprietary?) and does not implement endpoint 01 so I've to implement it on my own.
This is the point where I search for sample code, to see if anyone has implemented anything with this hardware regarding home automation, but I can't find anything usable to base my software on it. I'm afraid I have to develop the entire thing from scratch and this means a lot of things to be done!
Do I really need to put the XBEE in AP1? Note that micropython REPL is AP4!
That setting is stated here:
https://www.digi.com/support/knowledge-base/zigbee-home-automation
I can set AO1 or AO3 and implement ZDO 1 my way, but are there any example about how to do it with code? a simple example for cluster 0 (Basic) would be great!
Can it be implemented internally in microphython? I only see xbee.transmit() and xbee.receive() available but there is no xbee.receive_callback() method available so do I need to write all this in a single loop? no way to operate based on events?
Regards
Ignacio