Start a new topic

Remote on off button

I made a modification to one of my Sonoff's See the pictures above.

This allows me to have a momentary push button wired to the Sonoff to turn it off/on or pair a remote control to it. The push button can be some distance away from the Sonoff

The reason I did this is because I intend to install the sonoff in the roof space of my house connected to a light circuit. I will then run the low voltage wire to my push button light switch on the wall of the room.

I can then activate the lights by either the wall switch, the 433mHz remote, or my phone.

It would be good if this was a standard feature of the Sonoff. It only requires installation of a terminal block connector socket and some openings made in the casing.



24 people like this idea


Você pode fazer como um interruptor comum ao usar o modo de instalação do comutador paralelo.

Anyone know if a switch like this ( would work or why it wouldn't? It's a normal household momentary rocker switch.


Like Deepesh Golani said, holding the button for more than 7 sec WILL reset the device, just like the button on the sonoff does (since they are connected). However there will be no reason to hold the button for that long since the light will turn on (or off) as soon as you have pressed the button...

@Deepesh Golani
Thanks for the answer

But I still have a question if a person presses the button for more than 7 seconds will reset the sonoff, and this is what I wanted to change type the reset time and reconfiguration for longer.


Yes you can reset using this method.

I have about 7 sonoff switches connected throughout my home with wired push buttons(bell type switches)

i use alexa for turning on and off light,fan,ac,geyser etc

In case my network connection fails, i can still use my equipments using the wired buttons.

this is by far the cheapest smart home soultion if you buy these in bulk.

1 person likes this

If I solder a push button switch to the momentary pause button to trigger the relay output can I have trouble if someone holds more than 7 seconds it tight? as an example reset sonoff?

1 person likes this

@arik ng

Hey Arik, you happen to be from Singapore? According to our population, the chances are quite slim hahahaha... but how thank you for the helpful tip! Just to clarify, this is using the Sonoff Basic? So you install a Sonoff Basic behind every wall switch?

@arik ng 

You are right. Your is a good solution without any work to do.

but I think many others have thought of your own solution.

But here we were looking for a solution to solve any kind of scenario.

And welding the two files on the sonoff button we created an external button and then we can use each button of our house!

Maybe the best thig is to ask to Itead to solve this problem via hardware/software. And this is possible because Sonoff have a pin (gpio14) free for this use !!

The data we can input to the scratch are simple, like the integrated button : 

wall button on = tension = (HIGH)

wall button off = no tension = (LOW)

@max doro. Agree, but still required a physical contact to the switch to turn it back on, so why not use the original switch instead of making another switch and open the device up And soldering mods if it is not really needed. Yeah the mod makes sense but is it worth te efforts. I just wanted to share the info so that other members aware of the options, because I was looking for way to turn the light on without my pbone, and without the mod, simple settings achieved that.

1 person likes this

@arik ng 

Your diagram is ok for 3 of 4 total scenario. But here we talk about make all scenarios workinig !

If accidentally someone turn off the light with wall switch..... we can do nothing !

With the solution posted by @Ian Gough we solve every scenario !!

But if there is some other solution without open and solder the sonoff.....  it would be better!

@max doro. I was reffering to this scenario: when u switch off the light using the App, you can still turn it back on via the wall switch if u couldnt find your phone or your internet stopped working. E.g. Emergency. so if u need to switch off the light again, use the app! Leave the wall switch ON at all time.

@arik ng 

There is a big problem in your diagram.

If the light is turned off with wall switch, how can I turn it on with sonoff ? Because sonoff take tension from the wall switch in your diagram !! And so we have the same problem !!

@max doro. See diagram. Connect Sonoff device inline (between wall switch and light bulb)
(30.5 KB)
@max doro

@arik ng 

How is it possible for the sonoff shut down the light bulb if I turn on the light on by wall diverter (or by wall switch) ?

Can you explain me the electric diagram ( between light bulb-sonoff-wall diverter) to do what you say ?

Login or Signup to post a comment