I would like to control a relay using an esp8266 module sending the signal. However, I want to also have an optional push button in case my internet is down.

Is this possible? If yes, how can I do this? Eg. Schematic etc.

This is the relay i'm using:
Here is the relay I'm using

This is my attempt at a block diagram: My attempt at a block diagram

  • \$\begingroup\$ Why not put an on-off switch in parallel with the relay contact? \$\endgroup\$
    – Transistor
    Commented May 13, 2020 at 21:27
  • \$\begingroup\$ Is there somewhere online I can read into it? I'm confused about how the schematic would look. \$\endgroup\$
    – Yousuf
    Commented May 13, 2020 at 21:34
  • \$\begingroup\$ @Yousuf Does it have to be a push button (push on, push off) or would a switch like a light switch be good? \$\endgroup\$ Commented May 13, 2020 at 21:36
  • \$\begingroup\$ Light switch would be just fine. \$\endgroup\$
    – Yousuf
    Commented May 13, 2020 at 21:37
  • 1
    \$\begingroup\$ @Yousuf OK, please edit your question to add a block diagram of the circuit you have at the moment so that we can show you what to add and/or change. \$\endgroup\$ Commented May 13, 2020 at 21:38

1 Answer 1


I found this schema on the following website:


The poster claimed that it would allow for activation by ESP as well as manually. So I will attempt to duplicate the schema with some minor adjustments (his relay has the Common at the bottom while mine is in the center):

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.