Meter (Solis Hybrid): drop coarse pv and battery energy registers#30411
Merged
Conversation
The "Total energy generation" (33029) and "Battery total discharge energy" (33165) registers have 1 kWh resolution. The 15min energy history derives each slot from the cumulative meter delta, so a 1 kWh step over a 15min slot quantizes to 4 kW. Dropping these readings lets the history integrate the smooth power values instead. Grid energy (33283, scale 0.01) keeps its fine resolution and is unchanged.
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.
fixes #30407
The history showed PV generation and battery discharge only in 4 kW steps, while the live power view was smooth. The 15min energy history derives each slot from the cumulative meter energy delta (
Collector.AddEnergy), falling back to integrating power only when a meter exposes no energy reading. The Solis "Total energy generation" (33029) and "Battery total discharge energy" (33165) registers have 1 kWh resolution, so a 1 kWh delta over a 15min slot quantizes to exactly 1 kWh / 0.25 h = 4 kW. Grid energy (33283) is unaffected because it is read withscale: 0.01(10 Wh resolution).energyreading from thepvandbatterysections ofsolis-hybrid-sandsolis-hybrid, so the history integrates the smooth power values insteadNote:
solis.yaml(string inverter) reads PV total energy from register 3008 without scaling and likely has the same 1 kWh resolution, but it is a different product line and no issue was reported against it, so it is left untouched here.