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

BLE Battery Management No supported devices found via Bluetooth. #174

Open
iNETTechnik opened this issue Feb 5, 2025 · 18 comments · May be fixed by #146
Open

BLE Battery Management No supported devices found via Bluetooth. #174

iNETTechnik opened this issue Feb 5, 2025 · 18 comments · May be fixed by #146

Comments

@iNETTechnik
Copy link

iNETTechnik commented Feb 5, 2025

always get
BLE Battery Management
No supported devices found via Bluetooth.

[core-ssh ~]$ bluetoothctl devices
Unable to open mgmt_socket
Device 6E:FC:A3:15:ED:53 6E-FC-A3-15-ED-53
Device C8:2C:2C:73:DC:CB C8-2C-2C-73-DC-CB
Device 71:6B:4A:0E:BF:67 71-6B-4A-0E-BF-67
Device 4F:B6:8A:FD:65:04 4F-B6-8A-FD-65-04
Device 6C:94:03:51:7E:21 6C-94-03-51-7E-21
Device 36:55:A1:0C:10:B1 36-55-A1-0C-10-B1
Device A4:C1:38:99:15:54 XL19110253
Device 40:17:12:01:11:97 BT270-2
Device A4:C1:38:1B:4A:43 LT40AH
Device D8:71:4D:01:99:CF OAD Persistent App

core-ssh ~]$ bluetoothctl connect A4:C1:38:1B:4A:43
Unable to open mgmt_socket
Attempting to connect to A4:C1:38:1B:4A:43
[CHG] Device F8:C9:CC:A3:10:68 RSSI: 0xffffffa8 (-88)
[CHG] Device 77:6A:47:E4:5D:7B RSSI: 0xffffffa6 (-90)
[CHG] Device 77:6A:47:E4:5D:7B ManufacturerData Key: 0x0075 (117)
[CHG] Device 77:6A:47:E4:5D:7B ManufacturerData Value:
83 a8 b7 b4 ....
Connection successful

BT270-2 is Daly DL-
And LT40AH is a LionTron

Why "No supported devices found" is shown?

We use also the internal HA Bluetooth Integration and the Xiaomi BLE.

Many thanks. This Integration seems to be realy great.

@patman15
Copy link
Owner

patman15 commented Feb 5, 2025

Can you please provide the output of bluetoothctl info <MAC> for both devices? Then I can check, why they are not recognised. Thanks!

@iNETTechnik
Copy link
Author

sure:
[core-ssh ~]$ bluetoothctl info A4:C1:38:1B:4A:43
Unable to open mgmt_socket
Device A4:C1:38:1B:4A:43 (public)
Name: LT40AH
Alias: LT40AH
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown (0000ff00-0000-1000-8000-00805f9b34fb)
ManufacturerData Key: 0x4a43 (19011)
ManufacturerData Value:
1b 38 c1 a4 .8..
RSSI: 0xffffffd6 (-42)
AdvertisingFlags:
06 .
[core-ssh ~]$ bluetoothctl info 40:17:12:01:11:97
Unable to open mgmt_socket
Device 40:17:12:01:11:97 (random)
Name: BT270-2
Alias: BT270-2
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
ManufacturerData Key: 0x0302 (770)
ManufacturerData Value:
16 40 17 12 01 11 97 44 4c .@.....DL
RSSI: 0xffffffc4 (-60)
AdvertisingFlags:
06 .

@patman15
Copy link
Owner

patman15 commented Feb 6, 2025

  • Regarding the LionTron, it is not officially supported yet, I'm waiting for someone to confirm that this branch:https://github.com/patman15/BMS_BLE-HA/tree/141-liontron-batteries works. So if you could manually install the branch, verify that the LionTron is detected, and send me a debug log of it, I could merge it to the next release.
  • Currently, a Daly BMS is required to have a name DL-* to be detected. I might need to relax this requirement. Can you rename the battery and check?

@iNETTechnik
Copy link
Author

such a great job, important app. it is a gamechanger, so i do not have to connect a daly usb cable or daly2mqtt.
many many thanks.
i renamed it and instantly it was shown in HA without any other work todo (very nice autodiscovery).

DL-BT270-2
99,4 %
BLE Battery Management
Geräte-Info
Smart BMS
von Daly
Bluetooth: 40:17:12:01:11:97

Hope the connection is static, may because the BMS sends bluetooth to sleep to save power.

@iNETTechnik
Copy link
Author

iNETTechnik commented Feb 6, 2025

seems it works. question:
how often the data is recieved / updated ? every 30s i read. hope this is not so much energy from daly BT dongle.

can you send me the branch? your link links to this issue.
how can i add this to HA via HACS? how can i get branches there?

many many many thanks

@patman15
Copy link
Owner

patman15 commented Feb 6, 2025

how often the data is recieved / updated ? every 30s i read. hope this is not so much energy from daly BT dongle.

Correct.

can you send me the branch? your link links to this issue.

Sorry, I accidentally copied the wrong link. Here it is: https://github.com/patman15/BMS_BLE-HA/tree/141-liontron-batteries
Note that you might loose autodetection for the Daly again, as it is based on an older version. I need to merge the two still. It won't affect though, as long as you keep the battery installed and do not remove it from the integration.

