Skip to content

Auto Playlist is being disabled by autochange when switching from ambient to music playlist #256

Closed

Description

@terminusxx

What happened?

When using auto playlist with auto change there is a chance that when switching from ambient playlist to music playlist auto change will ask for a preset change before the preset change to the music playlist can take effect which auto playlist then takes as an outside action and disables itself. When autochange is turned off while autoplaylist is left on this no longer happens.

To Reproduce Bug

Turn on audio reactive with autoplaylist and autochange on with a mic connected, in my experience within an hour or two it will disable itself.

Expected Behavior

Autochange should wait until the music playlist preset is applied instead of racing against it.

Install Method

Self-Compiled or other

What version/release of MM WLED?

build 2501170, esp32_4MB_S.bin

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

AutoPlaylist: Sound detected
JSON buffer locked. (19)
FILE '/presets.json' open to read, size 2546 bytes
JSON buffer released. (19)
AutoPlaylist: Applying "MusicPlaylist"
Playlist unloaded.
Request to apply preset: 2 from source: CALL_MODE_NOTIFICATION
--- lowest distance =  166 - no changes done in 143350ms - next change_threshold is  166 (  67 diff approx)
Request to apply preset: 5 from source: CALL_MODE_BUTTON
*** CHANGE distance =  166 - change_interval was 143350ms - next change_threshold is  183 (  17 diff aprox)
JSON buffer locked. (9)
Applying preset: 5 (original request source: CALL_MODE_BUTTON)
FILE '/presets.json' open to read, size 2546 bytes
deserializeState {"on":true,"bri":245,"transition":7,"mainseg":0,"seg":[{"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"n":"","col":[[255,160,0],[0,0,0],[0,0,0]],"fx":156,"sx":128,"ix":128,"pal":1,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2},{"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},{"stop":0}],"ledmap":0,"n":"Gravcenter 🎨⋮♪"}
deserializeSegment {"id":0,"start":0,"stop":30,"grp":1,"spc":0,"of":0,"on":true,"frz":false,"bri":255,"cct":127,"set":0,"n":"","col":[[255,160,0],[0,0,0],[0,0,0]],"fx":156,"sx":128,"ix":128,"pal":1,"c1":128,"c2":128,"c3":16,"sel":true,"rev":false,"mi":false,"o1":false,"o2":false,"o3":false,"si":0,"m12":2}
-- Copy segment constructor --
JSON buffer released. (9)
sendDataWs
JSON buffer locked. (12)
serializeState 0 {}
serializeSegment {}
AR I2S cycle time: 12.81 ms
AR Sampling time :  1.34 ms
AR filter time   :  1.17 ms
AR FFT time      :  3.69 ms
JSON buffer size: 4075 for WS request (2486).
Sending WS data to multiple clients.
JSON buffer released. (12)
Current mode or palette changed.
AutoPlaylist: disable due to manual change of playlist from 2 to -1, preset:5

Anything else?

No response

Code of Conduct

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

Activity

  1. added
    bug
    on Aug 7, 2025
  2. netmindz commented on Sep 20, 2025

    @netmindz
    Collaborator
  3. netmindz commented on Oct 5, 2025

    @netmindz
    Collaborator

    have you seen this happen at all @troyhacks ?

  4. troyhacks commented on Oct 6, 2025

    @troyhacks
    Collaborator

    Never witnessed it disabling itself, but I understand the bug report. This is telling maybe?

    AutoPlaylist: disable due to manual change of playlist from 2 to -1, preset:5

    It may simply be that I have music and ambient playlists that are both fairly equal in size, so the chances of picking a preset number not on the other playlist is less likely and doesn't happen (or happens so infrequently it's not been noticed) in my setup.

    @terminusxx how many presets are in each of your playlists?

  5. terminusxx commented on Oct 6, 2025

    @terminusxx
    Author

    I tried the bin but couldn't even get it to pick up anything from my mic, I double checked the settings and the hardware and even reflashed the previous version and that one still works.

    I only have one preset in my ambient playlist and five in my music playlist, I can try adding another few to my ambient and see if that fixes anything.

    I'll try to flash builds before this and see where my mic stops working, the last build I was using that works with my mic is from Jan.

  6. troyhacks commented on Oct 10, 2025

    @troyhacks
    Collaborator

    Yeah it's likely easy to fix. You just found the edge case we didn't in testing. 😁

  7. softhack007 commented on Nov 2, 2025

    @softhack007
    Collaborator

    Yeah it's likely easy to fix. You just found the edge case we didn't in testing. 😁

    @troyhacks @netmindz if you give me a PR to fix the problem, I can add that into the next WLED-MM release. Is a "simple&elegant" fix possible?

  8. added a commit that references this issue on Nov 15, 2025
    1835e9e
  9. added a commit that references this issue on Nov 15, 2025
    8342679
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions