Split your strip into segments¶
Difficulty: Level 1
A segment is a stretch of your strip that runs its own color, effect, palette, and brightness. Light the top of a shelf warm white while the underside runs a slow rainbow, or give each side of a TV its own color, all from one Apollo MLED-1. By the end of this guide, your strip runs two segments side by side.
Before you start
Set up your LED strip so the Length matches your strip. Segments are counted in LEDs.
How segments count LEDs¶
WLED counts LEDs from 0. A segment runs from its Start LED up to, but not including, its Stop LED. On a 60-LED strip:
| Segment | Start LED | Stop LED | LEDs it covers |
|---|---|---|---|
| First half | 0 | 30 | The first 30 LEDs (0 to 29) |
| Second half | 30 | 60 | The last 30 LEDs (30 to 59) |
Add a segment¶
Your strip starts with one segment that covers every LED. Shrink it, then add a second.
1. Open the MLED-1's WLED page and tap Segments.
2. Tap the arrow on the right of the first segment to open it. Set its Stop LED to where you want it to end, such as 30, and tap the checkmark to apply.
3. Tap Add segment. WLED fills in the next free LED as the start. Set its Stop LED to the end of your strip, such as 60, give it a name if you like, and tap the checkmark.
Both segments now show in the list, and the strip shows them side by side.
Give each segment its own look¶
The Colors and Effects tabs change every segment that's ticked in the Segments tab.
1. In Segments, tick only the segment you want to change.
2. Pick its color in Colors and its effect in Effects.
3. Go back to Segments, tick only the other segment, and pick its look.
Each segment also has its own power button and brightness slider in the list, so you can dim or turn off one part of the strip.
Handy segment options
Open a segment with its arrow for more options. Reverse direction runs an effect the other way, which helps when a strip folds back on itself. Mirror effect makes the effect run out from the center. Grouping lights LEDs in groups, and Spacing leaves dark LEDs between them.
Keep your segments¶
Segments reset to a single segment when the MLED-1 restarts. To keep them, save them in a preset with Save segment bounds ticked, then pick that preset under Config → LED & Hardware → Apply preset at boot. See presets and playlists.
Reset segments at the bottom of the Segments tab puts the strip back to one segment.
Segments in Home Assistant¶
When the MLED-1 has more than one segment, Home Assistant adds a light for each segment, plus a main light that turns the whole strip on and off and sets its overall brightness. Effect speed, intensity, and palette entities show up for each segment too. See Home Assistant.
Next step: save your look as a preset
You've built a look you like. Save it as a preset so you can bring it back with one tap, from Home Assistant, or at power-up.
