dave-code-ruiz / elkbledom

Home Assistant custom component for LED STRIP NAME ELK BLEDOM
MIT License
77 stars 16 forks source link

LED strip not returning any data #59

Closed grintroy closed 5 months ago

grintroy commented 7 months ago

My cheap LED strip from AliExpress is recognized automatically, but it throws an error when trying to configure it.

This error originated from a custom integration.

Logger: custom_components.elkbledom.elkbledom
Source: custom_components/elkbledom/elkbledom.py:547
Integration: elkbledom (documentation, issues)
First occurred: 11:17:10 PM (6 occurrences)
Last logged: 11:19:08 PM

ELK-BLEDOB: Device unexpectedly disconnected; RSSI: -68
This error originated from a custom integration.

Logger: custom_components.elkbledom.elkbledom
Source: custom_components/elkbledom/elkbledom.py:435
Integration: elkbledom (documentation, issues)
First occurred: 11:17:47 PM (1 occurrences)
Last logged: 11:17:47 PM

Error getting status: ELK-BLEDOB - BE:60:B0:00:88:21: Failed to connect after 4 attempt(s): failed to discover services, device disconnected

I can connect to it through gatttool. However, both primary and Characteristics commands return nothing:

$ gatttool -I
[                 ][LE]> connect be:60:b0:00:88:21
Attempting to connect to be:60:b0:00:88:21
Connection successful
[be:60:b0:00:88:21][LE]> primary
Error: Discover all primary services failed: Request attribute has encountered an unlikely error
dave-code-ruiz commented 7 months ago

Your led strip it is not supported,

https://github.com/dave-code-ruiz/elkbledom?tab=readme-ov-file#supported-strips

All my integration use attr handle with uuid: 0000fff0-0000-1000-8000-00805f9b34fb and you cannot access to it

[be:59:7a:00:08:xx][LE]> primary attr handle: 0x0004, end grp handle: 0x0009 uuid: 0000fff0-0000-1000-8000-00805f9b34fb

It is no possible to use it if you can not write anything to it.

Sometimes you have to send a special command to unlock it, but in your case I don't know, search on Google in case you find something about this.

For the integration to work, the "primary" command must return at least that attribute

attr handle: 0x0004, end grp handle: 0x0009 uuid: 0000fff0-0000-1000-8000-00805f9b34fb

grintroy commented 7 months ago

@dave-code-ruiz I understand. This is odd however, because I can use the Lotus Lantern app no problem.

Also, I managed to set this LED strip up while I was using Homebridge a while ago using this, although it was not reliable.

dave-code-ruiz commented 7 months ago

ok, it is possible you have another problem, If other element connect to the strip, the strip is blocked from connecting and HA cannot connect again to it you can stop integration with homebridge and try again primary command, if it works you can try integration again

post me results