Skip to content

Meter (Solis Hybrid): drop coarse pv and battery energy registers#30411

Merged
andig merged 1 commit into
masterfrom
fix/solis-coarse-energy-history
Jun 1, 2026
Merged

Meter (Solis Hybrid): drop coarse pv and battery energy registers#30411
andig merged 1 commit into
masterfrom
fix/solis-coarse-energy-history

Conversation

@andig
Copy link
Copy Markdown
Member

@andig andig commented Jun 1, 2026

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 with scale: 0.01 (10 Wh resolution).

  • drop the energy reading from the pv and battery sections of solis-hybrid-s and solis-hybrid, so the history integrates the smooth power values instead
  • grid energy is left unchanged (fine resolution)

Note: 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.

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.
@andig andig added the devices Specific device support label Jun 1, 2026
@andig andig requested a review from premultiply June 1, 2026 17:04
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@andig andig enabled auto-merge (squash) June 1, 2026 17:05
@andig andig merged commit b40f06d into master Jun 1, 2026
13 checks passed
@andig andig deleted the fix/solis-coarse-energy-history branch June 1, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devices Specific device support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

History: generation and battery discharge only in multiples of 4kW

1 participant