Welcome to our Knowledge Base
Sonoff Mini OTA Tasmota Conversion (Legacy)
Preinstall Setup
- Verify and/or update eWelink firmware version
- If quick pairing doesn’t work, use alternative pairing method
- Download the Sonoff DIY
tool_01DIY85from Github - Install the DIY Jumper
- Modify your PC configuration to provide a Mobile hotspot:
SSID:sonoffDiy(case sensitive!)
Password:20170618sn
Flash Initial Firmware
- Start the
tool_01DIY85utility and select firmware flash - Select a Tasmota binary (e.g.,
tasmota-wifiman.bin) or your own self-compiled binary. It must fit in the available free program space. You can use the 2.3.0 Core for this initial flash since it has the smallest program memory footprint. Do NOT use the tasmota-minimal pre-compiled binary as it does not allow you to change any settings. - Quit DIY mode tool
- Stop mobile hotspot
- Power off the device and remove DIY jumper as it is no longer needed and might interfere with future Tasmota features that use GPIO16
Post Installation Setup
- Set up Wi-Fi to connect your device to your network
- Perform a
Reset 5to wipe any flash remnants BEFORE attempting a Tasmota OTA flash for the first time - If you flashed
tasmota-wifiman.bin, it is recommended that you upgrade to the firmware and Core variant that is needed for your device and use case (e.g.,tasmota.bin). You must perform this update using the localFile uploadOTA. Do not use a web OTA for this step. Download the firmware file from the repository to your computer.Some users have reported that upgrading via web OTA fromtasmota-wifiman.binto another binary has resulted in an unresponsive device which has required a wired flash to recover.
Configuration Details
Once the desired firmware is on the device, continue the regular Tasmota setup process. Use the the appropriate Template from the repository to assign the device components to the GPIO pins. For example, the Sonoff Mini template assigns these GPIO:
GPIO | Tasmota Component | Device Function |
|---|---|---|
| 0 | Button1 (17) | Button |
| 4 | Switch1 (9) | S1/S2 |
| 12 | Relay1 (21) | L Out |
| 13 | LED1 (56) | Link/Power Indicator |
Sonoff Mini Relay

| GPIO # | Component |
|---|---|
| GPIO00 | Button1 |
| GPIO01 | None |
| GPIO02 | None |
| GPIO03 | None |
| GPIO04 | Switch1 |
| GPIO05 | None |
| GPIO09 | None |
| GPIO10 | None |
| GPIO12 | Relay1 |
| GPIO13 | Led1i |
| GPIO14 | None |
| GPIO15 | None |
| GPIO16 | User |
| FLAG | None |
{"NAME":"Sonoff Mini","GPIO":[17,0,0,0,9,0,0,0,21,56,0,0,255],"FLAG":0,"BASE":1}
Several free GPIO are available. The OTA jumper pin is the most accessible and very easy to use on a pin header.

| GPIO | Description |
|---|---|
| 0 | Button |
| 1 | TX |
| 2 | Available |
| 3 | RX |
| 4 | S2 (external switch input) |
| 12 | Relay and red LED |
| 13 | Blue LED |
| 16 | OTA jumper pin |
| GND | S1 (external switch input) |
References
- https://tasmota.github.io/docs/#/installation/
- https://tasmota.github.io/docs/#/Home
- https://github.com/arendst/Tasmota/wiki/Sonoff-DIY
- https://github.com/arendst/Tasmota/wiki/Sonoff-Mini
- https://github.com/itead/Sonoff_Devices_DIY_Tools
- https://sonoff.tech/product/wifi-diy-smart-switches/sonoff-mini
- https://templates.blakadder.com/sonoff_mini.html
- Michel Deslierres