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
Is your feature request related to a problem? Please describe.
At feature request #3430 I described my problem and a possible solution. In this context it would help, to make "power on event" more generally and customizable. For power on at boot I can choose presets/playlists, for power on via GUI-button I can not.
Describe the solution you'd like
It would be nice, if you can customize the power on event (GUI-button) and add presets/playlists to it.
In GUI (App or Browser) there is a power button. If it's off and I push it then "on event" is fired, vice versa.
If I can customize the on and the off event separately (with presets/playlists and maybe cascade of both) that would be awesome.
It would also be nice to fire both events (on and off) via HomeAssistant for example. Now I have a switch, therefore it would be same as GUI-power-button (if it's off and I push then on event and vice versa).
But I can imagine situations where it is necessary to just fire specificly the off event, for example to make sure light is off (if I am not home or at every midnight to safe energy). Maybe it is possible already, I'm new to this stuff.
What to do in API I cannot say, I don't know the details.
For events you have presets. Assign those to buttons or automation.
GUI power button is not tied to an "event" it triggers "on" API call. Changing that could be done via GUI override but that will be browser/device specific.
In "LED Preferences" it is possible to decide, wether the LEDs should be turned on or not and which preset to apply.
It would be great to have the preset/playlist option for GUI power button. It is the smaller idea of the above (turn on event more generally and customizable).
So is the "power on delay" (for special problems with relay usage) apparently ;-). Well, maybe the current code will be rewritten someday and those changes will be more easily.
Yes, you are right, it is a different challange, but they have the same in common: "difficult to implement with current code".
Unfortunately the workaround with 2 relays is too complicated. My solution is the following: My wall switches (4 button type) are connected to a ESP32 with ESPHome. I use a separate ESPHome-controller for my wall switches because first they are located somewhere in the middle of the room ,the wled-strip starts elsewhere and so the wled-controller is too far away. And second sometimes there is a power outlet underneath the wall switches, so the ESPHome-controller has an additional relay for it. Above all there is HomeAssistant, the ESPHome-controller uses presets/playlists to turn on wled-strips.
Activity
blazoncek commentedon Oct 17, 2023
How would you tackle on and how off event? That would require 2 presets or just one correctly formatted.
Would you want to change API as well?
DieNummerEins commentedon Oct 17, 2023
In GUI (App or Browser) there is a power button. If it's off and I push it then "on event" is fired, vice versa.
If I can customize the on and the off event separately (with presets/playlists and maybe cascade of both) that would be awesome.
It would also be nice to fire both events (on and off) via HomeAssistant for example. Now I have a switch, therefore it would be same as GUI-power-button (if it's off and I push then on event and vice versa).
But I can imagine situations where it is necessary to just fire specificly the off event, for example to make sure light is off (if I am not home or at every midnight to safe energy). Maybe it is possible already, I'm new to this stuff.
What to do in API I cannot say, I don't know the details.
blazoncek commentedon Oct 17, 2023
For events you have presets. Assign those to buttons or automation.
GUI power button is not tied to an "event" it triggers "on" API call. Changing that could be done via GUI override but that will be browser/device specific.
DieNummerEins commentedon Oct 18, 2023
What is GUI override?
In "LED Preferences" it is possible to decide, wether the LEDs should be turned on or not and which preset to apply.

It would be great to have the preset/playlist option for GUI power button. It is the smaller idea of the above (turn on event more generally and customizable).
blazoncek commentedon Oct 18, 2023
I know it would be great but is difficult to implement with current code.
DieNummerEins commentedon Oct 18, 2023
So is the "power on delay" (for special problems with relay usage) apparently ;-). Well, maybe the current code will be rewritten someday and those changes will be more easily.
blazoncek commentedon Oct 18, 2023
That's totally unrelated (and different problem for which I already gave you a workaround). 😄
DieNummerEins commentedon Oct 18, 2023
Yes, you are right, it is a different challange, but they have the same in common: "difficult to implement with current code".
Unfortunately the workaround with 2 relays is too complicated. My solution is the following: My wall switches (4 button type) are connected to a ESP32 with ESPHome. I use a separate ESPHome-controller for my wall switches because first they are located somewhere in the middle of the room ,the wled-strip starts elsewhere and so the wled-controller is too far away. And second sometimes there is a power outlet underneath the wall switches, so the ESPHome-controller has an additional relay for it. Above all there is HomeAssistant, the ESPHome-controller uses presets/playlists to turn on wled-strips.
Additionally I will rework my structure with this page:
https://kno.wled.ge/basics/compatible-controllers/
LevelShifter and Resistance/EMC-Filter is maybe something important for stabilization.
DieNummerEins commentedon Oct 18, 2023
Anyway, all of you guys make a great job and I am very thankful for WLED and it's continually improvement.
Power button override (solves #3431)
[-]Make "power on event" more generally and customizable[/-][+]Make "Power" button customizable[/+]blazoncek commentedon Mar 22, 2024
Available in 0.15.0 beta 1.
Power button override (solves wled#3431)