Skip to content

use dedicated heating values with most recent firmware version with 15A hardware - #459

Merged
mr-manuel merged 2 commits into
mr-manuel:masterfrom
phreaker0:heater-firmware-values
Jul 29, 2026
Merged

use dedicated heating values with most recent firmware version with 15A hardware#459
mr-manuel merged 2 commits into
mr-manuel:masterfrom
phreaker0:heater-firmware-values

Conversation

@phreaker0

Copy link
Copy Markdown
Contributor

The most recent and probably final firmware version v15.41 for the hardware version 15A implemented support for the dedicated heating start and stop values, so use them if available.

Comment thread dbus-serialbattery/bms/jkbms_pb.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the JKBMS PB driver’s settings parsing to recognize when dedicated heating start/stop temperature registers are supported on hardware version 15A with firmware >= 15.41, and to fall back to the legacy “Bat Charge Under Temperature” thresholds otherwise.

Changes:

  • Parse the BMS software version string into a comparable tuple (e.g., 15.41(15, 41)), with a safe fallback on parse failure.
  • Update the heating-threshold selection logic to enable dedicated heating values for 15A only when fw >= 15.41, and for newer hardware unconditionally.

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

@mr-manuel

Copy link
Copy Markdown
Owner

Thanks

@mr-manuel
mr-manuel merged commit 80bdf28 into mr-manuel:master Jul 29, 2026
3 checks passed
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