Skip to content

Forecast learning resets on every native update #1488

Closed

Description

@frahlg

Problem

The learned PV and load models (Energyplan and the legacy load twin) start over after every Core update on a native install, even when nothing about the site or its drivers changed.

forecastStaticRevision hashes each measurement driver's config.Driver, including its resolved Lua path. A config path such as drivers/sungrow.lua resolves into the release's own directory, for example /opt/ftw-native/releases/v0.138.1-beta.1/drivers/sungrow.lua. A new release means a new path, a new learning revision, and a reset.

Evidence (home box, 22 Sep–1 Oct 2026)

  • The learning revision (site.learning_revision in every forecast issue) changed 25 times in 9 days. The longest stable stretch was 53.7 h.
  • The ordinary update to v0.138.1-beta.1 on 28 Sep 20:50 reset learning; its sungrow.lua was byte-identical to v0.138.0-beta.1.
  • Energyplan's load model needs 2 independent days to leave cold start and 8 to be ready, so it never got there. Core then fell back to the legacy load twin for 81 % of forecast points.

Fix

Hash the driver entry as configured (the release-independent path), keep the script content digest, and carry an existing learning ID across the policy change so this fix does not cost one more reset.

Related: #1482.

Activity

  1. added a commit that references this issue on Oct 1, 2026
    caf0747
  2. added a commit that references this issue on Oct 1, 2026
    608aad5
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