Hey everyone,
Long time user of Wled on more basic configs but I’m trying to setup a long strip using many segments and running into difficulty getting the segments to respond as I expect
I have set up an ESP8266 with 100 led strip
Using build v0.16.0-alpha “Niji“
I’ve set up 9 segments in the UI
I’ve created a single preset for all 9 for their initial state
This is the general idea
I’m using automations in HomeAssistant to trigger on events, these are then sent to N8N which sends them on to the WLED Json API
For simplicity I can sidestep HA and run the commands through powershell → n8n → WLED
When I send a command to bring up for instance the occupancy leds segment 1 I get back a success true response but the leds don’t change, they stay on the original preset
This is the request I’m sending
[
{
“seg”: [
{
“id”: 1,
“start”: 6,
“stop”: 16,
“grp”: 1,
“spc”: 0,
“of”: 0,
“on”: true,
“frz”: false,
“bri”: 255,
“cct”: 127,
“set”: 0,
“lc”: 1,
“n”: “”,
“col”: [
[
255,
170,
0
],
[
0,
0,
0
],
[
0,
0,
0
]
],
“fx”: 100,
“sx”: 128,
“ix”: 128,
“pal”: 11,
“c1”: 128,
“c2”: 128,
“c3”: 16,
“sel”: true,
“rev”: false,
“mi”: false,
“o1”: false,
“o2”: false,
“o3”: false,
“si”: 0,
“m12”: 1,
“bm”: 0
}
]
}
]
I created this in the wled UI in a preset for just segment 1 then copied it out and deleted that new preset
From what I can see there’s no log to tell what’s going on with the API how can I work out why the command is returning success but actually not working?
If I create a new preset and paste that in with a bit of extra info at the top it works perfectly
Is the global preset causing it to ignore the api commands to change?
I haven’t finished fleshing out the logic yet I have occupancy on and off, solar production in a percentage, and the initial candle
Is this a bug, could it be caused by being on an alpha build?
Cheers
Its a great project


