Raise default night injection level to 30/80 W#33
Merged
Conversation
Overnight standby consumption (router, fridge duty cycles, small chargers) is typically above 20 W — the previous baseload barely covered it. Bumping the default to 30/80 W keeps the battery contributing through the night without risking excessive drain. Users on the old default can restore it via LEVEL_NIGHT=20,50 or --level-night 20,50. https://claude.ai/code/session_01VatpoNcozpEat3sBD66gzi
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.
Summary
level_nightfrom20,50W to30,80W so the nighttime baseload better matches typical overnight standby consumption (router, fridge duty cycles, small chargers).LEVEL_NIGHT=20,50or--level-night 20,50.Changes
src/solmate_optimizer/logic.py— defaultlevel_night+ module docstring.src/solmate_optimizer/main.py— CLI default for--level-night.README.md— "Injection levels" table, "Configuration" table, example output.tests/test_logic.py—test_custom_night_levelnow uses(40, 100)so it still exercises a value distinct from the new default.CHANGELOG.md— entry under[Unreleased].Test plan
uv run pytest --cov=solmate_optimizer.logic --cov-report=term-missing— 60 passed, 100% coverage.https://claude.ai/code/session_01VatpoNcozpEat3sBD66gzi
Generated by Claude Code