HomeHome AutomationHow to flash Tasmota on Sonoff DualR3

How to flash Tasmota on Sonoff DualR3

Making Sonoff DualR3 mine!

This article is greatly delayed, as I accidentally killed my Sonoff DualR3 during my review. If you want to know what happened and laugh at my mistakes, feel free to check the article out. ITEAD was kind enough to send me another one, knowing that I will disregard their eWeLink app and jump straight into flashing. Unfortunately, the method isn’t as simple as with other ESP8266 based devices as Sonoff DualR3 is ESP32 based and all-new ITEAD devices will be ESP32 based as well.

Tasmota on Sonoff DualR3

I’m sad to report that Sonoff DualR3 doesn’t even come with Sonoff DIY mode, which would make thigs easier. The DIY mode is good enough for most of my uses, but if you want to take Sonoff DualR3 a step further, you have to flash the device in a more traditional way. I will have to reach out for my good old soldering iron (I recently upgraded from TS80 (review) to TS80P (review pending) and FTD1232.

As brilliant Tasmotizer for ESP8622 devices is out of the picture, I had to look elsewhere to get the tools for the job. Thankfully, some work already been completed in this GitHub discussion, so I will base my tutorial on their findings.

List of downloads:

To flash Tasmota on Sonoff DualR3, you will need to connect the usual pins to the device. Thankfully, dev pads are properly exposed, and the button is linked to GPIO00. Follow the table below to connect your FTD1232 (or similar) to Sonoff DualR3:

Sonoff DualR3FTD programmer
3V3Vcc/3.3v
GNDGND
RXTX
TXRX

Do not flash the ESP32 with Sonoff DualR3 connected to mains. FTD1232 is enough to power the pins and flash Tasmota on Sonoff DualR3. To enter flash mode, hold down the button on Sonoff DualR3 while power cycling the device.

ESP flasher & custom Tasmota firmware

Software is self-explanatory, open the software, select the tasmota32.bin from your drive, select the port to which the device is connected and hit flash. You should be done in a couple of minutes. If all went well, you should see “tasmota-XXXXX” SSID after reboot. Connect to that SSID and navigate to 192.168.4.1

Enter credentials (and hostname) and reboot your device. You can use the Fing app to find the device on the networks again or use the hostname. Navigate to Configure->Configure Other and use this template to configure Tasmota on Sonoff DualR3. After reboot, you should see a familiar menu with 2 channels to toggle and energy use information.

{"NAME":"Sonoff Dual R3","GPIO":[32,0,0,0,0,0,0,0,0,576,225,0,0,0,0,0,0,0,0,0,0,7296,7328,224,0,0,0,0,160,161,0,0,0,0,0,0],"FLAG":0,"BASE":1}

Bear in mind, that this firmware is a custom build. I have compiled this from source, and until properly integrated with the tasmota32 dev branch. Upgrading the firmware with binaries from the official channel may break the functionality of Tasmota on Sonoff DualR3.

Going further

Despite being in beta, Tasmota for ESP32 works pretty well, the interface is responsive and updates switch state changes reasonably quickly (about 1 sec). Power metering accuracy is on par with what I got with the eWeLink edition, the only thing that is not present is the data logging. This is something you will have to do yourself. My recommendation would be to use Grafana and InfluxDB – and as it happen, I have a handy tutorial for you to get you started.

Now, you will be able to take advantage of the REST API and MQTT. If you want to learn how to integrate these with NodeRED – I have tutorials available already. If you need Alexa integration – here is an article for you, and for Google Assistant – take advantage of NORA. Should you wish to recreate fancy features like inching or interlocking – I also covered this for you.

Buy Sonoff Dual R3

Buy it using these links to support NotEnoughTech.

Final Thoughts

Although Sonoff DualR3 comes without DIY support, flashing Tasmota on Sonoff DualR3 isn’t a total pain in the neck, and has to be done just once. I hope that ITEAD will rethink the approach to new devices and add Sonoff DIY by default. My source tells me that all future Sonoff devices will be ESP32 based, so it would be nice to see Tasmota and Tasmotizer evolving more in that direction. If you have any comments, feel free to let me know in this Reddit thread.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

Smart Ideas with

Automate your space in with these ecosystems and integrate it with other automation services

client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image
client-image

Learn NodeRED

NodeRED for beginners: 1. Why do you need a NodeRED server?

0
To server or not to server? That's a very silly question!

Best Automation Projects

NEST your old thermostat under $5

0
Nest-ing up your older thermostat under $5

Nora – Google Assistant in NodeRED

0
Integrate Google Assistant with NodeRED thanks to Nora - NodeRED home automation

Sonoff R3 DIY mode & why it sucks

0
Long awaited Sonoff R3 DIY mode is even worse than I expected.

Things they don’t tell you about IKEA Trådfri

0
There are things you should know about IKEA Tradfri before you make your purchase

IKEA TRADFRI Wireless dimmer in NodeRED

0
Thanks to NodeRED you can use IKEA TRADFRI Wireless Dimmer to interact with everything

Smart Home

Best Arduino boards for home automation

0
Would you like to know what are the best Arduino boards for home automation? I pick 3 best boards from Arduino line up

Tuya SDK for beginners: Intro to Tuya Cloud API

0
Working with Tuya Cloud API. A guide to Cloud automation for beginners, get started with REST!

SwitchBot Sensors – there is more to these than you think!

0
SwitchBot Sensors are the latest devices from this ecosystem. Both: contact and motion sensor bring something new to the table

M5Stack Core Ink: the inkling for makers

0
I shall call it The Inkling - M5Stack Core Ink is a great ESP32 based development board for anyone interested in e-ink displays.

M5Stack UnitV2 is the easiest way learn to AI vision and Edge Computing

0
AI vision and Edge computing in a thumb sized device - M5Stack UnitV2 - it's easier than you think!