Relay operation based on all segments on/off

Hi all, I’m wondering if it’s possible to trigger the relay pin based on all segments being off or on rather than relying on the master power button in WLED being on or off?

Currently, the relay pin seems to only be affected by the main power button. Whereas I’d like to be able to turn off my power supply if all of the segments have been independently turned off or turn on if one of the segments is turned on. Is this possible?

The basic relay is as you (and the documentation) describes.
There is a multi-relay usermod that allows some API control of more relays.

You might check the notes on that version.

The relay also turns off when the global brightness falls to zero.

It should not be too difficult to modify Multi-relay usermod to accommodate your needs.

Well, I’ve been pkaying around with this for a while and cant figure out how to trigger the relay when one or all segments are off rather than requiring the master power to be off. Can anyone point me in the right direction?

You need a Multi-relay usermod. Otherwise a relay is linked to WLED brightness.

1 Like