Sonoff Basic R4 with Magic Switch Mode works only on switch ON

Hi, I purchased a Sonoff Basic R4 to control a light bulb connected to a two-way switch using Sonoff’s new Magic Switch functionality. Below is the wiring diagram.

Strangely, the relay detects the switch presses only when the light is off.

For example:

  • Light off → I press a switch → The light turns on
  • Light on → I press a switch → The light stays on
  • Light on → I turn it off via the app → The light turns off → I press a switch → The light turns on

It doesn’t matter which switch I press. The behavior is the same in both cases.

It only worked in some cases when I pressed the switch more gently, increasing the phase cut-off time. It seems like the device doesn’t detect the state change from L1 to L2 but only when the light is already on.

For reference, I am using two Bticino Matix switches.

Do you have any idea what might be happening? Could I solve it by replacing the switches? Could the switches have some leakage?

You might need to provide more context, like a link to some official explanation about this magic switch functionality.

I’m hardly an expert in electricity, but the “magic” part seems to involve rewiring the switches so that both outputs are permanently connected to live.

Without any further info, no one can tell whether it’s something configurable within the Sonoff itself or whether the switches are indeed too fast to reliably trigger.

Some switch don’t play nicely with the magic switch mode. Like himmel switches, i had to toggle the switch just slow enough to toggle the relay which is not WAF friendly

You’ll need to replace with different switches

1 Like

This video expains it: https://www.youtube.com/watch?v=NudSvGNqbAo