Skip to content

A self-consuming hybrid keeps charging inside the deadband above the plan's absorb cap #1929

Open

Description

@frahlg

Narrow follow-up from #822. #815 fixed the shape #822 reported: a battery charging against a closed charge direction now makes the deadband fall through (anyBlockedBatteryCharging, covered by TestDeadbandExitMayNotStrandBlockedCharge).

One case is left. When the planner sets an absorb cap for PV surplus, the deadband still watches only the grid error. A hybrid in its native self-use mode holds the meter near 0 W by charging the battery itself, so FTW sends nothing. The planner audit on 27 Oct confirmed it: with an absorb cap of 0.60 and SoC 0.80, the battery keeps charging inside the deadband (go/internal/control/dispatch.go, about lines 1566–1579 on master 83c2b24).

Expected: above the absorb cap, a battery that charges by more than a set amount while the slot models about 0 W gets an explicit 0 W order, as #815 does for a closed charge direction. Drivers whose uncommanded state is already idle see no change.

Test: self-use hybrid, absorb cap 0.60, SoC 0.80, meter −20 W, battery +1800 W → order 0 W within one tick, and no order flapping over 300 ticks of meter noise.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions