BLE component has critical impact on HASS performance

Latest release (AiO installer).

When using the BLE component the BLE devices are successfully found and added to known_devices.yaml but the component has an incredible impact on HASS performance. It takes about 10 seconds to turn on a light and automation randomly won’t trigger.

There is one issue existing but it is about missing root privileges and the performance impact is mentioned but the issue itself is closed.

Do you guys have any solution for that? Is there another way to have presence detection working with BLE devices?

1 Like

Exactly the same issue i’m facing. After enabling the BT LE component my RPi3 came down to a crawl. Switching anything on or off takes almost 5-6 seconds.

Furhtermore. On a clean install of raspbian running
sudo hcitool lescan - reported all the MiBands within range.
After following the instructions from the Bluetooth LE component page (below) i can no longer see MiBands by running hcitool lescan!!!
How can that be?!

sudo apt install bluetooth libbluetooth-dev pkg-config libboost-python-dev libboost-thread-dev libglib2.0-dev python-dev

and

$ sudo setcap cap_net_raw,cap_net_admin+eip /srv/homeassistant/homeassistant_venv/bin/python3

I think this is already open as a bug:

Not sure what’s happening about it though…

bump

I just wondered if this issue is being looked at?

I’m wondering if it’s either:

  1. ha issue

  2. pi os related, so wondering what commands get called and what’s happening during the delay

  3. pi hardware related, so thinking of trying this:
    http://www.ebay.co.uk/itm/112140573901

The issue is still open on GitHub.
Is there any progress with solving the issue?
The component is unusable at the moment due to huge impact on RPI3 performance.

1 Like

@Molodax - I wondered about disabling the rpi3 ble card and then using a seperate USB stick, thoughts?

It would be good to know the experience who are running HASS on RPi2.
I don’t have a bt usb stick at the moment.

1 Like

@Molodax - yeah true, esp considering that the pi2 doesn’t have onboard BLE and anyone that has this setup would be using some kind of USB BLE stick.

UPDATE: This looks like the note to disable the onboard BLE but still have a working BLE USB dongle:
https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=146598

Key thing i’m wondering - is it an issue with PI/Raspbian or HA?