Repository navigation
chore(config): faster control loop defaults — 2 s / 2 s / 500 W - #293
Merged
Merged
Conversation
The 5 s default control_interval_s + 5 s min_dispatch_interval_s were inherited from the original Rust port and predate the 1 Hz site-meter cadences in production today. 2 s matches Ferroamp ehub MQTT (~1 Hz) without dispatching twice on the same telemetry sample, halves the perceived response lag, and is what the operator's live config has been running for weeks. slew_rate_w stays at 500 — at 2 s ticks that's ~250 W/s ramp, gentle enough that inverters tolerate it without protest. Drop control_interval to 1 s for a snappier site (see the example comment). This is a defaults-only change: any operator with an explicit control_interval_s / min_dispatch_interval_s in their config keeps exactly what they had. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
frahlg
added a commit
that referenced
this pull request
Dec 2, 2026
The setup guide wrote control_interval_s 5, slew_rate_w 500 and min_dispatch_interval_s 5. It copied the defaults when it was added in April (#66); the defaults moved to 2 s / 3000 W / 2 s in May (#293, #298) and the guide did not follow. Settings → Control showed the same old values as its fallbacks. The guide now sends 2 / 3000 / 2, and Settings → Control shows them. It cannot leave the fields out: with a house password the box stores the guide's settings as sent and fills no defaults, so a missing slew_rate_w would turn the ramp limit off. wizardOrDefaultSeed still knows a guide seed only by 5 / 500 / 5. An older Core saves 2 / 3000 / 2 for an untuned home, and that save must import after a rollback. Tests: a guard that the guide and the Control tab match applyDefaults, the seed check for the old and new values, and an older Core's save with default timings importing over live Settings. Co-authored-by: Claude Opus 5.5 <[email protected]>
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
The 5 s default
control_interval_s+ 5 smin_dispatch_interval_swere inherited from the Rust port and predate the ~1 Hz site-meter cadences in production today. Drop both to 2 s — what most live installs (homelab-rpi, dev) have been running for weeks.slew_rate_wstays at 500 → ~250 W/s ramp at 2 s ticks; gentle enough that inverters tolerate it.For a snappier site, an operator can drop
control_interval_sto 1 s (matches the Ferroamp ehub MQTT cadence). Documented in the example config.Scope
Defaults-only. Any operator with an explicit
control_interval_s/min_dispatch_interval_sin their config keeps exactly what they had.Test plan
go test ./...applyDefaultstest updated to assert 2 s🤖 Generated with Claude Code