EV LFP Battery Coach: automatic 100% calibration for LFP EVs, with proper top balancing

The problem. LFP batteries (Tesla Model 3/Y RWD, BYD, MG4, Volvo EX30…) should be charged to 100% every week or two so the BMS can recalibrate and balance the cells. For daily use, a limit around 70–80% is gentler on the pack. Switching the limit by hand is easy to forget, and the obvious automation hides a trap: if it lowers the limit the instant the battery hits 100%, the car stops charging and the BMS never completes its slow top-balancing phase.

What it does. It keeps your daily limit (75% by default) and every 14 days, when the car is plugged in, it raises the limit to 100%. At 100% it leaves the limit alone until the car reports the charge as finished (after a minimum time), or a safety timeout, or the cable is unplugged. Then it restores your daily limit and notifies you.

Built to be safe. unavailable/unknown is never read as “0%” or “unplugged”; the running phase survives restarts and reloads; limit commands are serialized, retried with a back-off, and a Repairs issue appears if the car keeps refusing them.

Setup. 100% from the UI, no YAML. You pick the battery level, the charge limit (a number entity) and the charging status. Everything else is optional. Entities, buttons, services (start_calibration, cancel_calibration, mark_calibrated), events and a diagnostics download are included. English and Italian.

Status: alpha (0.1.0). Developed against a Tesla Model 3 using the Tesla integration and covered by an automated suite that simulates the vehicle. [First real cycle: …]. Other brands may report “charge finished” differently, so I’d love reports from BYD/MG/Volvo/Hyundai owners; there’s a compatibility issue template.

Install. HACS → custom repository → https://github.com/ugidj/ha-ev-lfp-coach (Integration).

Feedback and bug reports very welcome. :high_voltage:

I have BYD and there is no in vehicle settings limit where to charge. Can this integration some how set limit for BYD?