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
[WIP] Add ZGP (continue of PR #519) #656
Conversation
FYI, for reference to new devs; this replaces pull request #519 for "Zigbee Green Power" (ZGP) but that still has relevant discussions. Testers can see instructions on "testing new releases" here -> https://github.com/zigpy/zigpy/blob/dev/CONTRIBUTING.md It is the "dev" branch here that needs regression testing and reviews before merger -> https://github.com/jeedom/zigpy PS: Zigbee Green Power (a.k.a. Zigbee GreenPower) supporting devices are discussed in #341 which contains a list of ZGP devices. |
@Hedda thank I will look at it Can someone can test with this code if all it's ok ? No side effect. If it I think we can merge this first step (after I fix coveralls). |
Hi! I'm using XBee as a coordinator and it does not have a ZGP cluster. However I have a Philips Hue bulb that does have it. |
I do not have XBee hardware myself but wonder which exact XBee hardware and Zigbee firmware you have/use with zigpy? Does even the very latest XBee Zigbee stack still not have Zigbee Green Power support at all? Semi-new Zigbee PRO should support the older Green Power Specification v1.0 while Zigbee 3.0 specification supports ZGP v2.0 Have not checked but I thought that there was a Zigbee 3.0 stack for XBee? I could not find any changelogs online specifically for Zigbee however it sounds as release notes should be available in XCTU? https://www.digi.com/support/knowledge-base/xbee-firmware-revision-history-and-identification https://www.digi.com/products/embedded-systems/digi-xbee/digi-xbee-tools/xctu |
No, they don't explicitly support it. I hope that unsupported messages will be passed through to zigpy but couldn't get one yet. The question is whether I could get it working in theory. Currently I can't even get what to start with. I think I need to configure the bulb to be proxy, I think my next step would be to get a zigbee sniffer and monitor how the hue bridge itself does that. |
@Shulyaka are you trying it on XBee 3 or on S2C? AFAIK under the hood XBees are running on the silabs chip and application, so question is whether they've compiled the app with ZGP support + whether they allow passing of the ZGP messages from silabs to XBee protocol handlers. I can send you one of pre-flashed EBytes modules, so we don't have to support XBee coordinators anymore 😄 I think it is just you and Tube, but Tube already has switched to the dark side and building a silabs coordinator 🤣 |
Tube is needing one good receipt for cooking one EFR32 router firmware with ZGP proxy very soon for all new Silabs modules !!! |
I'm using XBee3. No, I haven't tried changing the endpoint, thanks for the hint) |
Telegesis ETRX3 Series also ships Silicon Labs AT command interface R3xx firmware and com.zsmartsystems.zigbee library (used by OpenHAB amonst others) supports TG ETRXn AT commands protocol over serial interface ("currently implemented against R309C"): https://github.com/zsmartsystems/com.zsmartsystems.zigbee/blob/master/README.md https://www.silabs.com/documents/public/reference-manuals/TG-ETRXn-Commands.pdf
@Shulyaka Are you following the discussions in #557 (as well of that in Koenkk/zigbee-herdsman#303) about backup and restore? Maybe talk with puddly/castorw about https://github.com/zigpy/open-coordinator-backup/ tools for failover of Home Assistant? |
Is PR zigpy/zha-device-handlers#1048 for zha-device-handlers/zha-quirks in any way related to this [WIP] ZGP PR or zigpy? |
Nop its only for ZHA shall loading the quirk and the ZGP proxy is working in the background if the router is having it. You dont need / can not configuring the ZGP cluster is one "repeater" for the ZGP framed and is working autonomous in the router device. |
Is this project dead? |
@eriknn I've been running this with custom_deps since June without issues, I've been using it with this custom device handler: |
A ton of work is being done in the background to make a proper rewrite of this PR possible but with the few core contributors juggling various other improvements and this being a side project for all of us, it may take some time:
|
@puddly fair point and I'm very happy to hear that. |
Hey, |
Hi @Munken - how did you add this device to HA via ZHA? And is it in fact currently working? Thank you in advance 🙏 |
@TPMunster none of the changes has been upstreamed yet since I was waiting on approval of the zigpy changes first. The branches are here: Word of caution, I've since moved to Zigbee2MQTT so all of the above are stale forks that will not be maintained. |
@Hedda did you ever get the ZGP switches working via ZHA? ✌️ |
Thank you @Munken , I will give it a go. Even though I'm pretty newb in all this custom stuff ✌️ |
@TPMunster my impression is that only I and @zoic21 got this up and running. Also note that this implementation only performs direct communication between the ZGP button and the root router. My suggestion would be to use Z2M for ZGP until ZGP is fully supported by zigpy. |
@zoic21 (and @TPMunster) Any updates on getting this rebased and trying to get it ready for re-review and merger again? I understand that Jeedom have now used their fork https://github.com/jeedom/zigpy with this ZGP feature enabled in their official plugin #725 for a relativly long time now so would think it should also be in their interest to get this merged into upstream zigpy? |
Hello, I already rebase it 2 times and merge nerver comming... I understand my code is not good enough to be integrated into zigpy. For information we don't use a fork for jeedom, I juste patch bellow after installation :
And
To redirect all zgp frame to listner that handle frame :
It's not clean code but it's working. |
Great to see the progress |
@puddly : Any news on the progress of the above and/or the implementation of ZGP? It seems that the last activity on all PR dates back quite some time (i.e. summer/fall 2021). Would be interesting to hear if ZGP will be available in ZHA in the foreseeable future at all. I appreciate that contributors work in their spare time on the project and that not all feature requests can be implemented at once. Even more it would be helpful to understand where the current focus of development lies. |
Not sure if any of the other recently merged pull requests directly or indirectly will also help make a rewrite of this PR possible(?), but know that, after update to ZCL v7 specification, the recent focus has been on the New radio API (and it is not related to ZGP). PS: One thing that could potentially help increase interest in this could be to donate Zigbee Green Power devices to developers like puddly and Adminiuga as that might pique their interest a little more if they actually owned certified ZGP devices themselves. |
Well, if this is still an important option and if any of you devs is interested in this, I would donate an EnOcean PTM 215Z device. Just tell me your shipping address and I will order one for you. I would fully donate this device if it helps to make it work in Home Assistant's ZHA integration in the future. |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
What is the status of this? If I understand correctly something is wrong with the way this code is written, but I don't see any commend explaining what. If this works and somebody can review and explain what need to be fixed I guess I can give some effort to do it. |
@majkrzak Suggest that you maybe post that question for discussion here? -> #341 (see puddly posted there not so long ago) Alternatively, perhaps consider resubmitting cleanup of patch as a new pull request to start a new review? -> #656 (comment) |
This is a rework of zoic21's zigpy#656
FYI, based on PRs #1213 and zigpy/zha-device-handlers#2414 it looks like @nworbneb is now working on ZGP support for zigpy. |
No description provided.