Repository navigation
5.130.0: the 50% overnight minimum holds when Flux cannot plan - #1
Merged
Merged
Conversation
1-Oct-2026: Octopus published October's Flux import prices but no export price after 00:00 BST (every region; the account is still on E-1R-FLUX-EXPORT-23-02-14-F). derive_bands refused, Flux deferred all night, and the manager's ordinary import bought to its household target (44%), returned to self consumption at 03:48 and ran the house on the battery: about 42% at 5am against the agreed 50%. - flux_strategy 2.10: cheap_window_minimum_pct() is the one owner of the rule (50% in 02:00-05:00, none on a booked free-hour day). _minimum_charge sizes power on the real time left (was at least 15 minutes, so 04:55 asked for a third of what was needed) and reports a shortfall. bands_problem() names the missing side and when coverage stops. - battery_manager 3.15: when Flux is not running the window, the manager charges to max(minimum, tomorrow, reserve) and holds to 05:00 with the house on the cheap grid. Never buys for the peak. - plugin: drives that hold (cutoff at the level, discharge 0), ends it at 05:00 whatever it reached, lets Flux take the window back once holding, and logs what 5am actually achieved to the event log and cheap_window_results.jsonl. 36 tests; eleven mutations, all caught. Simulator unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both kept: the planner reads _flux_planning_spans, and bands_problem() names what is missing from the carried spans when the bands still refuse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # README.md # SigenEnergyManager.indigoPlugin/Contents/Info.plist # SigenEnergyManager.indigoPlugin/Contents/Server Plugin/plugin.py # docs/changelog.md # docs/plugin-changelog.md
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.
Not deployed. This is for review before anything is installed or released.
What went wrong on 1 October
E-1R-FLUX-EXPORT-23-02-14-F, open-ended.derive_bandsrefused (correctly: it must not invent a price), so Flux deferred from 00:00 onwards. It was still deferring at 13:40, so there is no Flux peak sale today either.What changes
flux_strategy.cheap_window_minimum_pct()gives 50% in 02:00-05:00, or nothing on a day with a booked free hour. Flux and the manager both read it.cheap_window_results.jsonl.Checks
🤖 Generated with Claude Code