[Feature request]: Aqara LED Strip T2 (LS-L05E / LS-L06E): Figured out Music-Mode and some effects, still missing other features
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend, embedded-iot
Research direction
Read the existing Aqara LED Strip T2 definition and the supplied experimental converter, especially its 0xFC0F music attributes and the T1/T1M write attempts. The issue says music mode and five effects work, while segment controls, RGB effects, palette and speed remain unresolved; further progress needs an Aqara hub capture while changing those settings in the app. Done means identifying the relevant commands or attributes and adding support for the missing features.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe
Aqara LED Strip T2 (LS-L05E / LS-L06E): Found how music mode works, segments/effects still unknown
Device: Aqara LED Strip T2, LS-L06E (5 m version). Detected by Z2M as LS-L05E.
modelId: lumi.models.4447_6212, manufacturer code 0x115F (4447)
Firmware: installed_version 36
Zigbee2MQTT: 2.14.4
After getting native support for Aqara LED Strip T2 I switched mine from Matter to ZigBee.
The built-in definition only exposes the standard ZCL light (state, brightness, color_temp, color_xy/hs, generic effects, power_on_behavior). Music sync, segment colors and Aqara RGB effects are missing.
So I startet to dig around a little with Claude and we found a possibility to start/stop music mode and use 6 effects.
I tried to use the definition of the LED Strip T1 first and tried to find out, if the same clusters etc. are involved. This is the reason why you'll find some references to the T1 in the tables belwo.
Describe the solution you'd like
I don't have an Aqara hub, so I couldn't sniff the traffic. Instead I mapped the device with attribute/command discovery. Music mode is solved (converter below). Segments and effects need a capture from someone with a hub. Everything I found is listed here as a starting point. You can find my current converter at the bottom of this post at "Additional context"
Endpoint 1
- Input (server): genBasic, genIdentify, genGroups, genScenes, genOnOff, genLevelCtrl, lightingColorCtrl,
0xFCC0(64704),0xFCC1(64705),0xFCC2(64706),0xFCC3(64707),0xFC0F(64527) - Output (client): genOta, genTime
✅ Working: music mode on cluster 0xFC0F (64527), manufacturer code 0x115F
| Attr | Type | Function |
|---|---|---|
| 19 (0x0013) | bool | Music sync on/off (built-in microphone) |
| 21 (0x0015) | enum8 | Music effect, values 1–5 (6+ behave like 5) |
The effects (actually that's not the real names of the effects, it's just a description what happens if one is activated):
| Value | Look |
|---|---|
| 1 | default effect |
| 2 | flashing |
| 3 | running light through the segments |
| 4 | every second segment flashes in different colors |
| 5 | white flashing segments with color fills |
These are different from the effects exposed via Matter. They don't look like the 5 ones which can be used with the matter integration.
I could not find a music sensitivity setting. Attr 22 (uint8, 50) is writable, but values 1–255 made no noticeable difference.
Cluster 0xFC0F (64527): Matter-style Aqara cluster, full attribute list
It has FeatureMap (65532) and ClusterRevision (65533), so it looks like an Aqara Matter cluster carried over to Zigbee. All reads used manufacturer code 0x115F.
| Attr | Type | Value read | Notes |
|---|---|---|---|
| 1 | uint8 | 100 | in the "important attributes" list (attr 26) |
| 2 | uint8 | 1 | |
| 3 | uint8 | 0 | |
| 4 | float | 1 | |
| 5 | array | 48 × (uint8, enum16) pairs | probably the effect/preset table: slot 0..47 → internal ID (e.g. 0→17, 1→18, 2→15, 3→16, 4→9, … 46→79, 47→81) |
| 6 | uint8 | 255 | |
| 7 | uint8 | 26 | in attr 26 list |
| 8 | array | [] |
empty, maybe writable list |
| 9 | uint8 | 32 | |
| 10 | enum8 | 0 | possibly current value for list 11 |
| 11 | array | [0,1,2,3,4] |
|
| 12 | array | [1,2,3,5,7,8,9,10,12,14,16,19] |
|
| 13 | array | [0,1,2,3,4] |
|
| 16 | enum8 | 7 | 7 is in list 12 |
| 17 | octet str | 00×12 3F FF FF FF (16 bytes) |
30 bits set, looks like a segment mask |
| 18 | octet str | same as 17 | READ_ONLY (write rejected) |
| 19 | bool | 0 | music on/off ✅ |
| 20 | array | [1,2,3,4] |
|
| 21 | enum8 | 1 | music effect ✅ |
| 22 | uint8 | 50 | writable, no visible effect found |
| 23 | array | 5 × (uint16 x, uint16 y) | color palette, x/y × 65535: (16014,7344) violet, (26600,33596) yellow, (20949,10063) magenta, (14665,21460) cyan, (13126,15918) light blue |
| 24 | uint8 | 8 | maybe max number of palette colors |
| 25 | struct | 4 × uint8 = 255 | in attr 26 list |
| 26 | array | [25,1,26,7,19,21] |
list of attribute IDs of this cluster |
| 27 | uint8 | 8 | |
| 28 | uint16 | 105 | |
| 29 | uint16 | 105 | |
| 32 | array | [] |
empty |
| 65532 | bitmap32 | 249 (0b11111001) |
FeatureMap |
| 65533 | uint16 | – | ClusterRevision |
Commands on 0xFC0F
discoverCommands(received):0, 2, 4, 6, 8, 10, 12, 14, 16, 18discoverCommandsGen(generated): none
Raw tests (manufacturer specific, default response requested):
| Cmd | Payload | Result |
|---|---|---|
| 0, 2, 4, 6, 8, 10, 14, 16, 18 | empty | SUCCESS, no visible change |
| 12 | empty / [1,4] |
no default response (timeout), reproducible |
| 6 | [1] |
no response (timeout), reproducible |
| 6 | [1,2], [1,4], [1,2,3] |
SUCCESS, no visible change |
| 6 | [1,2,3,4] |
no response (timeout), reproducible |
So at least cmd 6 parses its payload. After a rejected command, the device ignores the next one for a short time.
Cluster 0xFCC0 (64704, manuSpecificLumi), with manufacturer code 0x115F
General range: 1, 2 (u16), 3, 5 (u8), 6, 7, 12 (oct), 18 (u8), 22 (str), 23, 32 (u32), 128, 129 (oct), 160 (u8), 218 (oct), 230 (u8), 232 (bool), 238 (u32), 243 (u8), 246 (u16), 247 (oct, empty), 250, 252 (bool), 254 (str), 255 (oct), 308 (oct), 512 (u8), 513 (bool), 1792 (bool), 1793 (int8), 2048 (bool), 2049, 2050 (oct), 65522 (oct), 65533 (u16)
Light range (values read):
| Attr | Hex | Type | Value | Notes |
|---|---|---|---|---|
| 1288 | 0x0508 | u8 | 0 | |
| 1289 | 0x0509 | u32 | 1 | |
| 1290 | 0x050A | oct | empty | |
| 1291 | 0x050B | bool | true | |
| 1292 | 0x050C | u16 | 0 | |
| 1293 | 0x050D | u32 | 0 | |
| 1295 | 0x050F | u32 | 1 | |
| 1296 | 0x0510 | u8 | 0 | |
| 1299 | 0x0513 | u16 | 6500 | probably CCT max (K) |
| 1300 | 0x0514 | u16 | 2700 | probably CCT min (K) |
| 1301 | 0x0515 | u8 | 1 | dimming range min (same ID as T1) |
| 1302 | 0x0516 | u8 | 100 | dimming range max (same ID as T1) |
| 1303 | 0x0517 | u8 | 0 | |
| 1304 | 0x0518 | u32 | 1 | |
| 1306 | 0x051A | u32 | 0 | |
| 1307 | 0x051B | u8 | 10 | T1 uses this ID for length |
| 1311 | 0x051F | u32 | 0 | T1 effect ID |
| 1312 | 0x0520 | u8 | 80 | T1 effect speed ID |
| 1313 | 0x0521 | u8 | 1 | |
| 1314 | 0x0522 | oct | empty | T1M segment control ID |
| 1315 | 0x0523 | oct | empty | T1 effect colors ID |
| 1316 | 0x0524 | u8 | 12 | |
| 1317 | 0x0525 | u8 | 10 | |
| 1319 | 0x0527 | oct | empty | T1 strip segment control ID |
| 1320 | 0x0528 | float | 0 | |
| 1324 | 0x052C | u8 | 0 |
T1's effect_segments attribute (0x0530) does not exist.
T1/T1M-style writes were all accepted, but without any visible effect, in both color_temp and xy mode:
- 1319: T1 strip segment packet (
01 01 01 0F+ brightness + 8-byte mask + xy color +00 14), and the same with a 12-byte mask - 1314: T1M packet (4-byte mask +
00 00 00 00+ xy color), and the same with a 12-byte mask - 1311 = 1, 1312 = 50, 1315 = effect colors
00 03+ 3 × xy (in either order) - 1313 = 0 / 2
Writing T1's audio attribute fails with UNSUPPORTED_CLUSTER.
Other clusters (attribute discovery)
- 0xFCC1 (64705): 0 (str), 1 (enum8), 2 (bool), 3 (bool), 4 (long oct), 5 (long oct), 6 (u32), 65533
- 0xFCC2 (64706): 0 (enum8), 1 (float), 65533
- 0xFCC3 (64707): 0 (u32), 1 (u16), 2 (array), 3 (oct), 4 (float), 65533
What's needed
A capture from an Aqara hub while changing segment colors, RGB effects/palette/speed and music sensitivity in the Aqara app. Most likely these use commands or attributes on 0xFC0F.
Describe alternatives you've considered
Additional context
Currently I'm using the following converter which gives me the possibility to enable/disable music mode and can use the effects we found: The effects are not the same as the matter integration in HA offers, but the are working. So acutally I nearly have the same features in Z2M compared to the native matter integration in HA.
External converter (music mode, plus discover and raw_command helpers for further testing)
aqara_strip_t2_experimental.mjs
// Experimental external converter: Aqara LED Strip T2 (LS-L05E / LS-L06E)
// Adds music mode found on manufacturer cluster 0xFC0F (64527), plus a "discover" helper.
// Put this in <z2m data>/external_converters/ and restart Z2M.
import * as lumiModule from 'zigbee-herdsman-converters/devices/lumi';
import * as exposesModule from 'zigbee-herdsman-converters/lib/exposes';
import * as modernExtendModule from 'zigbee-herdsman-converters/lib/modernExtend';
import {Zcl} from 'zigbee-herdsman';
const m = modernExtendModule.deviceAddCustomCluster ? modernExtendModule : modernExtendModule.default;
const LIST_UINT8 = Zcl.BuffaloZclDataType.LIST_UINT8;
if (LIST_UINT8 === undefined) throw new Error('Zcl.BuffaloZclDataType.LIST_UINT8 not found');
// Cluster 0xFC0F accepts commands 0,2,...,18 (from discoverCommands). Payload format unknown,
// so each command takes raw bytes.
const FC0F_CMD_IDS = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18];
const fc0fCluster = m.deviceAddCustomCluster('aqaraT2Light', {
ID: 0xfc0f,
manufacturerCode: 0x115f,
attributes: {},
commands: Object.fromEntries(FC0F_CMD_IDS.map((id) => [`cmd${id}`, {ID: id, parameters: [{name: 'data', type: LIST_UINT8}]}])),
commandsResponse: {},
});
const lumiDefinitions = [lumiModule.definitions, lumiModule.default?.definitions, lumiModule.default].find(Array.isArray);
if (!lumiDefinitions) throw new Error(`lumi definitions not found, module keys: ${Object.keys(lumiModule)}`);
const exposes = exposesModule.presets ? exposesModule : exposesModule.default;
const e = exposes.presets;
const ea = exposes.access;
const T2_MODEL_ID = 'lumi.models.4447_6212';
const t2 = lumiDefinitions.find((d) => d.zigbeeModel?.includes(T2_MODEL_ID));
if (!t2) throw new Error('T2 definition not found');
const MANUF = {manufacturerCode: 0x115f}; // 4447 = Aqara
const CLUSTER_FC0F = 64527;
// Music effects observed on attribute 21 (values 6+ behave like 5)
const MUSIC_EFFECTS = {effect_1: 1, flash: 2, running: 3, alternating: 4, white_flash: 5};
const musicTz = {
key: ['music', 'music_effect'],
convertSet: async (entity, key, value, meta) => {
if (key === 'music') {
const on = value === 'ON' || value === true;
await entity.write(CLUSTER_FC0F, {19: {value: on ? 1 : 0, type: 0x10}}, MANUF);
return {state: {music: on ? 'ON' : 'OFF'}};
}
if (key === 'music_effect') {
const v = MUSIC_EFFECTS[value];
if (v === undefined) throw new Error(`Unknown music_effect '${value}'`);
await entity.write(CLUSTER_FC0F, {21: {value: v, type: 0x30}}, MANUF);
return {state: {music_effect: value}};
}
},
};
// Helper: ZCL "Discover Attributes".
// {"discover": {"cluster": 64704, "start": 0, "max": 50, "manufacturerCode": 4447}}
const discoverTz = {
key: ['discover'],
convertSet: async (entity, key, value, meta) => {
const ep = meta.device.getEndpoint(1);
// what: "attributes" (default), "commands" (commands the device accepts), "generated" (commands it sends)
const {cluster = 64704, start = 0, max = 50, manufacturerCode, what = 'attributes'} = value ?? {};
const opts = manufacturerCode !== undefined ? {manufacturerCode} : {};
const cmd =
what === 'commands'
? ['discoverCommands', {startCmdId: start, maxCmdIds: max}]
: what === 'generated'
? ['discoverCommandsGen', {startCmdId: start, maxCmdIds: max}]
: ['discover', {startAttrId: start, maxAttrIds: max}];
try {
const rsp = await ep.zclCommand(cluster, cmd[0], cmd[1], opts, undefined, false, 0);
console.log(`[T2 discover ${what}] cluster ${cluster} from ${start} (manuf ${manufacturerCode ?? 'none'}):`, JSON.stringify(rsp?.payload ?? rsp));
} catch (err) {
console.log(`[T2 discover] cluster ${cluster} from ${start} FAILED:`, err?.message ?? err);
}
},
};
// Helper: send a raw command on 0xFC0F and log the strip's status.
// {"raw_command": {"cmd": 0, "data": []}}
const rawCommandTz = {
key: ['raw_command'],
convertSet: async (entity, key, value, meta) => {
const {cmd, data = []} = value ?? {};
const label = `[T2 cmd] cmd ${cmd} data ${JSON.stringify(data)}`;
try {
await entity.command('aqaraT2Light', `cmd${cmd}`, {data}, {manufacturerCode: 0x115f, disableDefaultResponse: false});
console.log(`${label}: SUCCESS`);
} catch (err) {
console.log(`${label}: FAILED`, err?.message ?? err);
}
},
};
const t2Extras = {
isModernExtend: true,
exposes: [
e.binary('music', ea.SET, 'ON', 'OFF').withDescription('Music sync mode (built-in microphone)'),
e.enum('music_effect', ea.SET, Object.keys(MUSIC_EFFECTS)).withDescription('Music sync effect'),
],
toZigbee: [musicTz, discoverTz, rawCommandTz],
};
export default {
...t2,
description: `${t2.description} (experimental: music mode)`,
extend: [...t2.extend, fc0fCluster, t2Extras],
};
Usage examples (topic zigbee2mqtt/<name>/set):
{"music": "ON"},{"music_effect": "running"}{"discover": {"cluster": 64527, "what": "commands", "manufacturerCode": 4447}}(what: attributes / commands / generated){"raw_command": {"cmd": 6, "data": [1,2]}}
- Dominant language
- TypeScript
- Stars
- 15.9k
- Forks
- 2.1k
- Avg merge
- 12h 11m
- Merged PRs (30d)
- 32
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Koenkk/zigbee2mqtt
-
Group Exposes always displays unknown state (?) despite valid group state being published via MQTTOpenproblem
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Koenkk/zigbee2mqtt#33925 ·
Maintainers usually reply within 1 day
-
problem
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Koenkk/zigbee2mqtt#33894 ·
Maintainers usually reply within 1 day
-
problem
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Koenkk/zigbee2mqtt#33892 ·
Maintainers usually reply within 1 day
-
problem
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Koenkk/zigbee2mqtt#33891 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Koenkk/zigbee2mqtt#33890 ·
Maintainers usually reply within 1 day
All issues in Koenkk/zigbee2mqtt
Similar issues
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/clickhouse-js#1293 ·
Maintainers usually reply within 1 day
-
area: middleware enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
agent/quality testing
Difficulty 1/5 Under an hour Newbie friendliness 95/100
Maintainers usually reply within 1 day
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
juspay/agent-distro#203 ·
Maintainers usually reply within 1 day