Sonoff MINI & R3 Smart Switches Support a DIY REST API

ITEAD Studio’s Sonoff are low-cost wireless switches based on ESP8622/ESP8285 WiSoC, and supporting WiFi and/or 433 MHz connectivity. They usually come with a firmware that allows users to control them with eWelink app for Android or iOS. But many people will install alternative open source firmware such as Sonoff-Tasmota or ESPurna to get more flexibility such as the ability to use MQTT.

But the company’s latest models, including Sonoff MINI and R3 series, implement a “DIY” REST API that allows you to control the device, or flash the firmware over a LAN connection.

Sonoff MINI two-way Smart Switch

Sonoff MINISonoff MINI is designed to be installed behind existing wall-mounted light-switches and wall-mounted power-sockets.

Specifications:

  • Terminal blocks with 6x inputs/outputs:
    • N/L Inputs –  AC 100-240V 50/60Hz 10A Max
    • N/L Outputs – AC 100-240V 50/60Hz 10A Max
    • S1/S2 – Designed to optionally connect a standard on/off switch
  • Connectivity – Wi-Fi 4 – 802.11 b/g/n @ 2.4GHz; external wire-antenna
  • Dimensions – 42.6X42.6X20mm (Material: PC V0)

Sonoff mini still works with eWeLink app, Google Assistant and/or Amazon Alexa voice services, like its predecessor such as Sonoff Basic, but as mentioned above it also supports a DIY mode (REST API) that should allow developers to integrate MINI into third-party open source smart home control system such as Home Assistant, openHAB, ioBroker, etc…

Sonoff MINI Wiring Diagram
Wiring with or without external On/Off switch

Sonoff MINI is sold for $8.90 plus shipping on ITEAD Studio store.

Sonoff R3Basic and RFR3

Sonoff RFR3Specifications:

  • Terminal blocks with 2x inputs for Neutral and Live, and 2x outputs
  • Max Current – 10A
  • Max Power –  2200W
  • Input/Output Voltage – AC 100-240V
  • Connectivity
    • WiFi 4 802.11 b/g/n 2.4GHz
    • Sonoff RFR3 only – 433.92MHz radio
  • Dimensions – 91x43x25 mm (Material: PC V0)

Sonoff BasicR3 is a simpler device since it does not support connection to an external On/Off switch and Sonoff RFR3 is similar but adds support for 433 MHz remote control.

Sonoff DIY Mode REST API

Software-wise, both support the same features as Sonoff MINI with eWelink app and the DIY REST API. You’ll find the tools and documentation for the latter on Github.

Sonoff BasicR3 sells for $4.85 only, while Sonoff RFR3 goes for $7.20,  and you may consider adding $4.50 for a 4-button RF remote control. You’ll also find quick and user guide on the respective pages.

Thanks to Andreas for the tip.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
11 Comments
oldest
newest
eFfeM
eFfeM
5 years ago

The question is, can I disable the eWelink functionality. I don’t want to send my settings to the cloud or have it remotely controllable.
E.g. currently if someone hacks the servers used by eWelink they could obtain info on my settings and maybe even control my device.
I’d rather control it only though the rest api (running over a VPN tunnel or at least using SSL and only allow access from authorised devices. (then again the rest api might allow an easy upgrade without serial to upgrade to Tasmota).

jginspace
jginspace
5 years ago

I think most regulars of this site will be intending to flash it straightaway and wouldn’t touch eWelink with a bargepole.

pete
pete
5 years ago

cud someone point me to the site to flash it so it will work without ewelink
cheers pete

hitech95
5 years ago

Looks like that they are scared about the Shelly!

Larry Matter
5 years ago

I love Shelly! So easy to work with.

jginspace
jginspace
5 years ago

So in theory no soldering required to get your firmware on there.

Anyone have an idea of shipping costs direct from ITEAD? I’m used to ordering Sonoff devices via BG.

Toufik Baghdissar
Toufik Baghdissar
5 years ago

BG have better shipping otions

jginspace
jginspace
5 years ago

Thanks, I just found ITEAD have an ‘estimator’ (in the cart) where you can just select country and enter blah for city and zip and it comes to around $9. Sadly BG are selling for $9.90 vs $7.20 … However the SugarCandyMountain (link in the left column here) hits the sweet spot.

eFfeM
eFfeM
5 years ago

I could not find this SugarCandyMountain link ,but banggood tells it is 7.49 and I’ve been told that with the coupon “elec” on checkout the price will be reduced to $ 6.74 (didn’t try the coupon myself)

jginspace
jginspace
5 years ago

Sorry I meant right column, and it was a reference to Aliexpress. Are you referring to Sonoff RFR3 ($7.20 at ITEAD)?

Khadas VIM4 SBC