Repository navigation
feat(autolearn): check feedback, competition, base load and the battery - #292
Merged
Developer-Simon merged 37 commits intoNov 22, 2026
Merged
Conversation
…oise Fix gets Rules, one RuleOps per rule, so a change over several rules is applied in the draft as a whole or not at all. QuarterNoise estimates the reading noise of a quarter hour series. Input gets the learned values by key, wired through Engine.SetLearned. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A rule that switches a load on above X and off below Xaus on the export turns itself off again when X - P_Anlauf - noise <= Xaus. The feedback check runs as a light reliability detector, uses the learned operating power and the start peak, and proposes new thresholds as one change over both rules. Observed export steps after switch-ons raise the confidence. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
When the unstable feedback finding of a device names the two rules of a flapping pair, the flapping finding carries the fact cause=feedback. The min_runtime fix stays as it is. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Rules that switch on from the same balance value and fire in one quarter hour, with the grid import above the smallest of their loads in the two quarters after, form a competition. The detector runs daily in the reliability group and proposes a staircase of thresholds, one step per load. Loads with a fixed cycle energy come first, then the ones started by hand most often, then the higher operating power. Steps the surplus reaches on fewer than 3 of the last 14 days are marked dormant. The fix changes all competing rules at once and offers an open rule fix on the first rule. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A PV or grid export threshold that the clear-sky curve reaches later in the year is now reported as an info finding with the first calendar week that reaches it. A threshold the curve never reaches stays a warning with the threshold fix. Without a safe roof model the seasonal maximum is used as before. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Night load is the 10th percentile between night rest and day start. A sustained rise above the reference is a baseload finding, with the device that accounts for at least half of the rise when one is measured. A fall is no finding. The learned site/base_w is the median of the last 14 nights of today's day type. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The night_off template switches a switch off from the learned night rest to the learned day start, each bound with an hour of slack. Without both learned values it uses the fixed window from 23:00 to 06:00. A baseload finding opens it with its device. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ore morning The battery detector reads the charge per quarter. A battery full before solar noon on most days is a finding, and so is one empty before sunrise when the same weeks of the year before were not empty on most days. The empty finding offers a night off for the devices that take over half of the missing night energy, switchable ones only. Without a record of the year before no empty finding is made. The learned values site/battery_full_at and site/night_wh come from the days of today's day type. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The monitoring tab lists the learned site values base_w, battery_full_at and night_wh next to the existing site keys, with their icons and labels. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The season week record gets an optional empty_share, the share of days in which the battery fell to the empty threshold before sunrise. The closer computes it with the same scan as the battery detector, judged with the 14 days before the week, and only when the rule document has a site. The engine gives the battery detector the median share of the same weeks in the prior years as Input.PriorEmptyShare, so the empty finding can be made in production. Season files without the field still load. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The demo seeds a washing machine next to the heat pump on the same PV threshold, a feedback pair on the washing machine, a daily competition of both rules and a house battery that is full before noon, so the energy checks produce their findings from the real detectors. 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>
…ll battery in Monitoring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…demo Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hresholds unreachable in winter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gestions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tory Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The monitoring collects the visible suggestions of the band and turns each one into a notice whose step opens the suggestion on the automations page. Monitoring stays quiet while the pattern learning is off, as the endpoint does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A suggestion notice opens the suggestion on the automations page. The band opens the requested suggestion, widening its list when the suggestion is beyond the first rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uggestion notices Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Exemption granted by Developer-Simon with 👍. No tour is required for these highlights:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Squash-merge commit message
Highlight translations
Tour
noneSummary
Energy findings for the rule check and learning: feedback, competition, seasonal rest, base load and battery, plus the seasonal data switch and suggestions in Monitoring.
Checks
scripts/dev/check_tracked_secrets.shis clean.