LED Config
Controls the four LEDs on the device. Each LED can be set to ON, OFF, blink, flash, or pulse for a precise duration.
Key path: devcfg.led
{ "devcfg": { "led": { "led0": "P100", "led1": "S0", "led2": "F0", "led3": "B0" } }}Note For one-shot LED commands, use the corresponding actions:
{"a":"led0","p":"P100"}— see LED actions. Thedevcfg.ledkeys set the LED’s state/default directly; prefer the action form for one-off commands to keep behaviour consistent with the rest of the app/actions API.
LED 0 behaviour.
Configuration variables
- Type: string (LED command)
- Default:
"P100"
| Code | Meaning |
|---|---|
S1 | Set ON |
S0 | Set OFF |
B1 | Blink fast |
B0 | Blink slow |
F1 | Flash long |
F0 | Flash short |
P + number | Pulse for number × 10 ms (e.g., P100 = 1 s) |
{ "devcfg": { "led": { "led0": "F1" } } }LED 1 behaviour. Same command syntax as led0.
Configuration variables
- Type: string (LED command)
- Default:
"S0"
{ "devcfg": { "led": { "led1": "B0" } } }LED 2 behaviour. Same command syntax as led0.
Configuration variables
- Type: string (LED command)
- Default:
"F0"
{ "devcfg": { "led": { "led2": "P50" } } }LED 3 behaviour. Same command syntax as led0.
Configuration variables
- Type: string (LED command)
- Default:
"B0"
{ "devcfg": { "led": { "led3": "S1" } } }Related
Section titled “Related”- App Actions —
led0‑led3actions - Alert Config — alert flash behaviour