If you are having trouble with the above method or use Linux/Mac this method is much faster and easier to do, as you don’t need to create a special hotspot with a specific password:
Take a look at this repository and download the script:
Quick instructions:
1.- Power on the sonoff
2.- press the button for 5 seconds
3.- Connect to the ITEAD-xxx hotspot
4.- Browse to http://10.10.7.1
5.- Enter your home wifi settings
6.- Connect your computer back to your home network
7.- Locate the IP address of the sonoff given by your router.
8.- Run the script this way:
./sonoff-ota-flash.sh -i ip_address_of_sonoff
Wait for a bit until the flashing finishes. And voilà!, Tasmota will be installed
Flashing ESPHome:
9.- Connect to the tasmota-xxx hotspot
10.- Browse to 192.168.4.1
11.- Enter your home WiFi Settings
12.- Connect back to your home network
13.- Browse to http://ip_address_of_sonoff in your home network
14.- Select firmware upgrade and select the esphome binary file you have created.
Explanation video: