Flashing TASMOTA on a Sonoff OVER-the-AIR !!!

Sdílet
Vložit
  • čas přidán 25. 08. 2024
  • UPDATE!!!!!
    Looks like the latest Sonoff firmware is allowing OtA flashing again. Here's what's known:
    github.com/mir...
    And here's a video about how to do it the "new" way with an exe on Win10:
    • Sonoff T1 US version f...
    UPDATE:
    With version 1.6 of the stock Sonoff firmware, something has changed and OTA flashing has stopped working. If you have sonoffs with older firmware, they can still be flashed with this method.
    The FTDI usb/serial adapter method for flashing will still work on the newer sonoffs.
    www.DrZzs.com
    drzzs
    twitter: @Dr_Zzs
    Buy Sonoffs:
    iTead direct has the lowest price, but you have to wait a few weeks to get them:
    www.itead.cc/s...
    If you can’t wait, Amazon has them for a couple dollars more: amzn.to/2BkTviF
    Flashing Tasmota onto a Sonoff board with a USB/Serial connector is pretty easy (unless you have an original Dual). But there’s another way to get your Sonoff Tasmotatized; SonOtA. Sonota.py is a python script that uses the default update pathway in the Sonoff firmware to install Tasmota. That’s crazy smart stuff.
    You can read about how to do it on the wiki page for SonOtA on github:
    github.com/are...
    Steps:
    Download and install Python3 (and Mac developer tools)
    Or update Python3: ‘python3 -m pip install --upgrade pip’ (for mac)
    Download SonOtA: github.com/mir...
    Win10 install C++ tools - landinghub.visu...
    The 2015 version and Community 2017 version
    Mac install xcode tools - run: ‘xcode-select --install’
    Navigate to SonOtA directory and get all the requirements
    Run: ‘pip3 install --user -r requirements.txt’
    Disable any firewalls
    Press and hold the onboard button until the green light flashes rapidly.
    Run SonOtA: Mac =‘./sonota.py’ Win10 = ‘python.exe sonota.py’
    Choose the IP address for the computer you’re running Sonota.py on
    Input your Wifi name and password when asked
    Watch for iTead Wifi SSID and select it when it’s available.
    Reconnect to your home wifi when the iTead SSID disappears.
    Select Final Stage Wifi SSID when it appears.
    Connect to ‘sonoff-###” Wifi SSID
    Configure Tasmota with your Wifi name and PW
    Reconnect to your home Wifi SSID
    Find the IP address for your new sonoff from your router, or something like Fing
    Finish configuring Tasmota
    Configure MQTT with Topic, IP address, Name and PW
    Configure switches, if you plan to use GPIO pins for extra switches
    Go tell someone what you just did and laugh when they look at you like you’re insane.
    All done!

