22
9-Steps to Flash Sonoff WiFi Smart Switch with Tasmota (MacOS Catalina)
In this short tutorial, we will change Sonoff WiFi Smart Switch firmware with Tasmota, using MacOS Catalina. No worries, it’s very easy. Let’s move on.
Before we start, let’s have short reminders.
Sonoff is an ESP8266 based device providing users with smart home control.
It’s a WiFi switch that connects to a variety of devices.
Initially, Sonoff sends data to a cloud platform via a WiFi router, allowing customers to control all connected appliances remotely using the eWeLink smartphone app, being the proprietary firmware of Sonoff.
If you landed here, you want to change this proprietary firmware of Sonoff, with Tasmota.
Tasmota is an open source firmware for ESP8266 based devices created and maintained by Mr Theo Arends.
For more details, please have a look on the dedicated Tasmota page on Github: https://tasmota.github.io/docs/About/ .
Components | Where To Buy? | Price |
---|---|---|
Sonoff Module | Amazon.fr, Reichelt.de | ~9 EUR |
FT232RL Adapter USB to TTL 3.3V | Amazon.fr | ~8 EUR |
USB 2.0 A to USB Mini B cable | It Depends on the connection of the FT232RL you will have, but it’s to connect the FT232RL to the computer. (FYI: I ordered the model referenced with the Amazon link, and the port received was Mini B instead of USB 2.0 as presented. Nevermind ;-)).Amazon.fr | ~5 EUR |
Cables and, Pin Connectors | To connect Sonoff with the FT232RL: Amazon.de | ~1 EUR |
Now, we are ready to start.
Remove the Sonoff’s plastic box (Caution: be careful with static electricity while touching the electronic inside !)
Braze the 4 connectors (or if you can, hold it on the device).
The figure below show how to connect Sonoff and the FT232 adapter together.
As you can see on the figure and my pictures, the Pins are not on the same place. Never mind, it’s just a different model.
Connection Summary (from Sonoff to FT232RL):
- GND → GND
- TX → RX
- RX → TX
- VCC or 3.3V → VCC or 3.3V
Plug the USB cable to the FT232RL. Don’t connect the cable to the computer yet.
Now we are all set, let’s move on the computer part 😄.
For this tutorial, I’m using a Macbook Air with MacOS Catalina installed.
We need to flash the internal memory with Tasmota. In other words, we are replacing Sonoff firmware with Tasmota.
Download NodeMCU PyFlasher for Catalina, and Copy the App to your computer: https://github.com/marcelstoer/nodemcu-pyflasher/releases
Download Tasmota: http://ota.tasmota.com/tasmota/release/
Now, open NodeMCU PyFlasher, and set the options as in the screenshot.
Be careful here, because we need to switch the Sonoff to “boot mode”.
Here is the process:
- Press the Sonoff button (before plugging the USB!!)
- While pressing the Sonoff button, plug the USB cable to the computer. Hold the Sonoff button for 2sec after plugging the USB cable.
- Now you can launch the Flash ModeMCU on your computer. The operation can take up to 1 min.
Note: I had a few issues during the flashing step. My computer was not able to connect the Sonoff device. I had to restart a couple of times the operation of pressing the button, and connect the USB to access the Boot Mode. So be careful doing this operation. After a couple of tries, the Flashing operation succeeds.
Unplug the Sonoff device from USB adapter, and connect a Male Plug in the Input side, and a Female Plug in the Output side.
Now you can Power Up.
We should have TasmotaXXXX that appears in our WiFi networks. Select the WiFi Tasmota emitted by the Sonoff device.
After selecting, a pop-up window will appear from Tasmota Firmware asking to connect to your Wifi network. Enter login & password.
We can now toggle Off & On the Sonoff WiFi switch :-).
Feel Free to contact me if you have any questions, or if any step was not clear enough, happy to help.
22