Newbie here from India.

I was wondering if a Sonoff Basic switch can be connected as given in the diagram below:

enter image description here

The "Light Switch on the Wall" stays always in the 'On' position. And the Sonoff switch disrupts the flow of electricity.

Disclaimer: I am not an electrician. I will be getting this connected by a qualified electrician.

Edit: Changed the diagram to better reflect how a switch works

  • no, it cannot. switches don't switch L and N, just L. that means you cold only get power parasitically through the bulb, and only if the switch was on could you turn off the bulb with wifi.
    – dandavis
    Nov 21, 2017 at 20:51
  • Yes, that's what I was trying to say. The wall switch would always be on. Is this bad design?
    – nparabz
    Nov 21, 2017 at 21:03
  • i would remove the switch then. re-examine the sonoff wiring diagrams; there's two options that will work for your situations. the problem is your switch diagram, that's' not how switches are wired.
    – dandavis
    Nov 21, 2017 at 21:09
  • I have edited the diagram to better reflect how a switch works.
    – nparabz
    Nov 22, 2017 at 9:12

1 Answer 1


There's no reason that wouldn't work unless the manufacturer advises against it. It's a possibility that frequent on/off cycling isn't good for it, but that's unlikely. It's somewhat likely that there will be a wifi reconnect lag, however, so take that into consideration.

Really, this is no different than a typical motion detector on a switch loop.

  • Thanks v.much for your answer. There's not much manufacturer documentation about going about wiring it, but there's no advise against wiring it this way. I was confused because there is also the alternative of connecting the Sonoff Basic switch in the wall IN PLACE OF the wall switch. I guess that would be alright too?
    – nparabz
    Nov 21, 2017 at 19:42
  • Sure. It's all just a loop. You could put 37 different types of switches in it if you like.
    – isherwood
    Nov 21, 2017 at 19:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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