Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose heating status/current implements #420 fixes #433 #436

Merged
merged 8 commits into from
Jan 27, 2024

Conversation

RFDarter
Copy link
Contributor

@RFDarter RFDarter commented Jan 26, 2024

implements #420
fixes #433

@@ -556,6 +558,13 @@ void JkBmsBle::decode_jk02_cell_info_(const std::vector<uint8_t> &data) {
// 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
// 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
// 0x00

// 224 1 0x01 Heating status 0x00: off, 0x01: on
this->publish_state_(this->heating_binary_sensor_, (bool) data[224 + offset]);
Copy link
Owner

Choose a reason for hiding this comment

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

At the moment we cannot be sure this byte position applies to JK02_32S frames too. All your devices are so called old style 24S devices?

Copy link
Contributor Author

@RFDarter RFDarter Jan 27, 2024

Choose a reason for hiding this comment

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

Yep, unfortunately i dont have a new style here to test.
But if it works it works and if not it will not brake anything just show the wrong status, same with the heating current.

Do you have any btsnoops of the new style bms?

Copy link
Owner

Choose a reason for hiding this comment

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

I've a BMS here using the new protocol version. It looks like old version. IMO just the firmware (+ protocol version) has changed. My model doesn't have an heater element but I will check the heating current and status. In best case it's 0.

@syssi syssi merged commit f828d7b into syssi:main Jan 27, 2024
6 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.

Heating switch not showing correct status
2 participants