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.