Hi everyone,
I have two bluetooth devices (hci0 an hci1) perfectly working on my home-assistant core venv (2023.7.3).
However, when I use the service bluetooth_tracker.update, no new devices are found (I receive no notifications). I have installed bluez and dbus.broker service is enabled. What am I doing wrong?
If I try to see the logs of the bluetooth devices, I can see a json format file with a list of devices (with addresses and rssi), but nothing else (see below an excerpt).
[
"/org/bluez/hci0/dev_64_E7_D8_3C_57_D1",
{
"Address": "64:E7:D8:3C:57:D1",
"AddressType": "public",
"Name": "[TV] Samsung 8 Series (50)",
"Alias": "[TV] Samsung 8 Series (50)",
"Paired": false,
"Bonded": false,
"Trusted": false,
"Blocked": false,
"LegacyPairing": false,
"Connected": false,
"UUIDs": [],
"Adapter": "/org/bluez/hci0",
"ManufacturerData": {
"117": {
"__type": "<class 'bytearray'>",
"repr": "bytearray(b'B\\x04\\x01\\x80fd\\xe7\\xd8<W\\xd1f\\xe7\\xd8<W\\xd0\\x01\\x00\\x00\\x00\\x00\\x00\\x00')"
}
},
"ServicesResolved": false,
"RSSI": -65
}
]
Thank you!
EDIT:
I have found the following in the log:
2023-10-24 00:28:46.057 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/bluetooth_tracker/device_tracker.py", line 202, in update_bluetooth
await perform_bluetooth_update()
File "/srv/homeassistant/lib/python3.10/site-packages/homeassistant/components/bluetooth_tracker/device_tracker.py", line 173, in perform_bluetooth_update
rssi = await hass.async_add_executor_job(client.request_rssi)
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.10/site-packages/bt_proximity/bt_rssi.py", line 55, in request_rssi
self.prep_cmd_pkt()
File "/srv/homeassistant/lib/python3.10/site-packages/bt_proximity/bt_rssi.py", line 24, in prep_cmd_pkt
b'6sB17s', bt.str2ba(self.addr), bt.ACL_LINK, b'\0' * 17)
2023-10-24 00:52:13.418 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] hci0 (00:1A:7D:DA:71:06) [connectable]: 48:EC:BE:64:2F:35 AdvertisementData(manufacturer_data={76: b'\x10\x05s\x1cP\xc1\xf3'}, tx_power=6, rssi=-58) match: set()
2023-10-24 00:52:13.950 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] hci0 (00:1A:7D:DA:71:06) [connectable]: 48:EC:BE:64:2F:35 AdvertisementData(manufacturer_data={76: b'\x10\x053\x18P\xc1\xf3'}, tx_power=6, rssi=-63) match: set()
2023-10-24 00:52:22.151 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] hci0 (00:1A:7D:DA:71:06): Scanner watchdog time_since_last_detection: 0.003999969001597492
2023-10-24 00:52:22.152 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] hci1 (B8:27:EB:3D:58:30): Scanner watchdog time_since_last_detection: 52.49559325399969