Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

elkbledom

> 编程语言
Open source

Home Assistant custom component for LED STRIP NAMED ELK- , MELK- , LEDBLE or XROCKER

198 stars0 likes2 views
WebsiteGitHub

About

Home Assistant custom component for LED STRIP NAMED ELK- , MELK- , LEDBLE or XROCKER


Overview

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:

  • duoCo Strip (Play Store)
  • Lotus Lantern (Play Store)
  • Lotus Lamp X (Play Store)
  • Happy Lighting

Supported Devices

This integration currently supports the following device models:

ELK Family

  • ELK-BLEDOM
  • ELK-BLEDOB
  • ELK-BLEDDM
  • ELK-BLE
  • ELK-BTC
  • ELK-BULB
  • ELK-BULB2
  • ELK-LAMPL
  • MELK
  • MELK-OA10
  • MELK-OC10
  • MELK-OF10
  • MELK-OG10
  • MELK-OA21
  • LEDBLE
  • LED-
  • JACKYLED
  • XROCKER
  • DMRRBA-007

Note: These devices use specific Bluetooth UUIDs:

  • Write UUID: 0000fff3-... or 0000ffe1-...
  • Read UUID: 0000fff4-... or 0000ffe2-...

Where to Buy

  • Amazon LED Strips (Example)
  • LED Light Bar (Example)
  • MELK Strip (Example)
  • ELK BTC Strip (Example)
  • Search for "ELK-BLEDOM", "MELK LED", or "Bluetooth LED Strip" on your local Amazon

Installation

Method 1: HACS (Recommended)

  1. Open HACS in your Home Assistant
  2. Go to Integrations
  3. Search for "elkbledom" in HACS
  4. Click Download
  5. Restart Home Assistant

Method 2: Manual Installation

  1. Download the latest release from GitHub
  2. Extract and copy the custom_components/elkbledom folder to your Home Assistant config/custom_components/ directory
  3. Restart Home Assistant

Dependencies

System Requirements

This integration requires Bluetooth support on your Home Assistant installation. The integration uses:

  • Home Assistant Bluetooth integration (built-in, enabled by default in recent versions)
  • Python BLE libraries (automatically installed)

Optional: Manual Bluetooth Tools

If you want to manually test or troubleshoot Bluetooth connections, you can install gattool:

Debian/Ubuntu/Raspberry Pi OS:

bash
sudo apt-get update
sudo apt-get install bluez bluez-tools

Fedora:

bash
sudo dnf install bluez-deprecated

Arch Linux:

bash
paru -S bluez-deprecated-tools
# or
yay -S bluez-deprecated-tools

Python Requirements

The integration automatically installs these dependencies:

bleak>=0.21.0
bleak-retry-connector>=3.1.0
home-assistant-bluetooth>=1.10.0

For development or manual installation, you can install them with:

bash
pip install -r requirements.txt

Check Device Compatibility

Quick Compatibility Check

Your device is likely compatible if:

  • Device name starts with: ELK-BLE, MELK, LEDBLE, or XROCKER
  • Controlled by apps: duoCo Strip, Lotus Lantern, Lotus Lamp X, or Happy Lighting
  • Has Bluetooth Low Energy (BLE) connectivity

Advanced Compatibility Check with gattool

If you want to verify compatibility manually, use gattool:

bash
gatttool -I

Then 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

Using BTScan for Unsupported Devices

If your device isn't supported yet, you can help add support:

bash
git clone https://github.com/dave-code-ruiz/elkbledom
cd elkbledom
pip install -r requirements.txt
python3 BTScan.py

This will scan for BLE devices and create a JSON file with technical information. Then:

  1. Create a new issue on GitHub
  2. Attach the generated JSON file
  3. Include device name, brand, and purchase link if available

For more advanced users, check out our BLE Sniffing Guide to help reverse-engineer the protocol.


Quick Start Guide

Step 1: Enable Bluetooth

Ensure Bluetooth is enabled on your Home Assistant device:

  1. Go to Settings → System → Hardware
  2. Verify Bluetooth is detected
  3. If not, check your hardware supports Bluetooth or add a USB Bluetooth adapter

Step 2: Install Integration

Follow the Installation instructions above.

Step 3: Add Your Device

  1. Go to Settings → Devices & Services → Integrations
  2. Click + Add Integration
  3. Search for "elkbledom"
  4. Select your device from the discovered list
  5. Watch your light toggle to confirm connection
  6. Click Submit

Step 4: Control Your Lights

Your LED device is now available as a light entity in Home Assistant!


Troubleshooting

Common Issues

1. Device Not Discovered

