Skip to content

Adjustable delay time for power on - problem with relay and a flash at power on #3430

Closed

Description

@DieNummerEins

Is your feature request related to a problem? Please describe.

My setup:

  • 1 ESP32 WLED controller (always on with its own PSU)
  • 10 meters SK6812 rgbww led strip
  • 6 PSUs every 2-2,5 meters as power injection on 230V line
  • relay (SSR) => inrush current limiter in front of 230V line (as protection for fuse not to blow out, what it definitely does by more than 3 PSUs)
  • relay is connected to WLED to power off/on the PSUs

My problem:
If I turn lights on (e.g. "turn on" button in GUI) I see first a short flash with random colors. It seems as the PSU needs a bit of a second to provide stable 5V but WLED already forces the LED to light up.

Describe the solution you'd like
Like in issue 812 (see below) a "delay on power on event" would help. If I click on "power on" (via GUI) or "power on" command is send, WLED first actuate the relay and only after a time to be set (delay time) forces the LED to lighten up.

Describe alternatives you've considered

I tried a workaround via a playlist (first a black preset for 0,2s duration, then the desired light configuration). It works fine, but this has disadvantages like described in
#346
And, I think, I cannot turn light on with this playlist vie GUI (turn on is just turn on without playlist/preset)

In a thread I cannot find right now there were a solution considered to make "turn on/off" event more generally. I mean turn off via GUI and the same turn off on boot. On boot I can start a playlist/preset, but not with GUI-turn-on-button. This feature would make a small difference at the playlist/preset-workaround for my entire problem. I plan to have 30-40 WLED inside/outside my house, not to turn on/off via GUI isn't nice. With the feature to customize the turn on/off event (not just at boot), I can hide my problem from using experience, it is still a workaround (based on the missing delay option) but it is more user friendly. I will submit this as a separate feature request.

Additional context
I commented a similar thread:
#812

...and explained the situation in discord issues channel on October 5th/6th 2023

Activity

  1. added this to the 0.14.2 candidate milestone on Oct 7, 2023
  2. blazoncek commented on Oct 12, 2023

    @blazoncek
    Contributor

    My recommendation is to use Multi relay usermod and connect relay switch to a LED GPIO output.
    This will achieve desired result without changing code at the expense of additional relay (or some other switch).
    Multi relay usermod has adjustable on delay.

  3. added
    workaround
    on Oct 12, 2023
  4. added
    waiting for feedback
    on Nov 2, 2024
  5. softhack007 commented on Nov 2, 2024

    @softhack007
    Member

    Allows to add a delay at startup before powering on LEDs and other units. Only available in custom builds by -D WLED_BOOTUPDELAY=500 (or any other delay in milliseconds)

  6. removed this from the 0.15.1 candidate milestone on Feb 22, 2025
  7. blazoncek commented on Jan 31, 2026

    @blazoncek
    Contributor

    FYI implemented in my fork.

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

    discussionenhancementwaiting for feedbackworkaround

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions