Skip to content

Internal temperature causes 'error 12: preset not found' even without any presets #4390

Closed

Description

@orbitinstasis

What happened?

every time i open one of my two wled instances, I get 'error 12: preset not found'

To Reproduce Bug

I have updated to version 15 recently and don't remember the error showing there, but I can isolate it to this mod because I emptied all my presets and the error still showed, and only stops showing when i disable the mod, and starts showing again when i re-enable the mod

Expected Behavior

stop showing the error

Install Method

Self-Compiled. Completely vanilla to the 'main' branch except for the config in platformio.ini changes to default_envs, uncommented line to the onewire lib,

and added:

-D USERMOD_DALLASTEMPERATURE
-D USERMOD_INTERNAL_TEMPERATURE
-D USERMOD_PWM_FAN

under [env:esp32c3dev]

What version of WLED?

0.15.0

Which microcontroller/board are you seeing the problem on?

ESP32-C3

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. lost-hope commented on Dec 13, 2024

    @lost-hope
    Member

    What preset is set in the dialog field in the setting of the internal temp preset?

  2. orbitinstasis commented on Dec 13, 2024

    @orbitinstasis
    Author

    What preset is set in the dialog field in the setting of the internal temp preset?

    0

  3. lost-hope commented on Dec 13, 2024

    @lost-hope
    Member

    Try setting that to -1

  4. blazoncek commented on Dec 13, 2024

    @blazoncek
    Contributor

    0 should be a valid value and should mean "no preset" as no presets can have id 0.

  5. orbitinstasis commented on Dec 13, 2024

    @orbitinstasis
    Author

    Just did a small but reasonable boundary test.

    If i set the 'preset to set' value to -1 and click save, it changes automatically back to 0. Same behaviour on the polling setting if you go anything below 10000.

    I always get th error if the setting is 0 for the preset, and also occurs if the number is a positive integer higher than any preset I have saved.

    However, the error never shows if the preset to set is an integer above 0 which I also have a saved preset for

  6. lost-hope commented on Dec 13, 2024

    @lost-hope
    Member

    OK i will look into it later. Maybe tomorrow. i havent added the preset functionality to the usermod, but normally it should not try to change the preset when set to 0. (atleast that is what a quick look showed)

  7. orbitinstasis commented on Dec 13, 2024

    @orbitinstasis
    Author

    OK i will look into it later. Maybe tomorrow. i havent added the preset functionality to the usermod, but normally it should not try to change the preset when set to 0. (atleast that is what a quick look showed)

    I might be understanding the intended use wrongly. It being a safety feature (with the default temp being in the upper quadrant of the operating temps) I assumed it'd turn the LEDs off, but if I am supposed to plug in my own valid preset then I'll get on and make an 'all leds off' preset.

    Essentially, not sure if the default value 0 is supposed to be overwritten.

    Either way, thanks for looking into it.

  8. lost-hope commented on Dec 14, 2024

    @lost-hope
    Member

    Found the issue and made a PR.

  9. orbitinstasis commented on Dec 14, 2024

    @orbitinstasis
    Author

    Found the issue and made a PR.

    Thanks - when might this move to the main branch ? I'm assuming that's the branch the devs want most users who are compiling usermods to use?

  10. fredkampf commented on Dec 3, 2025

    @fredkampf

    Hi. I am using an esp 8266 and am experiencing this issue. I loaded the most recent verson 16 but still are experiencing the issue. When I try to save a default, I get the error and it does not boot to the saved effect. thanks!

  11. DedeHai commented on Dec 3, 2025

    @DedeHai
    Collaborator

    this happens if a non existing preset is being applied at bootup. a config reset usually fixes it.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions