Skip to content

max ac out: filter non hybrid inverters - #3725

Merged
LKuemmel merged 2 commits into
openWB:masterfrom
LKuemmel:fix_max_ac_out
Jul 28, 2026
Merged

max ac out: filter non hybrid inverters#3725
LKuemmel merged 2 commits into
openWB:masterfrom
LKuemmel:fix_max_ac_out

Conversation

@LKuemmel

Copy link
Copy Markdown
Contributor

Bugfix for #3397

fixes #3446 (comment)

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

Bugfix to ensure the “max AC out” discharge limiting logic only accounts for hybrid inverters (where battery power actually flows through the inverter), addressing the behavior discussed in #3397 / discussion #3446.

Changes:

  • Skip non-hybrid inverters when calculating remaining inverter AC output headroom for battery discharge limiting.
  • Add a unit test intended to cover the non-hybrid inverter scenario.

Reviewed changes

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

File Description
packages/control/bat_all.py Adds a guard to exclude non-hybrid inverters from max AC out discharge limiting calculations.
packages/control/bat_all_test.py Adds a test case for the “no hybrid system” scenario.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +220 to +221
if len(data.data.counter_all_data.get_entry_of_element(inverter.num)["children"]) == 0:
continue
Comment thread packages/control/bat_all_test.py Outdated
Comment on lines +67 to +68
mock_entry_children = Mock(return_value={})
monkeypatch.setattr(data.data.counter_all_data, "get_entry_of_element", mock_entry_children)
@LKuemmel
LKuemmel merged commit 5e5865c into openWB:master Jul 28, 2026
1 check passed
@LKuemmel
LKuemmel deleted the fix_max_ac_out branch July 28, 2026 14:34
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