Skip to content

Conversation

@mgazza
Copy link
Collaborator

@mgazza mgazza commented Jun 5, 2025

Punting out the total battery size of the system

@mgazza mgazza force-pushed the record-battery-size branch from b57786d to bd4fd19 Compare June 5, 2025 08:43
adds a new dashboard_item for .soc_max_kw using pred.soc_max
so that total battery capacity in kWh is visible in the UI
uses same formatting as soc_kw
@mgazza mgazza force-pushed the record-battery-size branch from bd4fd19 to 8fb56a8 Compare June 5, 2025 11:29
@springfall2008 springfall2008 requested a review from Copilot June 6, 2025 00:25
Copy link
Contributor

Copilot AI left a comment

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 adds a new dashboard item to output the total system battery size in kWh.

  • Introduces a new dashboard item using self.dashboard_item for battery size.
  • Uses dp3 to process the value from self.soc_max for display.
Comments suppressed due to low confidence (1)

apps/predbat/plan.py:3187

  • [nitpick] The variable name 'soc_max' may be ambiguous given that it represents the total battery size. Consider renaming it to something more descriptive such as 'total_battery_size' to improve code clarity.
state=dp3(self.soc_max),

@springfall2008
Copy link
Owner

Any reason why this can't just be an attribute in soc_kw?

@mgazza
Copy link
Collaborator Author

mgazza commented Jun 6, 2025

Nope none.

@springfall2008
Copy link
Owner

Will re-do this with an attribute

@mgazza
Copy link
Collaborator Author

mgazza commented Jun 6, 2025

@springfall2008 you may want to look at the last commit.

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