Skip to content

Forecast-trust slider is locked whenever pv_forecast_safety_k exists in config.yaml #1017

Closed

Description

@frahlg

Owner report: the Plan card's "Follow the forecast" slider cannot be dragged. The note under it says why — "Forecast haircut is set in config.yaml — that value wins over this slider" — which is a config file acting as a user interface, against the project's UI-first rule (#1016 stated it for OCPP; this is the planner's version of the same defect).

Planner.EffectiveSafetyK prefers an explicit pv_forecast_safety_k over the trust mapping and YAMLCustomK tells the UI to disable the slider. Any site that ever tuned the haircut in YAML (the reporter's box has pv_forecast_safety_k: 1 — the same value as "balanced", so the lock buys nothing) loses the slider forever.

Fix: the field becomes a first-boot seed — mapped to the nearest trust step once when no preference is stored (k ≤ 0.25 → bold, < 1.5 → balanced, else cautious) — and the slider owns the live value afterwards, the same stored-wins contract forecast_trust got in #968.

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