many many many thanks

You're welcome! 😃

@iNETTechnik
Copy link
Author

ok i use
git clone https://github.com/patman15/BMS_BLE-HA --branch 141-liontron-batteries
and restart HA... we will see

@iNETTechnik
Copy link
Author

iNETTechnik commented Feb 6, 2025

ok seems not finding the Liontron Battery. is the nameing is important there?

core-ssh BMS_BLE-HA]$ bluetoothctl info A4:C1:38:1B:4A:43
Unable to open mgmt_socket
Device A4:C1:38:1B:4A:43 (public)
Name: LT40AH
Alias: LT40AH
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown (0000ff00-0000-1000-8000-00805f9b34fb)
ManufacturerData Key: 0x4a43 (19011)
ManufacturerData Value:
1b 38 c1 a4 .8..
RSSI: 0xffffffd5 (-43)
AdvertisingFlags:
06

bluetoothctl info A4:C1:38:99:15:54
Unable to open mgmt_socket
Device A4:C1:38:99:15:54 (public)
Name: XL19110253
Alias: XL19110253
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown (0000ff00-0000-1000-8000-00805f9b34fb)
ManufacturerData Key: 0xc1a4 (49572)
ManufacturerData Value:
38 99 15 54 8..T
RSSI: 0xffffffb7 (-73)
AdvertisingFlags:
06 .

@patman15
Copy link
Owner

patman15 commented Feb 6, 2025

No, not at the moment, but it seams the LionTron does the same crap as ECO-WORTHY, i.e. use the MAC address as manufacturer_id. 🤦 So I need to change the auto detection to something with the name. 😞

@patman15 patman15 self-assigned this Feb 6, 2025
@iNETTechnik
Copy link
Author

i replaced /homeassistant/custom_components/bms_ble with the files of the branch 141-liontron-batteries, but no LionTron Batterie connected.

[core-ssh bms_ble]$ bluetoothctl devices
Unable to open mgmt_socket
Device A4:C1:38:99:15:54 XL19110253
Device A4:C1:38:1B:4A:43 LT40AH

both liontron

Device 40:17:12:01:11:97 DL-BT270-2
Daly Bulltron, works well with this branch and "version": "1.11.4"

@iNETTechnik
Copy link
Author

🤦 So I need to change the auto detection to something with the name. 😞

sorry about this. may there is a manual mode to add batteries by MAC ?

thanks so far

@patman15
Copy link
Owner

patman15 commented Feb 6, 2025

So far I hoped to make it really easy for the user and implement an auto-detection, but not sure how long this will hold true with all those sloppy Chinese pop-up vendors of batteries. 😎

@iNETTechnik
Copy link
Author

oh yes, good approach, but with so many exceptions and sloppy implementations. I know that well too :/ but thanks for the effort! What you're doing is really great. thumbs up :D

@patman15 patman15 linked a pull request Feb 8, 2025 that will close this issue
@patman15
Copy link
Owner

patman15 commented Feb 8, 2025

@iNETTechnik Can you please update your branch, it should fix all LionTron batteries. I'm still working on the Bulltron/Daly and will report back soon.

@iNETTechnik
Copy link
Author

iNETTechnik commented Feb 8, 2025

great work. thanks.
many thanks. batteries are shown, but connection error during initialisation.
i but the debug log there: #146
@patman15

@iNETTechnik
Copy link
Author

btw:
i renamed my bulltron to BT270-N , originally it is DL-nnnnnnnnn or so.

@aruba68
Copy link

aruba68 commented Feb 20, 2025

Hallo,

ich habe in meinem Wohnmobil 2 Life Batterien von Kepworth. Die DL-Life1 wird erkannt und die Life2 wird nicht erkannt. Kann mir da jemand einen Tipp geben?

Konfiguration:

v1.12.0 BLE Battery Managemen
Home Assistant
Core: 2025.2.4
Supervisor: 2025.02.1
Operating System: 14.2
Frontend: 20250214.0
Raspberry Pi 3 rpi3-64

Danke für die Hilfe

Image

=======================================================================

➜ ~ bluetoothctl devices
Device 40:17:03:01:1E:40 DL-Life1
Device EF:FA:37:59:CA:B7 Alex Solar 400W
Device A5:C2:37:04:D1:8D Life2
➜ ~ bluetoothctl info A5:C2:37:04:D1:8D
Device A5:C2:37:04:D1:8D (public)
Name: Life2
Alias: Life2
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Unknown (0000ff00-0000-1000-8000-00805f9b34fb)
ManufacturerData.Key: 0xd18d (53645)
ManufacturerData.Value:
04 37 c2 a5 .7..
RSSI: 0xffffffce (-50)
AdvertisingFlags:
06 .

@patman15
Copy link
Owner

Hi!

Because these manufacturers using Daly BMS do not manage to configure sensible manufacturer_id values. 😠 In such cases you need to have the name of the device starting with DL-. Your second battery does not fulfill that condition.

Best regards,
Patrick

@patman15 patman15 removed their assignment Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants