How to flash Tasmota on a Sonoff Mini with firmware 3.6.0 and NOT using the jumper

Поділитися
Вставка
  • Опубліковано 14 жов 2024
  • Took me a while to figure this out, so hoping this will help others. I didn't want to have to open up each light switch and change the jumper on each, so I was destined to figure out how to do it without. Below is what worked for me!
    There are a few methods to get this done, but this on the one that worked consistently and each time for me.
    Tools needed,
    Sonoff DIY Tools
    github.com/ite...
    I used my router to create a new guest network with the following details,
    Setup
    wifi name (case sensitive) : sonoffDiy
    Password : 20170618sn
    --------------------------------------------------------------------------------------------------------------
    Rest Client (many options, I used this)
    chrome.google....
    The only things you need to do in the REST client are as follows,
    Use POST method
    URL is the following {IP ADDRESS of mini}:8081/zeroconf/info
    Body: {"data": {}}
    when you run this, you should get something like the following,
    {
    "seq": 11,
    "error": 0,
    "data": {
    "switch": "off",
    "startup": "off",
    "pulse": "off",
    "pulseWidth": 500,
    "ssid": "sonoffDiy",
    "otaUnlock": false, -needs to be "true" to get the Sonoff flashing tool to work
    "fwVersion": "3.6.0",
    "deviceid": "1000b45d42",
    "bssid": "77:34:23:f7:1f:6",
    "signalStrength": -46
    }
    }
    To change this to true, enter the following,
    Using POST in rester again
    {IP ADDRESS of mini}:8081/zeroconf/ota_unlock
    After this, redo the above step with /zeroconf/info and make sure the otaUnlock is now set to true. If so, you should then have both your PC and SonoffMini on the sonoffDIY network. Run the Sonoff DIY tool and it should pop up there.
    hope this helps!!!

