Skip to content

scheduled charging: consider efficiency#3393

Merged
LKuemmel merged 2 commits into
openWB:masterfrom
LKuemmel:scheduled_charging
May 26, 2026
Merged

scheduled charging: consider efficiency#3393
LKuemmel merged 2 commits into
openWB:masterfrom
LKuemmel:scheduled_charging

Conversation

@LKuemmel
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
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

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

Comment on lines 495 to 497
else:
missing_amount = plan.limit.amount - used_amount
missing_amount = (plan.limit.amount - used_amount) / (efficiency / 100)
if bidi:
Comment thread packages/control/ev/charge_template.py Outdated
Comment on lines +492 to +496
missing_amount = ((plan.limit.soc_scheduled - soc) / 100) * battery_capacity / (efficiency / 100)
else:
raise ValueError("Um Zielladen mit SoC-Ziel nutzen zu können, bitte ein SoC-Modul konfigurieren.")
else:
missing_amount = plan.limit.amount - used_amount
missing_amount = (plan.limit.amount - used_amount) / (efficiency / 100)
Comment thread packages/control/ev/charge_template.py Outdated
@@ -419,39 +419,42 @@
soc_request_interval_offset: int,
bidi_state: BidiState) -> SelectedPlan:
Comment on lines 169 to 188
@@ -184,7 +184,7 @@ def test_calculate_duration(selected: str,
plan.limit.selected = selected
# execution
duration, missing_amount = ct._calculate_duration(
plan, 60, 45000, 200, phases, ChargingType.AC.value, EvTemplate(), bidi_charging_enabled)
plan, 60, 45000, 90, 200, phases, ChargingType.AC.value, EvTemplate(), bidi_charging_enabled)

@LKuemmel LKuemmel changed the title scheduled cahrging: consider efficiency scheduled charging: consider efficiency May 26, 2026
@LKuemmel LKuemmel added this to the 2.2.0-Patch.1 milestone May 26, 2026
@LKuemmel LKuemmel merged commit 3b2415b into openWB:master May 26, 2026
1 check passed
@LKuemmel LKuemmel deleted the scheduled_charging branch May 26, 2026 13:15
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