Fade in fade out ? in WLED with ESP8266

Hi all.
I have a question about the WLED app.
for lighting up the inside of a cabinet, i use a esp8266 with a magnetic on/off switch for a 5v led strip. After installing it works fine, when i open the door the leds go on and when i close it the light goes off.
BUT…I want the light to go on and off slowly slowly! like in 5 or 10 seconds or so… how can i achieve this? cannot find a way to control the button. anyone an idea how to fix this?
thanks already!
greets stephan

WLED supports transitions.

So you should be able to use it like this (3 second off fade):

  - service: light.turn_off
      entity_id: light.your_wled_light
      transition: 3

thx a lot! where can i find this transition command?

Is your magnetic switch directly connected to the WLED board to control the state or are you using home assistant automations?

If you are using an automation you supply the data in the actions of the automation as I have shown above.

If you are using the switch directly connected to the WLED board it is in the LED Settings page:

Screenshot 2023-12-07 at 09-52-32 LED Settings

the magnetic switch is directly on the esp8266 (d3 and grnd). i used the wled software to get it working. i noticed the transition time setting but i tried it and it only worked for the transition between effects and not for the button settings. did i something wrong?

Hmm. No. I just tried it. It does not work as an on/off transition for me either.

Try asking the experts over on the WLED discord:

Please report back here if you get an answer.