Closed Zilla31 closed 19 hours ago
An RSSI value of 92 is quite low and probably not enough to establish a stable Bluetooth connection. For a reliable connection, an RSSI value closer to zero is usually needed Try moving your device closer
Try to send init commands too, you can see how to here:
https://github.com/dave-code-ruiz/elkbledom/issues/45#issuecomment-1784558407
Thanks Dave,
I am using HAcore. While I use SSH with cmd ~ sudo gatttool -b FF:FF:10:EE:4E:B4 --char-write-req -a 0x0009 -n 7e0783 I am getting : sudo: gatttool: command not found
I see I can use the cmd bluetoothctl and have the following feedback:
bluetoothctl info FF:FF:10:EE:4E:B4
Device FF:FF:10:EE:4E:B4 (public)
Name: ELK-BLEDOM
Alias: ELK-BLEDOM
Paired: no
Bonded: no
Trusted: no
Blocked: no
Connected: no
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Unknown (00007777-0000-1000-8000-00805f9b34fb)
UUID: Unknown (0000fff0-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (5833ff01-9b8b-5191-6142-22a4536ef123)
ManufacturerData.Key: 0xffff (65535)
ManufacturerData.Value:
ff ff 10 ee 4e b4 66 25 05 00 07 03 01 00 ....N.f%......
RSSI: 0xffffffbc (-68)
AdvertisingFlags:
06 .
So I place my USB bluetooth key close from teh device so RSSI increase up to -68.
If you can tell me what I may be doing wrong with the sudo gatttool command
No chance to get any further advices or help? Cheers
try without sudo
gatttool -b FF:FF:10:EE:4E:B4 --char-write-req -a 0x0009 -n 7e0783
but it is possible you haven,t gatttool and received gatttool: command not found
Nope, it is the same. No chance the command bluetoothctl can allow me to achieve the same. The integration automatically discover my device but it does not blink during the configuration. When setup is finalize, I have 2 entities: one for the light with of the list of effect I have access to in the phone application and another numerical state entity for the speed transition effect. I have also the following traces in the log: 2024-07-23 09:07:33.609 INFO (MainThread) [homeassistant.setup] Setting up elkbledom 2024-07-23 09:07:33.609 INFO (MainThread) [homeassistant.setup] Setup of domain elkbledom took 0.00 seconds 2024-07-23 09:07:33.610 DEBUG (MainThread) [custom_components.elkbledom] Config: Reset: None, Delay: None, Mac: FF:FF:10:EE:4E:B4 2024-07-23 09:07:33.610 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] device ELK-BLEDOM: FF:FF:10:EE:4E:B4 -82 2024-07-23 09:07:33.610 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] Model information for device ELK-BLEDOM : ModelNo ELK-BLE, Turn on cmd [126, 0, 4, 240, 0, 1, 255, 0, 239], Turn off cmd [126, 0, 4, 0, 0, 0, 255, 0, 239], rssi -82 2024-07-23 09:07:57.607 INFO (MainThread) [homeassistant.components.light] Setting up elkbledom.light 2024-07-23 09:07:57.607 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Connecting; RSSI: -82 2024-07-23 09:07:57.622 INFO (MainThread) [homeassistant.components.number] Setting up elkbledom.number 2024-07-23 09:07:57.622 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Connection already in progress, waiting for it to complete; RSSI: -82 2024-07-23 09:08:07.613 WARNING (MainThread) [homeassistant.components.light] Setup of light platform elkbledom is taking over 10 seconds. 2024-07-23 09:08:07.632 WARNING (MainThread) [homeassistant.components.number] Setup of number platform elkbledom is taking over 10 seconds. 2024-07-23 09:08:09.542 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Connected; RSSI: -82 2024-07-23 09:08:09.543 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] login command for: ELK-BLEDOM not needed; RSSI: -82 2024-07-23 09:08:09.543 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Subscribe to notifications; RSSI: -82 2024-07-23 09:08:58.618 DEBUG (MainThread) [custom_components.elkbledom.config_flow] Discovered bluetooth devices, step bluetooth, : FF:FF:10:EE:4E:B4 , ELK-BLEDOM 2024-07-23 09:08:58.619 DEBUG (MainThread) [custom_components.elkbledom.config_flow] Discovered bluetooth devices, step bluetooth, : FF:FF:10:EE:4E:B4 , ELK-BLEDOM 2024-07-23 09:20:24.201 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn on: {} color mode: white 2024-07-23 09:20:24.201 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 f0 00 01 ff 00 ef 2024-07-23 09:21:12.559 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn off: {} color mode: white 2024-07-23 09:21:12.560 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 00 00 00 ff 00 ef
all is correct in this log, your led strip should blink and entity light should on/off effect and color works
sorry i have not any suggestion
Try with new version 1.1.7
Hello, I bought the following LED device with amazon https://www.amazon.fr/dp/B09P9N4FLC?psc=1&ref=ppx_yo2ov_dt_b_product_details
It works with LanterneLotus. The device is found with ElkBledom but the commands sent from HA have no effect to the LED and I do not a specific error.
Below is some log if it can help: 2024-07-08 22:26:25.494 DEBUG (MainThread) [custom_components.elkbledom] Config: Reset: None, Delay: None, Mac: FF:FF:10:EE:4E:B4 2024-07-08 22:26:25.495 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] device ELK-BLEDOM: FF:FF:10:EE:4E:B4 -92 2024-07-08 22:26:25.495 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] Model information for device ELK-BLEDOM : ModelNo ELK-BLE, Turn on cmd [126, 0, 4, 240, 0, 1, 255, 0, 239], Turn off cmd [126, 0, 4, 0, 0, 0, 255, 0, 239], rssi -92 2024-07-08 22:26:36.933 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Connecting; RSSI: -92 2024-07-08 22:26:36.962 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Connection already in progress, waiting for it to complete; RSSI: -92 2024-07-08 22:26:40.599 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Connected; RSSI: -92 2024-07-08 22:26:40.599 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] login command for: ELK-BLEDOM not needed; RSSI: -92 2024-07-08 22:26:40.600 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] ELK-BLEDOM: Subscribe to notifications; RSSI: -92 2024-07-08 22:27:29.881 DEBUG (MainThread) [custom_components.elkbledom.config_flow] Discovered bluetooth devices, step bluetooth, : FF:FF:10:EE:4E:B4 , ELK-BLEDOM 2024-07-08 22:48:59.314 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn off: {} color mode: white 2024-07-08 22:48:59.315 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 00 00 00 ff 00 ef 2024-07-08 22:49:03.498 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn on: {} color mode: white 2024-07-08 22:49:03.498 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 f0 00 01 ff 00 ef 2024-07-08 22:49:38.364 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn off: {} color mode: white 2024-07-08 22:49:38.364 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 00 00 00 ff 00 ef 2024-07-08 22:49:39.745 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn on: {} color mode: white 2024-07-08 22:49:39.745 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 f0 00 01 ff 00 ef 2024-07-08 22:49:48.377 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn off: {} color mode: white 2024-07-08 22:49:48.377 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 00 00 00 ff 00 ef 2024-07-08 22:49:50.216 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn on: {} color mode: white 2024-07-08 22:49:50.217 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 f0 00 01 ff 00 ef 2024-07-08 22:50:22.435 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn off: {} color mode: white 2024-07-08 22:50:22.436 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 00 00 00 ff 00 ef 2024-07-08 22:50:24.877 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn on: {} color mode: white 2024-07-08 22:50:24.878 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 f0 00 01 ff 00 ef 2024-07-08 22:50:26.505 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 02 4f 00 00 00 00 ef 2024-07-08 22:50:47.431 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn off: {} color mode: white 2024-07-08 22:50:47.431 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 00 00 00 ff 00 ef 2024-07-08 22:51:22.889 DEBUG (MainThread) [custom_components.elkbledom.light] Params turn on: {} color mode: white 2024-07-08 22:51:22.890 DEBUG (MainThread) [custom_components.elkbledom.elkbledom] 7e 00 04 f0 00 01 ff 00 ef