Skip to content

fix(automations): correct the learning methods after the spec check - #306

Merged
Developer-Simon merged 20 commits into
prereleasefrom
fix/automation-learning-followup
Nov 30, 2026
Merged

Developer-Simon merged 20 commits into
prereleasefrom
fix/automation-learning-followup

Conversation

@Developer-Simon

@Developer-Simon Developer-Simon commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Squash-merge commit message

Close the gaps between the learning functions and section 15.10 of the spec.

- The season median of the weather factor comes from measured minutes, and a
  load that the PV covers counts as a measurement.
- A detected shade caps the best PV curve, so the reserve and the surplus
  values leave it out. The shade card keeps showing the unshaded curve.
- The base load drift expects the night load from the outdoor temperature.
- Day start and night rest ignore runs that a rule started.
- "Never triggers" suggests the value reached on three of the last 14 days,
  rounded by unit.
- The rule check also warns when two rules with different conditions can apply
  at the same time. A shared above and below bound is no overlap.
- Monitoring asks for the site location while pattern learning is on and a PV
  role is assigned.

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

Highlight translations

Highlights (de):
- Das Lernen rechnet genauer und bittet um den Standort, wenn er für PV fehlt

Tour

none

Summary

Follow-up to the automation learning after a comparison with the spec. The highlight is folded into #279.

Checks

  • The title is a Conventional Commits subject.
  • scripts/dev/check_tracked_secrets.sh is clean.
  • AI assistance disclosed per AI-DISCLAIMER.md: Claude Sonnet 5.5
  • Suites run locally: go test, npm test, dashboard smoke (the system run failed once in the storage setup copy check and passed on rerun)
  • Linked issue: none

🤖 Generated with Claude Code

Developer-Simon and others added 20 commits November 30, 2026 20:15
…asured minutes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ed on

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… days

The never fired suggestion used 0.75 times the largest value seen, which
proposed thresholds no single day came close to. It now takes the third
largest daily maximum (or the third smallest daily minimum for below) of
the last 14 calendar days, rounded to 50 W for watts and to two significant
digits otherwise. With fewer than three days it falls back to the overall
extreme as before.

The existing test that expected 0.75 times the maximum now expects the
third largest daily maximum (500 W) instead.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The earlier commit changed TestObservedNeverFiredWarnWithThresholdFix from 1350 to 500 because of the new rule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Shade evidence: the best curve ignores the shade cells of an earlier run.
- Regions: a shared bound is no overlap, above 500 and below 500 are apart.
- Location notice only while pattern learning is on.
- Stored shade cells are not written without a model after a reset.
- Tests for the season median, midnight windows and the cleared shade.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@Developer-Simon
Developer-Simon merged commit 0296218 into prerelease Nov 30, 2026
27 checks passed
@Developer-Simon
Developer-Simon deleted the fix/automation-learning-followup branch November 30, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant