-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
DALY BMS (k-type) support for ESPHOME ? #1
Comments
Do you have a working setup? So your BMS is accessible via BLE and you could provide some testing? |
@kirillch2000 I've prepared a first draft. Do you like to give it a try? |
Thank you very much for responding to my request so quickly! I tried your component - the result is as follows. All 3 of my DALY BMS (2 new - k-type and 1 old - last year's model) - work perfectly and give all the parameters! So this draft should be considered working! output example: |
Could you provide some more details about your DALY BMS models/versions? I would like to mention the devices as supported at the README. Could you tell me the BLE name of each device? |
Hi. Yes, of course. |
Did DALY change the protocol over time or does your old DALY BMS support boths protocol (the one with the |
HI ! |
It's not so important. The mystery will be solved some day. I've another request: I've implemented some switches and buttons:
Could you test these (excluding the |
Ok, I'll test these buttons tomorrow. |
Did you find some time to test the controls? |
Not sure if you are aware, but there is a PR on ESPHome adding support for Daly H/K/M/S: |
Thanks for the hint! I wasn't aware of the PR. A lucky detail: The PR is focused on |
Interesting.. some registers are different: https://github.com/esphome/esphome/pull/7524/files#diff-7100260b820cb090bf4ad0f7d9d9b7fc105a49a0a5b4efd6287a3e70c474b33fR37-R48 |
............................
Sorry for the delay - I was on vacation. I added these buttons - I certainly didn't do a factory reset :) - everything else looks like it's working - "BMS retrieve settings" I still don't understand how it works - there are no statistics updates, and the data is only received by the component interval (update_interval) |
The settings will be just retrieved, decoded and printed to the log. |
@patagonaa, did you base yourself on some manual to build esphome/esphome#7524? Perhaps you can share it here so we can double check these discrepancies for the greater good. :) |
Yea, I based my code on what someone linked here: I also got some information from the DALY PC Software (BMSTool for H/K/M/S), but the docs I just linked seem to match the PC software (although a lot of things are missing in those docs). Honestly, I assume the docs you have (in this repo) are from an entirely different BMS series, because the BMSTool is definitely working and some fields (like 0x3D) are definitely correct for my BMS. Bummer that we both kinda did the same component (though, yours more towards BLE and mine more towards UART), we probably could've saved a bunch of work if we had worked together 😅 |
Also, just because i stumbled upon it: esphome-daly-bms/components/daly_bms_ble/daly_bms_ble.cpp Lines 287 to 290 in d6673c3
will never show discharging power, as Looking at the windows software, (at least in the Modbus protocol) the power does not have a sign, so it is probably positive no matter if charging or discharging, making it kinda useless. |
@patagonaa Good point! I've fixed the issue. The value is calculated now and the unsigned power measurement of the BMS firmware isn't used anymore. |
Unfortunately I couldn't find where else to write, so I'm writing to a similar project.
Please make DALY BMS (k-type) support for ESPHOME. Home assistant has a working project (https://github.com/patman15/BMS_BLE-HA) - but it's only for HA, and I'd like to use it together with OpenHab.
The text was updated successfully, but these errors were encountered: