Skip to content

Percent effect starts by zero at every value change #4934

Closed

Description

@LOGOLEX

What happened?

Since last update the percent effect starts at zero instead of the last value.
i use this effect with two presets to light my stairs.

in the previous firmware it moved from 100 to 0 percent backwards. now it turns immediately to zero.

My presets below.

To Reproduce Bug

Preset 1 (Turns the lights on):
{"on":true,"bri":47,"transition":1,"mainseg":0,"seg":[{"id":0,"start":0,"stop":307,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":15,"ix":100,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"id":1,"start":307,"stop":726,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":18,"ix":100,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":true,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

Preset 2 (turns the leds off):
{"on":true,"bri":47,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":307,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":15,"ix":0,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"id":1,"start":307,"stop":726,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[117,71,36,0],[0,0,0,0],[0,0,0,0]],"fx":98,"sx":18,"ix":0,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":true,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0},{"stop":0}]}

Expected Behavior

effect (preset 2 as given) should move backwards from 100 to zero instead of turning all leds off.

Install Method

Binary from WLED.me

What version of WLED?

V0.15.1 "Kösen" Build 2507300

Which microcontroller/board are you seeing the problem on?

ESP32-S2

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. changed the title [-]Percent effect starts by zero at every valie change[/-] [+]Percent effect starts by zero at every value change[/+] on Sep 14, 2025
  2. DedeHai commented on Sep 14, 2025

    @DedeHai
    Collaborator

    there were no changes to that effect in 3 years...

    I added the speed slider back recently, check nightly build.

  3. LOGOLEX commented on Sep 16, 2025

    @LOGOLEX
    Author

    i've downgraded to v0.14.3 and it works again.

    never change a running system...

  4. pipetboy commented on Sep 17, 2025

    @pipetboy

    I'm seeing the same issue ever since V15.1

    I'm using it to visualize a timer. In V14 it would just increase a few pixels per second, now it turns off completly then all requested pixels light up quickly, from 0.

  5. blazoncek commented on Sep 17, 2025

    @blazoncek
    Contributor

    Most likely caused by resetIfRequired().

  6. DedeHai commented on Sep 17, 2025

    @DedeHai
    Collaborator

    I can take a look at this. @pipetboy Is this issue also present in nightly build or just 0.15.1?

  7. ghost assigned on Sep 17, 2025
  8. DedeHai commented on Sep 17, 2025

    @DedeHai
    Collaborator

    I checked nightly, this bug is not present.

  9. DedeHai commented on Sep 17, 2025

    @DedeHai
    Collaborator

    can confirm it does not work in 0.15.1, but IMHO the ship has sailed for 0.15 to fix such bugs. If anyone wants to hunt it down and fix it for the 0.15.2 release, please feel free to submit a PR.

  10. MaxVonEvil commented on Sep 22, 2025

    @MaxVonEvil

    Would love to see this get fixed in 15.2. Usecase: I have 180 led's around the rim of a kinetic sand table and I wanted to use it as a progress indicator in some cases. It gradually turns on the light around the table as the pattern drawing progresses. I got all the logic and API worked out, yet the current turning-off-before-update gives an annoying "flinch" experience, for lack of a better word. Thanks!

  11. DedeHai commented on Sep 23, 2025

    @DedeHai
    Collaborator

    @MaxVonEvil you can use 0.16 (nightly build)

  12. DedeHai commented on Sep 28, 2025

    @DedeHai
    Collaborator

    since 0.16 will most likely have restrictions in terms of led count on ESP8266 and 0.15.x may be the final stop for some setups, I fixed it.

  13. MaxVonEvil commented on Sep 28, 2025

    @MaxVonEvil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions