How to Install Sonoff Mini R4 Smart Switch: Wiring, Safety, and Compliance Notes for South Africa
Detailed installation guide for the Sonoff Mini R4 smart switch in South Africa. Covers wiring, no-neutral setups, safety notes, and troubleshooting. Local stock at Communica.

Safety First: Isolate and Verify
Always switch off the circuit at the DB and test with a multimeter before touching wires.
Neutral Wire Makes Life Easier
Use the neutral wire if available; the no-neutral method can cause LED flicker.
Know Your Load Type
The Mini R4 is rated for 10A resistive; derate to 2A for inductive loads.
Introduction: Why Installation Matters More Than Configuration
When it comes to smart home devices, most online guides focus on app setup and Wi-Fi pairing. But the Sonoff Mini R4's real challenge - and risk - lies in the physical installation. As a South African user, you face unique considerations: our 230V AC mains supply, the prevalence of older wiring in many homes, and the need to comply with local electrical regulations. This guide walks you through the installation process step by step, highlighting where our local context differs from the typical overseas tutorial.
The Mini R4 is a compact smart switch designed to retrofit into existing wall switch boxes or ceiling rose points. Unlike plug-in smart plugs, it requires a live connection to your household wiring. That's why understanding the basics of AC wiring, safety isolation, and local regs is essential before you pick up a screwdriver. Whether you're a hobbyist upgrading a single room or a technician planning a multi-point installation, this article gives you the practical knowledge to do it correctly - and safely.
Understanding the Sonoff Mini R4: What's Inside the Box
Before touching a wire, let's review what the Mini R4 actually contains. It's a two-way (changeover) relay module based on the ESP32-C3 chip, supporting both 2.4GHz WiFi and a wired dry contact input for a physical switch or push button. The module has five terminals: L (live in), N (neutral in), L1 (live out to load), and two screw terminals for the external switch (usually labelled S1 and S2). It's rated for up to 10A resistive load - important to remember if you plan to control high-inrush devices like certain motors or transformers.
A key feature is its ability to work without a neutral wire in some configurations - but only if you use the 'no-neutral' setup, which relies on a current leakage path through the load. This is not suitable for all loads (e.g., LED bulbs that draw very low current) and can cause flickering. For most South African installations, especially in newer homes, a neutral wire is available at the switch box - but older properties might not have one. We'll cover both scenarios below.
Physical Dimensions and Mounting
The Mini R4 measures roughly 47mm x 33mm x 18mm - small enough to fit behind a standard wall switch, but you must ensure there's enough depth in the mounting box. In many South African homes, flush-mounted boxes are only 40mm deep, which can be cramped. The module comes with a pair of mounting ears, but in practice, you often have to tuck it into the back of the box behind the switch. For ceiling installations (e.g., above a light fitting), there's typically more space.
Note that the Mini R4 is not designed to be user-serviced. Once installed, it should be enclosed in a non-combustible housing, as per safety regulations. That means you can't just leave it loose inside the ceiling void without a junction box.
South African Electrical Safety and Compliance Notes
In South Africa, any work on fixed electrical installations - which includes wiring a smart switch into your wall - is regulated by the Occupational Health and Safety Act (Act 85 of 1993) and the Wiring Code (SANS 10142-1). Often, this means you should be a qualified electrician to perform the installation. However, many hobbyists and competent DIYers do this work themselves. We strongly advise you to check with a certified electrician if you're unsure. The risk of electrocution or fire is real.
Key points to consider:
- Voltage and frequency: South Africa uses 230V AC at 50Hz. The Mini R4 is rated for this, but always double-check the markings on the module.
- Isolation: Always switch off the relevant circuit breaker at the DB (distribution board) before working. Never rely on a wall switch being off - you need to isolate the circuit completely.
- Neutral vs. no-neutral: As mentioned, the no-neutral wiring method is common in older SA homes, but it has limitations. If your switch box has a neutral, use it - it's more reliable.
- Load type: The Mini R4 is designed for resistive loads like incandescent bulbs and heaters. For inductive loads (fans, motorised blinds) or LED drivers, you may need a snubber or a different device. The relay contact rating of 10A is for resistive; for inductive loads, derate to about 2A.
No regulatory body certifies the Mini R4 for South African use - it doesn't carry an SABS mark. That said, it's widely used by enthusiasts and professionals because of its cost and functionality. Just be aware of implications for your home insurance: if an unqualified person does the work and it's found to be non-compliant, your policy might not cover any resulting damage. Consult the Communica about page to see how they support professional installers.
Related Home Automation & IoT Products
Discover quality home automation & iot products related to How to Install Sonoff Mini R4 Smart Switch: Wiring, Safety, and Compliance Notes for South Africa
Ubiquiti Uap-ac-proe Unifi Ac Pro Dual Band Ap
Ubiquiti Uap-ac-proe Unifi Ac Pro Dual Band Ap
Ubiquiti Poe-48-24w-g Gigabit Poe Adapter 48v
Ubiquiti Poe-48-24w-g Gigabit Poe Adapter 48v
Ubiquiti Ubam-nsm2 - 2.4ghz Indoor/outdoor Nanostation
Ubiquiti Ubam-nsm2 - 2.4ghz Indoor/outdoor Nanostation
Tuya Basic Wifi Smart Switch For Smart Home. Switches Relay 110-250vac At Max 10amp, Tuya Smart App, Works With Amazon Alexa, Google Home And Supports
Tuya Basic Wifi Smart Switch For Smart Home. Switches Relay 110-250vac At Max 10amp, Tuya Smart App, Works With Amazon Alexa, Google Home And Supports
Blebox Wlightbox S Pro Turns On, Off And Dims Single-color 12-24v Led Lighting From Anywhere
Blebox Wlightbox S Pro Turns On, Off And Dims Single-color 12-24v Led Lighting From Anywhere
Blebox Ble-uremote Pro Home Automation
Blebox Ble-uremote Pro Home Automation
Blebox Uremote With The Uremote You Can Control All Ble Devices Based On The Micro-wifi Technology :gates, Roller Shutter, Lighting Or Other Electrica
Blebox Uremote With The Uremote You Can Control All Ble Devices Based On The Micro-wifi Technology :gates, Roller Shutter, Lighting Or Other Electrica
Blebox Doorbox Is An Integrated, Uwifi (microwifi) Controller, To Open & Close Doors And Pedestrian Gates, Control Electric Bolt Locks, Electric Strik
Blebox Doorbox Is An Integrated, Uwifi (microwifi) Controller, To Open & Close Doors And Pedestrian Gates, Control Electric Bolt Locks, Electric Strik
Blebox Shutterbox Dc With A Smartphone Or Tablet Allows You To Control Roller Shutters, Awnings, Shutters Or Windows Equipped With Low Voltage (12-24v
Blebox Shutterbox Dc With A Smartphone Or Tablet Allows You To Control Roller Shutters, Awnings, Shutters Or Windows Equipped With Low Voltage (12-24v
Blebox Rollergate Controller, Is An Integrated, Uwifi (microwifi) Controller, To Open & Close Gates From Anywhere, Uses Free Wbox Mobile Application
Blebox Rollergate Controller, Is An Integrated, Uwifi (microwifi) Controller, To Open & Close Gates From Anywhere, Uses Free Wbox Mobile Application
Ubiquiti Locom2 Nanostation - 2.4ghz Indoor/outdoor Power & Electrical Supplies
Ubiquiti Locom2 Nanostation - 2.4ghz Indoor/outdoor Power & Electrical Supplies
Installation Steps: Wiring the Mini R4 Correctly
We'll walk through two common scenarios: a standard installation with neutral, and the no-neutral bypass. Always begin by switching off the circuit at the DB and using a voltage tester (or multimeter) to confirm that no power is present at the switch terminals.
Scenario 1: Wiring with Neutral Wire Available
- Remove the existing wall plate and switch. Identify the live (usually red or brown) and neutral (black or blue) wires - in older SA homes, colours may vary, so test with a multimeter.
- Connect the incoming live to the Mini R4's L terminal.
- Connect the incoming neutral to the N terminal.
- Connect the wire that goes to the light fitting (load) to the L1 terminal.
- If you have a physical switch or push button, connect its two wires to S1 and S2 (polarity doesn't matter for the dry contact).
- Tuck the module into the switch box, ensuring no exposed wires touch the metal box or each other.
- Mount the wall switch (either the existing one or a new screwless type) without pinching the module.
- Restore power, and the Mini R4 should power up. You can now pair it via the eWeLink app or the Home Assistant integration if you flash it.
Scenario 2: No-Neutral Installation
In older houses, the switch box might only have a live and a switched live - no neutral. The Mini R4 has a 'no-neutral' mode, but this requires a minimum load of about 5W to allow a small leakage current to flow. Here's how to wire it:
- Connect the incoming live to L.
- Connect the wire going to the load (switched live) to L1.
- Leave N unconnected.
- The physical switch (if used) connects to S1 and S2 as before.
This setup does not provide power to the module when the load is switched off - instead, it trickles a small current through the load to power the module. This is why you may see LED bulbs glow faintly or flicker. To mitigate, you can install a bypass capacitor (sold separately) across the load. For reliable operation with modern LED bulbs, we strongly recommend using the neutral wire if available.
Testing and Commissioning
After wiring, turn the power back on. The Mini R4 should show a red LED. Use the app to pair it - press the button on the side or use the pairing mode in the app. Test both the app control and the physical switch (if connected). Verify that the load turns on and off without buzzing or flickering. If you notice any unusual behavior, switch off the circuit immediately and re-check the wiring.
A common mistake is connecting the load to the N terminal instead of L1 - that shorts the relay. Always use a multimeter to trace wires before connecting.
Troubleshooting Common Installation Issues
Even with careful wiring, issues can arise. Here are typical problems and fixes:
| Problem | Likely Cause | Solution |
|---|---|---|
| Module does not power up | No neutral connected, or L/N reversed | Check wiring; ensure neutral is present |
| LED bulb flickers when off | No-neutral setup with low load | Install a bypass capacitor or add a small incandescent in parallel |
| App cannot find device | WiFi not on 2.4GHz, or device still in pairing mode | Restart router, enter pairing mode again |
| Relay clicks but light stays on | Wiring to L1 vs load is incorrect | Double-check terminal connections |
If you need to reset the Mini R4 to factory defaults, press and hold the button for 10 seconds until the LED flashes quickly. This can resolve many connection issues.
Practical Examples and Local Considerations
Let's apply this to a typical South African scenario: retrofitting a hallway light in a house built in the 1980s. The switch box is flush-mounted, has no neutral, and the wiring is old rubber-insulated. The load is two 5W LED bulbs - total 10W, which is above the 5W minimum but may still cause flicker.
In this case, you have two options: run a new neutral wire from the ceiling rose (if you have access) or use the no-neutral method with a bypass capacitor. The latter is simpler but requires the capacitor to be installed across the light fitting. We recommend buying a suitable bypass - Communica's home automation collection includes a range of wiring accessories, and their staff can advise on the right capacitor rating.
For a professional electrician installing multiple Mini R4 units, efficiency matters. Using the neutral method is always preferred. In ceiling roses, there is usually both a live and neutral available. You can mount the Mini R4 inside the ceiling void using a small DIN rail box or a junction box. Ensure you use gland connectors or strain relief to secure the cables.
Advanced: Integrating with Home Assistant (For Tinkerers)
While the eWeLink app works fine, many SA makers flash the Mini R4 with Tasmota or ESPHome to integrate with Home Assistant locally. This bypasses the cloud, giving you faster response and offline control. The ESP32-C3 chip is well supported. You'll need to solder a serial adapter to the UART pads - careful work on a compact board. Once flashed, you can configure the relay and switch inputs using simple YAML. This is an advanced step; if you're not confident with soldering, stick with the factory firmware.
For those interested, you can find the Mini R4 and other Sonoff modules on Communica's website. Their IoT collection is a good starting point.
Final Checks and Compliance Recap
Before you finish, run through this checklist:
- Is the circuit breaker rated correctly for the load?
- Are all terminals tight and no stray wire strands exposed?
- Is the Mini R4 securely enclosed and not touching metal?
- Did you test the physical switch and app control?
- Do you have the necessary COC (Certificate of Compliance) if you're renting the property? If you did the work yourself and are not a registered electrician, you may need to have it inspected.
For peace of mind, consider using a professional electrician for the first installation, then you can replicate it confidently. Communica's branches can also be a resource - their staff often deal with DIYers and can point you to suitable accessories like wire ferrules, heat shrink, and labels. Visit the branch trading hours page to plan a visit.
Sources
- Sonoff Mini R4 Product Page - official specs and manual.
- South African Bureau of Standards (SABS) - overview of local standards.
- Occupational Health and Safety Act (1993) - legal framework for electrical work.
- Elektro & Elektronika - practical electrical engineering articles for SA.
- Tasmota Documentation for Sonoff Mini R4 - for advanced users.
Communica supplies semiconductors and electronic components to industries such as automotive, electrical, automation, mining, and education.
Disclaimer: This content is for educational purposes only. Product availability, pricing, and specifications are subject to change. Always verify current details on the retailer's website before making a purchase. We may earn affiliate commissions from qualifying purchases.
Frequently Asked Questions
Get answers to common questions about Home Automation And Iot
Why Choose Communica?
*Free Shipping
Free shipping for orders over ZAR 1,000.00.
7-Day Returns
Get a full refund if you had the product for less than 7 days.
Quick Delivery
Nationwide delivery within 2 - 4 working days.
























