From 4c5d3a6a5478c2fdb63cfbef3c54d82ab8818d7b Mon Sep 17 00:00:00 2001 From: Erik <758402+erikarenhill@users.noreply.github.com> Date: Sat, 14 Nov 2026 11:08:29 +0100 Subject: [PATCH] fix(loadpoint): a binding fuse no longer stops a battery boost The boost check stopped (or refused) a boost whenever the fuse or import limit was binding, which is exactly when the battery's discharge helps. The car's limit comes from the measured meter either way. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0124SQZZwXFRjnTEvh4SNrjp Signed-off-by: Erik <758402+erikarenhill@users.noreply.github.com> --- .changeset/boost-survives-binding-fuse.md | 9 +++++++++ go/cmd/ftw/main.go | 10 +++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 .changeset/boost-survives-binding-fuse.md diff --git a/.changeset/boost-survives-binding-fuse.md b/.changeset/boost-survives-binding-fuse.md new file mode 100644 index 000000000..f3d7af503 --- /dev/null +++ b/.changeset/boost-survives-binding-fuse.md @@ -0,0 +1,9 @@ +--- +"ftw": patch +--- + +A battery boost keeps running while the main fuse or the hourly import limit +holds the car back. FTW used to refuse or stop a boost exactly then, with +"fuse protection stopped it", although that is when the home battery helps +most. The car's limit still comes from the measured site meter, so the fuse +is protected as before. diff --git a/go/cmd/ftw/main.go b/go/cmd/ftw/main.go index e2ffdb0ce..aef6324fb 100644 --- a/go/cmd/ftw/main.go +++ b/go/cmd/ftw/main.go @@ -2074,7 +2074,6 @@ func main() { lpController.SetBatteryBoostSafety(func(id string, lease loadpoint.BatteryBoostLease) loadpoint.BatteryBoostStopReason { ctrlMu.Lock() mode := ctrl.Mode - fuseBlocked, importBlocked := ctrl.FuseSaturated, ctrl.FuseSaturatedByImport _, batteryHeld := ctrl.GetBatteryManualHold(time.Now()) siteMeter := ctrl.SiteMeterDriver ctrlMu.Unlock() @@ -2084,12 +2083,9 @@ func main() { if batteryHeld { return loadpoint.BatteryBoostStoppedBatteryHold } - if fuseBlocked && importBlocked { - return loadpoint.BatteryBoostStoppedImportLimit - } - if fuseBlocked { - return loadpoint.BatteryBoostStoppedFuseSafety - } + // A binding fuse or import limit is no reason to stop: the car's + // limit comes from the measured meter either way, and the battery's + // discharge is what makes room under it. cfgMu.RLock() watchdog := time.Duration(cfg.Site.WatchdogTimeoutS) * time.Second staticFloor := make(map[string]float64, len(cfg.Batteries))