Skip to content

Fix freeze export at 100% SoC - #5469

Open
Ajayreddy18 wants to merge 1 commit into
springfall2008:mainfrom
Ajayreddy18:fix/5302-freeze-export-at-100-soc
Open

Ajayreddy18 wants to merge 1 commit into
springfall2008:mainfrom
Ajayreddy18:fix/5302-freeze-export-at-100-soc

Conversation

@Ajayreddy18

Copy link
Copy Markdown

Summary

  • Handle explicit freeze requests when the target SoC is 100%.
  • Add a regression test for freeze export at 100% SoC.

Testing

  • Inverter tests passed.
  • Execute tests passed.

Fixes #5302.

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.

🟡 Changes recommended

The Solis FB00 control path still excludes freeze requests at a 100% target.

1 open finding
What changed in this PR

Fixes freeze-export service handling when the target SoC is 100%.

Changes:

  • Allows explicit freeze requests into the export-freeze branch.
  • Adds a regression test for the 100% target.
File Description
apps/​predbat/​inverter.py Updates export-freeze branching.
apps/​predbat/​tests/​test_inverter.py Adds the regression case.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/predbat/inverter.py
service_data_stop = {"device_id": self.base.get_arg("device_id", index=self.id, default="")}
extra_data = {"discharge_start_time": self.base.get_arg("discharge_start_time", index=self.id, default="00:00:00"), "discharge_end_time": self.base.get_arg("discharge_end_time", index=self.id, default="00:00:00")}
if target_soc < 100:
if target_soc < 100 or freeze:

This branch has not been deployed

No deployments
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.

Freeze export at 100% SoC never calls discharge_freeze_service

2 participants