Preset Configuration Issue – Segment Control & Brightness Behavior

Hi everyone,

I’m using WLED on a WT32-ETH01 with the official version 0.15.1, and I’ve set up the following preset configuration:

{
  "0": {},
  "1": {
    "on": false,
    "bri": 20,
    "transition": 10,
    "mainseg": 0,
    "seg": [
      {
        "id": 0,
        "start": 0,
        "stop": 54,
        "on": false,
        "bri": 255,
        "fx": 0,
        "sx": 240,
        "ix": 100,
        "pal": 0,
        "rev": false,
        "n": "Segment 1"
      },
      {
        "id": 1,
        "start": 54,
        "stop": 108,
        "on": false,
        "bri": 255,
        "fx": 0,
        "sx": 240,
        "ix": 100,
        "pal": 0,
        "rev": true,
        "n": "Segment 2"
      }
    ],
    "n": "Init"
  },
  "2": {
    "on": true,
    "seg": [
      { "id": 0, "on": true, "fx": 98, "sx": 3, "ix": 100, "pal": 0 },
      { "id": 1, "on": true, "fx": 98, "sx": 3, "ix": 100, "pal": 0 }
    ],
    "n": "All on"
  },
  "10": {
    "on": true,
    "seg": [{ "id": 0, "on": true, "fx": 98, "sx": 3, "ix": 100, "pal": 0 }],
    "n": "Seg1 on"
  },
  "20": {
    "on": true,
    "seg": [{ "id": 1, "on": true, "fx": 98, "sx": 3, "ix": 100, "pal": 0 }],
    "n": "Seg2 on"
  },
  "30": { "bri": 255, "n": "Brightness Day" },
  "31": { "bri": 20, "n": "Brightness Night" },
  "3": {
    "on": false,
    "seg": [
      { "id": 0, "on": false, "fx": 0 },
      { "id": 1, "on": false, "fx": 0 }
    ],
    "n": "All off"
  },
  "11": {
    "seg": [{ "id": 0, "on": false, "fx": 0 }],
    "n": "Seg1 off"
  },
  "21": {
    "seg": [{ "id": 1, "on": false, "fx": 0 }],
    "n": "Seg2 off"
  }
}

I’m facing two issues I can’t seem to resolve:


1. Segment Activation Behavior

After startup (via the “Init” preset) or after using “All off”, when I activate Segment 1 using the “Seg1 on” preset, Segment 2 also turns on, even though it’s not included in the preset.

However, if I first turn off both segments using “Seg1 off” and “Seg2 off”, and then activate “Seg1 on”, only Segment 1 turns on, as expected.

Why does Segment 2 get activated in the first scenario? Is there something wrong with how the presets are structured?


2. Brightness Change Restarts Effect

When I change the master brightness via the GUI or using the “Brightness Day”/“Brightness Night” presets, the effect restarts. I would prefer to only adjust brightness or color globally without restarting the running effect.

Is there a way to change brightness without triggering a full effect reset?


My goal is to have both segments operate independently, unless I explicitly use the “All on” or “All off” presets. Any help or suggestions on how to fix these behaviors in the preset configuration would be greatly appreciated!

Thanks in advance!

at bootup, you need to define all segments to have a valid configuration or they will use the default.

the effect should not restart if you change brightness, not sure why that happens.

Hy @dedehai .

Thx for reply.
I use the Init Preset (ID 1) for Boot-Up.
I would assume, that there should be all included?

I would have bet that it wasn’t the case initially, that the effects would restart when I changed the brightness, but unfortunately, it happens with all my backups, so I can’t say for sure.
Do you have any suggestions as to what might be causing this or what I could try/test?

probably something wrong with your segment API commands.

try this:

set the segments as you want them manually, then create a new preset with that exact state and edit that if necessary but dont remove/add/change more than absolutely needed.