Komentáře • 586

  • @DrZzs
    @DrZzs  Před 6 lety +4

    UPDATE:
    With version 1.6 of the stock Sonoff firmware, something has changed and OTA flashing has stopped working. If you have sonoffs with older firmware, they can still be flashed with this method.
    The FTDI usb/serial adapter method for flashing will still work on the newer sonoffs. Hopefully Mirko and the folks that made the sonota.py script can figure out a fix for OTA.
    If they do you'll find it here:
    github.com/mirko/SonOTA

    • @eunc00
      @eunc00 Před 6 lety

      Still far easier and quicker to flash using FTDI :)

    • @DrZzs
      @DrZzs  Před 6 lety

      I do like that method.

    • @peterschultze9124
      @peterschultze9124 Před 6 lety

      can you link the fastest way to flash using FTDI? Is FTDI the same as usbasp? Thanks!

    • @DrZzs
      @DrZzs  Před 6 lety

      Peter Schultze Here you go:
      czcams.com/video/chyVjtYb0EA/video.html
      I don’t think you loose much doing it manually (ftdi) instead of OtA.
      Good Luck!

    • @FabrizioAscari
      @FabrizioAscari Před 6 lety +1

      so is it true the OTA way does't work? how check the fw version of sonoff?

  • @ElliotFriend
    @ElliotFriend Před 6 lety +1

    Love your videos, man! Always well put together with plenty of information and details, but not overly technical. You also do a great job of having realistic projects that anybody could feasibly accomplish. Thanks!!

    • @DrZzs
      @DrZzs  Před 6 lety

      You're welcome! Thanks for the feedback. I'll keep'em coming.

  • @rikkybora7895
    @rikkybora7895 Před 6 lety

    Was feeling too lazy soldering or insalling visual studio ( for OTA flashing ). Checked your video, tried flashing just using the pins through the holes; and boy it worked.
    Earns you another subscriber.

    • @DrZzs
      @DrZzs  Před 6 lety

      Sweet!
      I love hearing success stories!

  • @ramnik.khanna
    @ramnik.khanna Před 6 lety +1

    Thanks DrZzs. for the excellent video and step-by-step instructions. Thumbs up and you now have a new subscriber!!

    • @DrZzs
      @DrZzs  Před 6 lety +1

      Thanks!
      Check out the rest of my videos. There are updates to this video and others. This DIY home automation stuff changes so fast.
      If you need help join the discord chat.

    • @michaelchee5004
      @michaelchee5004 Před 5 lety

      Ramnik Khanna Has

  • @mu2004
    @mu2004 Před 5 lety +5

    Excellent tutorial. May I suggest the video is divided into one part for Mac, and one part of PC, instead of jumping back and forth between the two, which makes it a bit hard to follow. Just a suggestion.

  • @trowhite
    @trowhite Před 6 lety

    Thank you for making a video about SonOTA. This tool made flashing the Sonoffs much easier!

    • @DrZzs
      @DrZzs  Před 6 lety

      You're welcome!
      Glad it was useful to you!

  • @natylaza8220
    @natylaza8220 Před 5 lety +3

    Thanks man! you're Awesome! After watching your video it was definitely easy!

  • @tra605
    @tra605 Před 6 lety

    Thanks for the video! I received five Sonoff Basics today and luckily they all had firmware v1.5.5. Now they are flashed with SonOTA. :)

    • @DrZzs
      @DrZzs  Před 6 lety

      Nice!
      where did you get them?
      Those are getting harder and harder to find.
      I read comments on iTead's website. A lot of DIY'ers are asking them to change it back so they can keep flashing OtA. iTead has been very friendly to the hacker/flasher community (not the raincoat kind). Hopefully they'll fix it in version 1.7

  • @wost9817
    @wost9817 Před 6 lety +7

    Worked perfectly for me (non 1.6 firmware) on linux. The only thing I had to install was python3-setuptools. Everything else was on my linux machine.

    • @DrZzs
      @DrZzs  Před 6 lety

      Awesome!
      Thanks for the feedback!

  • @raphaelchicon
    @raphaelchicon Před 6 lety +1

    Thanks dude!
    I have a Sonoff but I didn't buy the serial adaptor, so I thought I wasn't able to do anything to my Sonoff, but with this "over the air" thing I can! Greetings from Brazil, and For the Horde!

    • @DrZzs
      @DrZzs  Před 6 lety +1

      Ha! I wondered if anyone noticed those symbols. Orc Warrior. I don't get to play as much as I'd like.
      Good luck with the OtA. Let me know if you hit any snags.
      Lok'tar ogar!

    • @mykself
      @mykself Před 6 lety +1

      I have myself 5 sonoff basic ready to TASMOTAize them. You just made the video I needed. Thanks for the great info. Go ahead with the great work!. Blood Elf Mage here. FOR THE HORDE!

    • @raphaelchicon
      @raphaelchicon Před 6 lety +2

      Haha, guess what? I actually bought the serial to USB adaptor, but it never arrived for over a year, so my Sonoff was just sitting in the drawer... but then you made this video, and I was able to burn Tasmota in the Sonoff!
      And then, the next freaking morning, the serial to USB adaptor arrived, after almost one year!
      Great tutorial btw, really helped me.

    • @DrZzs
      @DrZzs  Před 6 lety +1

      raphael chicon anholetti That’s hysterical! Some luck you have.
      Glad I helped!

  • @pierrejanvier3009
    @pierrejanvier3009 Před 6 lety +1

    i have to say i new at this been binge your stuff it really a great help i lrarn so much from you thank you for all the info you put out there

    • @DrZzs
      @DrZzs  Před 6 lety

      pierre janvier You’re Welcome!
      Thanks for watching. Glad it’s been helpful!

    • @pierrejanvier3009
      @pierrejanvier3009 Před 6 lety

      what do you think of BroadLink TC2 110V~150V

    • @DrZzs
      @DrZzs  Před 6 lety

      I haven't used it. I'll check it out though!
      So far the trouble I see with most smart switches that are meant to replace standard switches, is they require a neutral wire connection. It makes sense because you have to power the "brains" of the smart switch, but most dumb switches don't have a neutral. They switch the hot leg that powers the lights.
      If the power circuit passes through the box then you have access to the neutral and all is well. If there's no neutral, you've gotta find a different solution. I'm not sure there's going to be a good solution for that problem.
      Maybe they need to make the "brains" run on a battery and make the battery easy to reach and replace.
      I'm rambling...

  • @kiwijunglist
    @kiwijunglist Před 6 lety +1

    Kiaori! Wicked. I got some sonoff but hadn't got around to ordering any electronics to flash then. Thanks bro.

    • @DrZzs
      @DrZzs  Před 6 lety

      kiwijunglist You’re welcome!

    • @kiwijunglist
      @kiwijunglist Před 6 lety

      Just did the flashing tonight.
      Didn't have as many issues as you flashing. (Win 10 x64, no software development stuff)
      Disabled firewall and antivirus
      Installed python 3.5.4 (x64)
      Downloaded sonota zip file (latest version) and extracted
      Ran windows command prompt as admin
      Typed pip3 install --user -r requirements.txt
      Typed sonota.py
      Followed on screen instructions
      Done.

    • @DrZzs
      @DrZzs  Před 6 lety

      Awesome! Love to hear success stories!

  • @TyroneJohnson
    @TyroneJohnson Před 6 lety +1

    Excellent description! Thanks a bunch. Just BTW, i tried doing this via my virtual machine, as i did not want to install all of the developer tools onto my main machine. This did not work, as the virtual machine does not have direct access to the wireless network...which is needed towards the end. So, did it via another (very old) PC...this was slow as installing the developer tools took ages (slow/old PC), but in the end it worked. Thanks again!

  • @jamespridemore3565
    @jamespridemore3565 Před 6 lety

    Thanks, I was googling how to find the version number. I will try your suggestion. Thanks, You are the man!

    • @DrZzs
      @DrZzs  Před 6 lety

      Here's how you get to the settings to find the firmware version:
      www.dropbox.com/s/1hlls636mrrm1is/Sonoff%20Firmwar%20Ver.MP4?dl=0

  • @seanobrien7331
    @seanobrien7331 Před 6 lety +10

    This earned you a subscriber.

    • @DrZzs
      @DrZzs  Před 6 lety +1

      Thanks

    • @ucdailoi
      @ucdailoi Před 6 lety

      I forgot to mention that I am a Apple Mac user.... I do have a Raspberry Pi that I am trying to master. I’ve jumped in the deep end of it all but persistence should see me through..

    • @manuelvazquez5537
      @manuelvazquez5537 Před 5 lety

      Does this process work for the shelly2?

  • @dartfrogdk
    @dartfrogdk Před 6 lety

    As allways, best youtuber regarding home assistant, like your videos ;o)

    • @DrZzs
      @DrZzs  Před 6 lety

      Wow. Thanks!
      I'm gonna keep makin'em.

  • @witzend
    @witzend Před 6 lety

    Thank you for the walk-through. I couldn't get my Mac to connect to my Sonoffs, and I didn't even try my Windoze 10 box, but FYI your Python instructions for Mac worked perfectly on my Linux box. I just bought some devices direct from Itead, and thankfully they came running firmware 1.55, so I could still do this OTA upgrade. A few of the units I bought were persnickety and I had to attempt to connect multiple times before they would connect, but eventually I got them all flashed to Tasmota. Now to figure out MQTT...

    • @DrZzs
      @DrZzs  Před 6 lety

      Sweet!
      Here's the guide I followed for my MQTT set-up.
      czcams.com/video/AsDHEDbyLfg/video.html
      Good Luck!

  • @AlexSavage
    @AlexSavage Před 6 lety +2

    Instead of using visual studio command prompt, I found that in Command Prompt if you go to C:\Program Files (x86)\Python36-32\Scripts> or wherever you installed you Phyton, you can type in pip3.exe install --user -r C:\(download folder)\SonOTA-master
    equirements.txt it works as long as you have at least Microsoft Visual C++ 14.0. Hope it helps

    • @DrZzs
      @DrZzs  Před 6 lety

      Awesome!
      I know some folks are still having trouble getting it to work. This'll give them something else to try.
      Thanks!

    • @Hammy0102
      @Hammy0102 Před 6 lety

      A god among men i have been trying to get something to work for about an hour this was deadset right on the money:P

  • @didierducroc8453
    @didierducroc8453 Před 6 lety

    Bravo pour votre travail , Merci encore c est un vrai cadeau de NOEL , installation réussie du premier COUP sur un sonoff basic

    • @DrZzs
      @DrZzs  Před 6 lety

      uh oh.
      I'll need a translation. Sorry. I understand "bravo" and "merci", but I don't know the rest.

  • @miguelazevedo9751
    @miguelazevedo9751 Před 4 lety +7

    Sorry but I didn’t get “FinalStage” you can hep me?

    • @tonygmc
      @tonygmc Před 4 lety +1

      I can't see the finalstage either, could be the formware issue?

    • @richardcjay
      @richardcjay Před 4 lety

      Me too

  • @sicklinker
    @sicklinker Před 6 lety +2

    Hey there! Nicely done guide but unfortunately the OTA method doesn't work if the installed Sonoff firmware is 1.6.0 or higher.
    Might want to put this in the description :) cheers!

  • @peterdejong3753
    @peterdejong3753 Před 6 lety

    Great video! Some tip during flashing is to make sure nothing is running on your pc on port 8080. In my case SabNZB was already claiming this port.

    • @DrZzs
      @DrZzs  Před 6 lety

      oooh!
      that's good info. I didn't know that would be a problem.
      Big thanks!

  • @conradmcglinn1306
    @conradmcglinn1306 Před 6 lety +1

    Works fine with Windows 7 - Thanks for the great video

  • @ChapuzasconRober
    @ChapuzasconRober Před 6 lety

    Thank you for your videos. Really useful! Grettins from Spain.

    • @DrZzs
      @DrZzs  Před 6 lety

      cool! Never been to Spain. Maybe someday.
      Here's a better updated video about flashing Sonoff:
      czcams.com/video/KMiP9Ku71To/video.html

    • @ChapuzasconRober
      @ChapuzasconRober Před 6 lety

      Thank you for the answer. I wanted to try OTA method because I got some Sonoff Basic V 1.0 with the holes in the pins and it was a little bit tricky for soldering. I tried OTA but it didnt work with that version.
      Finally I drilled the pines :)
      Congrats for your channel its very useful and funny to watch :) I like how you make videos!

  • @Surend89
    @Surend89 Před 5 lety +3

    Hello DrZzs,
    Hey,
    I tried flashing a Sonoff basic with Firmware 2.6.1. I am struck at "Final stage"SSID step which doesnt show up on my list. Kindly help what I can do to rectify it. Thanks

    • @MatthewWieting
      @MatthewWieting Před 5 lety

      I ran into the same issue. did you get yours working?

  • @bretthalliday2576
    @bretthalliday2576 Před 6 lety

    Great vids, keep em coming!

  • @prebenborg
    @prebenborg Před 6 lety +4

    Great video very useful

  • @AndersJackson
    @AndersJackson Před 6 lety

    Thanks for making this video. I am going to try this out on my Ubuntu machine.

    • @DrZzs
      @DrZzs  Před 6 lety

      you're welcome!
      Good luck!

  • @yonatutorials
    @yonatutorials Před 6 lety +1

    Tip: In windows, I use bash and install Ubuntu from Microsoft Store, then I can do it very easy (I had more problems than you when trying to use windows tools) great video :D

    • @DrZzs
      @DrZzs  Před 6 lety

      Cool!
      So you’re running Ubuntu as a VM?

    • @yonatutorials
      @yonatutorials Před 6 lety

      No, since about a year, we have the possibility of having the linux console in windows 10, we just have to enable bash and then from the microsoft store we installed a distribution, in my case ubuntu 18.04 :D, this helps a lot if you do not want to complicate your life by virtualizing or installing another distribution
      I used the commands that you used for mac and everything was on wheels, regards :)

  • @antonyvlatkovich3081
    @antonyvlatkovich3081 Před 6 lety

    You the real MVP Dr Zzs

  • @rileyfinney7776
    @rileyfinney7776 Před 3 lety

    love your editing

  • @leopold7562
    @leopold7562 Před 4 lety

    I've got a pair of Sonoff Basics arriving today and I wondered how easy it would be to Tasmotise them without excessive need for soldering irons and what-not. This looks just like the ticket! As long as I can get my Windows PC to do the necessary, this looks like the simplest method available. I may even try it on a Sonoff Mini, I've still got two left out of the 8 I bought, two of which I was able to update successfully and four which are bricks :(

  • @pankaj007008
    @pankaj007008 Před 6 lety

    Thank you for the reply. I will try the traditional method.

  • @hiattech
    @hiattech Před 7 měsíci

    Is this still an accurate guide? Any adjustments or updates to it you'd recommend in the six years since you made it?

  • @ivescoppens8220
    @ivescoppens8220 Před 5 lety +3

    Hey,
    I have a Sonoff basic with FW 2.6.1 could I flash it OTA? I already tried but I don't get the wifi "Final stage".

    • @thomasdavidrichardson3113
      @thomasdavidrichardson3113 Před 5 lety

      I tried using an S26 with this, I got the same result. I found this: github.com/Gruppio/Sonoff-Homekit to configure the device after the connection but I can't combine the two.

  • @jamespridemore3565
    @jamespridemore3565 Před 6 lety +2

    Awesome, thanks!

  • @46pmw
    @46pmw Před 6 lety +1

    Really helpful instructional. Are there any issues of Sonoff memory size for OTA?

    • @DrZzs
      @DrZzs  Před 6 lety

      I think size used to be a problem, but not anymore.
      Theo and the Tasmota devs have shrunk it down enough to fit just fine. Somehow even with all they're adding, it still fits. It's bigger on the inside (Dr Who reference)

  • @AsafMatan
    @AsafMatan Před 5 lety +2

    Hi, Do someone know similar procedure that works of Sonoff B1 (latest version)

  • @russellvickery9479
    @russellvickery9479 Před 4 lety

    Trying to get netifaces running on a windows PC and it can't find io.h searched through heaps of forums etc and lots of others had similar faults. Did you have that problem and is there a solution? Love your style of youtube, it's brilliant.

  • @qonos68
    @qonos68 Před rokem

    It appears that Python 3.10 has dropped TLS v.1.1 support, which is required by sonota to establish a connection before reaching "FinalStage", am I wrong?

  • @kgpcodes
    @kgpcodes Před 4 lety

    Does work for current versions. If you did a firmware update, this won't work.

  • @jamescklim
    @jamescklim Před 6 lety

    Wonderful video ! Thanks a lot, I'll definitely give it a try ! :)

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      Good luck, let me know how it goes.

    • @jamescklim
      @jamescklim Před 6 lety

      Happy New Year !
      Over the feedback on flashing - yes, you're right. I think my Sonoff is running on newer firmware and the flashing got stuck. I guess I need to wait for the update and try to flash again

    • @DrZzs
      @DrZzs  Před 6 lety

      James Lim You could do it the manual way with a USB/Serial ftdi adapter. It’s not hard. I’ve got a video about it.

    • @DrZzs
      @DrZzs  Před 6 lety

      James Lim Here’s a vid about how to do it the old fashion way:
      czcams.com/video/chyVjtYb0EA/video.html

  • @josepablovalverde5672
    @josepablovalverde5672 Před 5 lety

    Great teaching video, thanks for your time. Adios amigo!

  • @sanyak1973
    @sanyak1973 Před 5 lety

    Thanks DrZzs..... Very excellent video. I really really love it. one more thing Can I do this with Sonoff RF Bridge?

    • @DrZzs
      @DrZzs  Před 5 lety

      You probably can flash the RF Bridge OtA, but it will depend on the firmware version yours comes with. In this video description there is a link to a newer video about the OtA flashing process. That will be helpful to you.
      Good Luck!

    • @sanyak1973
      @sanyak1973 Před 5 lety

      Thank you DrZzs

  • @douwevanhessche
    @douwevanhessche Před 6 lety

    thank you for this video !! didn't want to spend money on an adapter ! greetz from belgium

    • @DrZzs
      @DrZzs  Před 6 lety +1

      Belgium! Awesome! Glad to save you some money. What is the currency called in Belgium?

    • @douwevanhessche
      @douwevanhessche Před 6 lety

      just euro haha!

    • @douwevanhessche
      @douwevanhessche Před 6 lety

      Hello i have a problem in the final stage it keeps saying “The finalStage SSID will disappear when the device has been fully flashed and image_arduino.bin has been installed.

    • @douwevanhessche
      @douwevanhessche Před 6 lety

      There is no “sending file: /ota/image_arduino.bin”

    • @douwevanhessche
      @douwevanhessche Před 6 lety

      Do you what I should do tried it on a different computer and also all my firewalls are disabled (using on a mac)

  • @colincrooky
    @colincrooky Před 5 lety

    Thank you Doctor but brain hurts now! Going to watch it later with Pause button.

  • @kannagadu420
    @kannagadu420 Před 3 lety

    I tried to follow the same process but the device never gets the provided AP details through the post request done by the python file. Do you have any idea? I was using RF R2 Power

  • @georgelza
    @georgelza Před 3 lety

    ... just tried to Flash OTA a sonoff basic and sonoff dual, no luck, it just sits and makes me wait for the finalstage. does not go further, is there a way that i can see if the sonoff tries to reach out/connect to the local web server created ? the logs does not show much, would be nice too have a debug version/option.
    ??

  • @costinmarina
    @costinmarina Před 6 lety

    Nice vid. Clean, informative, a little funny ... :) You've got yourself a new subscriber, Sir :) One Question: Why Tasmota over Sonoff firmware? I cannot find a good answer on this one. Everybody talking about HOW to go Tasmota's way, but not WHY... Because server problems of the Sonoff? Better AI skills implementation? Siri compatibility? Working with only LAN? Or what? I mean, I see Sonoff working now with Alexa, Google Home, soon (they said) with Siri... I've got a bunch of Sonoffs, and I'm wondering witch direction to go to.

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      I'm working hard to make good content. Glad you enjoyed it.
      Tasmota for two reasons for me:
      1) MQTT for control in Home Assistant (my home automation hub of choice)
      2) Control of GPIO 14 to add a push button

    • @costinmarina
      @costinmarina Před 6 lety

      I see, thanks! I'll give it a try. Now back to all your content that I just discover :)

  • @nb251
    @nb251 Před 6 lety

    Thank you very much for all the tutorials man really well made and so helpful, much appreciated. I am planning to flash my sonoff using the serial usb method as ewelink servers are very bad and keep on going offline. once flahsed, do I need a hub to connect my sonoffs to or can I just connect it to another server somehwere? I am a bit lost.

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      I think the best solution is to have a hub. There is so much more you can do with a hub that can connect all different kinds of devices and lets them interact through automations and such.
      There are a lot of options and each is a little different. I like Home Assistant, but there are other good options as well.
      There are ways to control your Tastmotized sonoffs even without a hub. There's the emulations available in Tasmota. So you can trick Alexa or Google Home into thinking the sonoff is a Hue Bridge, or a WeMo outlet.
      Or you can use direct html commands and an app that lets you create buttons on your phone to send specific html commands. I think something similar might be available with MQTT.
      If you think you really want to get into Home Automation, then a hub is the way to go. Take the plunge and get Home Assistant!

  • @DanBurgaud
    @DanBurgaud Před 5 lety

    Your vids are gold!

    • @DrZzs
      @DrZzs  Před 5 lety

      Thanks man!
      Hopefully they keep getting better. :)

  • @distancelab2010
    @distancelab2010 Před 6 lety

    Awesome work. Thank you so much. :)

    • @DrZzs
      @DrZzs  Před 6 lety

      Did it work?
      There was a time it wasn't working because of the Sonoff firmware

  • @roksipec1015
    @roksipec1015 Před 6 lety

    So does the OTA now work with the 1.6 version or not ? Since you wrote that it works again ?
    Love your vids

    • @DrZzs
      @DrZzs  Před 6 lety

      thanks.
      I've seen some reports that it is working but I haven't verified it myself.
      This is the best source of info for the OtA flashing:
      github.com/mirko/SonOTA
      If things change and it becomes a usable option that's where I expect you'll find out first.

  • @ehorlyck
    @ehorlyck Před 6 lety +1

    Nice one. Thank you.

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      I believe OtA is working again. Haven’t verified that myself. Guess I probably should.

  • @bst3ck
    @bst3ck Před 6 lety

    Thanks for the video. It was very useful and worked flawlessly. I was wondering about how to change the project name since I plan on flashing all my sonoffs over the next few days to use home assistant. In your other video it showed how to modify the configure, but I did not see where the option is to update the project name. Is there a way to update the project name using the tasmota user interface?

    • @DrZzs
      @DrZzs  Před 6 lety

      Sweet! Glad to hear it worked.
      I believe all you have to do is change the MQTT topic. I just looked again, and I don't see another place in the Tasmota UI that shows the project name. I don't know if the project name serves another purpose apart from setting the MQTT topic. The guys on the github page might know.
      github.com/arendst/Sonoff-Tasmota/issues
      Let me know if you find out.
      Thanks!

  • @dynoman7
    @dynoman7 Před 6 lety

    OK, DrZ...you convinced me to try these things out and I bought a few over the holiday. Thank you for your videos...I've got most everything in the house flipped over to Home Assistant and now I'm working towards an outdoor lighting setup like yours (well not that cool, but getting there).
    Regarding the Tasmota setup in this video: I'm having the same problem as Douwe where I'm in the last stage and the script keeps looping over and over "The FinalStage SSID will disappear when the device has been fully flashed..." Blah blah blah. What do you recommend? start over from step #1?
    Thanks again for the content. You are my one of my heroes.

    • @DrZzs
      @DrZzs  Před 6 lety

      whoa. hero?
      Thanks!
      First thing to do is check the version of your Sonoff firmware. The most common problem right now is that the newest version of the stock Sonoff firmware (v1.6) isn't allowing OTA flashing.
      If you just recently bought yours that may be the problem. If that's the case you'll have to get an FTDI adapter and flash them that way.
      Other than that, I'm not sure what else the problem might be. I guess I'd say start over and try again. Check that any firewalls are off. If you're getting to the Final stage, then most everything else must be fine.
      If it still fails you might be stuck with the FTDI method. Doing the flashing hardware style really isn't too bad. It's not quite as easy as OTA, but not terrible. I've got a video on how to do it.
      Sorry I don't have a better answer for you. I didn't face that particular problem so I'm not sure how exactly to fix it.

    • @dynoman7
      @dynoman7 Před 6 lety

      DrZ, Happy New Year! I got it working...had to switch around my PC networking config twice and then the script started working again. I don't think the FinalStage step liked DHCP for some reason. At this point, I see the Sonoff on my network and it has a new hostname and everything looks ready for tomorrow's tasker: setting up MQTT for the first time in HA. Talk to you tomorrow! YOU ARE THE BEST!

  • @samiraa78
    @samiraa78 Před 6 lety +1

    Thanks for your informative video.
    Couple of questions.
    Will this work with all sonoff switches or only the basic one
    Most important one what did you mean by an external switch and how can i connect the same

    • @seanobrien7331
      @seanobrien7331 Před 6 lety

      I've flashed 3 Sonoff SV's using this method.

    • @DrZzs
      @DrZzs  Před 6 lety

      You're welcome!
      The folks that wrote the sonota.py script say it'll work with the basic and the dual. I have a couple Sonoff SV's (low voltage version), that I plan on testing with the OtA method. I expect it'll work, but we'll have to test it and see.
      By external switch I mean one that is separate from the on-board switch. The on-board switch is connected to GPIO-0. I should have explained that better in the video. With Tasmota the on-board switch has extra functions, so if you were to just solder new wires and move that switch and use it as the main switch on the wall plate your board could get accidentally messed up. (here's the list of on-board button functions: github.com/arendst/Sonoff-Tasmota/wiki/Button-usage)
      So to avoid accidentally triggering one of those pre-programmed functions you connect a switch to GPIO14 and let it function to control the relay, but it doesn't have the other functions that the GPIO-0 button has.
      Hope that makes sense.

  • @DefaultName-ny6lz
    @DefaultName-ny6lz Před 4 lety

    I have the Sonoff Basic R2 and trying to Tazmotize it OTA . stuck at many dots . ....................... Can some one help?

  • @zedisdeadz
    @zedisdeadz Před 6 lety

    Great installation and tutorial thanks.
    Do you think I could connect it with the main power fuse, like the one that opens and stops electric cooker or my electric boiler?
    With the help of an electrician ofc

    • @DrZzs
      @DrZzs  Před 6 lety +1

      The sonoff Basic is rated for 10 amps, so you can't put a load on it that draws more than that. So a boiler or electric cooker might be okay, or it might not. You'll have to look at the label on your cooker/boiler and see what the current draw is. As long as it's less than 10 amps you should be okay.
      You can also just put the sonoff in the cord of the device if you're just looking to control a single device. You don't have to put it in the wall.
      Hope that helps!

  • @everlast30
    @everlast30 Před 4 lety

    Where you able to Flash OTA with Sonoff firmware above 2.6.0 ? i am unable to do it! and all the info that I found about it, they say it is not posible!

  • @eriklaken1025
    @eriklaken1025 Před 6 lety

    Fantastic, Thank you and i wil try and let you know. :)

  • @geekacullen
    @geekacullen Před 6 lety

    Thank you so much for all the videos. You have helped me so much. I'm just starting with Sonoff and had a question. If for some reason my sonoff loses wifi or my router goes down, does this mean I cannot use my lights or will the manual switch still work?

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      The manual switch will still work even if there's no wifi. :)

    • @geekacullen
      @geekacullen Před 6 lety

      Perfect!
      Thank you so much. Your videos are truly enspiring for a newb like me.

    • @DrZzs
      @DrZzs  Před 6 lety

      I'm still a noob too!

  • @jamescullins2709
    @jamescullins2709 Před 2 lety

    To me that sounds a lot harder than using the hardware method. It is pretty neat software.

  • @Shafy7
    @Shafy7 Před 4 lety

    Hello, I have a Sonoff S20 and TH16 but the firmware is 3.4.0. How can i flash them OTA? is it possible?

  • @hakamal-taher8244
    @hakamal-taher8244 Před 2 lety

    Great video, i followed all steps after connecting my device , the process started until it reaches the disconnect from ITEAD wifi then nothing happens. i should wait till the final stage wifi appears which never happen. appreciate if you can advise on this problem. the devise am traying to tasmotize is sonoff TH. please help

  • @Gcc2104
    @Gcc2104 Před 5 lety

    When I pressed the button on sonof, the light started flashing rapdly, but the SSID ITEAD-XXXXX didnt appear. I tried several times and nothing.

    • @DrZzs
      @DrZzs  Před 5 lety

      I don't think the OtA method for flashing is working with the newest version of the sonoff firmware. :(
      but the good news is they are putting out an update that will allow for a "DIY" mode, which will let us use their device without using their servers, or to fairly easily flash new firmware OtA.
      I'll let everyone know as soon as I get my hands on it.

  • @wongjpm
    @wongjpm Před 6 lety

    Great video... I followed the steps and was able to flash my first sonoff switch. BTW, can the tasmota firmware talk to Google home or Alexa ? I tried the Wemo or Hue emulation from the web management page. Neither emulation can be detected from Google home. Was the tasmota firmware (5.9.1) suppose to work with Google home ? BTW , is there anyway to roll back the to the factory firmware if needed ? Thanks

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      I don't think there is a way to roll back the firmware.
      I'm surprised to hear the emulations aren't detected by Google Home. I thought that's what those are supposed to do. I don't use Google Home so I'm not very familiar with fixing associated errors.
      Check here to see if anyone else is having the same issue:
      github.com/arendst/Sonoff-Tasmota/issues
      Hope that helps!

  • @stredwizard
    @stredwizard Před 6 lety

    great videos, followed both your previous ones for flashing the sonoff basic, thanks and really appreciated.
    quick question though! do you know of a way to connect two switches (2 way switching) to one tasmota, i tried with 2 switches wired in parallel across the gpio and ground, they kind of work but if one switch is on the other wont work unless the original switch is turned back off, pretty hard to explain what i mean!

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks! I've been racking my brain to come up with a way to do a 2 way switch. I'm going to figure it out, and as soon as I do you can bet I'll make a video about it.
      I haven't thought about using just one.

    • @stredwizard
      @stredwizard Před 6 lety

      im uk based so we may have different ideas regarding 2 way switching, but i stumbled across this user-images.githubusercontent.com/29714334/27986404-705967f0-6431-11e7-961e-3e2548ed3a23.png sorry for the long link, i have set mine up like this and it works as i hoped except i have the pulsing which is hopefully cured by the resistor/cap combo, thanks

  • @YaldaiChannel
    @YaldaiChannel Před 3 lety

    Do you have a way to read temperature and humidity using python on raspberry pi?

  • @MIKEMATSOUKAS
    @MIKEMATSOUKAS Před 6 lety

    Very useful video...THANKS
    Can the same method be used in the RF Sonoff? Do they use the same firmware?
    Is it possible to revert sonoffs to their original firmware if needed?

    • @DrZzs
      @DrZzs  Před 6 lety

      If your RF has v2.0 of the sonoff firmware then yes, OtA will work. But follow this new video instead: czcams.com/video/Z7SlNtkmYyE/video.html
      I know one guy who knows how to revert it to the stock firmware. It's not something I've done so I don't know the steps exactly. This is him:
      czcams.com/users/eddysalim

    • @MIKEMATSOUKAS
      @MIKEMATSOUKAS Před 6 lety

      DrZzs my RF had 1.6 and I update it to 1.8.1. The sonota.exe starts and exits automatically after running some script after I enter the SSID and PASS. It exits after I connect to the itead wifi...
      So there is no “finalstage”. Is there any solution?

    • @DrZzs
      @DrZzs  Před 6 lety

      no, I'm sorry there isn't. I was hopeful that we could update from v1.6 to v2.0, but that doesn't seem to be possible.
      As far as I can tell right now, there's still no way to flash v1.6 or v1.8 OtA :(
      v1.5 and v2.0 can be flashed OtA, but not the others. Sorry.

    • @MIKEMATSOUKAS
      @MIKEMATSOUKAS Před 6 lety

      DrZzs Thanks a lot, u da man!!! ;-)

  • @Taxedo1221
    @Taxedo1221 Před 3 lety

    it become Brick after i did it over the air :( what to do now ?

  • @6ghost6rider6
    @6ghost6rider6 Před 6 lety

    It works! Thank you ! If you encounter problem at pip3 install the lateste version of python. @DrZzs . Do you have a delay between the command and the action ?

  • @rene9900
    @rene9900 Před 5 lety

    i know the sonoff firmware may be incorrect, but tried this OTA anyways just curious if i could on my mac, but now i tried with 3 different sonoffs , a basic a b1 bulb and a clone basic, when the rapid flashing led it should create a wifi network named ITEAD something? but nothing comes up at all? i have no firewalls and im running macOS Mojave 10.14.2 (18C54)

  • @guillermovargas8564
    @guillermovargas8564 Před 6 lety

    On Windows 10 the installation path for Python is located here: C:\Users\cuban\AppData\Local\Programs\Python\Python36-32\Scripts. I didn't have any problems running this command pip3.exe install --user -r C:\(download folder)\SonOTA-master
    equirements.txt from the scripts folder in DOS prompt. I ran CMD with elevated privileges

    • @DrZzs
      @DrZzs  Před 6 lety

      thank you!
      a lot of people are having trouble running that command.

    • @caseyproperty
      @caseyproperty Před 6 lety

      I could run pip3 from python directory but python.exe is not available when i run python.exe sonota.py. There is only pip.exe pip3.exe and pip3.6.exe under script directory.

    • @caseyproperty
      @caseyproperty Před 6 lety

      Found how to execute python.exe sonota.py by going to python directory instead of scripts. Finally I manage to go through the whole configuration i.e IP address etc.. hurrah.. Thanks Dr ZZs for the excellent video. Abit of a struggle but finally manage to get one Sonoff basic OTA flashed. Now progressing to next stage of MQTT etc.

  • @doggyide
    @doggyide Před 6 lety

    Hi Sorry I dont understant whay values I need to set in MQTT step, and also how I can add my sonoff Basic RF to my app eWelink to control the sonoff device_? Thanks

  • @miostesso1
    @miostesso1 Před 5 lety

    Hi, I have followed step by step your tutorial but you stop the process because it never appears the finalstage wifi network, I have an apple pc I also tried with linux but nothing always problem, I have a basic r2 sonoff, can you help me? Thank you

  • @brit1066
    @brit1066 Před 6 lety

    I have several Sonoff devices and I am impressed by their quality and reliability.
    These switches use the EWeLink APP and it works very well.
    On several occasions there have been firmware upgrades for some switches, the firmware upgrade procedure WORKS FLAWLESSLY.
    If you replace the standard firmware with this one, WILL THE FIRMWARE UPGRADES STILL WORK?

    • @DrZzs
      @DrZzs  Před 6 lety

      No. Once you replace the stock firmware you can't go back to the Sonoff firmware. The Sonoff firmware does work very well. The reasons I have for replacing it with Tasmota are just to integrate with Home Assistant and to use a separate push button. My goal is to get all my devices into one Hub (Home Assistant for me), so I don't need to have 12 different apps.

    • @brit1066
      @brit1066 Před 6 lety

      DrZzs Thanks for the answer, I don’t know what I was thinking, OF COURSE THE FIRMWARE UPDATES WILL NOT WORK.
      I am going to try your suggestions and judge for myself. I am retired from the high tech industry after a great career from the VERY EARLY DAYS of main frames through to the beginnings of the current networking market. I worked for some of the luminaries of the industry, Honeywell, the REAL HP, Bridge Comm/3Com, Cisco systems and several Silicon Valley startups. I have to have something to do to keep me safe from my wife’s next little project.
      Thanks for the videos.

    • @DrZzs
      @DrZzs  Před 6 lety

      Cool!
      You're welcome.
      There's sure plenty to do with Home Automation to keep you busy for awhile. My wife has been very patient with my crazy projects. Things don't always work seamlessly. Sometimes lights go on or off unexpectedly and such.

  • @TrillasAdventures
    @TrillasAdventures Před 5 lety

    Does this still work? I just ordered two sonoff basics and want to do this?! how can i check which firmware they come shipped with? I was able to install pip3 without any errors (other than it asking if i wanted update it to the 18.1 version instead of 0.10.7) so just waiting on the devices to move forward. thx

  • @JeanRobertStrele
    @JeanRobertStrele Před 5 lety

    Ok, it seems like that ITEAD stopped the fun for us. I have 1st gen units that were OTAd from 1.6 to 3.0.0 and 2nd gen units running on 2.6.0. Neither of them ever get to "FinalStage"...

  • @varunlokesh9128
    @varunlokesh9128 Před 5 lety

    can we update it to custom firmware by this method?
    i am building home automation system so i want to control this switch with my application if not possible please suggest an alternative

  • @DwellerDesert
    @DwellerDesert Před 5 lety

    How does one set flash mode Sonoff 5V Inching switch? Found a couple of conflicting ones online, but I never see the device? How do I determine which version I have? Thanks in advance.

  • @gee-rockgee-rock4468
    @gee-rockgee-rock4468 Před 4 lety

    is there a mobile version of this setup like an automatic flash version? since you can wifi connect to the itead device.

  • @Ivanov.
    @Ivanov. Před 5 lety +2

    БЛАГОДАРЕН

  • @sweden669
    @sweden669 Před 5 lety

    DrZzs Thanks for all of your videos, and NOW i think i am ready to get myslf a couple of Sonoff wifi swithes and other stuff, but WHERE can i get those sonoff swithes from that aren´t copys..i look it up on ali express, but there are so many..are they ll the orginal sonoff switch??

    • @DrZzs
      @DrZzs  Před 5 lety

      There are a lot of knock-offs I think.
      A good place to know you are getting the real thing is direct from iTead, the company that makes them.
      www.itead.cc/

  • @aldotineo9195
    @aldotineo9195 Před 6 lety

    Hi... I just finish flashing my sonoff.. only one more question... on your video flashing over the air.. in the CONFIGURE MQTT After the topic you mention MQTT broker ip address?. User? and password? Would you tell from where you have that?

  • @nb251
    @nb251 Před 6 lety

    my type of guy. cheers!

  • @tripore
    @tripore Před 5 lety

    Very interesting. In my opinion, there is are real advantages at doing this only if you've got a hundred of devices to flash. Otherwise, if you've got just a bunch, the gold old way is much, so much quicker....

    • @DrZzs
      @DrZzs  Před 5 lety

      I'm with you. I've only done this a few times. My go-to method is always manual.

  • @waelelkholi3406
    @waelelkholi3406 Před 4 lety

    Can you use this method to flash Sonoff dual R2 with firmware 3.14 ? and how do you make the connections after you flash to use it as manual switch and a smart switch simultaneusly .

  • @MrChetansood
    @MrChetansood Před 4 lety

    Hello, i know you dont do sonoff integration with alexa, but it would be great to know how to get sonoff pir and door sensors to alexa.

  • @nitinsawant
    @nitinsawant Před 6 lety +1

    cool, I will try it

  • @santhoshkumar87
    @santhoshkumar87 Před 4 lety

    everything completed as per the steps.... but finalStage did not show up

    • @DrZzs
      @DrZzs  Před 4 lety

      Sorry, this process hasn't worked in a long time.

  • @TheRamsbod
    @TheRamsbod Před 4 lety

    Do you install the 32 bit {x86) versions of Visual studio? I installed the 64bit versions and it doesn't work.

  • @gabrielvarga3812
    @gabrielvarga3812 Před 5 lety

    Hi DrZzs if I flash Tasmota on my Sonoff Basic it would be possible to connect to Homey Atom? Thanx

  • @inforeasy1
    @inforeasy1 Před 5 lety

    Hi from Spain
    How can a sonoff be restored to factory values?
    Thank you

  • @Pirateashimself
    @Pirateashimself Před 5 lety

    Good job finding that trick. How hard is to use a SBC like a raspberry pi. Maybe at as a man in the middle and automate the task quicker?

    • @DrZzs
      @DrZzs  Před 5 lety

      Thanks
      Not sure how the middle man would work.
      The process for OtA flashing has gotten easier. They've got a windows executable version that cuts out a lot of the python steps.
      czcams.com/video/Z7SlNtkmYyE/video.html

  • @MrAdnanfayyaz
    @MrAdnanfayyaz Před 6 lety

    Does Tasmota for Sonoff OTA approach also works with Sonoff Socket? By the way, man you nailed it... Cheers

    • @DrZzs
      @DrZzs  Před 6 lety

      Thanks!
      It should work for all Sonoffs as long as they don't use v1.6 of the sonoff stock firmware.
      I believe the newest firmware version is working again with SonOtA. I've got a switch at home I'm about to try it on, so I'll be able to verify soon if it works or not.
      Good Luck!

    • @MrAdnanfayyaz
      @MrAdnanfayyaz Před 6 lety

      DrZzs thanks man.. appreciated..

  • @jon2205811
    @jon2205811 Před 6 lety

    in windows 10 i keep getting the error using command prompt or visual studios cp:
    C:\1>python sonota.py
    Traceback (most recent call last):
    File "sonota.py", line 30, in
    from httplib2 import Http
    ModuleNotFoundError: No module named 'httplib2'

    • @DrZzs
      @DrZzs  Před 6 lety

      I'd say try using sonota.exe instead of .py
      I think the exe includes everything you need so there's less change for errors like missing libs.
      Here's an updated video on the OtA process:
      czcams.com/video/Z7SlNtkmYyE/video.html

  • @adamhowley8037
    @adamhowley8037 Před 6 lety +1

    Talking to someone and they said this was impossible. Well I guess it isn't after all!

    • @DrZzs
      @DrZzs  Před 6 lety

      it was for a time, but now it is absolutely possible!
      czcams.com/video/Z7SlNtkmYyE/video.html

  • @davidkristof
    @davidkristof Před 6 lety

    THX! I just flashed my sonoff basic. I'm such beginner, still i could do it. You're awesome! How safe is this little device?? It doesn't have CE certificate. What's your experience?

    • @DrZzs
      @DrZzs  Před 6 lety

      Good job! You're not a beginner anymore!
      It does have CE certification :) If the one you have doesn't have the stamp it might just be because it was shipped before they finalized the process. But they are all CE certified now.
      It does not have UL (which is our US version) but I still think it's plenty safe.
      120v can be dangerous no matter what, but I don't feel like these are poorly made at all.

    • @davidkristof
      @davidkristof Před 6 lety

      Okay, so, i found a page www.imore.com/how-connect-non-homekit-devices-homekit-using-homebridge and executed that. Now i have a homebridge "whatever" on my mac, and i could add that to my Home app on iOS. How can i add my Flashed Sonoff switch to homekit now? I'm so frustrated and tired. I dont find anything useful online. All the things i've found are made for people who completely understand this whole thing. HELP!!!!

    • @DrZzs
      @DrZzs  Před 6 lety +1

      Dávid Kristóf oh man. Maybe go take a break first before you smash something.
      I haven’t tried homebridge yet. I’d have to get into it to be much help to you.
      See if there’s an option somewhere that might get homebridge to discover devices. If it doesn’t find the sonoffs as they are, then try setting the sonoffs to emulate the Hue or WeMo. You can change that in the Configure Other page on the sonoff.

    • @davidkristof
      @davidkristof Před 6 lety

      DrZzs thx! I go to sleep. I try tomorrow

    • @DrZzs
      @DrZzs  Před 6 lety

      Dávid Kristóf I’m reading the Home bridge page right now. Do you have a config.json file?
      Looks like the have a sample you can start with. Then modify it with your devices.

  • @ashoktvm
    @ashoktvm Před 6 lety

    hey. can you help me set default state in Tasmota firmware?