diff --git a/README.md b/README.md index 1bff4e7..4c09c61 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This integration allows to monitor Bluetooth Low Energy (BLE) battery management - Offgridtec LiFePo4 Smart Pro: type A & B (show up as `SmartBat-A`… or `SmartBat-B`…) - LiTime, Power Queen, and Redodo batteries - Seplos v2 (show up as `BP0?`) -- Seplos v3 (show up as `SP0`… or `SP1`…) +- Seplos v3 (show up as `SP0`…, `SP1`…, or `SP6`…) - TDT BMS (show up as e.g., `XDZN`…) > [!TIP] diff --git a/custom_components/bms_ble/manifest.json b/custom_components/bms_ble/manifest.json index a0ba42a..78baa75 100644 --- a/custom_components/bms_ble/manifest.json +++ b/custom_components/bms_ble/manifest.json @@ -42,6 +42,10 @@ "local_name": "SP1*", "service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb" }, + { + "local_name": "SP6*", + "service_uuid": "0000fff0-0000-1000-8000-00805f9b34fb" + }, { "local_name": "TBA-*" }, diff --git a/custom_components/bms_ble/plugins/seplos_bms.py b/custom_components/bms_ble/plugins/seplos_bms.py index 75a369b..dce3890 100644 --- a/custom_components/bms_ble/plugins/seplos_bms.py +++ b/custom_components/bms_ble/plugins/seplos_bms.py @@ -75,15 +75,11 @@ def matcher_dict_list() -> list[dict[str, Any]]: """Provide BluetoothMatcher definition.""" return [ { - "local_name": "SP0*", + "local_name": pattern, "service_uuid": BMS.uuid_services()[0], "connectable": True, - }, - { - "local_name": "SP1*", - "service_uuid": BMS.uuid_services()[0], - "connectable": True, - }, + } + for pattern in ["SP0*", "SP1*", "SP6*"] ] @staticmethod diff --git a/tests/advertisement_data.py b/tests/advertisement_data.py index efcee5d..f5dd6a5 100644 --- a/tests/advertisement_data.py +++ b/tests/advertisement_data.py @@ -69,6 +69,14 @@ ), "seplos_bms", ), + ( + generate_advertisement_data( + local_name="SP66B2404270002 ", + service_uuids=["0000fff0-0000-1000-8000-00805f9b34fb"], + rssi=-81, + ), + "seplos_bms", + ), ( generate_advertisement_data( local_name="BP02",