Skip to content

Support ReceivedGpdf command - #11

Merged
puddly merged 3 commits into
devfrom
puddly/zgp
Oct 23, 2026
Merged

puddly merged 3 commits into
devfrom
puddly/zgp

Conversation

@puddly

@puddly puddly commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Receive and pass through Green Power frames to zigpy.

Unlike zigpy-deconz (which is mostly raw but strips headers), we don't process much with Ziggurat so it's a simple passthrough.


Requires zigpy/ziggurat#69.

Copilot AI balanced review requested due to automatic review settings October 23, 2026 00:07
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (2e209a1) to head (40930b8).
⚠️ Report is 1 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #11   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines         1185      1248   +63     
=========================================
+ Hits          1185      1248   +63     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The receive path matches the server protocol and zigpy interfaces, with focused tests and no identified blocking issues.

No open issues 🎉

What changed in this PR

Adds Green Power frame reception to the Ziggurat adapter, forwarding packets to zigpy for processing. This depends on the server support in zigpy/ziggurat#69.

Changes:

  • Defines and registers the ReceivedGpdf notification.
  • Parses received frames and supplies the MAC sequence number when no security frame counter is present.
  • Adds receive-path tests and requires zigpy 2.4.0 or newer.
File Description
zigpy_ziggurat/​zigbee/​wire.py Defines the notification ID and wire payload.
zigpy_ziggurat/​zigbee/​protocol.py Registers the notification and exposes its optional source address.
zigpy_ziggurat/​zigbee/​application.py Forwards Green Power packets and guards Zigbee-only device handling.
uv.lock Updates locked zigpy and aiosqlite dependencies.
tests/​test_application.py Covers Green Power reception and updates coordinator type handling.
pyproject.toml Requires zigpy 2.4.0 or newer.

Review effort: Balanced

@puddly
puddly merged commit 30e8610 into dev Oct 23, 2026
19 checks passed
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

Successfully merging this pull request may close these issues.

2 participants