Skip to content

Heat pump pulses reverse the battery and mark slots under_delivered (v0.163.0-beta.1) #2031

Open

Description

@frahlg

Reported by @Romaost on Discord, 17 Nov 2026. Site: SolarEdge SE17K and Pixii Home 20 kWh, with the Pixii also as site meter (srcfl/device-drivers#175). Panasonic Aquarea 9 kW through heishamon 0.8.0. The owner's own Home Assistant automation runs the pump on price.

What happens

  • The pump runs in 2–3 kW pulses. The plan holds a charge slot (Pixii near soc_max 0.9). The fast loop covers each pulse from the battery and charges again when it ends. Example 15 Nov: +1.8 kW at 12:57, −2.7 kW at 12:59, as load rose from 2.7 to 5.5 kW.
  • The log repeats plan/exec sign mismatch — clamping to idle for this tick.
  • Many slots end under_delivered at 10–50 %.

What master does today

  • In a charge slot that only soaks PV surplus (PlannedGridW < 100 W), coverLoadChargeSlot lets the battery discharge to cover load the forecast missed. That is the reversal Roma sees. It saves an import.
  • In a deliberate grid-charge slot, applyPlanSignFloor forces the battery to idle and logs a warning on every tick (go/internal/control/dispatch.go).
  • The optimizer always gets an empty thermal_loads (go/internal/mpc/external_optimizer.go). The planner cannot know the pulses. The load forecast sees them as noise, and an automation that moves them by price makes them harder to learn.
  • The slot verdict compares planned and delivered battery energy only (SlotDelivery). Energy spent on load the forecast missed counts as under-delivery. So does a battery that tapers near soc_max (compare FoxESS full-battery refusal is treated as device_fault / not_following (v0.163.0-beta.1) #1993).

Questions

  1. In a PV-surplus charge slot, do we want the battery to cover the pulse? I think yes: it avoids an import.
  2. Should the sign-floor warning log once per slot, not every tick?
  3. Should the slot verdict say when measured load beat the forecast, so a missed forecast does not read as a battery fault?
  4. How many reversals line up with the 5–25 s gaps in Pixii readings? The Pixii is the site meter, and stale site-meter data stops dispatch.

Heat pump planning belongs to the heatplan work under ADR 0012 (shadow first) and #520. This issue does not ask for it.

Evidence wanted

The week support file from v0.164.0-beta.1, covering a day with pulses, and the times the HA automation switched the pump.

Activity

  1. added
    enhancement
    on Nov 17, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions