Open Misiu opened 11 months ago
Yes, I think this is right repo where your issue is related to.
However, I'm trying to understand why this issues occurs. The code that is causing this behavior is the following .
if name == service_info.address:
name = "BTHome sensor"
# Remove identifier from ATC sensors name.
atc_identifier = (
service_info.address.replace("-", "").replace(":", "")[-6:].upper()
)
if name[-6:] == atc_identifier:
name = name[:-6].rstrip(" _")
...
# Try to get manufacturer based on the name
if name.startswith(("ATC", "LYWSD03MMC")):
manufacturer = "Xiaomi"
device_type = "Temperature/Humidity sensor"
elif name.startswith("prst"):
manufacturer = "b-parasite"
name = "b-parasite"
device_type = "Plant sensor"
elif name.startswith("SBBT"):
manufacturer = "Shelly"
name = "Shelly BLU Button1"
device_type = "BLU Button1"
elif name.startswith("SBDW"):
manufacturer = "Shelly"
name = "Shelly BLU Door/Window"
device_type = "BLU Door/Window"
else:
manufacturer = None
device_type = "BTHome sensor"
# Get device information from local name and identifier
self.set_device_name(f"{name} {identifier}")
self.set_title(f"{name} {identifier}")
self.set_device_type(device_type)
The name
input is service_info.name
in the script. It this would have been ATC_BUIRO
, I would expect that the final name would have been ATC_BUIRO 0745
if name == service_info.address
(as the address is the mac address)if name[-6:] == atc_identifier
(as the atc_identifier is the last 6 characters of the MAC, which is not the same as _BUIRO
.So, I suspect that the service_info.name
is not returning what we expect. I'll have to dig deeper into this
@Ernst79 thank you for the reply. As mentioned in the initial post, I'm using Shelly Gen 2 devices as BTProxy, maybe that's the reason for missing informations. If I can help please let me know. I can provide logs, but not sure what logger config I should use.
The device with the name ATC_BIURO
is currently detected in my HA instance:
after configuring it I get this:
According to the code you linked, the manufacturer should be Xiaomi.
Side note, I have other Xiaomi devices, including MHO-C401, the default device name starts withC401
, should it be also added to the check (besides "ATC", "LYWSD03MMC")?
@Ernst79 quick update (ref: https://github.com/pvvx/ATC_MiThermometer/issues/426#issuecomment-1836145589) The name is presented if Bluetooth is on the same device the HA is running. I'm using Shelly Gen 2 as BT Proxy, so it looks like it isn't getting the devices names or not passing it to HA. Not sure how to check that.
You can probably check that by enabling debug logging for the Bluetooth integration (not BTHome, but Bluetooth integration). The Bluetooth integration is taking care of receiving the data of BLE devices and BT proxies. Note that bugs in the Bluetooth integration should be raised in the Home Assistant core repo.
I need to be sure this is a bug in HA Bluetooth Integration or maybe this is something with ESP Home or Shelly.
logger:
default: critical
logs:
homeassistant.components.bluetooth: debug
this config will be ok?
Yes, I understand. you will find many received ble messages in your log, so only use this for a short period
If you have a USB-BT adapter and a passive scanning option, the device name does not change. The name is cached by Bluez in files like: /var/lib/bluetooth/8C:88:2B:00:E7:EA/cache/58:2D:34:14:50:87
[General]
Name=CGG_Test
Rebooting HA won't help. After changing the name on the device, the HA rebooted 3 times. Without changes.
The BLE device most often transmits the name upon active scanning request. The name and transmitted information do not fit into the main short advertising package BT4.2. If you want to always receive a name, use extended BLE advertising from BT5+. In LE long Range, thermometers with custom firmware always transmit the name.
If the name is received after discovery, the config flow won't see it because the flow has already been started with the original name.
You can use a solution like https://github.com/home-assistant/core/blob/833805f9be329172bf2844a2cf3babbee4caa09a/homeassistant/components/improv_ble/config_flow.py#L169 to watch for new advertisements and update the name once the flow is in progress
To resolve all issues with device information, standard UUIDs should be polled. Preferably with a button for the user.
https://community.home-assistant.io/t/make-ble-softwarerevisionstring-available/640675/2?u=tmugan
chrome://bluetooth-internals/
(And in Chrome, do not forget to clear the Bluetooth cache when changing firmware and other manipulations.)
And the current BTHome code is full of guesses based on the first letters of the name and so on :)
Current name: Cash Bluez (after 4 reboots of HA):
A day ago we switched to Mijia, it is now forever in HA:
{
"entry_id": "8bb4354abd8d84fde6d8ac07a3459297",
"version": 1,
"domain": "xiaomi_ble",
"title": "Temperature/Humidity Sensor 5087 (CGG1-ENCRYPTED)",
"data": {},
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "ignore",
"unique_id": "58:2D:34:14:50:87",
"disabled_by": null
}
:) :)
And this happens in HA "bluetooth":
2023-12-01 21:01:05.487 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] hci1 (8C:88:2B:00:E7:EA) [connectable]: 58:2D:34:14:50:87 AdvertisementData(local_name='CGG_145087', service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\xfc\x01d\x02]\x08\x03\x1f\x11', '0000fe95-0000-1000-8000-00805f9b34fb': b'PXH\x0b\xd6\x87P\x144-X\r\x10\x04\xd8\x00\xa9\x01'}, rssi=-73) match: set()
BTHome and Xiaomi mixture :) The thermometer was switched to BTHome an hour before this log. The HA was rebooted, along with the system and its power supply.
It's time to restore the broadcast option in all formats in thermometers.
And today "CGG_Test 5087 BTHome" is displayed, although the name was changed yesterday.
/var/lib/bluetooth/8C:88:2B:00:E7:EA/cache/58:2D:34:14:50:87
[General]
Name=CGG_Test
Deleting the file /var/lib/bluetooth/8C:88:2B:00:E7:EA/cache/58:2D:34:14:50:87 did not change the name
Reloading HA did not change the name. /var/lib/bluetooth/8C:88:2B:00:E7:EA/cache/58:2D:34:14:50:87 does not appear. Active scanning by another adapter did not affect.
After removal from the integration of BTHOME, the "CGG_Test" thermometer is not displayed anywhere else.
After rebooting the entire "#reboot" system: The device has no name.
PS: This should be expected. But with active scanning by another adapter, Bluez was supposed to accept the name of the device. Get rid of terrible Bluez and make adequate removal of devices.
If the name is received after discovery, the config flow won't see it because the flow has already been started with the original name.
You can use a solution like https://github.com/home-assistant/core/blob/833805f9be329172bf2844a2cf3babbee4caa09a/homeassistant/components/improv_ble/config_flow.py#L169 to watch for new advertisements and update the name once the flow is in progress
How might this affect Bluez running in passive scanning mode?
I only see this in logs:
2023-12-04 14:40:36.428 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-04 14:40:36.429 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration huawei_solar which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-04 14:40:36.429 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration roborock which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-04 14:40:36.430 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration scheduler which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-12-04 14:40:49.261 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Registering scanner Światło (44:17:93:CE:3D:BC)
2023-12-04 14:40:49.468 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Registering scanner shellyplusi4-c049ef85d790 (C0:49:EF:85:D7:90)
2023-12-04 14:40:49.513 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Registering scanner Dwór 4PM (08:3A:F2:7B:1A:0C)
2023-12-04 14:40:51.439 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 72:0E:65:7F:5E:27 AdvertisementData(manufacturer_data={76: b'\x10\x054\x188R\xdd'}, tx_power=12, rssi=-78) match: set()
2023-12-04 14:40:51.481 DEBUG (MainThread) [homeassistant.components.bluetooth] Triggering bluetooth usb discovery
2023-12-04 14:40:53.963 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\xf2\r\x8a04-X\r\x10\x04\xe0\x00L\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:40:54.169 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:6E:F6:08 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00T\x01d\x02\xd8\t\x03\xeb\n'}, tx_power=-127, rssi=-81) match: set()
2023-12-04 14:40:56.485 DEBUG (MainThread) [homeassistant.components.bluetooth] Rediscovered adapters: {}
2023-12-04 14:41:00.009 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\xf5\r\x8a04-X\r\x10\x04\xe0\x00M\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:01.656 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:6E:F6:08 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00V\x01d\x02\xd8\t\x03\xe0\n'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:03.175 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:73:07:45 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\xdf\x0c\xb6\n\x10\x00'}, tx_power=-127, rssi=-64) match: set()
2023-12-04 14:41:03.784 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\xf7\r\x8a04-X\r\x10\x04\xe0\x00M\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:09.751 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\xfa\r\x8a04-X\r\x10\x04\xe0\x00L\x01'}, tx_power=-127, rssi=-76) match: set()
2023-12-04 14:41:15.781 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\xfd\r\x8a04-X\r\x10\x04\xe1\x00M\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:19.262 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] Światło (44:17:93:CE:3D:BC): Scanner watchdog time_since_last_detection: 0.6299960890319198
2023-12-04 14:41:19.469 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplusi4-c049ef85d790 (C0:49:EF:85:D7:90): Scanner watchdog time_since_last_detection: 0.238998515997082
2023-12-04 14:41:19.514 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] Dwór 4PM (08:3A:F2:7B:1A:0C): Scanner watchdog time_since_last_detection: 0.0899994419887662
2023-12-04 14:41:19.823 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\xff\r\x8a04-X\r\x10\x04\xe0\x00M\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:23.153 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:73:07:45 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\xe1\x0c\xb7\n\x10\x00'}, tx_power=-127, rssi=-66) match: set()
2023-12-04 14:41:24.892 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:6E:F6:08 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00X\x01d\x02\xd7\t\x03\xdc\n'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:25.808 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x02\r\x8a04-X\r\x10\x04\xe0\x00M\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:31.833 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x05\r\x8a04-X\r\x10\x04\xe0\x00M\x01'}, tx_power=-127, rssi=-76) match: set()
2023-12-04 14:41:35.578 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): C4:E5:21:0D:1E:5D AdvertisementData(manufacturer_data={2409: b'\xc4\xe5!\r\x1e]\xf8\x0b\x00\x04\\\x00'}, tx_power=-127, rssi=-72) match: set()
2023-12-04 14:41:35.877 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x07\r\x8a04-X\r\x10\x04\xe1\x00L\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:38.102 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:73:07:45 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\xe2\x01M\x02\xb6\t\x03D\n'}, tx_power=-127, rssi=-69) match: set()
2023-12-04 14:41:39.162 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:6E:F6:08 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00Y\x0cm\x0c\x10\x00'}, tx_power=-127, rssi=-71) match: set()
2023-12-04 14:41:41.883 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\n\r\x8a04-X\r\x10\x04\xe1\x00M\x01'}, tx_power=-127, rssi=-76) match: set()
2023-12-04 14:41:46.681 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:6E:F6:08 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00Z\x01d\x02\xd6\t\x03\xd9\n'}, tx_power=-127, rssi=-71) match: set()
2023-12-04 14:41:47.879 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\r\r\x8a04-X\r\x10\x04\xe0\x00M\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:41:49.263 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] Światło (44:17:93:CE:3D:BC): Scanner watchdog time_since_last_detection: 1.257992199040018
2023-12-04 14:41:49.471 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplusi4-c049ef85d790 (C0:49:EF:85:D7:90): Scanner watchdog time_since_last_detection: 0.2309985669562593
2023-12-04 14:41:49.515 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] Dwór 4PM (08:3A:F2:7B:1A:0C): Scanner watchdog time_since_last_detection: 3.2039801320061088
2023-12-04 14:41:53.097 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:73:07:45 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\xe4\x01M\x02\xb6\t\x03@\n'}, tx_power=-127, rssi=-74) match: set()
2023-12-04 14:41:53.885 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x10\r\x8a04-X\r\x10\x04\xdf\x00K\x01'}, tx_power=-127, rssi=-76) match: set()
2023-12-04 14:41:58.676 DEBUG (MainThread) [homeassistant.components.bluetooth] Triggering bluetooth usb discovery
2023-12-04 14:41:59.880 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x13\r\x8a04-X\x06\x10\x02L\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:42:01.679 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:6E:F6:08 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\\\x01d\x02\xd7\t\x03\xe3\n'}, tx_power=-127, rssi=-82) match: set()
2023-12-04 14:42:03.681 DEBUG (MainThread) [homeassistant.components.bluetooth] Rediscovered adapters: {}
2023-12-04 14:42:03.902 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x15\r\x8a04-X\r\x10\x04\xe0\x00L\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:42:09.930 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x18\r\x8a04-X\r\x10\x04\xe1\x00L\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:42:13.059 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): A4:C1:38:73:07:45 AdvertisementData(service_data={'0000fcd2-0000-1000-8000-00805f9b34fb': b'@\x00\xe6\x01M\x02\xb8\t\x03E\n'}, tx_power=-127, rssi=-66) match: set()
2023-12-04 14:42:15.918 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x1b\r\x8a04-X\r\x10\x04\xe0\x00L\x01'}, tx_power=-127, rssi=-73) match: set()
2023-12-04 14:42:19.264 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] Światło (44:17:93:CE:3D:BC): Scanner watchdog time_since_last_detection: 1.9849877039669082
2023-12-04 14:42:19.471 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] shellyplusi4-c049ef85d790 (C0:49:EF:85:D7:90): Scanner watchdog time_since_last_detection: 0.2619983769254759
2023-12-04 14:42:19.516 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] Dwór 4PM (08:3A:F2:7B:1A:0C): Scanner watchdog time_since_last_detection: 1.4919907581061125
2023-12-04 14:42:21.934 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] Światło (44:17:93:CE:3D:BC): 58:2D:34:30:8A:0D AdvertisementData(service_data={'0000fe95-0000-1000-8000-00805f9b34fb': b'P \xaa\x01\x1e\r\x8a04-X\x06\x10\x02L\x01'}, tx_power=-127, rssi=-76) match: set()
and I've added this log my configuration:
logger:
default: critical
logs:
homeassistant.components.bthome: debug
homeassistant.components.bluetooth: debug
homeassistant.components.bluetooth_adapters: debug
bthome-ble: debug
Logs show other devices (Shelly Gen 2), but nothing about the BTHome device with the wrong name.
Not sure where to search for logs or where to report this issue.
The automatic OTA in the ZHA worked. Devices firmwares now includes simultaneous support for Zigbee and BLE. Several different BTHome devices have appeared.
How to determine where and what in BTHome?
https://www.bluetooth.com/specifications/specs/device-information-service/
Describe the bug I've flashed LYWSD03MMC with 4.5 firmware using https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html. I've set the device name via the page, and now every time I want to connect the flasher I see my device on the list: (ACT_BIURO)
I've also set the advertisement type to BTHome v2, and soon after the device was discovered in Home Assistant, but sadly the device presented on the list didn't have the name I've set in the Flasher:
I've created an issue in pvvx repo - https://github.com/pvvx/ATC_MiThermometer/issues/426, but apparently, the issue is on the HA side.
After flashing 5 or more devices and moving them to the destination home right now we must power one device at a time, having the device name in the discovery information it would be easy to set up all the devices at once.
To Reproduce Steps to reproduce the behavior: Flash LYWSD03MMC with firmware 4.5, set custom device name, set BTHome v2 as advertisement type go to integrations in HA and observe the newly found device with the wrong name
Additional context I'm using HA 2023.11.3 and a couple of Shelly devices as BT Proxy. I've tried active scanning, and passive scanning, restarted Shelly devices, and restarted HA, but nothing helped.
I think this is a related issue: https://github.com/home-assistant/core/issues/79468
If the issue is not created in the right repo please move it to the right place or let me know and I'll create a new one in the right place.