Problem: Your LED device doesn't appear in the discovered devices list.

Solutions:

  • Ensure the device is powered on and within Bluetooth range (~10 meters)
  • Disconnect the device from any mobile app
  • Restart the Bluetooth service in Home Assistant
  • Check if your device name starts with ELK-BLE, MELK, LEDBLE, or similar
  • Manually scan for BLE devices using bluetoothctl or the BTScan.py script

2. Connection Failed / Out of Slots Error

Problem:

BleakOutOfConnectionSlotsError: Failed to connect after 9 attempt(s): 
No backend with an available connection slot that can reach address

Solutions:

  • Only ONE device can connect to the LED strip at a time
  • Close the mobile app completely (force stop on Android)
  • Disconnect from gatttool if you used it for testing
  • Wait 30 seconds and try again
  • Power cycle the LED strip

3. MELK Devices - Initialization Required

Problem: MELK devices don't respond to commands after setup.

Solution: MELK devices require initialization commands. Send these via gatttool (replace MAC address):

bash
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 7e0404

After sending these commands:

  1. Restart the LED strip (power off/on)
  2. Reload the integration in Home Assistant
  3. The device should now work normally

See Issue #11 for more details.

4. State Not Updating

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:

  • Control the lights exclusively through Home Assistant
  • Use HA automations instead of physical remotes

5. Interference with TV Remote or Other Devices

Problem: LED strip changes randomly when using TV remote or other IR devices.

Explanation: Some cheap LED controllers respond to generic IR signals.

Solution:

  • Block the IR receiver on the LED controller (small piece of tape)
  • Control exclusively via Bluetooth/Home Assistant
  • Replace the controller with a better quality one

6. Slow Response / Disconnects

Problem: Lights are slow to respond or frequently disconnect.

Solutions:

  • Reduce the disconnect delay in configuration (try 60 seconds)
  • Move the Home Assistant device closer to the LED strip
  • Check for Bluetooth interference (WiFi routers, microwaves, etc.)
  • Use a USB Bluetooth adapter with better range
  • Set disconnect delay to 0 (never disconnect) for instant response
  • Use ESPHome Bluetooth Proxy: Deploy ESPHome Bluetooth proxy devices (ESP32) closer to your LED strips for extended range and better reliability
    • ESP32 devices act as Bluetooth bridges
    • Significantly improves range and connection stability
    • Cost-effective solution (~$5-10 per ESP32 device)
    • Multiple proxies can cover larger areas

Enable Debug Logging

If you're experiencing issues, enable debug logging to get more detailed information:

Add to configuration.yaml:

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

Restart Home Assistant, reproduce the issue, then check the logs:

  • Go to Settings → System → Logs
  • Look for entries with custom_components.elkbledom
  • Include relevant log entries when creating an issue

Configuration

Initial Setup

  1. Go to Settings → Devices & Services → Integrations
  2. Click + Add Integration
  3. Search for "elkbledom"
  4. The integration will automatically discover nearby ELK-BLEDOM devices
  5. Select your device from the list
  6. The setup will validate the connection by toggling the light (make sure it's in range!)
  7. Complete the setup

Note: Repeat the setup process for each light you want to add.

Configuration Options

After setup, you can configure additional options:

Available Settings

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

How to Change Settings

  1. Go to Settings → Devices & Services → Integrations
  2. Find your elkbledom device
  3. Click Configure
  4. Adjust the settings
  5. Click Submit

Setting Recommendations

  • Reset color on turn on: Enable if you want consistent behavior (always starts with white)
  • Disconnect delay:
    • Set to 0 for instant response but higher battery drain on battery-powered hubs
    • Set to 120-180 seconds for balance between responsiveness and efficiency
    • Set to 300+ seconds if you rarely control the lights
  • Brightness mode:
    • Use auto for most devices (automatically detects the best method)
    • Use rgb if brightness control doesn't work properly
    • Use native for devices with dedicated brightness support
  • Model:
    • Leave as auto-detected unless device is misidentified
    • Useful if you have a compatible device with a non-standard name
    • Change only if commands don't work with auto-detected model
  • Effects class:
    • Leave as default for standard device behavior
    • Change if your device has different effect IDs than expected
    • Useful for devices with custom firmware or regional variants

Features

Supported Features

Automatic Discovery

  • Automatically finds ELK-BLEDOM devices
  • No need to manually find MAC addresses

Power Control

  • Turn lights on/off

Color Control

  • Full RGB color support
  • Color temperature (warm/cool white)
  • White mode

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Pythonhacs-customhacs-integrationhome-assistanthome-automation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言