Skip to content

SolarEdge Hybrid: fix battery energy counter word order - #30704

Merged
premultiply merged 1 commit into
masterfrom
fix/solaredge-battery-energy-word-order
Jun 10, 2026
Merged

SolarEdge Hybrid: fix battery energy counter word order#30704
premultiply merged 1 commit into
masterfrom
fix/solaredge-battery-energy-word-order

Conversation

@andig

@andig andig commented Jun 10, 2026

Copy link
Copy Markdown
Member

fixes #30702

SolarEdge stores the battery registers in little-endian word order (LSW first), which is why power and soc are already read as float32s/float32nans. The lifetime energy counters added in #30608 were decoded as MSW-first uint64, turning e.g. 1453 Wh into 408.983.141.160.583 kWh as shown in the issue screenshot.

Adds the missing uint64s (LSW first) decode and uses it for both battery energy counters.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

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 added the devices Specific device support label Jun 10, 2026
@premultiply
premultiply merged commit 8278bd7 into master Jun 10, 2026
7 checks passed
@premultiply
premultiply deleted the fix/solaredge-battery-energy-word-order branch June 10, 2026 21:11
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.

SolarEdge Hybid WR Batterie Energie

2 participants