How to flash Sonoff to ESP Easy firmware
Вставка
- Опубліковано 10 вер 2024
- This video goes through the process of modifying the Sonoff wifi smart watch and flash the firmware to the current ESP Easy version.
In this video I only show the flashing process, setup of ESP Easy will follow in future videos.
Sonoff "cheatsheet": drive.google.c...
Sonoff wiring explained: drive.google.c...
Tisztességes tutorial, elismerésem.
Jó látni, hogy itthon is van, aki ezzel foglalkozik.
Köszönöm szépen!
For everyone who's using this guide but not succeeding to see the wifi: you're probably having an 8285 microcontroller instead the 8266. Find a different bin-file and you can flash with different software. You'll probably need version 2.0+.
Next to that, great guide Csongor, I like the way you go through the steps. Although it's not bad to insert an annotation on steps that are wrong (as explained further in the video). Thanks! :)
Thanks, yes I assume this video is getting a bit old now. I believe UA-cam has removed annotation on videos and it is not possible to upload a never version either, so there is not much I can do now.
Hi mate. I'm starting with Openhab with RPi2, so far i have done 2 relay switch. This Sonof device and your tutorial gives me inspration for more projects! Thanks a lot buddy!
Thanks Marcin, yes they are fairly easy to set up and use.
Thank you so much! Espurna finally made me SonOff work again. I flashed all the espeasy bins but the Sonoff would never turn on after flashing. Using this FW it worked immediately!
Ah good. I am planning to release the Tasmota video this week. I am glad you made it work eventually.
Explained wonderfully. Üdvözlet Lengyelországtól Magyarországig :)
Viszont, Magyarországból Lengyelországba :)
@@csongorvarga :)
Couldn't get my Sonoff to do anything after re-flashing and re-booting multiple times even though it went thru the boot process just like it showed in the video. Changing the power supply and swapping the tx/rx wires didn't help either. Finally after searching I found a different version of this software here github.com/letscontrolit/ESPEasy/releases/tag/v2.0.0-dev13 and extracted the zip file and it was super easy to install the firmware in the file. Once extracted click the "FlashESP8266.exe" file and pick the bin file from the drop down menu. I did have to use the "ESP_Easy_v2.0.0-dev13_normal_ESP8285_1024.bin" file not the 8266 file. After that I got the WIFI "ESP_" something (forgot what it was) works great now. Thanks for the video.
Thanks for the message. Yes, my video is more than 1 year old now, and ESP 2.0 has come out in the past months. I did not have a chance to test it out just yet, but I am planning on working with it soon as well. But I am glad to hear that the newer firmware fixed the old one.
Thnx works for me to now !
Wow you sure saved me a whole lot of time and much less confusion. Thanks
Gratulálok a videóhoz és köszi. Hasznos volt számomra!
Szivesen. Köszönöm az üzenetet.
Congratulation! Very good video! I will have a try!!! Thanks a lot for sharing!!!
Hello. very very useful video! as you said, i knew different methods to flash the sonoff. but the method you used is the best by far. regards
Thanks, I got some comments below that with the newest Sonoff's the process is a bit different as it is using something other than ESP8266. I still need to cover that in a future video.
hi. personally will be waiting for you next video regarding sonoff. good luck
Awesome video! Thank you very much, Csongor!
I had the same issue people are having, where no wifi is coming up. However, everything worked out perfectly with the new 2.0.0-dev13 release with the 8285 edition. It has a better flash program, which allows you to pick the bin you want to use. The new firmware uses a wifi password. It is "configesp". My Windows 10 PC would not take me directly to the page, using Chrome, so I followed the directions and went to 192.168.4.1 and that was it. All good.
Instructions: www.letscontrolit.com/wiki/index.php/ESPEasy
Download: github.com/letscontrolit/ESPEasy/releases/tag/v2.0.0-dev13
I then used the Fing app to find the IP address for the Sonoff.
Thank you very much. That was helpful and clearly explained.
Nice tutorial, will try it as soon as my Sonoff arrive :-)
Thx alot. Greetings from germany
tell me pliz how to connect Son of on this firmware to my network. I've been doing it all for a long time, I forgot. Right now I'm trying to reset the Sonoff RF device, but the access point ESP_Easy_0 does not appear in the phone. I tried searching for a point both when turning on the power, and when holding the reset button for 5 seconds (when it flashes red for the second time) and held it longer... There is no point for the life of me. Maybe some kind of tricky reset is planned there?
Thanks. Very informative. I was looking for a "wifi" way to switch things around the house. And as the sonoff switches are
After 1st time switching on, I am getting an error "DEVICE OFFLINE". then led blinking twice as an interval of 1s. After manually power off and on, of the Sonoff device it is working once. What is the solution? on stock firmware 1.6
Ich habe alles gemacht, wie im Video beschrieben. Nun ist es aber so, das der Sonoff Basic nichts mehr sagt... Welche Möglichkeit gibt es noch?
Szia megint! Lenne egy kérdésem. Sikeresen rátöltöttem az ESP easy fw-t ket sonoff egységre. Mindkettőnél úgy jártam, hogy felcsatlakoztam a a saját ESP_0 wifi-jére és elkezdtem configolni. Az egyikkel addig is eljutottam, hogy saját wif hálózatomra bejelentkezett a sonoff. Mindkettőnél egyszer (váratlanul) csak elmúlt a wifi. Azóta halottnak néz ki a wifi-jük. Hiába flash-elem újra nem tudok lelket verni bele. Van esetleg ilyen irányú tapasztalatod, ötleted mit lehetne csinálni, hogy újra működjön a wifi vagy kuka a két modul? Nem nagyon találtam ilyen jellegű problémáról infót a weben. Valahol olvastam, hogy az USB tápja nem elég a jelfogó meghuzatásához, de nem gondolom, hogy attól tönkre kéne menjen a wifi. A probléma előállításakor csak USB-t használtam tápnak. ESP easy R120-at töltöttem de utána próbáltam R108-al de azzal sem ment.
Minden infót ötletet előre is köszönök!
Azt tudom hogy a ESP csak 2.4 GHz-es wifin mukodik. Ha a wifi csak 5 GHz-en sugároz akkor nem tud rá csatlakoztatni. Nekem még hasonló gondom nem volt, és én is csak a USBn keresztül szoktam táplálni programozás közben. Szerintem ez nem lehet gond. Hagyd az USB programozón, és Putty-val csaltakozz az ESP-re soros porton keresztül (baud=115200, 8 bit, no parity). Ott lehet hogy lesznek olyan üzenetek amiből ki lehet találni mi lehet a baj. Az ESPnek nincs erős antennája, ahol a telefonnak már gyenge a jel ott az ESP már nem is nagyon tud csatlakozni. Hozd vissza a szobába hol a router is van. Esetleg kapcsold le a routert, es akkor a ESP_0 hálózat meg kell hogy újra jelenjen.
For the people who just ordered the newest Sonoff Basic. Try to flash it with "nodemcu firmware programmer" with the following settings:
- Baudrate 115200
- Flash size 1MByte
- Flash Speed 40Mhz
- SPI Mode DOUT
Don't forget to upload your .bin file like the ESPeasy R120.
For reference, check: github.com/arendst/Sonoff-Tasmota/issues/463#issuecomment-328944844
PS: Flashed ok with normale procedure explain in the video above but only no WiFi (ESP_01) after succes full flashing. With my solution it worked.
THANK YOU SO MUCH I LOVE U. if u have the new version or the one with RF (antenna at the back) pls try this method
just the instruction i needed to get going ;)
Hi. I followed your video and had a successful flash. But I do not see the wireless network. Can u assist with troubleshooting
Kedves Csongor!
Először is gratulálni szeretnék a minőségi tutoriálhoz és megköszönni hogy összeraktad! Nemhogy itthon de még külföldi videók közt sem találni ilyet!
Érdeklődnék, hogy hoztál-e már össze Raspberry + Homebridge + Sonoff hármast? Esetleg egy ilyen tutoriált nincs kedved készíteni? Nekem már fut a Raspoberry-n a Homebridge, de nem tudom milyen firmware-t kellene használnom, amihez homebridge plugin is van. Ez az ESP Easy elég sokoldalúnak tűnik, de nem tudom melyik homebridge pluginnel használható, ha használható.
Köszönöm!
Köszönöm szépen. Az iPad-en kívül nekem nincsenek Apple termékeim, így nem igazán tervezem hogy ilyen integrációról készítsek videókat. De ahogy látom azért erről is vannak használható videók a UA-cam-on.
Sonoff shop online:
www.amazon.co.uk/Wireless-Control-Automation-Intelligent-support/dp/B0732T1KZ2/ref=sr_1_1?m=A2OKWYH4I33E4C&s=merchant-items&ie=UTF8&qid=1503646267&sr=1-1
Subscribed, you make it look so easy ;pI was scratching my hear out yesterday, since it wouldn't work. But I think I've got a hardware issue, I'll try your route tomorrow.
I will try to help if you get stuck. I don't think this is easy, and it is difficult to find problems on our own. Forums sometimes help, but it is frustrating if it does not work. I also give up rather easy, so I guess I am lucky so far.
I wouldn't say I'm a new user and using ESPEasy is just, easy (if it works).
But if it doesn't work, it's going to get annoying. I've tried another FTDI board, which seems to work. But, both ftdi boards are from the same batch, loopback test works on both, voltage seems OK. So I thought it could be current, and hooked up an external 3.3V source, GND's connected) but nothing worked.
So I'm clueless why one will and the other won't work. It's hard to live with that thought, but I'll just shove it off on the fact that I have no scope and the voltage could've dropped (because it would draw too much current). I've ordered 3 off those USB-UART modules of chip-fans (they're really dirt cheap!)
Hmm, I see. So yet again, I might be very happy as I did not face the same issues... yet... But I agree, if you face issues it is frustrating. Actually, I am planning on doing an "ESPEasy troubleshooting" video.
Hmm, well it does work with the other FTDI board, so basically you could say it's a faulty FTDI board or hardware problem/inconsistency.
I'm not sure if a troubleshooting video is very usefull, if there is something wrong I usually check the github for people with the same problems, or check tutorials and see how others do it, or try to ask on forums/youtube etc.
A good tutorial should be clear and focus on whatever could go wong, instead of trying to fix problems afterwards with another video, I think ;)
Hi. I installed the new firmware . Evething ok and when í unplug it . Never blink and í can find the wifi network
in badly english: I have tried everything like you Show in the Video. Everythink works like you describes. Now i take off USB, and take in, nothing happened... Any idea?
Hello, i'm doing exactly the same however when i restart the device after the flash i can't see wifi ESP_0. Any advice?
This came up multiple times, I am always giving the same advice, but nobody comes back to me which has worked: so I recommend using the mains power to power it, some USBs do not put enough power, make sure your laptop/tablet/phone is searching on 2.4Ghz wifi (normally is should, but there is a 5Ghz wifi band as well). Obvious, but the button is not pressed when you power it on (not jammed in the case when re-assembled).
u are right keep trying on off the wifi connection and put sonoff near the computer
The remedy ua-cam.com/video/hMN568beiYE/v-deo.html
any sonoff firmware to natively work for Echo Dot? i mean without MQTT server. Thanks
Hi,
thanks for the video but i cant see esp_0 wireless network. Any thoughts?
Hi Csongor I just wanted to update you, then when I run the Sonoff with 220V I can see now the ESP_O network and I was able to give it a fix IP and start the configuration. I work with the 1.47 FW and want to use it with MQTT.
Thank you again for your support and the helpful video.
Peter S I am glad you managed to get it working eventually.
It Works thanks you made it to easy
Great video, told me what I wanted to see, but I've got to say... I think its entirely unnecessary to soldier those pins on the board. You can just as well use male/female jumper wires instead of the female/female. I simply insert the male pins into the board's pin holes then use a little bit of tape to pull the pins gently and hold them in place to make sure they have a good connection. The flash only takes a few seconds, and once you're done, you'll probably never need to flash it again. Soldiering just seems like an over kill for this use case.
You are actually right. I prefer this connection to eliminate connectivity issues, but the tape is a simple and good idea. Let me mention this in my next video.
Thanx for the tutorial. Unfortunately, as soon as I connect the sonoff/USB TTL converter with the computer, the sonoff starts blinking. I followed your tutorial precisely and i push the button while connecting the USB to the computer. Therefore the ESP Easy Flash does not work. Do you have any idea which could help me solve my problem? Thx
Sorry, I have no idea. It should work unless the button is not soldered properly and there is no connection to the ESP pin. Are you sure you pressed the button properly? Do you feel the click?
Hello. Which pinhead should I buy? On AliExpress many many sizes and I do not understand
It usually says "0.1 inch pitch straight mail pin header". I use the type where the pins are rectangular not round.
For the newer chipset this flash method doesn't work. For this chipset you have to use the NodeMCU flash software (Settings: 115200 baud, 1Mb, 40 MHz, SPI Method: DOUT. You can use the same firmware as given in video.
Thanks, what do you mean newer chipset? Is that any specific product?
I'm not sure what's the difference in the chip. But you can try method as in description, but when it gives problem than you can try the way I described. (my result was that flashing was ok, but I get an error after reboot) The difference is that newer chips must be flashed in DOUT mode. Look also at: github.com/arendst/Sonoff-Tasmota/issues/463
Thank you!
Its a long story, but this is how I fixed it:
- Install python for windows
- get esptool.py running
- erase the now faulty flash with this command: python esptool.py --port COM4 --baud 115200 erase_flash
- reboot once
- Write flash with this command: esptool.py --port COM4 --baud 115200 write_flash --flash_size=1MB -fm dout 0 c:/ESPEasy_R120_1024.bin
-see how your wifi esp_0 is available.
Just wondering if ESP Easy firmware allows http api to turn on and off the sonoff.
eg sonoffip/on
Yes it does. sonoffip/control?cmd=gpio,12,1. Google "esp easy http commands" and you find some examples. There are commands for short and long pulses which can also be useful for Sonoff.
Szia Csongor ez a video nagyon jó lenne magyarul is !! Köszi!!
I was successful to flash but I don't see any SSID being broadcast. Any other way to configure the next steps? I no longer see any blinking light on the sonoff despite unplugging and replugging the serial port. If I could find a serial terminal should I be able to talk to the sonoff in any way?
Few things: status LED, by default ESP Easy does not know which hardware it is running on, and which PIN the status LED is connected to. So unless you complete the configuration, it will be off. Many people had similar issues like you as ESP/Sonoff cannot run properly on the power provided by the serial adapter. So unplug it and power it from the mains power. It should work even without any visual feedback from the status LED. The serial terminal will provide you with status messages to see what is going on, but it cannot be configured over the terminal. You need the SSID to appear. Also note that ESP only works in the 2.4Ghz Wifi band in case your phone/tablet/laptop is switched to 5Ghz only (if it is possible at all).
Thank you! That makes sense. Unfortunately even on AC power no SSID came up. It reflashes reliably just no operation. Can you please give me some idea of what I should see on the serial port for status? Is there any version of Sonoff firmware that can be configured over the serial port?
Rob C I don't remember what comes through the serial port but messages like connected to a wifi, ap created, local ip, etc. And no I am not aware of any ESP easy firmware with serial config.
ANYONE WHO GETS THE CONSTANT FLUSHING MESSAGE THEN FAILED TO OPEN BOOTLOADER-
you can get this fault even when your tx and rx are connected correctly if your fdti cannot supply enough current to the sonoff!
to overcome this you can connect a separate power source to the sonoff (MAKE SURE ITS EXACTLY 3.3V AND NO MORE AND NO LESS!!!) connect both the positive and negative to this source but link the ground from this source with the ground on the fdti unit, DO NOT LINK THE POSITIVES!, you connect the tc and rx as normal.
doing this wil give the sonoff the power it needs and should stop the fault message you get and now flash correctly.
the reason you need to link the ground wires is because the tx and rx will not work if there is no ground for them, they are both positive data lines.
i hope this helps someone.
Steve, thank you so much! You made me try to use my CP2102 module for 3.3V instead of the two AA batteries i was using and boom it worked!!!! So glad I read this, and that you wrote this.
hey steve..having same problem ..I connected TX RX correctly with TTL-TO-USB module...What is the solution for it?
When you were setting up the devices one option was 'input vcc'. If I am running on battery power will this show me when the battery is getting low?
They shows the input voltage of the ESP that it receives from the 3.3V regulator. There regulators have some dropout, meaning that if the input voltage, (battery voltage in your case) is only a small amount above 3.3V (maybe 0.6V above 3.3V), it will not longer be able to provide 3.3V, it will start to drop. That you should be able to monitor with VCC. But the ESP is not able to operate on much less than 3.3V, so it will be a last minute warning . But will probably work.
@@csongorvarga Thanks for the reply. It should be able to send a message that it needs a charge or a battery before it dies. Not much use really.
Hi, when I connect the USB converter to my PC with Win10 it shows up as UBS Serial in the device manager. I wonder what I need to do to show it as ...CP2102.. in the device manager again.
(At the very first time the USB converter showed as CP2102 but the message said the divice is not properly connected)
Thank you for any help.
Peter S I am not sure if this is a problem. The chip could be a CPxxx, but it is a USB serial device. Maybe the win10 driver has a generic name. But if it works it should not matter.
Thank you Csongor for your quick reply. When I start the flashing with USB in device manager it does not work also I have swapped the RX and TX. No luck. There are many USB to TTL converters around in the market, maybe I just have the wrong model...
Let's start from the beginning: is the driver installed correctly? Does it appear under unknown devices or under Ports? If the prior, right click and in the properties update the driver (Driver tab). Let Windows find the driver automatically. It usually works. If everything is OK, it should appear under Ports in the device manager with the assigned COM port shown.
Hi Csongor, I have removed the drivers, re connected the USB converter and did Win10 let install the driver. In the device manager it shows as USB and with a COM port. I managed now to flash the ESP chip. Wow.
Now I face the issue that I do not find the new ESP_0 network from SONOFF. Not sure what the problem is. Should the LED on the SONOFF blink?
I got similar comments from a few other users as well, but we never gotten to the bottom of the issue. Did you try connecting to the ESP via the serial port with Putty? Are you getting any meaningful messages? I heard that the ESP might not perform properly if the USB converter cannot supply enough power. So remove the programmer and try powering up the ESP via the main as normal. The LED will definitely not blink in the beginning. ESP Easy does not know which device it is running on hence it would not know which pin the LED connected to. You need to set it up later. So the LED will not give and indication in the beginning at all.
Szia!
Köszönöm gyors válaszod! Igen, most Puty-al próbálkozok. Egyenlőre standard üzeneteket kapok miszerint nincs semmi gond. Az ESP amúgy közvetlenül a laptopom, telefonom és tabletem mellett van de sajnos egyikkel sem érzékelem az ESP_0 network-öt. És igen, 2,4GHz-en vagyok.
Most olvasgatom hogyan lehetne egy reset parancsot beküldeni soros porton de egyenlőre csak kifele ír a terminálra és nem vesz karaktereket. Keresem az okát. ESP Easy szerint mennie kéne soros porton is.
Köszi mégegyszer a segítséged.
Üdv!
Végül megoldódott! Kinulláztam a flash memóriát teljesen és utána simán felment az ESP Easy fw. Működik a wifi és minden.
Mégegyszer köszi a segítséget és a klassz videót is.
Helló!
Lépésről lépésre úgy csináltam mindent, ahogy Te, az újraindítás után nincs semmilyen AP. Mit javasolsz?
Sajnos nekem sosem volt hasonló problémám, de sokak mondták hogy bizonyos USB-TTL átalakítók nem adnak elég áramot és az ESP nem működik rendesen USBn keresztül. De előtte egy serial monitorra nézd meg mi jön vissza az ESPtől. Az ESP Easy firmware a soros (USB) porton keresztül küld szöveges üzeneteket 115200 baud sebességgel. Egy Putty vagy más programmal nézz rá hogy mit látsz. Utána kösd be a 220-ba és próbáld a saját tápjáról (akkor már számítógép ne legyen hozzá kötve). A telefon/laptop amivel keresed az AP-t 2.4 GHz-es Wifi-re legyen állítva, ne az 5 GHz-esre. Több sajnos nem jut eszembe.
Köszönöm a gyors választ!
A Putty nem lát semmit, az AP-t 2,4 GHz-en keresem. :( A 230V-ra nem tudom még rákötni, de ma veszek egy villásdugót és akkor tudok többet mondani.
If we hack sonoff basic and upload Tasmota flash firmware then Can we use continue ewelink app? Or itead servers dont let us to use ewelink app with sonoff hacking firmware! If YES Which app can we use ?
Csak speciális firmware-rel lehet adatot kiolvasni és parancsot küldeni az eszköznek belső hálón?
Igen, a gyári firmware csak a központi szerverrel kommunikál.
Köszönöm a válaszod! Látom többféle firmware is van. Melyiket ajánlanád? Egyelőre orange pi one, sima vezetékes relay board, és phopi-masterrel operálok, és később szeretnék alexát is telepíteni. Valamint semmilyen programnyelvet nem beszéleK :) Szóval ugyanebbe a weboldalba szeretném belőni a sonoffot is.
Gábor Győző-Molnár Nekem egy RPi 3-asom van es azon Node-red. Abban javascriptben kell programozni ha szukseges, de kod nelkul is sok mindent meg lehet oldani.
Kár, reménykedtem, hogy sima terminal parancsokkal lehet kezelni, mint a saját GPIO-ját.
Gábor Győző-Molnár az ESP Easy firmwarerel lehet http parancsokkal iranyitani, pl /control?cmd=gpio,12,1 bekapcsolja a sonoffon a relet.
do u know how reset sonoff to factory setting?? i re-flashed my sonoff cos my esp config not responding and always said "reload", after i re-flash from begining, i can't find ESP_0 on my wifi network.. T_T
Tobby Putra You can't. I don't have the original firmware and I don't know how to get it.
Great Description
Would you mind posting the cheatsheet somewhere? I dislike recreating what's already done (and am a bit lazy sometimes).
I put the link into the video description
Is it possible to backup the original Sonoff firmware before flashing the ESP Easy firmware?
No, I don't think so, or at least I am not aware of. Once you flash the Sonoff, there is no going back.
Jon Vannatto good catch. I flashed all my Sonoffs already, so there is no going back for me.
Thanks! great vid, I found that after flashing sonoff with ESP Easy I loose the little black button functionality, the only way to turn on/off is remotely. Is it working as expected?
Yes, ESP Easy does not use the button be default. You can use the rules to write a small script and the button will work just like on a standard Sonoff. I do have a video on ESP Easy rules.
Hi, is there a firmware that supports turnoff timer? eg 5min after turn on it turns itself off? for a toilet
+Yarni Pels Well, you can use ESP Easy and the rules to set this timer. I have a separate video on this. I also have a video on the ESPurna firmware which also has this auto-off feature.
Csongor Varga Ill watch it shortly thank you :D
Doesn't work, no wifi after flash, sonoff changed something, you have to use arduino IDE but guides out there are very vague.
@Csongor Varga
Hi Varga, is it possible to connect LAN port to the SONOFF? if you have a time can you made the video also?
No, there is no Ethernet port on SONOFF or the ESP chip. 2.4 Ghz Wifi only.
Hi would it work if de dont solder thé pins?
No, that is also required.
Using this firmware wich server it uses for on/off when i m away?
This firmware is designed to be used with a server that you create. You must have a server the Sonoff with ESP Easy can talk to. Using the ESP Easy firmware, Sonoff will not do anything on its own. You need your own server from which the Sonoff gets commands to turn on/off. Do not modify the firmware if you are not setting up your own home automation system.
Csongor Varga thanks but i wanna do it because sonoff server are many times offline. Can u suggest me a server to create compatible with this firmware? Home assistant on raspberry pi3?
Yes, Home Assistant, OpenHAB, Domoticz, Node Red on raspberry pi3 is OK. I can't really tell which one is best. I used OpenHAB in the past, it was easy to set up to control devices, not so much to build logic. This is why I am using Node Red. I heard great things about Home Assistant too, and there is a large community behind it. So that is probably a good way to start.
Csongor Varga thanks. Bro you re really gentle and useful!
Nice work man! Did you still use FTDI to power the sonoff after flashing the espeasy? I have flashed two sonoff but cannot find the ESP_01 using the FTDI 3.3V power, did not test them on 220v. Thanks in advance.
I did, but others report the same problem. The FTDI works for flashing, but some/most models cannot supply enough power for the Sonoff to work properly.
Thanks for your rocket reply! That does make sense! This issue puzzled me for a long time. Thank you so much for your help!
No problem at all. I was puzzled too, especially as I never experienced the issue, and I had no idea what to advise to other users.
Is there any way to control one of these Sonoff wifi switches without doing hardware hacking like this? I just want to be able to control a relay/switch with code from a Raspberry Pi using Python. Is there any way to do that? I don't care if I have to go through a cloud service, although I would prefer not to have to do that.
If not then someone should be selling modded Sonoff switches that have done the mod that you show here to save the time and effort and requirement for a USB to TTL cable.
Well, there might be. Just search for "esp8266 relay board" in ebay. There are many different models there and some may have a firmware which can do what you want. The problem is that there is almost no documentation on ebay. So it is a gamble if you can get what you want.
Hi Csongor maybe you can give me some hints for a specific Sonoff ESP problem I face right now.
I have flashed several Sonoffs, following your video and then configured them, everything just fine
and they are integrated in my Home Assistant.
I started yesterday with one new Sonoff.
I followed these steps:
1. Flashed it with ESP_Easy_v2.0.0-dev13_normal_ESP8266_1024.bin.
2. Connect 220V Input and start Sonoff.
3. I never see the LED flashing and I do not see WIFI ESP_0.
I tried step 1 also with _test_ and _dev_ bin's and other sizes , no luck.
What confused me is that it worked for 5 Sonoffs and now I have this issue.
Any tip what I could do?
Thank you in advance
Peter
I am waiting for a new Sonoff to arrive and also want to test the 2.0 version of ESP Easy. I was told that the newer Sonoff devices use ESP8265 (or something other than the ESP8266) which has a the memory built in, and it needs to be flashed with the DOUT option. But if you are not using the correct option, you may not even be able to flash the Sonoff. So there is a great deal of unknown mostly because I could not test it either.
Just an update, you were right with this version ESPEasy_v2.0.0-dev12_dev_8285.bin everything works fine.
Thank you for the hint.
Thanks for the feedback. I can't wait for mine and give it a go with ESP Easy 2.0.0
Where are you finding this file? I'm searching everywhere. github.com/letscontrolit/ESPEasy/releases still don't work.
github.com/letscontrolit/ESPEasy/releases/tag/v2.0.0-dev12
hey csongor ..really nice video...i have one problem with the completely packed UART ports on sonoff circuit...how to remove that packed holes for inserting male headers into that??
Solder sucker or solder wick will help. Or you can break off a single pin and push it down in the hole whilst melting the solder.
Thanks for the video. Interesting. But now if i want to return to the original firmware, how do i do, if at all possible? Can we dump first the original firmware somehow, and then flash it back?
Germain Staquet I have no idea. On this or another video somebody was talking about the sane and also posted some links. I am not interested, so I never explored this option.
Thanks for taking time to reply. I'll try to find that other video you mention with the comment and links. Have a great day.
Great video, however, I don't seem to set pin zero to ground. I hold the button down while plugging my sonoff in, but it launches as regularly and the led starts blinking green, and then going over to solid green, the same as it does when I connect it without holding the button. I get this message when I try to flash it: esptool.py v2.0
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
I assume your Sonoff is still running the original firmware. Connect it to the mains and press the button. If you hear the relay clicking the Sonoff works (there is no issue with the button itself). In this case the programmer is not working. Have you tried swapping around the RX, TX cables? The only other thing I can think of is for some reason the USB-Serial programmer cannot deliver enough power to the Sonoff. I never had this issue, but some people mentioned it in the comments in the past.
If you have a Sonoff with RF, than the reset button does not make it enter into flash mode. you need to connect 2 other elements: more information here: tech.scargill.net/more-sonoff/
Very interesting video. Can we change in the default firmware instead of flashing a new one? and can we revert back to the factory default if we flash a new one?
You cannot revert back, or at least I don't know how.
what i need to make after the fw for support amazone echo?
+LolYanir I don't think you can integrate to Amazon Echo.
you can use it with alexa with openhab but you need a better flash as ESP easy
hi mate, thanks for this tutorial, please can you tell me how to determine the flash size and build number of these devices? are they all the same or do we need to find out what they are?
thanks, steve.
Build number is the firmware version want to flash. So it is the version you download from the site. And there is this below site which explains the flash size of various ESP boards: www.letscontrolit.com/wiki/index.php/Tutorial_ESPEasy_Firmware_Upload
thankyou, as someone whos been rooting and flashing roms to mobile phones for the last 15 odd years, right back from the good old days of windows mobile, i know that if you try to flash and something is not right you stand a good chance of bricking it so i wanted to make absolutely sure before i did anything, i had one issue with power but i overcame that and im gonna post a new comment for your viewers so they know too.
thanks again, you have been a great help
After flashing he plugs the USB back in and then says "I don't need the laptop anymore"
I just tried it. I got no errors in the flash. Was very excited. But nothing showed up in the Wifi for me either.
I was getting the same issue trying to upload with Arduino IDE. Apparently, Sonoff made sme changes recently and they now require a flash mode of DOUT VS DIO. I changed that setting and the sonoff flashed as expected.
Good video. What's your video recording setup? Interested to know.
Thanks. Nothing special. I have a 6 year old Panasonic HDC-SD600 FullHD camcorder. I do all the recording with that. I try doing this at daytime with some lights (desk lamp, ceiling lights) on to get the best quality video possible. I use a simple cheap tripod right next to the table, camera is looking down, I sit behind the tripod. My camcorder does not have a mic input (unfortunately), so I am using the built in mic. Up until about 1 month ago I was using CamStudio for the screen capture which works OK, but not great. Now I have an AverMedia Live Gamer Portable which does capture via the HDMI port of my laptop. It works like a charm, easy to use and does not eat up the resources of the laptop. No lag, no dropped audio. I use the laptop built in mic to record the audio. It is quite sub-grade to the camcorder mic. I do all the editing in Cyberlink PowerDirector. It does not have a lot of fancy features, but it gets the job done (and I still only using a few of it). I add 8dB volume boost and 5% noise reduction to the laptop audio which brings it up to (sort of) similar quality and volume as the camera audio. So that is pretty much it. So far I have not make a big investment for my UA-cam video production, but I am not making loads of money either. I am hoping the content is going to make visitors come back to me.
Csongor Varga
that was useful, thanks!
Very nice vid. Used it yesterday to flash my first sonoff. Second one was done in minutes after this.
Question: what is the sticky puddy called exactly? At 4:18 you seem to say "blue tec" or something, but google is not helping me to find it unfortunately.
It is Blue Tack. It feels like kids putty, but does not leave an oily residue. Sticks to almost anything, but can also be peeled off without leaving any mark. Great for this kind of application. I also learned this from other UA-cam-ers.
It is not melt? Is it thermoresistant? After your video i tried to use chewing gum, but it was wrong decision...
It survives that much. It gets a bit hard if exposed to a lot of heat.
Thanks! It is cool lifehack! I found analog "Patafix" and try it. It works. After soldering, let it cool down. Then it can be removed almost without a trace.
where did you get controller ip from? thanks mate
I did not, my ipad find the config site hosted by the ESP already like when you log into a wifi networks which requires login. But if I am correct the ESP will use 192.168.4.1 as the default IP address.
Csongor Varga but you changed it...did you enter ip u use to login to sonoff?
I am not sure what you mean. After configuring the wifi network, I left the sonoff on DHCP, so the router assigns and IP to the sonoff automatically. But you can specify a fixed IP in the the config if you want to.
Csongor Varga yup got it...thanks..can you make video to connect google home with sonoff(on Espeasy) ...that would be great help..thanks in advance....
Great video, what is the gum you are using at 4:19 ?
it's called BluTack
Hi, great video. Question: Does this flash work with Amazon Alexa/Echo?
ovation99 no, the original firmware works with echo.
Thanks for the rapid reply. \the Sonoff did work Echo until yesterday when the units were OTA updated and now they only work from the app on my smartphone. Thanks again.
Is it possible to restore EWeLink firmware to Sonoff ?
I think it is, but never tried. If you google ESPurna and go to the wiki, there is a section on how to flash ESPurna to Sonoff. It also says how you can back up the original firmware. The ESPTool.exe I have does not do that for some reason, and I don't have the stuff installed to run the latest python version. But it looks like there is a way. This is the link: bitbucket.org/xoseperez/espurna/wiki/Backup.md
thank you very much !
Great tutorial. I did manage to flash my device yesterday. Could even connect through my browser. But it was getting late. So I thought of going on tonight. But now I can't connect! Even tried to flash it again, which worked fine. But it is not showing in my wifi centre. Do you have any suggestions?
Maybe the settings got reset after flashing it. Did you check if ESP_0 wifi network is created again? If so just configure your wifi credentials again. Not sure why it was forgotten, did not happen with me before. Bring the Sonoff to the same room as your wifi router to make sure it has good enough reception.
Unfortunately no ESP_0 wifi network detected. It is within 4 meters of the router (clear path). Now and again there is the green LED on the circuit board which goes on but no wifi. Maybe it's dead :(
thanks for your reply though.
There is an ESP Easy Forum, you may want to post it there and hopefully get some help. Unfortunately, I have no clue either. Maybe as a last resort move it away from the router where there is no signal and see if it goes back to the ESP_0 wifi network and reconfigure it again. Unfortunately I don't know how the code works in detail to be sure.
Been busy the last weeks. But this weekend I had some time to spare. Started Domoticz on my Raspberry Pi. Using some found information on the internet, I was able to use this device. It is not dead ! ;) Now searching for a firmware for the Sonoff Touch. Thanks again for your great tutorial.
What was the solution? Did it just came back to life? Lot of people asking me similar questions, but I still don't know the answer.
how do i know my MQTT Controller IP address/ port, user, password?
Tobby Putra You don't. You install it on a device such as a pc or raspberry pi. You specify the ip, username and password during setup.
thank u, im using android for control. then what apps should i install? MQQT apps? regards
Tobby Putra I dont know any MQTT servers for android. All the ones I find are MQTT clients. So I am not sure if it is possible to do with android.
i see, i already follow ur video til min 15.00, after 15.00 i can't understand LOL..
For the life of me , i cant get the damn wires to connect in the sonoff. Can i solder it?
I know, it is a very small terminal connector. I usually tin the end of the multi core wire, so it goes in easier and does not split. If you are using double insulated cable, I only strip the outer insulation a bit, so the white plastic strain relief that you screw back on can hold down in the cable.
thanks much appreciated. turns out after i bought 5 of these, only 1 worked. good luck trying to return them. so buyer beware. good vid though
I've bought literally hundreds of Esp12-e, -haven't gotten a bad one yet. I think perhaps you are using bad power supply. I use old HP laptop power supplies, and regulate to 3.3v using 78SR3.3. piwifio.com examples
After the countdown the new IP address is shown.
At 12:55 you see the new address - 192.168.1.128 in your case.
It goes away really fast. Especially in this iOS screen, some cases it disappears before you can see it.
That's right! But I work on Windows/Firefox and there the last screen will stay as long as you type in a new address.
Good to know, I will note in my next video.
It didnt work it flashed right but it didnt appear any wifi ESP_0 or whatever.
So i tried some stuf out and i was able to make it work but i had to did it using the arduino ide software if you were not able to make it work you should try iti found the solution in a video with this title "Sonoff Wifi FIX! No ESP_0 FIX!" from a youtuber called bart he dont explain it in the video in great detail but you just need to follow the links in the description btw i was not able to make it work with the latest version of the esp8266 library the 2.4.0 didnt work for me but the 2.3.0 did work, good luck.
Very good and simple video. I successfully flash my Sonoff, but how I'll turn it on or off and does anyone know after this flash how I connect my Sonoff with Aleax Echo?
This firmware is that you can control Sonoff from other software like Domonitz, OpenHAB and other automation products. I believe the original Sonoff firmware has integration with Amazon Echo. If that is all you needed, why did you flash the firmware?
It was not working with ECHO DOT (Alexa) thats why I update it. Do you have any video which show how to configure Alexa with Sonoff by using ESP Easy.
No I don't, and I don't think you can do that with ESP Easy.
can i use the same code on the smart light switch ?
www.itead.cc/smart-home/sonoff-touch.html
After flashing, this work with the ewelink app
Nope, ewelink works with stock firmware only.
szia!
koszi a videot, hasznos! kerdesem lenne az aramkorrel kapcsolatban:
a sonoff hivatalos weboldalan levo kapcsolasi rajzon azt irja, hogy a 230v-bol eloszor gyart 5voltot, majd abbol 3.3-at. www.itead.cc/wiki/images/6/6b/Sonoff_schmatic.pdf
viszont a neten par helyen / videokban azt allitjak, hogy a tapegyseg gyart 12 voltot is.
nekem a jelenlegi projektemben szuksegem lenne egy relative gyenge 12v aramforrasra is (mindossze 15-20mA). ha valahogy ki tudnam nyerni ezt a sonoffbol, nagy elony lenne, mivel mindegyik sonoff melle tenni meg 1 kulon konnektort + 230v/12v tapot nem tul praktikus.
mielott megrendelnem a sonoffokat, szeretnem tudni, hogy valoban van-e 12v benne, vagy csak teves info...
ha nincs benne 12v, akkor tennek egy dc-dc booster es gyartanek az 5v-bol 12v-ot. mi a velemenyed (vagy esetleg le tudnad-e tesztelni), hogy a beepitett 5v tapegyseg vajon elbirna-e meg pluszba 50-60mA fogyasztast hosszu tavon?
koszi!
Szia, próbálok erre emékezni, mert most nem vagyok otthon. Lehetséges hogy bizonyos modellekben 5V-os relé van, de később áttéertek a 12V-os relére. De ha csak 5V van, akkor is lehet hogy egyszerubb egy apro zart 12V-os tápegységet berakni, és a Sonoff-ból a 220V-ot kiágaztatni. Sonoff szempontjából biztonságosabb, és szerintem nem is drágább megoldás.
koszi a valaszt!
ha valoban 12v van, akkor viszont a hivatalos dokumentacio elavult. mondjuk nekem meg mondig a jobbik eset, mert akkor csak 2 drotot kell becineznem :)
ez a legnagyobb gond ezekkel a kinai cegekkel, hogy borzaszto keves es rossz dokumentaciot keszitenek. irtam kozbe nekik is 1 mailt, hatha valaszolnak. te mikor vetted a sonoffot? esetleg amikor haza ersz, le tudnad ellenorizni a feszultseget?
I see hrs of pain in the ass settings that never work
I am planning to take a look at ESPurna and Tosmata firmwares which have predefined settings for Sonoff. I think that will be be better if you only need standard features.
If you Google that on E-bay haha
This guy is terrible, um, err, oh and on and on.
Science-is-god Yip that's me. I am not scripting nor do voice over.
5 minutes into the video and he is still repeating himself and going off on a tangent.FOR GOD SAKE GET ON WITH IT.
how to find the flash size?
Just google it. There is also a quick guide on ESP Easy homepage on the flash size of the typical ESP boards.
Yes found in on the wiki page