-
Notifications
You must be signed in to change notification settings - Fork 41
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
Is there an zigpy-znp API #77
Comments
Its depends wot for continuations you like sending from your client. It gets some DIY CC-253X firmware that can sending status to / from GIPOs or UART communication to / from the coordinator. I think (without knowing) that is gets no "MQTT over Zigbee" protocol in Zigbee standard but can being implanted Commercial Building Automation profile in Zigbee 3. Large data streams (then around 56 kb) is not recommended then the underplaying network is limited to around 200 kb then its needed more bandwidth its better with BT mesh or WiFi. |
There's no autogenerated documentation but just about everything is completely documented in the source and the API is pretty stable at this point. zigpy-znp implements the complete Z-Stack Monitor and Test API and includes helper functions to make working with it much easier. Anything you can do with that, you can do with the For some examples, take a look at the
Joining an existing Zigbee as a router isn't something I have ever tried to do but it's definitely possible (I think even with unmodified coordinator firmware). You can also send inter-PAN data, but this would require modifying Z2M for it to work. |
Thanks guys for a very quick and helpful response. I have tried to use Raspi with Python -> Mosquitto -> zibbee2MQTT -> CC2531 but could not get the CC2531 to work as a router (no serial port visible to zibbee2MQTT ). I managed (accidentally!) to flash a CC2531 with co-ordinator firmware and it did "work" (serial port visible) and it was searching for devices but all my devices were already paired with my main zigbee co-ordinator. I've been reading Q&As on the TI site and setting PAN ids seems a possibility (zibbee2MQTT has a PAN configuration setting). I could then pair a particular device with this 2nd zigbee network but I've yet to find an off the shelf Zigbee Bridge to link the 2 networks. I would prefer a single network - let's hope I can solve the Koenkk router firmware problem. Meanwhile I will look at zigpy tools (a quick glance shows it's a bit technical for my currently level of understanding). I've seen some other python frameworks but they rely on Koenkk' firmware. Alan |
I believe the only serial port the router firmware exposes is just for debugging output with the debug build, you can't control the router itself aside from resetting it (what else would there be to control?). What are you trying to accomplish that would require sending data from a second computer with a CC2531 to another Zigbee network that you also control? If they're both on the same Zigbee network would it not be easier to send the data some other way (or if you're using Z2M, just publish to the appropriate MQTT topics)? |
Then only sending "normal sensor data" i think its easiest using one firmware that can sending text strings and you is getting MQTT messages in the other end with Z2M like the Russian have doing in there DIY multi sensor firmware for TI CC-253X. From the read.me in the firmware package:
Going with IT-CC253X i cant recommending then its one very obsolete hardware and its not supporting Zigbee 3. If going with one more modern hardware like Silabs EFR32MG you can designing one complete Zigbee device as you like and using BAC profile for your device and putting in all cluster (sensor types) you like and can being supported of all normal open Zigbee systems but its costing 100 $ for one license plus hardware and time but then you is making on "real Zigbee sensor". Its also possible making it as one Zigbee Green power device but then you must doing much more software work and need extra licenses for the encryption and so on. |
HaHa! My first attempt over a year ago used PTVO and the Counter function but I could not get it to work - I tried a simple push button to make the pulses. I could get the internal functions like temperature to work. I send a load of info to the developer and all he said was "It works for me". I still have the CC2530 (with the amplifier). I'll look at the UART/Text option. . The other option that keeps coming up is XBee but I guess that means 2 of them at £20 UK (c$20) each. I could flash 1 with End Device code and the other with Co-ordinator code with a different PAN. I have another Pi 0 in production that could be the receiver and then send MQTT messages over an Ethernet cable link to the Pi4. This guy has done this, https://github.com/andrewrapp/xbee-api though using node.js for his app but there are some python code provided. Many thanks |
@alan-rpi You might also be interested in the somewhat related discussions here: As well as be aware of zigpy-cli here: https://github.com/zigpy/zigpy-cli PS: PTVO now has CC2652R1, CC2652RB, CC2652P, CC1352P2 configurable router firmware https://ptvo.info/cc2652r1-cc2652rb-cc2652p-cc1352p2-configurable-router-firmware-748/ And the company ITead has started selling CC2652P based "SONOFF Zigbee 3.0 USB Dongle Plus" adapter for $9.90 |
Hi. Looks very useful. Is there a published API so that zigpy-znp can be used by a python program to communicate with a CC2531 running as a client/router to send data via zigbee to a coordinator -> zigbee2mqtt -> mqtt broker -> recipient. Is this feasible?
I would imagine APIs would be needed to 1) set the zigbee identifier, 2) send a topic and message, 3) receive topics and messages.
Thanks, Alan
The text was updated successfully, but these errors were encountered: