Skip to content
8none1Public

About

Control your iDeal LED lights with Home Assistant

Topics

Resources

Stars

86 stars

Watchers

5 watching

Forks

Repository files navigation

iDeal LED control

image

Supported Models

Devices are coming on to the market which report as IDL or ISP lights but which use a different protocol. Support for these lights can be added by a sample of the lights will be needed OR the gathering of btsnoop debug logs from an Android device. If you are willing to help gather the data and test the new code, please log an issue.

Firmware versions and command types

The integration reads a firmware string from the controller (for example TR2407R004-01) and uses it to pick the command set (TYPE1 or TYPE2). The model part of the string (here R004-01) is not always enough on its own, because different manufacturing batches can report the same model but speak a different protocol. For example, TR2407R004-01 (2024) uses TYPE1 but TR2503R004-01 (2025) uses TYPE2.

Some controllers (for example some IDL- and ISP- lights) do not expose the firmware string at the usual location. The integration looks for it in a few places and, if it cannot find it, falls back to TYPE2. If your light does not respond to commands, enable debug logging (see below) and check the Command type line. If it looks wrong, please log an issue with the firmware string from the logs.

The integration also reads a device type byte from the controller's Bluetooth advert (the same place the official app looks) and shows it as the hardware version on the device page, for example Advert type 0x0d. For now this is for information only and does not change which command set is used. If you log an issue, please include it: on the device page, use the three dot menu and choose Download diagnostics, then attach the file. It contains the advert data, firmware string and command type.

Supported Features

  • On / Off
  • Set RGB colour of entire strip
  • Set DIY LED patterns (not supported in Home Assistant)
  • Set brightness
  • Set effect & effect speed (see the TYPE1 note below)
  • Bulk paint entire strip using collections feature
  • Automatic discovery of supported devices in Home Assistant

Known issues with TYPE1 lights

  • The effect speed slider currently only works on TYPE2 lights. On TYPE1 lights it has no effect.
  • Choosing an effect on a TYPE1 light also sets the controller's brightness to a low level, so effects can look dim.

Both are being looked at (see #48).

Not supported

  • Discovery of current light state
  • On-chip timer functionality

Home Assistant

There is a Home Assistant custom component to let you control these lights.

Installation

Add this repo to HACS as a custom repo. Click through:

  • HACS -> Integrations -> Top right menu -> Custom Repositories
  • Paste the Github URL to this repo in to the Repository box
  • Choose category Integration
  • Click Add
  • The repo should show up in HACS as a new integration. Click on it and choose DOWNLOAD.
  • Restart Home Assistant
  • iDeal LED devices should start to appear in your Integrations page

Options

Open Settings -> Devices & Services -> iDeal LED -> Configure to change:

  • Disconnect delay: seconds of inactivity before the integration drops the Bluetooth connection. 0 means never disconnect.
  • Settle time: seconds to wait after connecting before the first command (0 to 10, default 3). Raise this if the light turns itself back on after being switched off.
  • Colour gamma: gamma correction for colours, 1 to 3 (default 1, which is off). Try 2.2 if mixed colours look wrong, for example purple looking light blue. It only changes the colour balance, not the brightness.

Colours look off?

If primary colours (red, green, blue) look right but mixed colours don't, for example purple coming out light blue, turn on gamma correction:

  1. Go to Settings -> Devices & Services -> iDeal LED -> Configure.
  2. Set Colour gamma to 2.2 and submit. The integration reloads, so there's no need to restart Home Assistant.
  3. Pick the colour again and check it.

Why this helps: LED brightness rises roughly in a straight line with the value sent, but our eyes don't see it that way, so the weaker channels in a mixed colour look much brighter than they should and the colour drifts. A gamma curve compensates for that. 2.2 is the usual value (it is what the sRGB standard approximates). If things are still slightly off you can try values between about 1.8 and 2.8.

Gamma correction is off by default so existing setups don't change colour after an upgrade. The setting is per device, so you can set it differently for each strip. See issue #31 for the original report.

Other tools

There are a few other tools in this repo that might help you improve support or test your own lights.

  • The btsnoop directory has a few HCI log dumps if you want to look at the raw values
  • aes_decrypt.py was used to test the encryption implementation
  • att_protocol.md has notes on the protocol and the Android companion app

An important note on upgrades

As bugs are fixed and new features are added it might be necessary to delete your existing devices and re-add them. If you experience strange behaviour after an upgrade please try to delete the device and re-add it. If this doesn't help, open an issue describing the problem.

Warning

I have bricked one set of lights by sending invalid data to them while building this integration. Use this repo at your own risk. You should be careful when sending bytes to these lights which are outside of the already discovered values.

You can read more on this here: https://www.whizzy.org/2023-12-14-bricked-xmas/

As far as I can tell this integration does not use any unsafe values by default. If you know otherwise, please open an issue, ideally with an accompanying PR.

Enabling Debug Logging

If you're experiencing issues with the integration or want to help troubleshoot problems, you can enable debug logging for this integration in Home Assistant.

Method 1: Using configuration.yaml (Persistent)

Add the following to your configuration.yaml file:

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

After adding this configuration, restart Home Assistant for the changes to take effect.

Method 2: Using the Home Assistant UI (Temporary)

For temporary debugging without restarting Home Assistant:

  1. Go to Settings → Devices & Services
  2. Find the iDeal LED integration
  3. Click the three-dot menu (⋮) on the integration card
  4. Select Enable debug logging

This will immediately start capturing debug logs. When you're done debugging:

  1. Return to the integration
  2. Click the three-dot menu (⋮) again
  3. Select Disable debug logging

A download will be offered containing the captured debug logs.

Method 3: Using Developer Tools (Temporary)

  1. Go to Developer Tools → Services
  2. Search for and select logger.set_level
  3. Enter the following in the YAML editor:
service: logger.set_level
data:
  custom_components.ideal_led: debug
  1. Click Call Service

This enables debug logging immediately without a restart. The setting will revert to default after Home Assistant restarts.

Viewing the Logs

You can view the logs in several ways:

Via Home Assistant UI

  1. Go to Settings → System → Logs
  2. Click Load Full Logs to see all entries
  3. Use the search/filter to look for ideal_led entries

Via Command Line (Docker)

docker logs -f homeassistant 2>&1 | grep ideal_led

Via Command Line (Home Assistant OS / Supervised)

ha core logs --follow | grep ideal_led

Via Command Line (Core Installation)

Check your Home Assistant log file location (typically home-assistant.log in your config directory):

tail -f /path/to/config/home-assistant.log | grep ideal_led

What to Include in Bug Reports

When opening an issue, please include:

  1. Debug logs - Enable debug logging, reproduce the issue, then capture the relevant log entries
  2. Diagnostics - On the device page, use the three dot menu and choose Download diagnostics, then attach the file. It includes the firmware string, advert data and the command type in use
  3. Home Assistant version - Found in Settings → About
  4. Integration version - Found in HACS or the manifest.json
  5. Steps to reproduce - What actions led to the problem

Bluetooth Debugging

For Bluetooth-specific issues, you may also want to enable debug logging for the Bluetooth integration:

logger:
  default: info
  logs:
    custom_components.ideal_led: debug
    homeassistant.components.bluetooth: debug
    bleak: debug

Note: Enabling bleak debug logging can produce a large volume of logs. Only enable it when specifically troubleshooting Bluetooth connectivity issues.

Other projects that might be of interest

About

Control your iDeal LED lights with Home Assistant

Topics

Resources

Stars

86 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages