Skip to content

[bug] Scheduled EV target missing from MPC flex loads #2080

Backlog

Description

@bfrj83-commits

Summary

An enabled, plugged-in EV loadpoint had a recurring target of 100% by 08:00 (Europe/Stockholm), but the MPC diagnostic snapshot around 06:10 CET showed no flexible EV loads in the optimizer input. The loadpoint was consequently given 0 W with reason no_plan_budget.

This suggests the scheduled EV load may not be reaching the optimizer. The exact root cause is not yet established.

Environment

  • FTW Core: v0.167.0-beta.1
  • Source revision: 1015e6b2627e55bf08f11d5658b2af054231e258
  • Timezone: Europe/Stockholm
  • EV loadpoint: Easee
  • Charger driver: easee_cloud (configured)
  • Planning mode: planner_arbitrage

Incident

25 November 2026, morning (around 06:10 CET).

The loadpoint diagnostics showed:

  • Loadpoint enabled and vehicle plugged in.
  • Recurring target: 100% by 08:00.
  • commanded_w: 0, commanded_reason: no_plan_budget.
  • Control feedback: requested_w: 0, sent_w: 0, offered_a: 0, status waiting, reason no_plan_budget.
  • vehicle_request_active: true.

The MPC snapshot at the incident showed:

  • optimizer_input.flex_loads: []

The car's reported SoC was inferred and stale, so it should not be treated as a verified live SoC.

Expected behavior

When an enabled, plugged-in EV has an active charging target and deadline, the target should be represented in the optimizer input (or a clear reason should be surfaced if it is intentionally excluded). The planner should then allocate charging power as appropriate to meet the target, subject to site and device constraints.

Observed behavior

The EV was absent from optimizer_input.flex_loads, and the loadpoint received a zero-watt command with no_plan_budget, despite the active target.

Investigation questions

  1. Why was the EV target/schedule absent from optimizer_input.flex_loads?
  2. Is there a condition in planner_arbitrage or the EV goal-to-flex-load conversion that can silently omit an otherwise enabled and plugged-in loadpoint?
  3. Should Core surface a more specific diagnostic reason when an active EV target is not submitted to the optimizer?

Evidence / limitations

Evidence was read from the home's diagnostic API, including /api/loadpoints, /api/planner/prefs and /api/mpc/diagnose/at. No settings or device commands were changed.

The SoC value was marked inferred and was stale at the time, so the issue is about the missing optimizer flex load and zero allocation, not a claim that the car's exact starting SoC is known.

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