Skip to content

docs: car_charging_from_battery must be Off to hold the battery for the car - #5897

Merged
springfall2008 merged 1 commit into
mainfrom
docs/car-charging-from-battery-direction
Nov 1, 2026
Merged

springfall2008 merged 1 commit into
mainfrom
docs/car-charging-from-battery-direction

Conversation

@springfall2008

Copy link
Copy Markdown
Owner

Two lines in the docs describe switch.predbat_car_charging_from_battery backwards:

  • what-does-predbat-do.md: Hold for car said it "requires … car_charging_from_battery to be set to On".
  • customisation.md: the switch list said it would "prevent the car from draining the home battery".

The switch defaults to Off (config.py), and Off is what holds the battery while the car charges: execute.py and plan.py only hold when not self.car_charging_from_battery. On lets the car drain the battery, which is how car-charging.md already describes it.

Docs only.

🤖 Generated with Claude Code

…he car

The Hold for car status and the customisation switch list described the
switch backwards. It defaults to Off, and Off is what holds the battery
while the car charges (execute.py and plan.py hold only when it is not
set); On lets the car drain the battery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the BOT_REVIEW Trigger an autotriage label Oct 31, 2026

@springfall2008 springfall2008 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Automated comment from the triage bot.

Review of head commit b70573bd — clean, no findings. Both corrected sentences now match the code, and the PR fixes the only two inverted descriptions in docs/.

What I checked:

  • Default: car_charging_from_battery defaults to False (apps/predbat/config.py:972), so "Off (the default)" in docs/customisation.md:328 is correct.
  • Hold polarity: every hold gate keys on not self.car_charging_from_battery — apps/predbat/plan.py:1283, plan.py:4299, plan.py:4405, plan.py:4721, apps/predbat/prediction.py:928, apps/predbat/execute.py:955 — so "requires ... to be Off" in docs/what-does-predbat-do.md:118 and "when Off, Predbat holds the battery" are correct, and On letting the car drain the battery is correct.
  • Completeness: I grepped all of docs/ for car_charging_from_battery; every other mention already describes the correct direction (docs/car-charging.md:45, :48, :222, :1045-1046, :1057; docs/predbat-plan-card.md:100; docs/apps-yaml.md:2206; docs/customisation.md:195), and these two lines were the only inverted ones. The detailed nuances (discharge rate 0 only with a timed pause or outside a charge window, per docs/car-charging.md:1047-1048) live on the Car Charging page this list entry links to, so the one-line summary level is right.

Docs only, no new page, so no mkdocs.yml or CONFIG_ITEMS change is needed; no test coverage obligation applies to a doc fix.

@springfall2008 springfall2008 removed the BOT_REVIEW Trigger an autotriage label Oct 31, 2026
@springfall2008
springfall2008 merged commit 447aedd into main Nov 1, 2026
3 checks passed
@springfall2008
springfall2008 deleted the docs/car-charging-from-battery-direction branch November 1, 2026 16:09
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.

1 participant