Skip to content

Apply charge limit over BLE - #656

Closed
MikeBishop wants to merge 5 commits into
mainfrom
ble_apply_charge_limit
Closed

Apply charge limit over BLE#656
MikeBishop wants to merge 5 commits into
mainfrom
ble_apply_charge_limit

Conversation

@MikeBishop

Copy link
Copy Markdown
Collaborator

No description provided.

Only skip applyChargeLimit retry if the same limit is being applied
again. This allows changing from one limit to another (e.g., 80% → 90%)
and fixes the issue where restore (limit=-1) would retry indefinitely.
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Test Results

    8 files  ±0      8 suites  ±0   13m 16s ⏱️ -1s
  663 tests ±0    648 ✅ ±0  2 💤 ±0  13 ❌ ±0 
2 652 runs  ±0  2 592 ✅ ±0  8 💤 ±0  52 ❌ ±0 

For more details on these failures, see this check.

Results for commit 86e8be9. ± Comparison against base commit 6c41416.

♻️ This comment has been updated with latest results.

Track attempted_count and skipped_count separately in applyChargeLimit
instead of conflating them into success_count. Only log info message if
attempted_count > 0, avoiding misleading logs when all vehicles are
skipped (already applied or no saved limit).

Log format now shows: "X/Y attempted succeeded, Z skipped"
when commands are attempted, or silently succeeds when all vehicles
are already handled (skipped).

Mirrors the fix applied to car_api_charge().
@MikeBishop

Copy link
Copy Markdown
Collaborator Author

I think this accidentally replaced the stop asking variable rather than mirroring it. Please don't merge until I have time to look more closely (or you do).

@ngardiner

Copy link
Copy Markdown
Owner

Superseded by #657, which includes the charge limit changes (plus keeps the _stopAskingToStartCharging init that this branch dropped) and the BLE state fetching. Merged that instead.

@ngardiner ngardiner closed this Jul 16, 2026
@MikeBishop

Copy link
Copy Markdown
Collaborator Author

Sorry, I tried to untangle them and apparently failed. 😔

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