How to flash Sonoff Mini in MacOS
2019, Sep 30
How to use REST API to flash Sonoff Mini with Tasmota.
Requirements
- chceck if eWelink firmware in Sonoff Mini is updated to at least version 3.1. If not, connect Sonoff Mini to Wifi using eWelink app and then update firmware using same app
- physicaly open the device cover and connect DIY jumper
- create Wifi with SSID
sonoffDiy
and password20170618sn
(both are case sensitive!) - connect Sonoff Mini to this network
- run HTTP server on sonoffDiy network (ideally nginx) - HTTP server must support the Range request header
Find the Sonoff Mini on network
Find in administration of your WiFi router your Sonoff Mini IP Address deviceIP
. Using utility dns-sd
find Zeroconf detals, specifically deviceID
- look for Instance Name
.
It will look like eWeLink_100000140e
. 100000140e is your deviceID
.
Download Tasmota
On HTTP server download Tasmota to root folder of HTTP server:
And count SHA256 <SHA256>
of firmware binary file tasmota-lite.bin
:
It will look like c01b39c7a35ccc3b081a...
.
Update firmware using OTA
- check if your Sonoff Mini is connected:
if response looks like this, everything is ok:
- Check if
otaUnlock
is true:
Response:
If otaUnlock
is false just use:
- Update firmware using OTA:
And wait abou 30 seconds.
Once the firmware is successfully uploaded and Sonoff Mini restarts, look for sonoff-xxxx WiFi. You should know the rest.