Skip to content

Usermod Auto Save not working with 0.14 like before #3533

Closed

Description

@KrX3D

What happened?

Hello,

before with 0.13.3 the usermod Auto Save saved a preset and it looked like this:

{"on":true,"bri":76,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":144,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"col":[[250,250,250,51],[0,0,0,0],[0,0,0,0]],"fx":0,"sx":128,"ix":128,"pal":0,"sel":true,"rev":false,"mi":false},{"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}]}

but now it looks like this (preset from another device with 0.14)
{"mainseg":0,"seg":[{"id":0,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[255,255,255],[255,255,255],[255,255,255]],"fx":56,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}

when i go to preset and hit overwrite with state it looks like this

{"on":false,"bri":128,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":343,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"col":[[255,255,255],[255,255,255],[255,255,255]],"fx":29,"sx":128,"ix":128,"pal":0,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":0}]}

it looks like from the usermod not this info is missing:

"on":false,"bri":128,"transition":7,

,"start":0,"stop":343

which also is missing when i deselect the "include brightness" option. So something has changed that Auto Save usermod is not including the brightness to "export" the preset.

also before there where a lot of {"stop":0}, saved and now not so maybe the "checked segments only" is also not working with the usermod

To Reproduce Bug

  • enable Auto Save usermod

  • it saves the "broken" preset

  • save manually the preset and it is different between 0.13.3 and 0.14

Expected Behavior

Auto Save should include the brightness like before, because that way it is now selecting the preset does not set the on/off state

maybe it would be nice to have in the usermod to select those options like in the preset tab:

  • include brightness
  • save segment bounds
  • checked segments only

Install Method

Self-Compiled

What version of WLED?

WLED 0.14

Which microcontroller/board are you seeing the problem on?

ESP32-S2

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

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

Activity

  1. added 2 commits that reference this issue on Nov 18, 2023
  2. added
    confirmed
    fixed in source
    on Nov 18, 2023
  3. KrX3D commented on Nov 18, 2023

    @KrX3D
    Author

    i tested the fix and it seems ok now. thanks

  4. added a commit that references this issue on Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedfixed in source

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions