Sonoff NEW DIY Mode easier Tasmota flashing | home automation

Sonoff Basic “R3” is still the Cheapest Wifi Switch for home automation. With this newest version they included a new stock firmware option that allows you to boot in “DIY Mode”. The best part about that, is it allows you to load 3rd party firmware like Tasmota, ESPhome, ESPeasy, etc without soldering and without a USB/Serial adapter.

Here are the Steps:
1. Setup and Update to latest version of eWelink firmware
2. Apply “Magic DIY” jumper
3. Create Wifi SSID: sonoffDiy
4. PW:…


  1. New DIY mode is easier:
    hold button for 5 sec
    connect to new ssid
    set your home network SSID
    then use tool to flash tasmota lite

  2. Hi DrZzs, just stumbled upon this channel while searching for schoolwork. Trying to confirm how the LAN mode works when the WLAN doesn't have an internet connection. When running WireShark I noticed a lot of mDNS packets. My aim is to assess security of this function, carrying out things like replay attacks etc… Will then compare this system to tasmota's solution. Will be publishing a paper of my findings which may interest you once done. Can you confirm the use of UDP mDNS packets for turning on and off the Sonoff switch with the stock firmware? Thanks for the great content!

  3. Hi there, another newbie here. Is there any chance to upgrade Sonoff to work with Homekit OVER-the.AIR?. Thanks!.

  4. Extreme newbie here, have managed to get Alexa to open my garage doors but want Siri to do it dammit. Will be ordering and trying this even though I don’t really know what all it does. Thanks for the videos

  5. For firmware 3.5.0 it is different now. Watch the video below and check the links. Setting DIY mode on is much easier. You don't need jumper and sonoffDiy ssid. It is configured via access point. I managed to set DIY mode but I couldn't figure out integrasting with HomeAssistant yet.

    @DrZzs can you try the new way and make a new video please?

  6. Dozens of times I thought of posting a question or vent some frustration, only started at this stuff a few days ago.
    Anyhow, after a drop of sweat and a lot of tears I finally got one done. I have three more to go and they should be
    a lot easier Thanks for a fantastic tutorial… I'll try to repay by clicking like as much as possible. 😉

  7. Great Video, easy to follow. This being my 1st time owning sonoff and then flashing it, is so cool.
    I got up to the very last part, clicking OK to flash, the program always seem to hang. Any idea what that can be?
    There is also a continuous double flash

  8. What would be the next steps to conect it apple HomeKit? Is it possible from the point you get in the video? Thanks

  9. Heya, new to tasmota, had sonoffs for a couple of years, never botherd to flash them with soldering and such, but now i got an R3RF DIY, and flashed it over wifi, got HA up and running, and it works. My question is: it possible to use the RF part sitll? Toggle on/off with a RF switch? Thanks for all great and helpful videos 🙂 ! Greetings fron Norway

  10. it seems this does not work on 3.3.0 (RFR3). I also tried the source from the github with no joy. The tool connects but cannot write (tried on both mac and PC). Had to go down the old path 🙁 .

  11. This DIY mode was a pain in the arse, it seemed like it bricked my R3 but then I flashed it the old way and saved it!

  12. Hi DrZzs, but after new flash firmware, it's working with Alexa and Google Home? Thanks!

  13. Is it possible to flash the sonoff r3 from an osx environment? could you make a video-walkthrough about this?

  14. Hi DrZzs  Denmark here.   I have succesfully flash 2 Sonoff R3, and i have the IP adres.  BUT i can not integrate them in Smartthings…   Not even when I type the IP adress..    do you have any suggestions  best regards Jim Denmark  :O)

  15. I managed to install the sonoff-basic.bin on my r3 diy OTA, but after the flash, the wifi sonoff-xxxx appears and i cannot connect to it. "unable to join the network sonoff-xxxx". After some time, it just restarts. Did i do something wrong and i bricked it? Anyone, any help?

    I couldn't install sonoff.bin 6.6.0 because it says on DiY tool that the size is bigger than 508k, in case you ask me why i installed sonoff-basic.bin.

    LATER EDIT: I managed to install the Tasmota on Sonoff Basic R3. FINALLY! The tutorial from @DrZzs is great, but I think, for a noob like me should have more details like.

    1. The firmware you have to add on Sonoff Basic R3 is sonoff-basic.bin! I repeat: sonoff-basic.bin. That's why it was restarting.
    2. If you want to upload the file via FTDI USB chip, please NOTE that you have to put the pins in the right order and NOT having the device connected to the 220V system. Use just the 4 pins to communicate with the Sonoff. For flashing I used NodeMCU PyFlasher. If you use it, select the right port, set the RIGHT firmware, 115200 Baud Rate, Flash Mode – DOUT, Erase flash – yes.
    3. Set all the 3 pins: GND, RX, TX and with the forth connect it in the same time with pressing the hardware button from Sonoff. Then you can press "Flash NodeMCU" button from the app.
    I hope it will help more people getting used with this devices. I recognise that after flashing the first device, the second one took me 20 seconds.

    Also, if things don't get right from the first time, take a break, relax, and then get back to work. You'll be able to see things from other perspective and maybe, get things done.
    Thank you for your help DrZzs!

  16. Hi DrZzs, I also had trouble connecting and after several attempts, restarts, cups of tea, sleep found this site ( about creating a hotspot on a Windows10 PC. This is also the same PC I am running the DIY Mode utility on and managed to connect immediately. Not sure if it was a fluke or not. I tried via iPhone and Android hotspots initially and both failed. I would be very interested to see if anyone else who is struggling to connect can use this and get connectivity to the Sonoff DIYBASICR3. Thanks for making the process a lot more easily understood. I did struggle with the original video and music.

  17. Hi I downloaded the DIY Tools. But it won't open up on my pc. Having a fatal error" Fail to Load Script…" Any advice ? btw i am on v3.3.0

  18. Hi there, thank heavens you're ahead of me in writing about the DIY R3. The detailed info in your video along with a lot of help from MrSharkIT, one of my very helpful subscribers ( helped me to get one of my R3s up and running with Tasmota though due to poor documentation and less than ideal setup of the R3 DIY mode, I ended up having to install Tasmota the hard way (using an FTDI). A second R3 didn't survive my clumsiness as the buttons are quite delicate. I'm working on a replacement button, not something you find at local Spanish supermarkets 🙂 Itead definitely need to improve their own demo video and docs on the DIY mode or better still, simply add MQTT as an alternative to cloud.



  19. Hi DrZzs. I am trying to flash ITead's new ESP8285 chip, the PSF-B01, using this DIY tool. The chip has been used by on a cheap (but high quality) 12V relay module. I thought you might know which pin to short to ground on the PSF-B01 to get it into DIY mode. I have upgraded to firmware version 3.30. Any help would be appreciated.

  20. Flashed my sonoff mini this way, it never came back online. Totally bricked.

  21. OMG… I have finally managed to Flash a Sonoff device… this time, with DIY mode… mostly because of YOU!
    I have tried so many different things and always tripped at the last hurdle. Possibly 30 hours with no success!
    Today it wouldn't flash the BIN file because it would only allow 508KB even though the BIN file is 504KB, so I flashed the Sonoff_Basic.bin and then hey presto!
    Thank You, Thank You, Thank You!

  22. Why not create a hotspot from the desktop/laptop itself? The Sonoff can connect to the computer and the diytool and sonoff should be on the same network.

  23. Hi Doc, First of all, thanks for your videos, they are very instructive.
    At home I have some Apple homekit compatible products and would like to continue this.
    With this new Sonoff R3 will be possible to update the firmware to connect with Apple Homekit?

  24. i tried over the air flashing of a sonoff POW r2 a few months ago, bricked it

  25. Wait, so I can only use this to flash, after I have installed their app and connected to China? Yeah, I will stick to FTDI and wires and staying on the LAN

  26. 104 devices connected – WOW. I don't even have that many power outlets in my house.

  27. The DIY mode is completely useless in my opinion. Way too complicated… Until I have created an additional WiFi, I'm already done with flashing it the normal way. There are so many pitholes to a successful OTA flash that most users will fail.

  28. Hey Doc, I just got my hands on a Sonoff Mini and just like you I thought it was a 2 relay device but instead it has only 1 relay.
    Just a heads up 😉

  29. How can I flash other Sonoffs. My Sonoff have the version 3. Uhhh sonota.exe wont work

  30. Congratulations on an excellent guide. I wanted to ask if it was possible to use a device loaded with Tasmota in a Blynk environment. Thank you very much for the attention.

  31. Have you checked the new product SONOFF MINI DIY it can works both existing switch and wifi switch … can you check it and make a video please about how to install and set up

  32. How is this easier? It looks much more complicated to me 😀 You have to download their app, which for some reason needs access to your photos, camera, microphone, web browser history, running apps and LOCATION… (for what?) Than CREATE A WiFI NETWORK, download their tool and than perhaps you'll be able to flash your firmware? No, thanks… I'll much rather just connect 4 wires to FTDI adapter and click one button on screen. That is much easier, in my opinion 😀

Leave a Reply

Your email address will not be published. Required fields are marked *