Skip to content
New issue

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

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

Already on GitHub? # to your account

ISP-D47261 cannot be added #19

Open
RealShade opened this issue Jan 14, 2025 · 3 comments
Open

ISP-D47261 cannot be added #19

RealShade opened this issue Jan 14, 2025 · 3 comments

Comments

@RealShade
Copy link

Mini-PC
Bluetooth Radio (0bda:c821)
Realtek

hassio

Core
2025.1.2
Supervisor
2024.12.3
Operating System
14.1
Інтерфейс
20250109.0

The device was detected correctly (ISP-D47261 (7261)), during the installation there were several attempts to connect, which the LEDs indicated by blinking. The attempts lasted for about 2 minutes, but the installation was not successful.

click "Add"...
2025-01-14 12:35:07.366 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Update in ideal led called
2025-01-14 12:35:07.366 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Ensure connected
2025-01-14 12:35:07.366 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Connecting
2025-01-14 12:35:08.481 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:35:15.805 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:35:24.449 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:35:31.790 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:35:42.511 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:35:42.615 ERROR (MainThread) [custom_components.ideal_led.idealled] Error getting status: ISP-D47261 - 97:E8:00:D4:72:61: Failed to connect after 4 attempt(s): failed to discover services, device disconnected
2025-01-14 12:35:42.622 DEBUG (MainThread) [custom_components.ideal_led.idealled] Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/bleak_retry_connector/init.py", line 363, in establish_connection
await client.connect(
...<3 lines>...
)
File "/usr/local/lib/python3.13/site-packages/habluetooth/wrappers.py", line 311, in connect
connected = await super().connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/bleak/init.py", line 615, in connect
return await self._backend.connect(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/client.py", line 273, in connect
await self.get_services(
dangerous_use_bleak_cache=dangerous_use_bleak_cache
)
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/client.py", line 661, in get_services
self.services = await manager.get_services(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
self._device_path, dangerous_use_bleak_cache, self._requested_services
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/manager.py", line 658, in get_services
await self._wait_for_services_discovery(device_path)
File "/usr/local/lib/python3.13/site-packages/bleak/backends/bluezdbus/manager.py", line 791, in _wait_for_services_discovery
raise BleakError("failed to discover services, device disconnected")
bleak.exc.BleakError: failed to discover services, device disconnected
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/ideal_led/idealled.py", line 495, in update
await self._ensure_connected()
File "/config/custom_components/ideal_led/idealled.py", line 520, in _ensure_connected
client = await establish_connection(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<6 lines>...
)
^
File "/usr/local/lib/python3.13/site-packages/bleak_retry_connector/init.py", line 472, in establish_connection
_raise_if_needed(name, device.address, exc)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/bleak_retry_connector/init.py", line 339, in _raise_if_needed
raise BleakConnectionError(msg) from exc
bleak_retry_connector.BleakConnectionError: ISP-D47261 - 97:E8:00:D4:72:61: Failed to connect after 4 attempt(s): failed to discover services, device disconnected
2025-01-14 12:35:42.623 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Ensure connected
2025-01-14 12:35:42.623 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Connecting
2025-01-14 12:35:50.364 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:36:00.408 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:36:19.986 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:36:26.679 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:36:32.535 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected from device
2025-01-14 12:36:37.367 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Stop
2025-01-14 12:36:37.367 DEBUG (MainThread) [custom_components.ideal_led.idealled] ISP-D47261: Disconnected
got "Unknown error occurred"

2025-01-14 124922
2025-01-14 124855

@8none1
Copy link
Owner

8none1 commented Jan 14, 2025

Please enable debug logging (#18 (comment)) and attach the logs here.

I suspect that this is a Bluetooth range issue more than a software bug, but the logs will confirm that.

@RealShade
Copy link
Author

I suspect that this is a Bluetooth range issue more than a software bug, but the logs will confirm that.

But the LEDs blink exactly as when connecting using the app, i.e. Bluetooth is successfully connected to

home-assistant_hacs_2025-01-14T18-50-35.448Z.log

@8none1
Copy link
Owner

8none1 commented Jan 14, 2025

bleak_retry_connector.BleakConnectionError: ISP-D47261 - 97:E8:00:D4:72:61: Failed to connect after 5 attempt(s): failed to discover services, device disconnected

Bluetooth is super flaky. You can see from the log that it tries to connect to the device and keeps retrying but never connects successfully. This happens often, lots of people have the same problem on different brands of LED lights.

Please try to delete the existing iDeal device and re-add it, and attach the logs.

The other thing to try is getting an ESP32 and flashing it with the Bluetooth proxy software from ESPhome: https://esphome.io/components/bluetooth_proxy.html

This has solved lots of problems for many people.

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

No branches or pull requests

2 participants