core: Bluetooth Broken Pipe Error

The problem

Added the Bluetooth integration successfully. I added the SwitchBot integration successfully but whenever I try to control the SwitchBot covers, I get this Broken Pipe errors. The error appears to be with bluetooth rather than the SwitchBot integration so I am reporting it as a Core issue. I don’t have any other bluetooth devices to try.

What version of Home Assistant Core has the issue?

2022.8.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

bluetooth

Link to integration documentation on our website

https://www.home-assistant.io/integrations/bluetooth/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: bleak.backends.bluezdbus.client
Source: /usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py:194
First occurred: 11:47:11 AM (5 occurrences)
Last logged: 11:48:02 AM

    Failed to cancel connection (/org/bluez/hci0/dev_E9_A2_30_72_F9_E4): [Errno 32] Broken pipe
    Failed to cancel connection (/org/bluez/hci0/dev_E9_A2_30_72_F9_E4):


Logger: switchbot.devices.device
Source: /usr/local/lib/python3.10/site-packages/switchbot/devices/device.py:84
First occurred: 11:48:06 AM (1 occurrences)
Last logged: 11:48:06 AM

Switchbot communication failed. Stopping trying
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 102, in establish_connection
    await client.connect(timeout=BLEAK_TIMEOUT)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 167, in connect
    assert_reply(reply)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
    raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] le-connection-abort-by-local

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 81, in _sendcommand
    return await self._send_command_locked(key, command)
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 104, in _send_command_locked
    client = await establish_connection(
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 134, in establish_connection
    _raise_if_needed(name, exc)
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 94, in _raise_if_needed
    raise BleakAbortedError(f"{msg}: {ABORT_ADVICE}") from exc
bleak_retry_connector.BleakAbortedError: E9-A2-30-72-F9-E4 (E9:A2:30:72:F9:E4): Failed to connect: [org.bluez.Error.Failed] le-connection-abort-by-local: Interference/range; External Bluetooth adapter w/extension may help; Extension cables reduce USB 3 port interference


Logger: switchbot.devices.device
Source: /usr/local/lib/python3.10/site-packages/switchbot/devices/device.py:84
First occurred: 11:48:06 AM (1 occurrences)
Last logged: 11:48:06 AM

Switchbot communication failed. Stopping trying
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 102, in establish_connection
    await client.connect(timeout=BLEAK_TIMEOUT)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/client.py", line 167, in connect
    assert_reply(reply)
  File "/usr/local/lib/python3.10/site-packages/bleak/backends/bluezdbus/utils.py", line 22, in assert_reply
    raise BleakDBusError(reply.error_name, reply.body)
bleak.exc.BleakDBusError: [org.bluez.Error.Failed] le-connection-abort-by-local

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 81, in _sendcommand
    return await self._send_command_locked(key, command)
  File "/usr/local/lib/python3.10/site-packages/switchbot/devices/device.py", line 104, in _send_command_locked
    client = await establish_connection(
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 134, in establish_connection
    _raise_if_needed(name, exc)
  File "/usr/local/lib/python3.10/site-packages/bleak_retry_connector/__init__.py", line 94, in _raise_if_needed
    raise BleakAbortedError(f"{msg}: {ABORT_ADVICE}") from exc
bleak_retry_connector.BleakAbortedError: E9-A2-30-72-F9-E4 (E9:A2:30:72:F9:E4): Failed to connect: [org.bluez.Error.Failed] le-connection-abort-by-local: Interference/range; External Bluetooth adapter w/extension may help; Extension cables reduce USB 3 port interference

Additional information

The hardware is Raspberry Pi 3 (brand new HA installation)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (6 by maintainers)

Most upvoted comments

I’m using the ZEXMTE BT-505 [RTL8761BU] (Long Range) adapter I bought off aliexpress without any issues