Skip to product information
1 of 10

SONOFF BASICR4 10A 2400W ESP32 WiFi Smart Switch - Magic Switch Mode Tasmota

SONOFF BASICR4 10A 2400W ESP32 WiFi Smart Switch - Magic Switch Mode Tasmota

Regular price €15,99 EUR
Regular price €0,00 EUR Sale price €15,99 EUR
Sale Sold out
Taxes included. Shipping calculated at checkout.

Low stock - Delivery time 1-3 working days

Article description:

Sonoff ESP32 WiFi Smart Switch

Already flashed with the latest Tasmota firmware, optionally with the standard template or a custom one for Magic Switch Mode. (For more information, see "Magic Switch Mode")

Der Sonoff Smart Switch BASICR4 Wi-Fi Smart Switch ist ein modernes Gerät, das Ihnen hilft, Ihr Smart Home zu steuern. Ausgestattet mit einem fortschrittlichen ESP32-Chip, vereint der BASICR4 erweiterte Funktionalität und erhöhte Leistung bei einem vernünftigen Preis. Es ist die perfekte Lösung für alle, die sich in ihrem eigenen Zuhause wohler fühlen möchten, sei es durch die Steuerung von Beleuchtung, einem elektrischen Wasserkocher, einem Luftbefeuchter, Garagentoren oder Heizungen.

Advanced ESP32 Chip Technology - The ESP32 chip in the BASICR4 is the heart of this smart switch. Thanks to modern technology, the device offers enhanced basic functions and increased efficiency, making it economical as well. Its advanced architecture ensures smooth and reliable operation, which is crucial for any smart home device.

Magic Switch Mode - Limitless Control The Magic Switch mode in the BASICR4 allows you to control the light switch through the app, even after turning off the traditional wall switch. This feature provides flexibility and convenience, enabling you to control lighting from anywhere, regardless of physical switch settings.

Remote Control with "eWeLink-Remote"* - The BASICR4 features "eWeLink-Remote" gateway functionality, allowing remote control and the creation of smart scenes through the app. This feature provides two-way control and local management, giving users full control over their home devices. *Not compatible with Tasmota firmware.

Safety and Reliability - Safety is paramount in any smart device. The BASICR4 is equipped with a built-in temperature sensor that detects the maximum temperature of the product in real-time, preventing deformation, melting, fires, or exposure to high temperatures.

Magic Switch Mode


The Sonoff BASICR4 include a zero-cross detection circuit connected to GPIO5. In normal operation, a pulse of around 650µs is generated on GPIO5 at a frequency of 100Hz (every 10ms) at each zero-crossing. While it could be used to trigger power-switching on zero-crossing to extend relay life, it is featured by Sonoff as a MagicSwitch to toggle the relay on power ""glitches"" using that specific cabling:

The Sonoff BASIC4 is easily integrable into existing 2-way wiring configurations without the need to lay new cables.

The Smart Switch can be installed directly at the light source or on your device to be controlled, remaining operable even when the wall switch is turned off.

To activate the MagicSwitch feature as advertised by Sonoff, you can either order this variant directly with the appropriate template or customize the template yourself by setting GPIO5 as MagicSwitch with Index 1. Here is the template you can use for customization:

{"NAME":"Sonoff Basic Magic Switch","GPIO":[0,0,0,0,224,10560,544,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}

This feature relies on the switch being capable of generating a sufficiently large (but not too large) voltage glitch during toggling. Keep in mind that this is triggered by voltage glitches in the mains. If your mains network naturally experiences glitches, it could lead to false triggers. Setting MagicSwitchPulse to the highest value that still works with your switch could help filter out minor power fluctuations. However, if your mains network experiences glitches in the same range as your switch's toggle time, this feature may become ineffective.

Debug and Adjustments:

By setting the log level to 3 (weblog 3), a log message will indicate the length of the measured pulse and confirm the masking window length (in 50-ms units):

Example: 17:11:43.993 MSW: length:18464, window:5

You can adjust the minimum length for triggering the MagicSwitch using the command MagicSwitchPulse, with a value between 1000 µs and 500000 µs. It is not advisable to set values below 1000 µs, as this may result in self-triggering due to the zero-cross detection pulse. Values above 500000 µs do not make sense, as the BasicR4 is likely to reboot during such glitches.

The value is NOT saved permanently. You can make it permanent by using a boot rule, for example:

Rule1 ON power1#boot DO MagicSwitchPulse 5000 ENDON

Technical data:

Brand: Sonoff

Model: BASIC4

Color: White

Compatibility: Amazon Alexa, Google Home

Input: 100-240V AC 50/60Hz

Output: 100-240V AC 50/60Hz

Maximum Power: 2400W @ 240V

Operating Temperature: -10°C~40°C

Wi-Fi: IEEE 802.11 b/g/n 2.4GHz

Material: PC V0

Dimensions: 88 x 39 x 24mm

Weight: 45.8g

Further information:


Brand new immediately available With Tasmota firmware

Model variants:

Tasmota german Tasmota german with Magic Switch Mode Tasmota english Tasmota english with Magic Switch Mode Tasmota Individual Language (Send US A Message) Tasmota Individual Language with Magic Switch Mode Ewelink (No Tasmota)

View full details