-
-
Notifications
You must be signed in to change notification settings - Fork 169
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
Add NEEY/Heltec 4A balancer support #109
Comments
Do you own a NEEY or Heltec 4A balancer and a Android device with the app installed? Please provide a btsnoop capture which can be easily created if you follow these instructions: The capture is helpful to replicate the behavior / BLE frames of the Android app to talk to the BMS using this component. |
|
Hi, |
I know. I just tried to inform you if you own the device some day we could give it a try to add device support. |
Thank you for the great news and involvement. |
Hi I have a Neey balancer, I prepare a phone settings for developer otions....... I downloaded adb files, I conected the phone on laptop, run powershell: #!/bin/bash And have a lot of errors and not create btsnoop capture. Thank you, |
Are you sure the
|
Only this 4 file: bugreport-2022-07-29-21-20-00.txt |
If you want can allow a remote desktop with AnyDesk ? |
I will provide some additional instructions tomorrow. I assume some important steps of the capturing process are missing. I've to verify some steps locally to provide better instructions. Probably just a "Bluetooth off + Bluetooth on" is missing to trigger the traffic capture. Please start the NEEY app as next step and connect to the BMS. The to retrieve the bug report again. This time the file should be part of the dump. If not we could try to retrieve the dump manually from your device using adb. Where are you from / at which timezone do you life? I've some free time for a anydesk session tomorrow. |
I am from Romania, it's ok for me tomorrow, I'm at home all today and can tested all necesary. |
Alright. I will ping you tomorrow! |
Ok, good nyght. |
Could you tell me the Android version of your device? |
8.0.0 |
I tried the following with my Android 9 phone:
My |
Is your phone rooted? If yes we could try this approach: https://stackoverflow.com/a/58384046 |
Can you asist me on AnyDesk ? |
Finaly I have BT snoop log, I send an email to see if ok ? |
I send on email. works with your steps: Enable ADB THX |
Awesome! It looks like your capture contains everything I'm looking for. I will try to extract some requests & responses. |
|
Could you provide some screenshots of the android app? This will help me a bit to understand what's available/exposed and whats internal + what can be controlled and what's read-only. |
I attached a pic, If you need somthing ... please tell me.
|
Thanks! Could you explain the purpose of the |
Turn on or off balancer, if is on, on balancer sounds a bip buzer and balancer turn on and cell begin balanced, if switc turn off, on balancer sound a bip buzer and balancer turn off and stop cell balancing. I hope you understand I write here…
|
I would be happy if you could create another traffic capture while turning balancing on and off multiple times. I would like to capture the balancing on/off commands. |
I attached your request.
|
Yes is correct. |
When I set the current in Homeassistant, it is also set in Balancer, I checked with the Android application, I have attached pictures. |
Looks good to me. No issues found. Correct? In this case only the error bitmask is missing + some documentation and we are feature complete. Do you miss something? |
Only the missing problem above, the one with the missing entities after restarting Homeassistant. Can't you set those entities to load automatically after the HA restart? |
You could add an automation to your HA setup to press the |
If the periodic beep isn't a problem we could add the retrieve settings call to the yaml configuration. |
Ok |
this is also an option |
You could add this approach to your configuration: 54f5b19 |
Take a look at the full file: https://github.com/syssi/esphome-jk-bms/blob/79d6016c98388e0cda4f7d981de7153adfaf4372/esp32-heltec-balancer-ble-example.yaml It's important to assign an The last two text sensors are also new but unrelated:
|
I've merged the NEEY balancer support into
|
Ok, Thank you for this wonderful integration and thank you for support. |
Hi, When I try to compile the code I have this error's: Microsoft Windows [Version 10.0.19044.2006] C:\tools\neey-ball2>esphome clean neey-bal1.yaml Error reading file neey-bal1.yaml: [Errno 2] No such file or directory: 'neey-bal1.yaml'←[0m C:\tools\neey-ball2>esphome clean neey-bal2.yaml C:\tools\neey-ball2>esphome run neey-bal2.yaml
|
Please update ESPHome. Version 2022.9.3 is required as minimum. |
Thank you, working now. |
Hey guys, first of all, thank you very much for this integration. Does this work with multiple Balancers? I do have 5 of them :-) Thank you in advance! |
A single ESP32 is limited to 3 simultaneous BLE connections. See https://esphome.io/components/ble_client.html |
Ok cool. Thank you. So I could just take two of the ESP32 boards I guess. But where can I set the 2nd and 3rd mac adress? Thank you!! |
Take a look at this JK-BMS example: https://github.com/syssi/esphome-jk-bms/blob/main/esp32-ble-example-multiple-devices.yaml#L54-L87 You have to add multiple BLE Clients blocks to the YAML and load the custom component multiple times. Please keep in mind the example above is for the JK-BMS. You have to replicate the pattern/schema for the balancer example. |
Excellent, seems doable, thank you very much! |
hi everyone. im using home assistant OS on rasp. pi 3. can i connect with bluetooth direct rasppi to neey balancer without esp32. sorry bad English. |
This implementation/project requires a ESP32. I'm not aware of other (Linux based) projects supporting the device. |
you are perfect. but raspberry pi have a bluetooth. I asked because I was wondering if it could be done without the need for other hardware. |
This implementation requires ESPHome / a ESP32 device as foundation. It cannot be ported to Linux / a Raspberry Pi easily. |
|
Same problem. Sometimes after the reboot or electricity disconnect, device connection ok but data is unavailable |
See #106.
The android apps aren't obfuscated. It should be possible to extract details about the protocol / frame structure and content.
The text was updated successfully, but these errors were encountered: