Add rest-color range support

This commit is contained in:
2026-05-10 21:30:39 +02:00
parent 2291c85f6a
commit d6765edcff
2 changed files with 46 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ wled effects
wled effects rainbow
wled presets
wled set --color blue --range 70-80 --brightness 50%
wled set --color green --range 90-100 --effect blink --rest-color white
wled set --hex '#00ff88' --effect solid
wled set --preset 1
wled raw /json/info
@@ -64,6 +65,7 @@ wled raw /json/info
- `--range` is **1-based inclusive**. So `70-80` means LEDs 70 through 80.
- `--brightness` accepts `1-255` or a percentage like `50%`.
- `--rest-color` / `--rest-hex` lets you paint the LEDs outside the selected range in one shot.
- `--effect` accepts a numeric id or a fuzzy name match.
- `--preset` accepts a numeric id or a fuzzy preset name match.
- For new integrations, prefer WLED's JSON API docs: https://kno.wled.ge/interfaces/json-api/