Replies: 16 comments 56 replies
-
Hi @patman15 , Cheers |
Beta Was this translation helpful? Give feedback.
-
hi, |
Beta Was this translation helpful? Give feedback.
-
there is a WEEE registration number printed on the battery ... is that wahr
we need?
…On Sun, Aug 20, 2023, 11:13 Patrick ***@***.***> wrote:
hi, I am currently trying to get my offgridtec smart pro Akku from my van
integrated to my HA instance in the van ... is your work already in the
latest batmon build ?
No it is not yet integrated. I couldn't (yet) figure out how the
scrambling is related to the serial number. Thus, I cannot provide a
general solution that would easily work for everyone.
would love to use it => why battery type do I have to choose if it is
already in latest build ?
You need to have a battery with a serial number Bxxxxx then we probably
can make it work by trial and error (16 possibilities).
cheerz from vienna
Same here!
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVT7ACAK3YXBYXTB2RTXWHILVANCNFSM6AAAAAAXDA76AU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
ok ... once I have fixed the BMS of the battery I can fiddle around with
intercepting the traffic ... but it looks like the BMS somehow died in the
course of my yesterday's full charging cycle ... in contact with offgridtec
already ... looks like I have to file a warranty case and return the
battery ... which sucks as I need it in my van ...
…On Tue, Aug 22, 2023, 17:26 Patrick ***@***.***> wrote:
Yep, that was the number I was looking for A16380. Unfortunately, this is
an "A" type battery and not the "B" I have and I know that the "A" has
different scrambling and different functionality. We would need to
intercept communication and figure out how that works. That is a longer
project ...
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVXMXIMJD2AB5PX4AJ3XWTFSXANCNFSM6AAAAAAXDA76AU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
i was told that I can try to completly discharge it which causes the BMS to reset / reboot .... cannot do this right now because i just did such a cycle which caused the problem ;-) looks like it is somehow broken ... will buy another 200Ah battery ... and once this arrives will send back the broken one ... and when it is fixed use it as second (2x200Ah) |
Beta Was this translation helpful? Give feedback.
-
have android, Linux and windows ... no iOS
…On Mon, Aug 28, 2023, 14:03 Fabian ***@***.***> wrote:
you don't need to buy hardware. which OS do you use? on iOS , macos you
can use PaketLogger.
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVWZREAMALYXOWZYUJTXXSCIPANCNFSM6AAAAAAXDA76AU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
ok ... and for what shall i look for once the sniffer is active ?
…On Mon, Aug 28, 2023, 15:07 Fabian ***@***.***> wrote:
for android see this
https://stackoverflow.com/questions/23877761/sniffing-logging-your-own-android-bluetooth-traffic
if you have a app on linux or windows that connects to the bms you can use
Wireshark
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVXJ2L7L4WUMQALLHO3XXSJYNANCNFSM6AAAAAAXDA76AU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
would like to understand better how to write a class for batmon ... is
reading the documentation of batmon sufficient to get an understanding how
to code it ?
…On Tue, Aug 29, 2023, 19:11 Patrick ***@***.***> wrote:
@gkathan <https://github.com/gkathan> I can tell you how I did it, but
again, please note, I have a "B" type of battery which probably has a
different BMS.
I used BT debugging on my phone to record the communication between the
battery and the app.
Then I wrote a sketch for an ESP32 to emulate a "fake" battery that would
reply to BLE request to check which values are shown in the app correspond
to the requests. Did a lot of value debugging and trial and error. Finally
I wrote an ESP32 sketch to query the battery and show the numbers. Last I
transformed the latter into a class for batmon.
I didn't know how to decompile the apk, but that is probably an easier
approach. Let me know if you need something for my approach or if you need
my sample code (ESP32 or the class for batmon). I can somewhere upload it
but as mentioned, currently it's of limited use for users of batmon ...
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVSUMHP4IE5ZUA37C5LXXYPCTANCNFSM6AAAAAAXDA76AU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
hi, looks like this error indicates that something fundamental is missing on my side Batmon |
Beta Was this translation helpful? Give feedback.
-
ok ... somehow i came a step further ... have now your branch/fork running on my raspi in the van where my "a" type battery is running ... current log shows that encryption has to be adapted ... now i can try to hack this :-) |
Beta Was this translation helpful? Give feedback.
-
Sure, let me refactor a bit and then I will try to publish my first HACS integration. Just wanted to give you some heads-up that things are progressing (even with long voids in between) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
@7wells, @gkathan I now published my current beta version here: https://github.com/patman15/BLE_BMS-HA feedback welcome. |
Beta Was this translation helpful? Give feedback.
-
ok
one question ... it looks like since I connected HA with your integration
to the smartbat ... the offgridtec app no longer sees the battery to
connect to it ... looks like only one connection to the bms is allowed ...
true?
cheerz
gerold kathan :: +43 699 1973536
…On Sat, Mar 30, 2024, 14:43 Fabian ***@***.***> wrote:
@patman15 <https://github.com/patman15>
Yes, let's start a new discussion, its getting a bit messy here otherwise.
I have little time at the moment for batmon.
I think best is to use an intermediate interface, like batmon already does
with e.g. BmsSample. We can then publish data of this data structure to
HA via MQTT (add-on) or the integration API. This way we have a modular
approach and we split the sources (BMS) from the data sinks (MQTT, HA
integration API)
I will get back as soon as I have more time
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVUO2A2XM63JUVW4JETY22XONAVCNFSM6AAAAAAXDA76AWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNJZGQ3DK>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@gkathan thanks again for testing the integration! If there are further issues please raise one for my integration or contact me directly to not mess up things here. |
Beta Was this translation helpful? Give feedback.
-
hi
just created an issue in the repo
* the Current and Power entities/sensors are both always zero in my case
regardless whether it is charging or discharging
patman15/BMS_BLE-HA#2
if you need Support for the type-A battery please let me know how I can
assist
cheeerz and thänx so much
gerold kathan :: +43 699 1973536
…On Mon, Apr 1, 2024, 11:06 Patrick ***@***.***> wrote:
Hi! Current sensor should be available, showing negative values for supply
and positive values for charging. If you are looking for a separate binary
sensor stating charging/non-charging I would need to implement it.
Nevertheless, this would be a "sign indicator" of the current, as the BMS
does not deliver charging indication natively.
—
Reply to this email directly, view it on GitHub
<#84 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQJLVREHCVLEANTPP6XIELY3EPRHAVCNFSM6AAAAAAXDA76AWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DSNZQHA2TI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @fl4p,
I have implemented a working addition to your repository, so I can readout the Offgridtec LiFePo4 Smart-Pro series of batteries. Unfortunately, I have no idea which BMS is used inside the battery (and I do not want to disassemble it) and I also do not know how to figure it out. Nevertheless, readout works, but the data is scrambled by some key derived from the serial number.
Long story short, in case you are interested, I can spend some more hours to figure out how this is done so my implementation can be used with any battery and not only mine.
Btw. I also found a few minor issues in the main class (BtBms) in case you want some more thoughts. :)
Beta Was this translation helpful? Give feedback.
All reactions