Skip to main content
Version: 1.0

Shelly LedStrip Cluster

The Shelly LedStrip cluster is a custom Zigbee cluster with ID 0xFC06 that controls the effects engine of the LedStrip component: the active effect and its parameters, and stepping through the available effects. Devices supporting this cluster expose it on the same endpoint as the standard On/Off, Level Control and Color Control clusters (endpoint 1). Those clusters control the power state, the brightness and the color of the LEDs; this cluster only adds what they cannot express. The Shelly manufacturer code (0x1490) must be used for all interactions with this cluster. Device-specific details are available here.

Attributes​

The server supports the attributes listed in the following table:

IdentifierNameData TypeAccessDefaultDescription
0x0000CurrentEffectunsigned 16-bit integerread/write, reportable0ID of the active built-in effect (see Effect IDs). 0xFFFF when a script effect is active.
0x0001Speedunsigned 8-bit integerread/write, reportable50Effect speed, 0-100.
0x0002Intensityunsigned 8-bit integerread/write, reportable50Effect intensity, 0-100.
0x0003BackgroundRedunsigned 8-bit integerread/write, reportable0Red component of the effect background color, 0-255.
0x0004BackgroundGreenunsigned 8-bit integerread/write, reportable0Green component of the effect background color, 0-255.
0x0005BackgroundBlueunsigned 8-bit integerread/write, reportable0Blue component of the effect background color, 0-255.
0x0006Paletteunsigned 8-bit integerread/write, reportable0Color palette used by the effect (see table below).
0x0007Reversebooleanread/write, reportablefalseRun the effect in the reverse direction.
0x0008CurrentScriptEffectunsigned 16-bit integerread/write, reportable0ID of the active script effect, 1-254. 0 when a built-in effect is active.
0xFFFDRevisionunsigned 16-bit integerread-only1Cluster revision.

Palette values​

ValueName
0rainbow
1pastel
2fire
3forest
4ocean
5monochrome
6harmony
7contrast
8complementary

Writing any other value to Palette is rejected.

Effect IDs​

The effect IDs are those of the effect keys of the LedStrip component. The IDs of the built-in effects are the following:

IDsEffects
0-9solid, blink, fade, rainbow, colorwipe, aurora, twinkle, glitterwaves, meteors, snow
10-19lightning, split, gradient, palettestatic, glow, marquee, flow, sweep, pendulum, orbit
20-29bounce, flames, candlelight, starlight, scatter, bursts, pulse, prism, drift, warm
30-31neutral, cold
1000-1021Sound-reactive effects: blurz, freqwave, pixeldance, levelbar, centerlevel, centerspectrum, dancingdots, splashes, beatsplash, soundcolor, ripple, tonesparks, lava, audiosolid, audiomono, audiosplit, beatflash, beatcolor, beatburst, beatsparkle, beatshift, audiosplitgrow
2000ddp

The sound-reactive effects (1000-1021) are available only on devices with an audio analyzer. Writing an ID that the device does not have to CurrentEffect is rejected. Use the ListEffects command to get the effects that a particular device has.

Attribute description​

The attributes follow the state of the LedStrip component: a change made through the Zigbee network, RPC, a webhook, a script, a schedule or the buttons of the device is reflected in the attributes and reported through ZCL attribute reporting.

The CurrentEffect and CurrentScriptEffect attributes are mutually exclusive. When a built-in effect is active, CurrentScriptEffect is 0; when a script effect is active, CurrentEffect is 0xFFFF. Writing CurrentEffect selects a built-in effect, and writing CurrentScriptEffect selects a script effect by its script ID (see the script:<id> effect key of the LedStrip component).

Commands​

Server commands​

Command IDNameDescription
0x00NextEffectSwitch to the next effect. No payload.
0x01PreviousEffectSwitch to the previous effect. No payload.
0x02ResetEffectReset to the solid effect, white, with Speed and Intensity 50, black background, the rainbow palette and no reverse. No payload.
0x03ListEffectsList the available effects, paginated.

NextEffect, PreviousEffect and ResetEffect are answered with a ZCL Default Response.

Client commands​

Command IDNameDescription
0x10EffectListResponse to ListEffects with one page of entries.

Command details​

ListEffects (server 0x03)​

List the available effects: the built-in effects followed by the script effects, the same list as LedStrip.ListAllEffects.

Payload:

FieldTypeDescription
offsetuint8(optional) 0-based index of the first entry of the page. Defaults to 0 when omitted.

Response: ZCL Default Response (immediate, SUCCESS), followed by an EffectList command with the page.

EffectList (client 0x10)​

Payload:

FieldTypeDescription
totaluint8Total number of effects.
countuint8Number of entries in this response (0 = past the end of the list).
entriesarraycount entries, each 18 bytes: {effect_id: uint16, name: char[16]}. The name is null-padded.

At most 2 entries are sent per response. Page through the list with offset set to the number of entries received so far, until it reaches total.

The effect_id of a built-in effect is its ID from Effect IDs. The effect_id of a script effect is 0xF000 OR-ed with its script ID, so the script ID is effect_id & 0x00FF.

Examples​

Select the Rainbow effect​

Write 3 (rainbow) to the CurrentEffect attribute (ID 0, type unsigned 16-bit integer = 0x21):

http://192.168.33.1/rpc/Zigbee.WriteAttr?dst_addr=12345&dst_ep=1&cluster=64518&attr=0&type=33&value="0300"

Response

{
"success": true,
"status_str": "ZB_ZCL_STATUS_SUCCESS"
}

Set the effect speed to 80​

Write 80 (0x50) to the Speed attribute (ID 1, type unsigned 8-bit integer = 0x20):

http://192.168.33.1/rpc/Zigbee.WriteAttr?dst_addr=12345&dst_ep=1&cluster=64518&attr=1&type=32&value="50"

Response

{
"success": true,
"status_str": "ZB_ZCL_STATUS_SUCCESS"
}

Select the Fire palette​

Write 2 (fire) to the Palette attribute (ID 6):

http://192.168.33.1/rpc/Zigbee.WriteAttr?dst_addr=12345&dst_ep=1&cluster=64518&attr=6&type=32&value="02"

Response

{
"success": true,
"status_str": "ZB_ZCL_STATUS_SUCCESS"
}

Read the active effect​

http://192.168.33.1/rpc/Zigbee.ReadAttr?dst_addr=12345&dst_ep=1&cluster=64518&attr=0

Response

{
"success": true,
"type": 33,
"value": "0300",
"len": 2
}

Switch to the next effect​

Send NextEffect (cmd 0x00) with no payload:

http://192.168.33.1/rpc/Zigbee.SendCommand?dst_addr=12345&dst_ep=1&cluster=64518&cmd=0

Response

{
"success": true,
"status": "SUCCESS"
}

List the effects (first page)​

Send ListEffects (cmd 0x03). Payload: 00 (offset=0). The device answers with the Default Response and then sends the page as an EffectList command:

http://192.168.33.1/rpc/Zigbee.SendCommand?dst_addr=12345&dst_ep=1&cluster=64518&cmd=3&payload="00"

Response

{
"success": true,
"status": "SUCCESS"
}