I’m using WLED 0.12, 0.13.0-b4 and 0.13.0-b6 on an 8266.
Macros moving to presets seems to have introduced an interesting ‘issue’.
- I have 2 effects presets I want to cycle through
- I have a button
- Short press is mapped to preset 98 (PL=~ - select next preset)
- Long press is mapped to preset 99 (T=2 - toggle on/off)
- Double press is set to preset 1 (cuz I like that effect)
The unit boots to preset 1 (cuz that’s what I set un the boot preset). All good.
I press the button (or click preset 98)
effect 2 shows. Cool.
I press the button again, and nothing happens. If I click preset 98 (instead, a popup shows with “Error 12 The requested preset does not exist”
Press the button (nothing) or click (error 12 again)
Press the button (nothing) or click (error 12 again)
Press the button or click and we’re back to preset 1.
Looking in the presets.json, it seems there is a preset 0 by default - the boot default without specifying which in the interface? That’s a different question, I’ll play with.
But, it seems as if this is what’s going on
- boot preset 1. ok.
- button preset 2. ok.
- button preset 98. not ok.
- button preset 99. not ok.
- button preset 0. not ok.
- button preset 1. ok.
… etc.
So the options are:
PICNIC
I can’t find the documentation that explains how to define a range and exclude non-existent ones. I did find the documentation that showed P1=1&P2=30&PL=~ but then I get lots of error 12’s or I have to adjust the 98 preset every time I create a new preset.
Design oversight/bug
Moving macros to presets means 2 (in my case) presets that don’t work with the button (i.e. 2 dead presses). or PL=~ should find the ‘next’ working preset in scope.
What is the best way forward here?
Any help much appreciated.
Nigel