# Help with relay control

**URL:** <https://wled.discourse.group/t/help-with-relay-control/14996>\
**Category:** Questions\
**Created:** [November 23, 2025, 5:10pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996 "2025-11-23T17:10:42Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 23, 2025, 5:10pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996/1 "2025-11-23T17:10:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dherkes](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dherkes/32/797_2.png) [@dherkes](https://wled.discourse.group/u/dherkes)\
**Post date:** [November 23, 2025, 10:12pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996/2 "2025-11-23T22:12:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 23, 2025, 10:29pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996/3 "2025-11-23T22:29:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 23, 2025, 10:39pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996/4 "2025-11-23T22:39:38Z")

</div>

![20251123_223750](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/f/f80769dcdbe42bd9439b63446f41773fdd663bb4.jpeg)

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 23, 2025, 10:40pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996/5 "2025-11-23T22:40:26Z")

</div>

These are the only settings in the usermod tab

---

<div class="post-metadata">

**Author:** ![Jinx](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@Jinx](https://wled.discourse.group/u/Jinx)\
**Post date:** [November 24, 2025, 2:46am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/6 "2025-11-24T02:46:41Z")

</div>

Relay is under LED Preferences.

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:09am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/7 "2025-11-24T10:09:23Z")

</div>

Unfortunately it isn’t 😕 unless im missing something very obvious

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:10am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/8 "2025-11-24T10:10:32Z")

</div>

![Messenger_creation_4D68257B-9B40-4191-90AB-F6CC46A3A21A](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/f/f8a610607875093bf677493c655f8ad2c5b6d6d0.jpeg)

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:11am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/9 "2025-11-24T10:11:12Z")

</div>

![Messenger_creation_CC444514-E448-4715-A63D-CBA4710CD9F7](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/e/e9ae59798bfccf1864cd96cc75fc79f2d0477eca.jpeg)

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:11am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/10 "2025-11-24T10:11:49Z")

</div>

![Messenger_creation_8F87FA66-5F00-40A9-AFF8-518563BCCD71](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/f/f1727832142dd717e103c026c1faccec3eed9c76.jpeg)

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:12am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/11 "2025-11-24T10:12:25Z")

</div>

![Messenger_creation_3214365B-D20C-47B4-9EA3-C7EFF3CC94ED](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/2/276c90c66d02d78102bfae9ec506d153504c3a64.jpeg)

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:13am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/12 "2025-11-24T10:13:12Z")

</div>

![Messenger_creation_FA7E75CD-864B-4B9B-8689-09D0860F350F](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/d/d222cb53e4b0cee5b38f6cad9f46b325f5956df9.jpeg)

---

<div class="post-metadata">

**Author:** ![dedehai](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/dedehai/32/7265_2.png) [@dedehai](https://wled.discourse.group/u/dedehai)\
**Post date:** [November 24, 2025, 10:30am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/13 "2025-11-24T10:30:21Z")

</div>

yes, it sais relay right there.

---

<div class="post-metadata">

**Author:** ![Mandark81](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/mandark81/32/10067_2.png) [@Mandark81](https://wled.discourse.group/u/Mandark81)\
**Post date:** [November 24, 2025, 10:49am UTC](https://wled.discourse.group/t/help-with-relay-control/14996/14 "2025-11-24T10:49:58Z")

</div>

Oh! the IR info bit? No idea how i missed that 🤦‍♂️😆

Thanks

---

<div class="post-metadata">

**Author:** ![blazoncek](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/blazoncek/32/1886_2.png) [@blazoncek](https://wled.discourse.group/u/blazoncek)\
**Post date:** [November 24, 2025, 1:02pm UTC](https://wled.discourse.group/t/help-with-relay-control/14996/15 "2025-11-24T13:02:30Z")

</div>

you are.