КОМЕНТАРІ • 75

  • @davidedwards9264
    @davidedwards9264 4 роки тому +1

    Worked for 2 Minis so far. Drove myself to distraction trying to solder onto those tiny pads. Gave up and came to youtube. Cheers

  • @GurmitFavourites
    @GurmitFavourites 3 роки тому +3

    Hi Chad. Very useful video - Thank you.I have a couple of question to clarify the instructions. When you put the device in compatible mode for the second time, do you then connect your mobile to device's ITEAD..... network before connecting to Chrome browser and connect to 10.10.7.1 network OR is the phone connected to the local WiFi.
    If it is then via ITEAD.... then how would it have the ip address in the local network range i.e. 192.168.x.x or does it remember the ip Address from when it is connected the first time around?

  • @definitions
    @definitions 3 роки тому +1

    this whole video is really useful..! thanks....i used it!. though the whole point of the DIY 2.0 from sonoff was to discourage users from using tasmota in first place..ha

  • @EliasPinto
    @EliasPinto 3 роки тому +2

    This was an awesome walkthrough

  • @rsaeful
    @rsaeful 9 місяців тому +1

    Hi chad, i am using sonoff mini r2 with firmware 3.7, i follow your step, i can get info from device with raster, but when i send unlock its wont send.

    • @CristiUrsu
      @CristiUrsu 9 місяців тому

      Exactly the same here... 3.7.6 ... I think they did some changes for the ota_unlock and we don't know the format.
      All I can get is an error 422 when I put some bullsh** in json
      stupid of me to update 3.3.0 to 3.7.6 in ewelink... the older version worked like a charm

  • @ewademail
    @ewademail 3 роки тому +1

    dude... you rock. my brother says having to set up a device this way is madness. i'm like... but the power supply is already in a box!

  • @dirkrijckaert3719
    @dirkrijckaert3719 3 роки тому +1

    Thank you for the clear video. With this I flashed several Sonoff Mini. In the meantime I bought a Sonoff D1 Dimmer after I saw that Tasmota already has a Module (# 74) for this device. Can I use the same procedure to flash the dimmer?

    • @codezero11
      @codezero11  3 роки тому

      Glad to hear! I actually have never tried the dimmers, but I would think it's pretty close to the same.

  • @renatobastos3031
    @renatobastos3031 3 роки тому

    Great video! Can the apple homekit be flashed this way? Without jumper?

  • @tc2747
    @tc2747 3 роки тому +1

    thank you so much! you save my time :)

  • @nawafbana8100
    @nawafbana8100 4 роки тому +1

    Thank you for your video & explination, I will try it today and get back to you 😊

    • @codezero11
      @codezero11  4 роки тому

      Please do, I'm curious if it will help others! It was driving me crazy trying to flash some of the minis!

    • @nawafbana8100
      @nawafbana8100 4 роки тому

      @@codezero11 Two days trying to connect to mini without luck, even cannot log from the mobile to 10.0.7.1 while I can log from the laptop, I began to doubt the problem was on the sonoff device itself, the AP ITeadxxxx disappeared every few seconds, I will buy new one and will try again, I hope it will work 🙄

    • @codezero11
      @codezero11  4 роки тому

      @@nawafbana8100 can you use the ewelink app like I first did in the video? I noticed that sometimes the mini would become unusable till I did the resync at the start. The itead ap will only show for something like 30 seconds. So you have to work relatively quick.

    • @nawafbana8100
      @nawafbana8100 4 роки тому

      @@codezero11 I can pair using quick pairing wihout problems, but when try to pair using compatible mode it stuck on retreving info

    • @codezero11
      @codezero11  4 роки тому

      @@nawafbana8100 two things to try. If you have another device you can try pairing with do that. Also, I have noticed and struggled to pair with my pixel 4. Turning off mobile data while staying on wifi has worked too.

  • @sidneimarques
    @sidneimarques 3 роки тому +1

    Hello Guys,Nothing happens when I hit the "OK" button to flash the firmware, any thougts ?

  • @raphaelkropp9624
    @raphaelkropp9624 3 роки тому

    Thank you for this video !
    I have a question about the pairing on the specific SSID with the mentioned password. Is that part mandatory ? My devices are already installed in the wall and everything covered up, can't I just flash it the same way you presented but from its current IP and wifi network ?

    • @codezero11
      @codezero11  3 роки тому +1

      When you put it in compatible mode, it's looking for the so offDiy network. That's how you gain access to the DIY screen to set up the device. Don't believe you can do the same but without it. Give it a shot. Let me know.

    • @codezero11
      @codezero11  3 роки тому

      I was in the same situation as you where I didn't want to take all the devices out of the wall or the electrical boxes. So you should still be able to follow my method and keep them inside the electrical boxes. you do however have to gain access to the little button to hold it down of course.

  • @kloakovalimonada
    @kloakovalimonada 3 роки тому +1

    Thanks for the video but this process is so much more complex than the jumper, holy shit. Spent half a day on this to no avail. 10.10.7.1 on the phone doesn't come up.
    Isn't there a step missing where you connect to the ITEAD network? How else would the phone know what the 10.10.7.1 belongs to?
    Tried other methods, nothing. Giving up.

  • @Deckdoleo
    @Deckdoleo 3 роки тому

    hello! i loved your tutorial, but i'm stucked. how did I connect my sonoff on homekit apple.

  • @leandroaugusto7956
    @leandroaugusto7956 9 місяців тому

    Porque quando vou abrir o aplicativo tool mostra failed to execute script py_rth_qt5pluguins ?

  • @beardeddad_NL
    @beardeddad_NL 4 роки тому +2

    trying to do the OTA_Unlock through RESTer but doesn't seem to work... it keeps on loading and eventually results in Failed to fetch.
    Ive set up a Hotspot on my mobile phone and all settings are als in the description.

    • @rotgames9344
      @rotgames9344 3 роки тому +1

      add Header Content-Type with value application/json

    • @Dreaspinoso
      @Dreaspinoso 3 роки тому

      Having the same problem here, have tried multiple minis and multiple computers with no result apart from failed to fetch. Adding Header "Content-Type" and value "application/json" hasn't helped

    • @vitrox7410
      @vitrox7410 3 роки тому

      @@Dreaspinoso Wireless sonoffDiy must be Internet conection

    • @HungNguyen-gp4zk
      @HungNguyen-gp4zk 3 роки тому

      @@Dreaspinoso you need to add following code to body
      {
      "deviceid": "",
      "data": {
      }
      }

    • @Dreaspinoso
      @Dreaspinoso 3 роки тому

      @@HungNguyen-gp4zk Yeah mate i had sent the payload as you suggested. Ran into problems with running sonoff DIY program. I ended up just 3d printing the programing jig for serial flash.

  • @codezero11
    @codezero11  3 роки тому

    Shoot, I was trying to reply to the last comment and I deleted it. Not sure how to get it back! Just wanted to say I didn't mean to delete it. The answer to your question however. I actually can't recall at the moment. I'll have to test again and catch the step. I believe after its in compatible mode it runs a webserver. And I had already connected to it. Getting the 10 address from there. If you are able to get to the sonoff DIY screen you are good. But I suppose you may be stuck there. As for the 192 address, that's coming from the sonoffDiy network. After you set up the mini on the sonoffDiy network, it picks up the IP from the DHCP server on the router.

  • @michaelyounge5743
    @michaelyounge5743 3 роки тому

    hi great video, I am trying to flash these mini I can get to the point where SonoffDiy is configured how ever when i check my router i only see the original Ip address when i set up ewlink. I have tried this Ip address in resTer but no joy does the, do you receive an new Ip address from sonoffDiy ?

    • @codezero11
      @codezero11  3 роки тому

      This could be just a DHCP issue or something on your router maybe? There would be 2 different addresses yes. There is an internal eWelink address that is local to the mini. Then when you connect to a router/wifi (sonoffDiy) the router should hand out a new DHCP address. Hope this helps

  • @bfsautomacao
    @bfsautomacao 3 роки тому

    Very Good! Thanks!

  • @PPKspb
    @PPKspb 2 роки тому

    Not working for me with MINI R2. RESTer always answer "Failed to fetch". :(

  • @nealcarter
    @nealcarter 3 роки тому

    Hey thanks for the video, I've just bought new mini r2 with a different DIY mode (no pin). So I think this will work for me. However I get 200 OK, seq:11, error:422? Instead of the device details

    • @rodrigojosejuarezparada9402
      @rodrigojosejuarezparada9402 3 роки тому

      If you look the Itead information: Error 422: the operation failed and the request parameters are invalid. For example, the device does not support setting specific device information.

  • @leandroaugusto7956
    @leandroaugusto7956 9 місяців тому

    Failed to execute script tool_01DIY85?

  • @Juanpimentel-diy
    @Juanpimentel-diy 3 роки тому

    Hi, well explicit video !
    How about the tasmota bin file to download, site link?
    Thanks

    • @codezero11
      @codezero11  3 роки тому

      github.com/arendst/Tasmota/releases

  • @janwindischmann5239
    @janwindischmann5239 2 роки тому

    Thank you for the Tutorial it worked fine until i installed Tasmota the mini didn´t came Back with the Tasmota URL an now the LED also isn´t on anymore.
    Anyone has an Idea

  • @philgood2477
    @philgood2477 3 роки тому

    Hello, and thanks for your effort. I have followed exactly your procedure, and unfortunately, at the end this damned sonoff tool_01DIY85_v330(log).exe is never never showing me my device. Like this tool is not working.... Any suggestion?

    • @bertrandLAURET27
      @bertrandLAURET27 3 роки тому

      I do not know how you did your network configuration but the sonoffDiy wifi network needs an internet connection

  • @WadjoEngenharia
    @WadjoEngenharia 2 роки тому

    Good!

  • @kf120498
    @kf120498 3 роки тому

    I buy sonoff mini R2 and enter to DIY MODE, then setup SSID & password to my wifi. after that , but I can see the IP from my router. I try to reset and press button 5+5s , I can't access 10.10.7.1 anymore......

    • @codezero11
      @codezero11  3 роки тому

      DIY mode uses the 10.10.7.1 address. If you are able to access that, then enter the SSID of your network you will then get another IP address. Typically something like 192.168.x.x. You will have to login to your router to see what the IP address is for the newly connected device.

    • @kf120498
      @kf120498 3 роки тому +1

      @@codezero11 Finally, I success !! (1) I change a unifi router and get the IP well. (2) still suffer DIY tools can't find the device problem, I ref proc V2.0 document. I try and error and found the two key point. (1) follow proc V2.0 step by step (2) If still no found device to restart the computer or reset step 4.& 5 pulse & wifi setting, the SSID&password keep sonoffDiy and 20170618sn

    • @codezero11
      @codezero11  3 роки тому

      @@kf120498 make sure the computer you are using the DIY tools is on the same exact network as the mini. If you are using a ubiquiti device, make sure there are no firewall rules blocking access between devices. Make sure your PC can ping the mini.

  • @nawafbana8100
    @nawafbana8100 4 роки тому

    Is there a way to restore the original firmware? I will use Home Assistant and it is finaly supporting the original firmware 👍

    • @AntonioRevert
      @AntonioRevert 3 роки тому

      How can I use it on Home Assistant using the original firmware? Do you have a link to a guide?

    • @nawafbana8100
      @nawafbana8100 3 роки тому

      @@AntonioRevert Hi Antonio.. yes you can, I followed the video on the link
      ua-cam.com/video/ePd6sZY3k5M/v-deo.html

  • @pppanimal5306
    @pppanimal5306 3 роки тому +1

    You don't need to do all this. Rester steps are not needed.
    just create new hotspot on phone or guest network
    wifi name (case sensitive) : sonoffDiy
    Password : 20170618sn
    put jumper on sonoff mini (this will unlock ota)
    long press 5s
    long press 5s (may need if reg in ewelink app)
    led continuous flashing
    connect pc to sonoff @
    ssid : itead-xxxxxx
    password : 12345678
    in browser go to 10.10.7.1
    input ssid and pass for new hotspot
    wifi name (case sensitive) : sonoffDiy
    Password : 20170618sn
    run flash tool and sonoff should show up ready for flashing

    • @codezero11
      @codezero11  3 роки тому

      This is the standard way, and works most of the time. I have found a few to be a bit stubborn or something so the method listed works. Hopefully your details will help others. Seems these things can be a pain at times!

    • @pppanimal5306
      @pppanimal5306 3 роки тому +1

      @@codezero11 This would be so much easier if the flasher tool could be configured to look for sonoff on your existing network, no longer need the hotspot since you can set sonoff to connect to your existing network now. And have the flash tool pass credentials to tasmota so it connects to your existing network on first boot.

    • @codezero11
      @codezero11  3 роки тому

      @@pppanimal5306 completely agreed. I bet we will get there soon.

  • @prabhatlamichhane8505
    @prabhatlamichhane8505 Рік тому

    Guy's name is chad and has 69 comments 🤣🤣 theo joe vibe?

  • @DmitryEdison
    @DmitryEdison 3 роки тому

    not works on MINI R2

  • @combo1kl1
    @combo1kl1 4 роки тому

    Super, funktioniert 1a

  • @dididusentrieb
    @dididusentrieb 3 роки тому

    Leider kann man nicht viel sehen

  • @n.r.2258
    @n.r.2258 3 роки тому +1

    confusing ....

    • @codezero11
      @codezero11  3 роки тому

      Good stuff, glad I could help. Send me some of your videos trying to help people out and maybe we can make a good one that works for everyone. I'm just trying to help, sorry if it doesn't work well for you.