Help with relay control

I am trying to have my ESP32 control a relay to switch on the main PSU but have no options in the settings. how can I add this feature? I cant seem to find a guide to help.

I’m using WLEDMM_14.5.0-beta_esp32_4MB_M

I just need GPIO5 to send a signal to the relay when the lights are turned on using the wiz remote.

Any help will be gratefully received. Thanks in advance

You have to find a free GPIO pin and assign it to the relay function. Then connect the pin and all of the power supply grounds together. You will have to power the ESP with a “wall wart” sized 5VDC supply, and use the relay to interrupt the mains power on the main power supply. I found a small relay did not last too long in this application, and switched to a solid state relay.

Thanks for the reply, unfortunately the issue i have is there is no relay function in the software to assign the GPIO trigger.

I have the power and circuitry all ready to go. interesting about the small relay, i will look into a solid state one.

These are the only settings in the usermod tab

Relay is under LED Preferences.

1 Like

Unfortunately it isn’t :confused: unless im missing something very obvious

yes, it sais relay right there.

Oh! the IR info bit? No idea how i missed that :man_facepalming::laughing:

Thanks

you are.