Discover HUS-prefixed BLE devices alongside iWoc

This commit is contained in:
Rene Nulsch
2026-04-30 07:40:52 +02:00
parent 0638c4b244
commit 0afd8243bc
3 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -90,10 +90,10 @@ The integration is configured through the Home Assistant UI:
1. Go to **Settings****Devices & Services**
2. Click **+ Add Integration**
3. Search for **MySmartBike BLE**
4. Select your iWoc device from the list
4. Select your iWoc/HUS device from the list
5. Click **Submit**
The integration will automatically discover iWoc devices in range via Bluetooth.
The integration will automatically discover iWoc and HUS devices in range via Bluetooth.
## Troubleshooting
@@ -101,7 +101,7 @@ The integration will automatically discover iWoc devices in range via Bluetooth.
- Make sure your E-Bike is turned on and in range
- Check that Bluetooth is enabled on your Home Assistant host
- Verify that the device name starts with "iWoc" (please report other device names)
- Verify that the device name starts with "iWoc" or "HUS" (please report other device names)
### Connection issues
@@ -99,8 +99,7 @@ class MySmartBikeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
):
continue
# Check if device name starts with "iWoc"
if discovery_info.name and discovery_info.name.startswith("iWoc"):
if discovery_info.name and discovery_info.name.startswith(("iWoc", "HUS")):
self._discovered_devices[discovery_info.address] = discovery_info
if not self._discovered_devices:
@@ -4,6 +4,9 @@
"bluetooth": [
{
"local_name": "iWoc*"
},
{
"local_name": "HUS*"
}
],
"codeowners": [