Switch to toggle I/O independenly

Hello Forum,

Is there a possibility in Stock WLED to toggle a certain I/O from a push button that is attached to another I/O, while not changing any other parameters, like the current effect, brightness, etc?

I have a setup with “multiple” WS2812 zones. And I would like to enable or disable zones by switching of the power supply to those zones through a relay board.

I have seen that I can configure a relay in WLED but I don’t know how i can tell WLED to toggle this relay by the push of a button.

Don’t know if it will work in “stock” WLED, but if you look at the Multi-Relay usermod, there’s documentation on using the JSON API to control relays.

That would let you create a preset that toggles the relay and you could assign that to a GPIO configured for pushbutton.

Certainly worth a test in “stock” (try something current, ver 0.15?) WLED.

I had forgotten about another possible solution for relay control:

…trigger relay pin

That lets you use a “dummy” LED in a preset to control relay(s).
The preset(s) can be triggered by your pushbutton(s)

Might be helpful.

Thank you, this is indeed a working soultion for my problem. Case closed :+1: