core: After Update 0.88.1 i can't connect any bluetooth device

Home Assistant release with the issue:

0.88.1

Last working Home Assistant release (if known): 0.88.0

Operating environment (Hass.io/Docker/Windows/etc.):

Virtual Env

Component/platform:

eq3 climate

Description of problem: Hi, i’ve a home assistant Virtual Env installed on my RPI3 B+. Recently i’ve upgraded home assistant and the rapsbian OS and i can’t connect anymore to my bluetooth devices.

I have 4 device bluetooth: 2 eq3 climate and two bulb bluetooth magicblue (with a custom component). Before the upgrade Everyone works fine, but after upgrade they stopped working. I’ve also reinstall all the env removing home assistant from /srv and reinstall, but no work. This is a bug of homeassistant or other?

Thanks

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):


Traceback (if applicable):

on eq3-cli:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/srv/homeassistant/lib/python3.5/site-packages/bluepy/btle.py", line 353, in __init__
    self._connect(deviceAddr, addrType, iface)
  File "/srv/homeassistant/lib/python3.5/site-packages/bluepy/btle.py", line 402, in _connect
    "Failed to connect to peripheral %s, addr type: %s" % (addr, addrType))
bluepy.btle.BTLEException: Failed to connect to peripheral 00:1A:22:0E:F2:BD, addr type: public

Additional information:

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 23 (9 by maintainers)

Most upvoted comments

This have wrong labels and should get escalated somehow because bluetooth is a critical function for a lot of us.

i’ve now the 0.89.1 and eq3b component sometimes work and sometimes not work. I don’t know if is a problem of library or other. Someone have see this bug? i’m always using the RPi 3B+ with virtual env python

In my case it can be fixed temporarily by calling hciconfig hci0 reset on the host. But sadly Bluetooth commands will stop working after a few minutes again as the device seems to be busy. Is Home Assistant not releasing a resource or something like that? (Just a thought, my knowledge of Bluetooth LE is shallow)

Perhaps upgrading bluez could help. The version provided in the Raspbian repositories is quite old (5.43).

I’am also using a 3 B and the internal BT, device tracking stopped working and more interestingly the whole home assistant startup hangs if I keep it in my config which caused 2 hours of headache.

Found a commit about bluetooth: https://github.com/home-assistant/home-assistant/commit/efa48848a5c27a175a29c282fc40f203bbce6609