question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error - BluetoothClassicService: RSSI update for empty address requested (HASSIO and iPhone / Apple Watch)

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gionafcommented, Oct 6, 2020

Hi, thanks for taking the time to debug this issue!

Here are the logs:

10/6/2020, 9:46:23 AM - info - HomeAssistantService: Device tracker requires manual setup in Home Assistant with topic: room-assistant/device_tracker/bluetooth-classic-[IPHONE MAC]-tracker/state
10/6/2020, 9:46:52 AM - error - BluetoothClassicService: Trying to request inquiry without MAC! Current index: 1. Addresses in this round: [WATCH MAC]. Nodes in this round: [object Object],[object Object].
10/6/2020, 9:46:52 AM - error - BluetoothClassicService: RSSI update for empty address requested

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

1reaction
alastaidcommented, Oct 18, 2020

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

room presence with any Bluetooth device (e.g. Apple Watch ...
Room-assistant works without any app (so iPhones, smart watches work as well) and determined your location through the signal strength between whatever you ......
Read more >
Complications | Home Assistant Companion Docs
Complications are created within the Home Assistant Companion App on a paired iPhone via the Apple Watch page in the Companion App section...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found