Sonoff Mini R2 WiFi smart relay with DIY mode (REST API)
Although most of my own system uses Shelly relays, there are also a few Sonoff relays in the circuit. These are great if I want to control it from my phone with my own automation solutions (e.g. sensors activate switch X). Instead of Shelly 1, a great option is a smart relay that can be installed behind light switches and power sockets!
π₯Where to buy:
ITEAD / Sonoff online shop (12% OFF coupon code: WPBARKACS)
https://randomsmartthings.com/smarthome/minir2
What’s in the box, what do you need to know?
The Sonoff Mini R2 comes in a box with a single manual. That’s it…
What may be noticeable to those who use the first version is that this time it has an internal antenna and there is nothing sticking out that shouldn’t be there. This makes it much easier to install almost anywhere.

Which is new compared to the previous generation:
- Internal Wifi antenna
- Higher 2KV surge test and ANATEL certification
- Visual marking of cable terminals

In terms of connectivity and options, everything you need is available with the Sonoff Mini R2 WiFi plug-in smart relay:
- Edge mode: for two-position switches
- Pulse mode: for pushbutton / bell / rocker switches
- Following mode: for two-position switches
- NO/NC potential-free switching
What else might be important to know:
- Input/ Output: AC 100-240V 50/60Hz 10A/2200W Max
- ESP8285
- Wi-Fi: IEEE 802.11 b/g/n 2.4GHZ;
- DIY mode
Features of the eWeLink application
Here are the things you will find:
- current off/on status
- the power on/off option itself, either on the main screen or on the device’s main screen
- Timing options: timing, countdown, cycle control
- Switching mode (External trigger)
- Push notifications
- Power-on status (how to behave when energised)
- Inching options

Installation
- Turn off the circuit breaker of the apartment/house that is connected to the circuit / or the main switch instead…
- You can put the Sonoff MINIR2 behind the switch or socket where you need it, and then follow the wiring suggestion if you need to use a toggle switch.
- Once everything is in place and you’re sure the wiring is correct, you can get the power back on. If you’re not sure, get an electrician to do it, because you can get electrocuted if you’re not careful!!!
- Launch the eWeLink app on your mobile
- Click on the add button below and select Quick pairing
- Follow the instructions
- KIEG: When you put it under power give it some time, if it doesn’t want to find each other press the manual button for 5-6sec and you will see the blue LED will give 2 short 1 long signals. Then it is in pairing mode and they will find each other in no time.