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.

BLE Beacon: Home Assistant Constantly Listing Different Rooms and Distances Despite Being Stationary

See original GitHub issue

Describe the bug Distance constantly jumping even though tracker is stationary and RA keeps bouncing me between rooms despite not moving

Relevant logs Log output that correlates to the bug. You can get debug output with room-assistant -v.

Relevant configuration

all:
  hosts:
    'master-bedroom.local':
      room_assistant_config:
        global:
          instanceName: Master Bedroom
    'levi-office.local':
      room_assistant_config:
        global:
          instanceName: Levi's Office
    '192.168.11.15':
      room_assistant_config:
        global:
          instanceName: Garage
  vars:
    room_assistant_global_config:
      global:
        entities:
          behaviors:
            cc6ed3c0477e417b81e10a62d6504061-2-9999:
              rollingAverage:
                window: 30
              debounce:
                wait: 1
        integrations:
          - homeAssistant
          - bluetoothLowEnergy
      homeAssistant:
        mqttUrl: mqtt://192.168.11.38:1883
        mqttOptions:
          username: <username>
          password: <password
      bluetoothLowEnergy:
        whitelist:
          - cc6ed3c0477e417b81e10a62d6504061-2-9999
        tagOverrides:
          - cc6ed3c0477e417b81e10a62d6504061-2-9999:
            name: Levi's Tracker
global:
  entities:
    behaviors:
      cc6ed3c0477e417b81e10a62d6504061-2-9999:
        rollingAverage:
          window: 30
        debounce:
          wait: 1
  instanceName: Living Room
  integrations:
    - homeAssistant
    - bluetoothLowEnergy
bluetoothLowEnergy:
  tagOverrides:
    - cc6ed3c0477e417b81e10a62d6504061-2-9999:
      name: Levi's Tracker
  whitelist:
    - cc6ed3c0477e417b81e10a62d6504061-2-9999
homeAssistant:
  mqttOptions:
    password: <username>
    username: <password
    mqttUrl: 'mqtt://192.168.11.38:1883'

Expected behavior Home assistant lists my room and distance consistently when I’m stationary

Environment

  • room-assistant version: latest
  • installation type: NodeJS + Home Assistant
  • hardware: Raspberry Pi, Zero W,
  • OS: Linux

Additional context

Here’s what the issue looks like in HA. Occasionally, it will correctly list my distance of 0 (I’m inches from the Pi Zero W) but put me in the living room instead of the office.

demo

I’ve checked the logs in the levi's-office Pi Zero W and consistently lists my distance as 0. So, I don’t know where the other distance updates are coming from. I’ve tried updating the entity behaviors but nothing seems to work. I’m using Ansible for my deploys, except on the Living Room Instance because that’s running on the same Raspberry Pi as my Home Assistant Instance. Additionally, I tried setting the weight of each node and the quorum

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
opnsrcecommented, Jan 30, 2021

Cool. That seemed to do it. God, I hate YAML.

Thanks for all the help. The Living Room can now see the office.

0reactions
mKeRixcommented, Jan 30, 2021

The cluster block needs to be on top level, try it like this:

global:
  instanceName: Living Room
  integrations:
    - homeAssistant
    - bluetoothLowEnergy
cluster:
  peerAddresses: 
    - 192.168.11.19:6425  
homeAssistant:
  mqttUrl: 'mqtt://192.168.11.38:1883'
  mqttOptions:
    username: <user>
    password: <pass>
bluetoothLowEnergy:
  whitelist:
    - cc6ed3c0477e417b81e10a62d6504061-2-9999
  tagOverrides:
    cc6ed3c0477e417b81e10a62d6504061-2-9999:
      name: Levi's Tracker
Read more comments on GitHub >

github_iconTop Results From Across the Web

Presence by BLE Devices - Beacons, Titles, and?
I use NUT mini's and a bunch of Pi Zero W around the house with the software room assistant, which even allows room...
Read more >
Sensors | Home Assistant Companion Docs
The Beacon Monitor shows scans for BLE iBeacons. The state of the sensor shows if the app is monitoring or not. All beacons...
Read more >
ESPHome BLE beacon for room presence
I've got 3 ESP32's so far - all setup and working fine as BLE beacons, and OwnTracks can detect these and report location...
Read more >
Internal position tracking with co-ordinates using an iphone ...
The premise is to use 3 Room-assistant nodes on each floor to triangulate the position of a BLE device in my case an...
Read more >
iBeacons: Making presence detection work better (part I) - Blog
This post is by Home Assistant contributor Greg Dowling. In 2013 Apple introduced iBeacons: a class of Bluetooth low energy (LE) devices ...
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