error - BluetoothClassicService: RSSI update for empty address requested (HASSIO and iPhone / Apple Watch)
See original GitHub issueDescribe the bug
After some time that room-assistant is running, I start getting this error in the logs:
error - BluetoothClassicService: RSSI update for empty address requested
and my device’s room is no longer updated.
A reboot sometimes fixes the problem for a while.
To reproduce I’ve 2 room-assistant instances on HASSIO, one rPi 3B+ and one rPi 4B. The two Pis also have a USB bluetooth adapter each, which I was hoping would solve the problem (freeing up the internal receiver). Unfortunately, the problem occurs using both. I’m trying to track 4 devices: iPhone X, XS; Apple Watch 3 and 6.
Relevant logs
After some time that room-assistant is running, the logs gets filled with:
error - BluetoothClassicService: RSSI update for empty address requested
And occasionally I also get:
error - BluetoothClassicService: Command failed: hcitool -i hci0 cc "[MAC]" && hcitool -i hci0 rssi "[MAC]"
Relevant configuration Main instance:
instanceName: xxxx
integrations:
- homeAssistant
- bluetoothClassic
cluster:
weight: 0
autoDiscovery: false
peerAddresses:
- 'xxx.xxx.xxx.xxx:xxx'
homeAssistant:
mqttUrl: 'mqtt://xxx.xxx.xxx.xxx:xxx'
mqttOptions:
username: xxx
password: xxx
bluetoothClassic:
hciDeviceId: 0 # i also get the error when using the external adapter "1"
minRssi: -89
interval: 10
addresses:
- 'xxx'
- 'xxx'
- 'xxx'
- 'xxx'
Secondary instance (and mqtt server):
instanceName: xxxx
integrations:
- homeAssistant
- bluetoothClassic
cluster:
weight: 1
autoDiscovery: false
peerAddresses:
- 'xxx.xxx.xxx.xxx:xxx'
homeAssistant:
mqttOptions:
username: xxx
password: xxx
bluetoothClassic:
hciDeviceId: 0 # same as above: i also get the error when using the external adapter "1"
minRssi: -99
interval: 10
addresses:
- 'xxx'
- 'xxx'
- 'xxx'
- 'xxx'
Expected behavior I’ld expect room-assistant to track and update which room my device is in.
Environment
- room-assistant version: 2.9.0
- installation type: Hass.io
- hardware: RaspberryPi 3B+ and 4B (using both the internal and an external adapter)
- OS: HassOS 4.13 (on rPi 3B+) and HassOS 5.2 (on rPi 4B)
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
Hi, thanks for taking the time to debug this issue!
Here are the logs:
I’m also now experiencing a lot of reboots of the cluster leader.
I’ve also done a simple custom sensor for tracking which room i’m in, by simply comparing the rssi from the 2 instances (when connected to both). I get some temporary wrong results, but it’s pretty accurate, just need to filter for 30/60 seconds
@mKeRix , thanks! So just finished upgrading all 8 nodes to @beta, and run it for a few minutes and dont see the error at all now, which I doubt helps, I will let it run for a few hours and if it shows I will post it