Home Assistant custom component for LED STRIP NAMED ELK- , MELK- , LEDBLE or XROCKER
Home Assistant custom component for LED STRIP NAMED ELK- , MELK- , LEDBLE or XROCKER
This Home Assistant integration allows you to control Bluetooth Low Energy (BLE) LED strips, bulbs, and light bars that use the ELK-BLEDOM, MELK, LEDBLE, and similar protocols. These devices are commonly sold under various brands and controlled via mobile apps like:
This integration currently supports the following device models:
Note: These devices use specific Bluetooth UUIDs:
- Write UUID:
0000fff3-...or0000ffe1-...- Read UUID:
0000fff4-...or0000ffe2-...
custom_components/elkbledom folder to your Home Assistant config/custom_components/ directoryThis integration requires Bluetooth support on your Home Assistant installation. The integration uses:
If you want to manually test or troubleshoot Bluetooth connections, you can install gattool:
Debian/Ubuntu/Raspberry Pi OS:
sudo apt-get update
sudo apt-get install bluez bluez-toolsFedora:
sudo dnf install bluez-deprecatedArch Linux:
paru -S bluez-deprecated-tools
# or
yay -S bluez-deprecated-toolsThe integration automatically installs these dependencies:
bleak>=0.21.0
bleak-retry-connector>=3.1.0
home-assistant-bluetooth>=1.10.0For development or manual installation, you can install them with:
pip install -r requirements.txtYour device is likely compatible if:
ELK-BLE, MELK, LEDBLE, or XROCKERIf you want to verify compatibility manually, use gattool:
gatttool -IThen connect to your device (replace XX:XX:XX:XX:XX:XX with your device's MAC address):
…Check the UUIDs:
| UUID Pattern | Compatibility | Repository |
|---|---|---|
0000fff3-... or 0000ffe1-... |
Compatible | This repository |
0000ff01-... |
Use different integration | lednetwf_ble |
0000ffd5-..., 0000ffd9-..., etc. |
Use different integration | led_ble |
0000AC5x-... |
Use different integration | istrip_plus |
If your device isn't supported yet, you can help add support:
git clone https://github.com/dave-code-ruiz/elkbledom
cd elkbledom
pip install -r requirements.txt
python3 BTScan.pyThis will scan for BLE devices and create a JSON file with technical information. Then:
For more advanced users, check out our BLE Sniffing Guide to help reverse-engineer the protocol.
Ensure Bluetooth is enabled on your Home Assistant device:
Follow the Installation instructions above.
Your LED device is now available as a light entity in Home Assistant!
Problem: Your LED device doesn't appear in the discovered devices list.
Solutions:
ELK-BLE, MELK, LEDBLE, or similarbluetoothctl or the BTScan.py scriptProblem:
BleakOutOfConnectionSlotsError: Failed to connect after 9 attempt(s):
No backend with an available connection slot that can reach addressSolutions:
gatttool if you used it for testingProblem: MELK devices don't respond to commands after setup.
Solution: MELK devices require initialization commands. Send these via gatttool (replace MAC address):
sudo gatttool -b XX:XX:XX:XX:XX:XX --char-write-req -a 0x0009 -n 7e0783
sudo gatttool -b XX:XX:XX:XX:XX:XX --char-write-req -a 0x0009 -n 7e0404After sending these commands:
See Issue #11 for more details.
Problem: Changes made via IR remote or mobile app don't reflect in Home Assistant.
Explanation: This is a known limitation. The integration doesn't support live state polling.
Workaround:
Problem: LED strip changes randomly when using TV remote or other IR devices.
Explanation: Some cheap LED controllers respond to generic IR signals.
Solution:
Problem: Lights are slow to respond or frequently disconnect.
Solutions:
0 (never disconnect) for instant responseIf you're experiencing issues, enable debug logging to get more detailed information:
Add to configuration.yaml:
logger:
default: info
logs:
custom_components.elkbledom: debugRestart Home Assistant, reproduce the issue, then check the logs:
custom_components.elkbledomNote: Repeat the setup process for each light you want to add.
After setup, you can configure additional options:
| Setting | Description | Default | Options |
|---|---|---|---|
| Reset color on turn on | When the LED turns on, reset to white color | false |
true / false |
| Disconnect delay (seconds) | Time before disconnecting from the device when idle | 120 |
0 = Never disconnect |
30-300 = Seconds |
|||
| Brightness mode | How brightness is controlled | auto |
auto = Automatic detection |
rgb = RGB scaling |
|||
native = Device native |
|||
| Model | Override auto-detected device model | Auto-detected | ELK-BLEDOB, ELK-BLEDOM, MELK, LEDBLE, XROCKER, etc. |
| Effects class | Change the effects list/behavior | Default | Varies by device model |
0 for instant response but higher battery drain on battery-powered hubs120-180 seconds for balance between responsiveness and efficiency300+ seconds if you rarely control the lightsauto for most devices (automatically detects the best method)rgb if brightness control doesn't work properlynative for devices with dedicated brightness supportAutomatic Discovery
Power Control
Color Control
No open issues yet, or sync has not completed.