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

Ective Batteries not detected #123

Closed
3 tasks done
unbreaky83 opened this issue Dec 22, 2024 · 16 comments
Closed
3 tasks done

Ective Batteries not detected #123

unbreaky83 opened this issue Dec 22, 2024 · 16 comments
Assignees
Labels
question Further information is requested

Comments

@unbreaky83
Copy link

Checklist

  • I need support with using the integration.
  • My issue is not a feature request
  • I'm not avoiding to fill out the bug report form.

Describe the issue

Hi,

I was trying to add my two Ective-Batteries to Home-Assistant. Unfortunately, if i try to add them as devices, i get the error "No supported devices found via Bluetooth".

After that, i checked the bluetooth information with bluetoothctl info MAC and compared the UUID and Manufacturer Data Key with the manifest file. Both information are matching.

I also tried to connect to the devices with bluetooth connect MAC, but it did not work, but i also got the message "Unable to open mgmt_socket". Not sure if this is by design or an issue with my Raspberry Pi 4 since I'm new with Home-Assistant.

Any help/hints are appreciated
Best regards
Chris

@unbreaky83 unbreaky83 added the question Further information is requested label Dec 22, 2024
@patman15
Copy link
Owner

Hi! Can you provide the information shown by bluetoothctl info <MAC> please? Did you check that passive scanning is disabled on the Bluetooth adapter?
Best regards, Patrick

@unbreaky83
Copy link
Author

Hi Patrick

I checked the passive scanning and it is disabled

[core-ssh var]$ bluetoothctl info 30:55:44:37:62:XX
Unable to open mgmt_socket
Device 30:55:44:37:62:XX (public)
Name: NWJ202212230103XX
Alias: NWJ202212230103XX
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown {0000ffe0-0000-1000-8000-00805f9b34fb}
ManufacturerData Key: 0xffff (65535)
ManufacturerData Value: 30 55 44 37 62 XX 0UD7b.
RSSI: 0xffffffcd (-51)
AdvertisingFlags: 05 .

[core-ssh var]$ bluetoothctl info 30:55:44:37:A2:XX
Unable to open mgmt_socket
Device 30:55:44:37:A2:XX (public)
Name: NWJ202212230103XX
Alias: NWJ202212230103XX
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown {0000ffe0-0000-1000-8000-00805f9b34fb}
ManufacturerData Key: 0xffff (65535)
ManufacturerData Value: 30 55 44 37 a2 XX 0UD7..
RSSI: 0xffffffb9 (-71)
AdvertisingFlags: 05 .

Thank you
Best regards
Chris

@patman15
Copy link
Owner

Ok, there was an issue with the naming. Can you try the version from the main branch, or do you need another beta release?

@unbreaky83
Copy link
Author

Thank you, i have replaced the new versions of the two files manually since I have limited access to the raspberry at the moment.
The two batteries got discovered now.

Unfortunately, if i try to add them, i get the following errors: "Invalid Flow Specified" or "Unknown Error Occurred"

I have attached the Debug-Log
home-assistant_bms_ble_2024-12-23T12-13-49.560Z.log

Thank you very much for your patience and help

@patman15
Copy link
Owner

I found the issue, but I do not know how to fix it. There is a conflict with the internal integration for kegtron. Please try to run pip install kegtron_ble from the terminal and reboot. I think this fixes it. I'm trying to get support from HA developers as I'm not sure it is an issue with bms_ble. Let me know if the work around fixes the issue. Thanks!

@patman15 patman15 self-assigned this Dec 23, 2024
@patman15 patman15 added bug Something isn't working and removed question Further information is requested labels Dec 23, 2024
@unbreaky83
Copy link
Author

I tried the command, but i seems not be available on the HomeAssistant OS.

bash: pip: command not found

@patman15
Copy link
Owner

Have you tried Advanced SSH & Web Terminal?

@unbreaky83
Copy link
Author

Yes. I tried with that Addon. Maybe Home Assistant OS don't have that python extension? Or is it a raspberry thing?

@unbreaky83
Copy link
Author

Sorry, my fault. I mixed up the different terminals.

I was able to install the kegtron_ble extension. Now it works and I see the both batteries with voltage and SoC

Thank you very much for your help
Best regards and merry Christmas
Chris

@patman15
Copy link
Owner

patman15 commented Dec 24, 2024

Ok, great! Still, I need to figure out how to avoid this issue. Thanks for the confirmation that the workaround is ok.
Merry Christmas, Patrick

@patman15
Copy link
Owner

@unbreaky83 which installation method did you use for HA? Are you using HA OS?

@unbreaky83
Copy link
Author

Yes, I am using the Home Assistant OS.

I used the following method to prepare the Raspberry Pi 4: https://www.home-assistant.io/installation/raspberrypi/

@patman15
Copy link
Owner

JFYI: I tried to reproduce the issue on a HA core installation as well as on freshly installed HAOS 14.1 (x86) but without any luck. I can reproduce it with my test though. Since I'm not sure the root cause for the message is the same for the tests, I will check them again.

@patman15 patman15 added question Further information is requested and removed bug Something isn't working labels Dec 26, 2024
@patman15
Copy link
Owner

@unbreaky83 I tried to reproduce the issue, but still no luck. The issue with the tests has a different root cause. Since your immediate problem is solved, are you ok to close this topic?

@patman15 patman15 linked a pull request Dec 26, 2024 that will close this issue
@unbreaky83
Copy link
Author

Hi Patrick

Strange, with which Hardware did you test? Yes, you can close that topic. Thank you very much for your help.

Best regards
Chris

@patman15
Copy link
Owner

patman15 commented Dec 27, 2024

Strange, with which Hardware did you test?,

I have an ESP32 faking an Ective battery. But the issue is not battery related, but related to the detection of it (which is proven by the fact that installing the Kegtron dependency that actually solved the issue). I opened an issue with the Kegtron integration that causes the conflict (see above), although I still do not understand, why HA did not automatically install the dependency on your system. For me it always did so in all configurations. (Only exceptions was for tests, where it is supposed to be like that.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants