Discover HUS-prefixed BLE devices alongside iWoc
This commit is contained in:
@@ -90,10 +90,10 @@ The integration is configured through the Home Assistant UI:
|
|||||||
1. Go to **Settings** → **Devices & Services**
|
1. Go to **Settings** → **Devices & Services**
|
||||||
2. Click **+ Add Integration**
|
2. Click **+ Add Integration**
|
||||||
3. Search for **MySmartBike BLE**
|
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**
|
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
|
## 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
|
- Make sure your E-Bike is turned on and in range
|
||||||
- Check that Bluetooth is enabled on your Home Assistant host
|
- 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
|
### Connection issues
|
||||||
|
|
||||||
|
|||||||
@@ -99,8 +99,7 @@ class MySmartBikeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
|||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Check if device name starts with "iWoc"
|
if discovery_info.name and discovery_info.name.startswith(("iWoc", "HUS")):
|
||||||
if discovery_info.name and discovery_info.name.startswith("iWoc"):
|
|
||||||
self._discovered_devices[discovery_info.address] = discovery_info
|
self._discovered_devices[discovery_info.address] = discovery_info
|
||||||
|
|
||||||
if not self._discovered_devices:
|
if not self._discovered_devices:
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
"bluetooth": [
|
"bluetooth": [
|
||||||
{
|
{
|
||||||
"local_name": "iWoc*"
|
"local_name": "iWoc*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"local_name": "HUS*"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"codeowners": [
|
"codeowners": [
|
||||||
|
|||||||
Reference in New Issue
Block a user