Button: Set Lights to white and toggle LED status?

Hello all,

thanks a lot for WLED. The software is just great. So far I have everything working, only the button causes me problems.

I would like to make sure that when the button is pressed, the LEDs turn white and turn on. When I press the button again, the LEDs should turn off.

I would have thought according to API it would be possible with the following macro:

T=2&A=255&FX=0&R=255&G=255&B=255


T=2 toggle

A=255 brightness

FX=0 no effect

and the rest sets the colors.

However, the LEDs are not switched on when the button is pressed. If I switch the LEDs on via APP and then press the button the LEDs turn off.

Maybe somebody knows the answer.

Daranto

Did you set that macro to be called by the button-press?

Hello,

Yes I have set the button to the correct Macro spot

I think the problem is, that there is not a on and off macro option like the Alexa part.

Ah ha. No, It’s only presses. You can modify the code for that, though.