Skip to content

Solis-S Series: Fix bat_power direction - #3583

Merged
LKuemmel merged 2 commits into
openWB:masterfrom
ndrsnhs:solis-s-bat_power-fix
Jun 23, 2026
Merged

LKuemmel merged 2 commits into
openWB:masterfrom
ndrsnhs:solis-s-bat_power-fix

Conversation

@ndrsnhs

@ndrsnhs ndrsnhs commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Ticket #66005578
Register der Speicherleistung liefert nur den Betrag. Vorzeichen steht in Reg 33135.

Copilot AI 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.

Pull request overview

Fixes the sign/direction of Solis S-series battery power reporting by deriving the sign from Modbus register 33135, since the battery power register provides only the magnitude.

Changes:

  • Adjust battery current scaling to be unsigned (* 0.1) and apply sign based on direction register 33135.
  • Apply the same direction-based sign correction to battery power (33149) to align charging/discharging sign semantics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LKuemmel
LKuemmel merged commit d72d385 into openWB:master Jun 23, 2026
1 check passed
ndrsnhs added a commit to ndrsnhs/core that referenced this pull request Aug 24, 2026
* read power direction

* remove whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants