Skip to content

GECloud: Don't control charge rate percentage if we have a rate setting#4217

Merged
springfall2008 merged 1 commit into
mainfrom
fix/ge_cloud_percent_rate
Jul 9, 2026
Merged

GECloud: Don't control charge rate percentage if we have a rate setting#4217
springfall2008 merged 1 commit into
mainfrom
fix/ge_cloud_percent_rate

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 9, 2026 17:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the GivEnergy GE Cloud Direct integration to avoid configuring (or relying on) charge/discharge percentage rate controls when a direct power rate register is available, preventing the percentage register from clamping the direct power setting.

Changes:

  • Reset charge/discharge power percentage registers to 100% in enable_default_options() when corresponding direct power registers exist.
  • Update GECloud auto-configuration to only populate charge_rate_percent / discharge_rate_percent when direct power rate registers are absent.
  • Expand GECloud unit tests to cover the new precedence and reset behavior; bump Predbat version.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
apps/predbat/gecloud.py Implements precedence of direct power registers over percentage registers and resets percentage to 100% when both exist; adjusts auto-config detection and arg wiring accordingly.
apps/predbat/tests/test_ge_cloud.py Updates auto-config expectations and adds new tests validating percentage reset behavior and edge cases (alt register names, substring collision).
apps/predbat/predbat.py Bumps THIS_VERSION from v8.44.7 to v8.44.8.

@springfall2008 springfall2008 merged commit 598b685 into main Jul 9, 2026
3 checks passed
@springfall2008 springfall2008 deleted the fix/ge_cloud_percent_rate branch July 9, 2026 18:01
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