You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wait some time before turning on LEDs after turning on power/relay #346
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.
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...).
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.
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!
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.
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.
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.
@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)?
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.
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 ?
Activity
Aircoookie commentedon Nov 12, 2019
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.
pauldogg commentedon Nov 13, 2019
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
Aircoookie commentedon Nov 15, 2019
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.
stale commentedon Mar 29, 2020
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!
Fejitatete commentedon May 31, 2020
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.
[-]power supply control[/-][+]Wait some time before turning on LEDs after turning on power/relay[/+]Fejitatete commentedon Jun 6, 2020
Thank you @Aircoookie, keep up the great work :).
3 remaining items
up2smoke commentedon Sep 3, 2022
where exactly in the code? for the people who compile themselves, that would be interesting to know
KlausHans commentedon Sep 6, 2023
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.
KlausHans commentedon Sep 6, 2023
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.
KlausHans commentedon Sep 6, 2023
@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)?
blazoncek commentedon Sep 6, 2023
Please open a new issue. But my own testing shows that it is possible to enter 0.1 as a preset duration.
doronazl commentedon Dec 12, 2023
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 ?
KlausHans commentedon Dec 12, 2023
Did you try to save 0.1s? It has to be 0.2 or higher, as discussed in #3359
doronazl commentedon Dec 12, 2023
yes tried decimal point, it wont save
doronazl commentedon Dec 12, 2023
that discussion is about the playlist, over there no problem it takes the decimal point, but not in usermods
KlausHans commentedon Dec 12, 2023
True. Sorry, misread it.
LED output delay after switching on relay
blazoncek commentedon Jan 31, 2026
FYI Implemented in my fork.
HUB75 support and LED output delay after relay switch, general improv…