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

Unable to connect to Elkbledom 1.0.1 #22

Closed
diandr6 opened this issue Apr 23, 2023 · 7 comments
Closed

Unable to connect to Elkbledom 1.0.1 #22

diandr6 opened this issue Apr 23, 2023 · 7 comments

Comments

@diandr6
Copy link

diandr6 commented Apr 23, 2023

Not connected on version 1.0.1 (1.0.0 also), but connected on version 0.0.4.

Device:

root@orangepi3-lts:~# gatttool -I
[                 ][LE]> connect BE:58:A5:00:00:36
Attempting to connect to BE:58:A5:00:00:36
Connection successful
[BE:58:A5:00:00:36][LE]> primary
attr handle: 0x0001, end grp handle: 0x0003 uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x0004, end grp handle: 0x0009 uuid: 0000fff0-0000-1000-8000-00805f9b34fb
[BE:58:A5:00:00:36][LE]> Characteristics
handle: 0x0002, char properties: 0x12, char value handle: 0x0003, uuid: 00002a00-0000-1000-8000-00805f9b34fb
handle: 0x0005, char properties: 0x10, char value handle: 0x0006, uuid: 0000fff4-0000-1000-8000-00805f9b34fb
handle: 0x0008, char properties: 0x06, char value handle: 0x0009, uuid: 0000fff3-0000-1000-8000-00805f9b34fb

In DEBUG bluetooth:

2023-04-24 00:30:40.445 DEBUG (MainThread) [bleak_retry_connector] ELK-BULB5       - BE:58:A5:00:00:36: Connection attempt: 1
2023-04-24 00:30:40.450 DEBUG (MainThread) [homeassistant.components.bluetooth.wrappers] BE:58:A5:00:00:36 - ELK-BULB5       -> /org/bluez/hci0: Connecting (last rssi: -83)
2023-04-24 00:30:41.283 DEBUG (MainThread) [homeassistant.components.bluetooth.wrappers] BE:58:A5:00:00:36 - ELK-BULB5       -> /org/bluez/hci0: Connected (last rssi: -83)
2023-04-24 00:30:52.395 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] hci0 (4F:E6:AC:D6:ED:89): Scanner watchdog time_since_last_detection: 0.3000001499985956

The lamp is plugged in 220v. Distance 1.5 meters.
ELKBLE_error1

When the lamp is disconnected from 220v:

2023-04-24 00:58:06.562 DEBUG (MainThread) [bleak_retry_connector] ELK-BULB5       - BE:58:A5:00:00:36: Connection attempt: 1
2023-04-24 00:58:06.564 DEBUG (MainThread) [bleak_retry_connector] ELK-BULB5       - BE:58:A5:00:00:36: Failed to connect: No backend with an available connection slot that can reach address BE:58:A5:00:00:36 was found, backing off: 4.0 (attempt: 1, last rssi: None)
2023-04-24 00:58:06.565 DEBUG (MainThread) [bleak_retry_connector.bluez] ELK-BULB5       - BE:58:A5:00:00:36: Device was removed from bus, waiting 4.0 for it to re-appear: 'org.bluez.Device1'
x10

On version 0.0.4 bluetooth debug:

2023-04-24 01:32:24.359 DEBUG (MainThread) [bleak_retry_connector] ELK-BULB5       - BE:58:A5:00:00:36: Connection attempt: 1
2023-04-24 01:32:24.366 DEBUG (MainThread) [homeassistant.components.bluetooth.wrappers] BE:58:A5:00:00:36 - ELK-BULB5       -> /org/bluez/hci0: Connecting (last rssi: -85)
2023-04-24 01:32:28.917 DEBUG (MainThread) [homeassistant.components.bluetooth.base_scanner] hci0 (4F:E6:AC:D6:ED:89): Scanner watchdog time_since_last_detection: 2.5600013210005272
2023-04-24 01:32:31.057 DEBUG (MainThread) [homeassistant.components.bluetooth.manager] hci0 (4F:E6:AC:D6:ED:89) [connectable]: BE:58:A5:00:00:36 AdvertisementData(local_name='ELK-BULB5      ', service_uuids=['00001800-0000-1000-8000-00805f9b34fb', '0000fff0-0000-1000-8000-00805f9b34fb'], rssi=-84) match: set()
2023-04-24 01:32:31.060 DEBUG (MainThread) [homeassistant.components.bluetooth.wrappers] BE:58:A5:00:00:36 - ELK-BULB5       -> /org/bluez/hci0: Connected (last rssi: -85)
2023-04-24 01:32:50.903 DEBUG (MainThread) [bleak_retry_connector] ELK-BULB5       - BE:58:A5:00:00:36: Connection attempt: 1
2023-04-24 01:32:50.904 DEBUG (MainThread) [homeassistant.components.bluetooth.wrappers] BE:58:A5:00:00:36 - ELK-BULB5       -> /org/bluez/hci0: Connecting (last rssi: -85)
2023-04-24 01:32:51.659 DEBUG (MainThread) [homeassistant.components.bluetooth.wrappers] BE:58:A5:00:00:36 - ELK-BULB5       -> /org/bluez/hci0: Connected (last rssi: -85)

On version 0.0.4 it connects well, but there are problems with white light.
I don't know what to do...

dave-code-ruiz added a commit that referenced this issue Apr 24, 2023
Some changes:
- support fr and pl translations
- solved #21 #22
@dave-code-ruiz
Copy link
Owner

i think version 1.0.2 solves your problem

please check it and post results

Thanks

dave-code-ruiz added a commit that referenced this issue Apr 24, 2023
Some changes:
- support fr and pl translations
- solved #21 #22
@diandr6
Copy link
Author

diandr6 commented Apr 24, 2023

On version 1.0.2, the lamp works and connects, but the white color does not behave as usual. For the interface, the lamp is always at 94% brightness (even if the HA interface is set to 1%) and the selected color mode. Warm white and cool white modes do not work correctly. Warm white = 10,000K and cool white = 1,000,000K when the actual range is 3000K to 6500K. When the lamp is turned on in white mode, the interface is displayed as in color mode (blue or light yellow) and turning off / on the lamp switches it to color mode.

@dave-code-ruiz
Copy link
Owner

Use debug log to see more information of posible errors.

In configuration.yaml:

logger:
  default: info
  logs:
    custom_components.elkbledom: debug

Post log results.

But i think your led strip have diferent commands to change color, turn white, ... and you need to discover its commands and post here, otherwise, i cant help you.

@dave-code-ruiz
Copy link
Owner

another thing, in integration config you can reset to color white when you turn on, i use it to reset led strip when other infrared control interact, you can disable it

@diandr6
Copy link
Author

diandr6 commented Apr 26, 2023

I think the video will make it clearer what's going on.
https://youtu.be/AtCGdVATMDE

@dave-code-ruiz
Copy link
Owner

ok, issue "Unable to connect to Elkbledom 1.0.1" now it is working, i close this issue, please open new issue with this info to try to study it, it is complicated and i need more time

@dave-code-ruiz
Copy link
Owner

please try with https://www.home-assistant.io/integrations/led_ble/ it is posible works best for you

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

2 participants