Skip to content

Wait some time before turning on LEDs after turning on power/relay #346

Closed

Description

@pauldogg

Would it be possible to add delay in ms for power supply to come online, as well as a pin definition for power supply relay?

Thanks

Activity

  1. Aircoookie commented on Nov 12, 2019

    @Aircoookie
    Member

    See #345 for where the pin definitions are :)
    May I ask what is your use case is for a delay in relay switching? For me, turning the relay on whenever LEDs are on and off when the LEDs are off is the only logical way.

  2. pauldogg commented on Nov 13, 2019

    @pauldogg
    Author

    Sorry I meant delay the signal, allowing time for the power to get to the LEDs.
    In my current setup I have it set to 20ms; on another, I need to set it to 1000ms. If i didn't have a delay, the lights would appear off until another signal was sent (change color, brightness or effect etc...).

    Edit: i'm using APA102's

  3. Aircoookie commented on Nov 15, 2019

    @Aircoookie
    Member

    Have you tested that that is an actual issue with APA102?
    WLED sends an update to the LEDs at least twice a second.
    If the LEDs actually stay off, please confirm whether my hunch that only changing brightness will make them work, changing effects or color should not have an effect.

  4. stale commented on Mar 29, 2020

    @stale

    Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
    Thank you for using WLED!

  5. added
    stale
    on Mar 29, 2020
  6. Fejitatete commented on May 31, 2020

    @Fejitatete

    Is it possbile to reopen this issue plz, I have the same need : I power my strip from an ATX PSU and when the power signal is grounded, actual power may take 2s to come. Without a delay, the fade in effect is lost. Another way is to wait for an input .
    Thanks.

  7. removed
    stale
    on May 31, 2020
  8. changed the title [-]power supply control[/-] [+]Wait some time before turning on LEDs after turning on power/relay[/+] on May 31, 2020
  9. added this to the 0.12.0 milestone on May 31, 2020
  10. Fejitatete commented on Jun 6, 2020

    @Fejitatete

    Thank you @Aircoookie, keep up the great work :).

  11. modified the milestones: 0.12.0, 1.0.0 on Apr 6, 2021
  12. 3 remaining items

  13. up2smoke commented on Sep 3, 2022

    @up2smoke

    where exactly in the code? for the people who compile themselves, that would be interesting to know

  14. KlausHans commented on Sep 6, 2023

    @KlausHans

    The delay in powering up can be achieved by using playlist feature introduced in 0.12 and enhanced in 0.13. Create 2 presets, one with on state and black color, 2nd with the desired effect and color and transition time. From those two create a playlist and use it for powering WLED. Power off delay has been implemented in code.

    I tried to do that because i have a bright flash with a ssr too. But i have a problem with your solution.
    In the playlist editor 1 s is the minimum for duration. I want the black state only 0.1 or 0.2 s. If i change to json view i can set "dur":[1] (0.1 s) but that doesn't get saved. Instead the default value of 100 (10 s) is saved. This seems to be a bug or at least a big inconvenience.
    Is there a way around this? 1 s delay is too much for the black state imho.

  15. KlausHans commented on Sep 6, 2023

    @KlausHans

    Another problem with the playlist solution: If you use a potentiometer for brightness the solution doesn't work because the global brightness via potentiometer has nothing to do with presets. So a custom relais delay setting for switching on would be nice.

  16. added
    workaround
    on Sep 6, 2023
  17. KlausHans commented on Sep 6, 2023

    @KlausHans

    @Aircoookie has mentioned this issue in #812 (comment) as main tracking issue. So maybe reopen it since it isn't implemented yet and the workaround is only half baked (imho)?

  18. blazoncek commented on Sep 6, 2023

    @blazoncek
    Contributor

    If i change to json view i can set "dur":[1] (0.1 s) but that doesn't get saved. Instead the default value of 100 (10 s) is saved. This seems to be a bug or at least a big inconvenience.

    Please open a new issue. But my own testing shows that it is possible to enter 0.1 as a preset duration.

  19. doronazl commented on Dec 12, 2023

    @doronazl

    If i change to json view i can set "dur":[1] (0.1 s) but that doesn't get saved. Instead the default value of 100 (10 s) is saved. This seems to be a bug or at least a big inconvenience.

    Please open a new issue. But my own testing shows that it is possible to enter 0.1 as a preset duration.

    tried entering anything lower than 1s on multirelay menu, saving it , then go back to the menu it set back to 1, how can set under 1s ?

  20. KlausHans commented on Dec 12, 2023

    @KlausHans

    Did you try to save 0.1s? It has to be 0.2 or higher, as discussed in #3359

  21. doronazl commented on Dec 12, 2023

    @doronazl

    Did you try to save 0.1s? It has to be 0.2 or higher, as discussed in #3359

    yes tried decimal point, it wont save

  22. doronazl commented on Dec 12, 2023

    @doronazl

    #3359

    that discussion is about the playlist, over there no problem it takes the decimal point, but not in usermods

  23. KlausHans commented on Dec 12, 2023

    @KlausHans

    True. Sorry, misread it.

  24. 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

    enhancementworkaround

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions