# set.system.led
Controls the device's LED indicators.
This command supports two modes:
- **auto**: The system controls the LEDs automatically based on the device status.
- **manual**: Define custom flashing patterns for the red and green LEDs.
## Parameters
| param | String or Object[] | Either the string `"auto"` or an array of objects to define flashing patterns. |
| param.color (optional) | String | The color of the LED to configure. Valid values: `red`, `green` |
| param.period (optional) | Number | The duration of one full flash cycle, in milliseconds. |
| param.duration (optional) | Number | The duration the LED stays lit during a cycle, in milliseconds. |
| param.start (optional) | Number | The start offset for the flashing cycle, in milliseconds. |
## Examples
### Request (Manual Flash Mode)
```json
{
"cmd": "set.system.led",
"ts": 42299611,
"token": "NImnro3I",
"account": "super",
"param": [
{
"color": "red",
"period": 200,
"duration": 100,
"start": 0
},
{
"color": "green",
"period": 200,
"duration": 150,
"start": 0
}
]
}
```
### Request (Auto Mode)
```json
{
"cmd": "set.system.led",
"ts": 42299611,
"token": "NImnro3I",
"account": "super",
"param": "auto"
}
```
### Response
```json
{
"code": 0,
"when": 1692685512,
"msg": "ok",
"desc": "set.system.led"
}
```