-
Notifications
You must be signed in to change notification settings - Fork 60
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
Publish HA discovery mqtt data before bms sample data #163
Comments
For how many cells did you configure the BMS? |
It is a 15 cell pack - 48v system. |
It does publish data for these topics:
If that helps. |
Thanks, I found a bug where the code wrongly computes the number of responses (the BMS sends voltages in tuples of 3) |
Great, thanks. Does it make sense to move the discovery mqtt data check before reading/publishing the samples? |
Yeah kind of. The discovery function currently needs samples voltages to publish the number of cells and skip the nan fields. |
Great, thanks.
…On Wed, Nov 22, 2023, 9:17 AM Fabian ***@***.***> wrote:
Yeah kind of. The discovery function currently needs samples voltages to
publish the number of cells and skip the nan fields.
I'll rewrite the code so discovery is sent out even if voltages fetch
failed.
—
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4AGYTPGENEU4RGYY4OVTYFYXT3AVCNFSM6AAAAAA7WPMNESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGE4DCNBXGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
fix dfd6e4a |
Thanks; will do.
…On Sun, Nov 26, 2023, 8:31 AM Fabian ***@***.***> wrote:
fix dfd6e4a
<dfd6e4a>
is in the next release
please re-open if needed
—
Reply to this email directly, view it on GitHub
<#163 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4AGZIPWYA3SO2NGSRCTTYGNVFXAVCNFSM6AAAAAA7WPMNESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWHAZDQOJXHE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Unfortunately my daly bms doesn't quite work with the current code:
'''
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/bmslib/models/daly.py", line 144, in _q
raise TimeoutError(
TimeoutError: timeout awaiting result 95, got 5/6 responses
08:02:48 INFO [sampling] connecting bms DalyBt(18:81:03:03:05:EF,lifepo4-solar-1)
08:02:58 INFO [daly] normal connect failed (<class 'TimeoutError'>), connecting with scanner
'''
And because of the timeout in the last sample I suspect it is never able to publish the discovery mqtt topics that HA needs for creating the sensors.
Can you please check to see if it is easy to rearrange things to publish the discovery data before the sample data?
The text was updated successfully, but these errors were encountered: