Flashing TASMOTA on a Sonoff OVER-the-AIR !!!
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!
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
Still far easier and quicker to flash using FTDI :)
I do like that method.
can you link the fastest way to flash using FTDI? Is FTDI the same as usbasp? Thanks!
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!
so is it true the OTA way does't work? how check the fw version of sonoff?
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!!
You're welcome! Thanks for the feedback. I'll keep'em coming.
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.
Sweet!
I love hearing success stories!
Thanks DrZzs. for the excellent video and step-by-step instructions. Thumbs up and you now have a new subscriber!!
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.
Ramnik Khanna Has
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.
Thank you for making a video about SonOTA. This tool made flashing the Sonoffs much easier!
You're welcome!
Glad it was useful to you!
Thanks man! you're Awesome! After watching your video it was definitely easy!
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. :)
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
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.
Awesome!
Thanks for the feedback!
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!
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!
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!
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.
raphael chicon anholetti That’s hysterical! Some luck you have.
Glad I helped!
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
pierre janvier You’re Welcome!
Thanks for watching. Glad it’s been helpful!
what do you think of BroadLink TC2 110V~150V
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...
Kiaori! Wicked. I got some sonoff but hadn't got around to ordering any electronics to flash then. Thanks bro.
kiwijunglist You’re welcome!
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.
Awesome! Love to hear success stories!
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!
Awesome!
Thanks, I was googling how to find the version number. I will try your suggestion. Thanks, You are the man!
Here's how you get to the settings to find the firmware version:
www.dropbox.com/s/1hlls636mrrm1is/Sonoff%20Firmwar%20Ver.MP4?dl=0
This earned you a subscriber.
Thanks
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..
Does this process work for the shelly2?
As allways, best youtuber regarding home assistant, like your videos ;o)
Wow. Thanks!
I'm gonna keep makin'em.
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...
Sweet!
Here's the guide I followed for my MQTT set-up.
czcams.com/video/AsDHEDbyLfg/video.html
Good Luck!
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
Awesome!
I know some folks are still having trouble getting it to work. This'll give them something else to try.
Thanks!
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
Bravo pour votre travail , Merci encore c est un vrai cadeau de NOEL , installation réussie du premier COUP sur un sonoff basic
uh oh.
I'll need a translation. Sorry. I understand "bravo" and "merci", but I don't know the rest.
Sorry but I didn’t get “FinalStage” you can hep me?
I can't see the finalstage either, could be the formware issue?
Me too
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!
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.
oooh!
that's good info. I didn't know that would be a problem.
Big thanks!
Works fine with Windows 7 - Thanks for the great video
cool!
Thank you for your videos. Really useful! Grettins from Spain.
cool! Never been to Spain. Maybe someday.
Here's a better updated video about flashing Sonoff:
czcams.com/video/KMiP9Ku71To/video.html
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!
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
I ran into the same issue. did you get yours working?
Great vids, keep em coming!
Great video very useful
Thanks!
Thanks for making this video. I am going to try this out on my Ubuntu machine.
you're welcome!
Good luck!
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
Cool!
So you’re running Ubuntu as a VM?
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 :)
You the real MVP Dr Zzs
wow, thanks!
love your editing
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 :(
Thank you for the reply. I will try the traditional method.
Is this still an accurate guide? Any adjustments or updates to it you'd recommend in the six years since you made it?
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".
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.
Awesome, thanks!
Really helpful instructional. Are there any issues of Sonoff memory size for OTA?
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)
Hi, Do someone know similar procedure that works of Sonoff B1 (latest version)
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.
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?
Does work for current versions. If you did a firmware update, this won't work.
Wonderful video ! Thanks a lot, I'll definitely give it a try ! :)
Thanks!
Good luck, let me know how it goes.
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
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.
James Lim Here’s a vid about how to do it the old fashion way:
czcams.com/video/chyVjtYb0EA/video.html
Great teaching video, thanks for your time. Adios amigo!
Thanks!
Thanks DrZzs..... Very excellent video. I really really love it. one more thing Can I do this with Sonoff RF Bridge?
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!
Thank you DrZzs
thank you for this video !! didn't want to spend money on an adapter ! greetz from belgium
Belgium! Awesome! Glad to save you some money. What is the currency called in Belgium?
just euro haha!
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.
There is no “sending file: /ota/image_arduino.bin”
Do you what I should do tried it on a different computer and also all my firewalls are disabled (using on a mac)
Thank you Doctor but brain hurts now! Going to watch it later with Pause button.
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
... 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.
??
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.
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
I see, thanks! I'll give it a try. Now back to all your content that I just discover :)
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.
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!
Your vids are gold!
Thanks man!
Hopefully they keep getting better. :)
Awesome work. Thank you so much. :)
Did it work?
There was a time it wasn't working because of the Sonoff firmware
So does the OTA now work with the 1.6 version or not ? Since you wrote that it works again ?
Love your vids
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.
Nice one. Thank you.
Thanks!
I believe OtA is working again. Haven’t verified that myself. Guess I probably should.
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?
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!
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.
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.
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!
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
I've flashed 3 Sonoff SV's using this method.
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.
I have the Sonoff Basic R2 and trying to Tazmotize it OTA . stuck at many dots . ....................... Can some one help?
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
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!
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!
Fantastic, Thank you and i wil try and let you know. :)
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?
Thanks!
The manual switch will still work even if there's no wifi. :)
Perfect!
Thank you so much. Your videos are truly enspiring for a newb like me.
I'm still a noob too!
To me that sounds a lot harder than using the hardware method. It is pretty neat software.
Hello, I have a Sonoff S20 and TH16 but the firmware is 3.4.0. How can i flash them OTA? is it possible?
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
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.
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.
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
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!
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!
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.
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
Do you have a way to read temperature and humidity using python on raspberry pi?
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?
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
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?
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.
DrZzs Thanks a lot, u da man!!! ;-)
it become Brick after i did it over the air :( what to do now ?
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 ?
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)
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
thank you!
a lot of people are having trouble running that command.
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.
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.
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
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
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?
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.
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.
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.
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
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"...
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
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.
is there a mobile version of this setup like an automatic flash version? since you can wifi connect to the itead device.
БЛАГОДАРЕН
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??
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/
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?
my type of guy. cheers!
ha!
Thanks!
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....
I'm with you. I've only done this a few times. My go-to method is always manual.
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 .
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.
cool, I will try it
everything completed as per the steps.... but finalStage did not show up
Sorry, this process hasn't worked in a long time.
Do you install the 32 bit {x86) versions of Visual studio? I installed the 64bit versions and it doesn't work.
Hi DrZzs if I flash Tasmota on my Sonoff Basic it would be possible to connect to Homey Atom? Thanx
Hi from Spain
How can a sonoff be restored to factory values?
Thank you
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?
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
Does Tasmota for Sonoff OTA approach also works with Sonoff Socket? By the way, man you nailed it... Cheers
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!
DrZzs thanks man.. appreciated..
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'
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
Talking to someone and they said this was impossible. Well I guess it isn't after all!
it was for a time, but now it is absolutely possible!
czcams.com/video/Z7SlNtkmYyE/video.html
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?
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.
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!!!!
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.
DrZzs thx! I go to sleep. I try tomorrow
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.
hey. can you help me set default state in Tasmota firmware?