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

JK BMS: fix SoC last update timestamp #439

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

schlimmchen
Copy link
Member

I noticed just hours ago that my inverter was disabled even though my battery was at 27%. The logs told me that the DPL had shut down the inverter because the battery SoC age was in the neighborhood of 4k seconds. So the voltage at the inverter must have been used as a fallback, and that reached the stop threshold. It then dawned on me that I made another dumb mistake:

For the MQTT integration, JkBms::DataPointContainer::updateFrom() was changed such that the data points timestamp reflects the last change of the data point value. That timestamp was used to set the SoC last update timestamp. However, that timestamp must reflect the last time the SoC was successfully received from the JK BMS so we could make sure the value was up to date.

This went unnoticed for the two days I was testing because the battery was always at a voltage level that kept the DPL going...

@peff74 @iukbox @indie89 FYI

for the MQTT integration, JkBms::DataPointContainer::updateFrom() was
changed such that the data points timestamp reflects the last change of
the data point value. that timestamp was used to set the SoC last update
timestamp. however, that timestampt must reflect the last time the SoC
was successfully received from the JK BMS so we could make sure the
value was up to date.
@helgeerbe helgeerbe merged commit b501d25 into hoylabs:development Sep 18, 2023
@schlimmchen schlimmchen deleted the jkbms-soc-age-fix branch September 22, 2023 14:10
Copy link

github-actions bot commented Apr 5, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants