Skip to content

Commit

Permalink
add Daly blue detection (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
patman15 authored Jan 25, 2025
1 parent 9d0110a commit ac3166c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This integration allows to monitor Bluetooth Low Energy (BLE) battery management
### Supported Devices
- CBT Power BMS, Creabest batteries
- D-powercore BMS (show up as `DXB-`…), Fliteboard batteries (show up as `TBA-`…)
- Daly BMS (show up as `DL-`…)
- Daly BMS (show up as `DL-`… or `JHB-`…)
- E&J Technology BMS
- Supervolt v1 batteries
- Elektronicx batteries (show up as `LT-`…)
Expand Down
4 changes: 4 additions & 0 deletions custom_components/bms_ble/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"local_name": "DL-*",
"service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb"
},
{
"local_name": "JHB-*",
"manufacturer_id": 260
},
{
"service_uuid": "0000ffe0-0000-1000-8000-00805f9b34fb",
"manufacturer_id": 2917
Expand Down
3 changes: 2 additions & 1 deletion custom_components/bms_ble/plugins/daly_bms.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def matcher_dict_list() -> list[dict]:
"local_name": "DL-*",
"service_uuid": BMS.uuid_services()[0],
"connectable": True,
}
},
{"local_name": "JHB-*", "manufacturer_id": 0x0104, "connectable": True},
]

@staticmethod
Expand Down
8 changes: 8 additions & 0 deletions tests/advertisement_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,14 @@
),
"daly_bms",
),
( # source bluetoothctl (https://github.com/patman15/BMS_BLE-HA/issues/145)
generate_advertisement_data(
local_name="JHB-501812XXXXXX",
manufacturer_data={260: b"\x01\x50\x18\x12\x01\xa3\xb3\x4a\x48\x42"},
rssi=-46,
),
"daly_bms",
),
( # source nRF (https://github.com/patman15/BMS_BLE-HA/issues/22#issuecomment-2198586195)
generate_advertisement_data( # Supervolt battery
local_name="SX100P-B230201",
Expand Down

0 comments on commit ac3166c

Please sign in to comment.