Hi Everyone,
I was trying to run the Bluetooth Low Energy Monitor on my PRI4 with HA running in a python venv.
I installed bluez
with an apt command and used the setcap
command to make the scan available for non-root users.
So my user can run hcitool lescan
command and see devices.
But there are plenty of the following log records in the HA:
ERROR (Thread-4) [custom_components.ble_monitor] HCIdump thread: Something wrong - interface hci0 not ready, and will be skipped for current scan period.
Oct 28 11:19:26 home hass[382]: 2022-10-28 11:19:26 ERROR (Thread-4) [custom_components.ble_monitor] HCIdump thread: Trying to power cycle Bluetooth adapter hci0 {mac address here}, will try to use it next scan
As a result, there are no known_devices.yaml file and it seems like the scan doesn’t work.
Could anyone suggest how to solve my issues and make the Bluetooth Low Energy Monitor work?
Here is some additional information about my system:
lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
dpkg --status bluez | grep '^Version:'
Version: 5.55-3.1
HA version: 2022.7.5