Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytboss connection fail #116

Open
joriws opened this issue Jul 7, 2024 · 0 comments
Open

Pytboss connection fail #116

joriws opened this issue Jul 7, 2024 · 0 comments

Comments

@joriws
Copy link

joriws commented Jul 7, 2024

I use Pytboss via HA-integration, but by looking debug log this seems to be more pytboss underlying issue. First, Pitboss-integration finds the grill and notifies it, meaning HA BT can hear the grill. The grill is navigator 850 with aftermarket WiFi extension control board "Pit Boss Legacy Connected Control Board 440-1000", not 100% sure if 01 or 02 -version. Board web page states that it works with: Navigator Series - PB850G, PB1150G, and zero issues with Pitboss Android app, works fantastic.

Now to the HA integration, as said HA-Pitboss autodiscovers the grill. I had updated the integration to latest version, but unfortunately did not remember to restart HA so I think "-1" from newest was still in use. On integration's autodiscovery screen I've set my grill to PB850G/GW.

Is there some other gril typel I need to use to have correct backend/device ref. "bleak.exc.BleakError: No backend with an available connection slot that can reach address 40:08:84:F1:3C:22 was found"

HA side integration shows device and 15 sensors/entities but all are unavailable:
image

HA DEBUG LOG:

2024-07-07 13:38:43.664 DEBUG (MainThread) [custom_components.pitboss] Bluetooth device detected: (BluetoothChange.ADVERTISEMENT)
2024-07-07 13:38:43.666 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 40:08:84:F1:3C:22: PBC-09ED444
2024-07-07 13:38:43.674 DEBUG (MainThread) [custom_components.pitboss] Setting up PitBoss API with device: 40:08:84:F1:3C:22: PBC-09ED444
2024-07-07 13:39:40.093 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 363, in establish_connection
await client.connect(
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 285, in connect
wrapped_backend = self._async_get_best_available_backend_and_device(manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 394, in _async_get_best_available_backend_and_device
raise BleakError(
bleak.exc.BleakError: No backend with an available connection slot that can reach address 40:08:84:F1:3C:22 was found

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

Traceback (most recent call last):
File "/config/custom_components/pitboss/coordinator.py", line 58, in reset_device
await self.api.start()
File "/usr/local/lib/python3.12/site-packages/pytboss/api.py", line 61, in start
await self._conn.connect()
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 89, in connect
self._ble_client = await bleak_retry_connector.establish_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 472, in establish_connection
_raise_if_needed(name, device.address, exc)
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 332, in _raise_if_needed
raise BleakOutOfConnectionSlotsError(
bleak_retry_connector.BleakOutOfConnectionSlotsError: PBC-09ED444 - 40:08:84:F1:3C:22: Failed to connect after 10 attempt(s): No backend with an available connection slot that can reach address 40:08:84:F1:3C:22 was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device
2024-07-07 13:40:47.058 WARNING (MainThread) [homeassistant.components.camera] Updating tapo_control camera took longer than the scheduled update interval 0:00:30
2024-07-07 13:40:56.545 DEBUG (MainThread) [custom_components.pitboss] Bluetooth device detected: (BluetoothChange.ADVERTISEMENT)
2024-07-07 13:40:56.546 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 40:08:84:F1:3C:22: PBC-09ED444
2024-07-07 13:40:56.546 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 40:08:84:F1:3C:22: PBC-09ED444
2024-07-07 13:40:56.546 DEBUG (MainThread) [pytboss] Resetting device to: 40:08:84:F1:3C:22: PBC-09ED444
2024-07-07 13:40:56.546 DEBUG (MainThread) [pytboss] Disconnecting from device.
2024-07-07 13:42:31.143 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 363, in establish_connection
await client.connect(
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 285, in connect
wrapped_backend = self._async_get_best_available_backend_and_device(manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 394, in _async_get_best_available_backend_and_device
raise BleakError(
bleak.exc.BleakError: No backend with an available connection slot that can reach address 40:08:84:F1:3C:22 was found

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

Traceback (most recent call last):
File "/config/custom_components/pitboss/coordinator.py", line 62, in reset_device
await self.conn.reset_device(device)
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 127, in reset_device
await self.connect()
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 89, in connect
self._ble_client = await bleak_retry_connector.establish_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 472, in establish_connection
_raise_if_needed(name, device.address, exc)
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 332, in _raise_if_needed
raise BleakOutOfConnectionSlotsError(
bleak_retry_connector.BleakOutOfConnectionSlotsError: PBC-09ED444 - 40:08:84:F1:3C:22: Failed to connect after 12 attempt(s): No backend with an available connection slot that can reach address 40:08:84:F1:3C:22 was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device
2024-07-07 13:46:08.056 DEBUG (MainThread) [custom_components.pitboss] Bluetooth device detected: (BluetoothChange.ADVERTISEMENT)
2024-07-07 13:46:08.057 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:46:08.057 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:46:08.057 DEBUG (MainThread) [pytboss] Resetting device to: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:46:08.058 DEBUG (MainThread) [pytboss] Disconnecting from device.
2024-07-07 13:46:08.059 INFO (MainThread) [custom_components.pitboss] Found PitBoss smoker: PBC-09ED444 @ 6C:66:7D:31:7A:D1
2024-07-07 13:47:04.421 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 363, in establish_connection
await client.connect(
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 285, in connect
wrapped_backend = self._async_get_best_available_backend_and_device(manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 394, in _async_get_best_available_backend_and_device
raise BleakError(
bleak.exc.BleakError: No backend with an available connection slot that can reach address 6C:66:7D:31:7A:D1 was found

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

Traceback (most recent call last):
File "/config/custom_components/pitboss/coordinator.py", line 62, in reset_device
await self.conn.reset_device(device)
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 127, in reset_device
await self.connect()
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 89, in connect
self._ble_client = await bleak_retry_connector.establish_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 472, in establish_connection
_raise_if_needed(name, device.address, exc)
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 332, in _raise_if_needed
raise BleakOutOfConnectionSlotsError(
bleak_retry_connector.BleakOutOfConnectionSlotsError: PBC-09ED444 - 6C:66:7D:31:7A:D1: Failed to connect after 10 attempt(s): No backend with an available connection slot that can reach address 6C:66:7D:31:7A:D1 was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device
2024-07-07 13:53:10.717 DEBUG (MainThread) [custom_components.pitboss] Bluetooth device detected: (BluetoothChange.ADVERTISEMENT)
2024-07-07 13:53:10.722 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:53:10.722 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:53:10.722 DEBUG (MainThread) [pytboss] Resetting device to: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:53:10.722 DEBUG (MainThread) [pytboss] Disconnecting from device.
2024-07-07 13:54:06.810 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 363, in establish_connection
await client.connect(
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 285, in connect
wrapped_backend = self._async_get_best_available_backend_and_device(manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/habluetooth/wrappers.py", line 394, in _async_get_best_available_backend_and_device
raise BleakError(
bleak.exc.BleakError: No backend with an available connection slot that can reach address 6C:66:7D:31:7A:D1 was found

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

Traceback (most recent call last):
File "/config/custom_components/pitboss/coordinator.py", line 62, in reset_device
await self.conn.reset_device(device)
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 127, in reset_device
await self.connect()
File "/usr/local/lib/python3.12/site-packages/pytboss/ble.py", line 89, in connect
self._ble_client = await bleak_retry_connector.establish_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 472, in establish_connection
_raise_if_needed(name, device.address, exc)
File "/usr/local/lib/python3.12/site-packages/bleak_retry_connector/init.py", line 332, in _raise_if_needed
raise BleakOutOfConnectionSlotsError(
bleak_retry_connector.BleakOutOfConnectionSlotsError: PBC-09ED444 - 6C:66:7D:31:7A:D1: Failed to connect after 10 attempt(s): No backend with an available connection slot that can reach address 6C:66:7D:31:7A:D1 was found: The proxy/adapter is out of connection slots or the device is no longer reachable; Add additional proxies (https://esphome.github.io/bluetooth-proxies/) near this device
2024-07-07 13:59:59.711 DEBUG (MainThread) [custom_components.pitboss] Bluetooth device detected: (BluetoothChange.ADVERTISEMENT)
2024-07-07 13:59:59.712 DEBUG (MainThread) [custom_components.pitboss] Resetting device: 6C:66:7D:31:7A:D1: PBC-09ED444
2024-07-07 13:59:59.712 DEBUG (MainThread) [custom_components.pitboss] Setting up PitBoss API with device: 6C:66:7D:31:7A:D1: PBC-09ED444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant