Files
alexei.dolgolyov e8f2b5e528 docs(set_leds): note that segment start/length are now optional
The set_leds service handler is already pass-through, so the new
server-side defaults (start=0, length=rest-of-strip) work with no
code change. Refresh the field descriptions in services.yaml and
strings.json so the UI surfaces the simpler {"mode","color"} payload.
2026-04-26 23:45:25 +03:00

22 lines
749 B
YAML

set_leds:
name: Set LEDs
description: Push segment data to an api_input color strip source
fields:
source_id:
name: Source ID
description: The api_input CSS source ID (e.g., css_abc12345)
required: true
selector:
text:
segments:
name: Segments
description: >
List of segment objects. Each segment has: start (int, optional —
defaults to 0), length (int, optional — defaults to the rest of the
strip from start), mode ("solid"/"per_pixel"/"gradient"), color
([R,G,B] for solid), colors ([[R,G,B],...] for per_pixel/gradient).
Example fill-whole-strip: [{"mode": "solid", "color": [255, 0, 0]}].
required: true
selector:
object: