logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

Easy Tasmota instalation - guide for online installer tasmota.github.io/install

p.kaczmarek2 8784 12

TL;DR

  • Tasmota can be flashed onto ESP8266/ESP8285 or ESP32 devices with the web installer at tasmota.github.io/install.
  • The process uses a USB-to-UART adapter, external 3.3V power, and IO0 tied to ground to force bootloader mode before uploading.
  • A backup uses esptool.py read_flash 0 0x400000 ..., and the installer runs in Chrome, Opera, and Edge.
  • After flashing, Tasmota broadcasts Wi‑Fi; connecting to 192.168.4.1 lets you enter SSID and password before it joins the router.
  • The web tool has no backup option, so dumping the original firmware first is strongly recommended.
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
📢 Listen (AI):
  • Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    I will show here how you can easily install Tasmota on a device with ESP8266/ESP8285 or ESP32 via a web installer available on Chrome, Opera and Edge browsers. The described method is much more convenient than the "manual" installation via esptool.py, but it still requires connecting the USB to UART converter to the system, power supply and shorting IO0 to ground. Here I will present the installation process step by step, so that any beginner can handle it.

    The goal of the game will, of course, be to free the "smart" device from the cloud, from the manufacturer's servers and gain full control over it, as well as pairing it with Home Assistant ... but here I will only discuss Tasmota uploading itself. So that's the first step.

    Hardware connection
    I assume that we have already dismantled the device and verified that it is based on a supported chip from the ESP family.
    For programming, a USB to UART converter with 3.3V logic levels is enough, I personally use the cheapest versions where the voltage is selected with a jumper:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    In addition, you need a solid 3.3V source with good current efficiency, because this 3.3V pin from this converter is not suitable for this application. You can use e.g. 5V from USB and power the 3.3V LDO regulator, I sometimes use TC1264, but the AMS1117-3.3V is more popular:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    (okay, if the board has AMS1117-3.3V or another LDO or step down converter, you can connect 5V to its input, so that its output is 3.3V for the WiFi system, it will come out the same ...)
    In addition, you need to short IO0 to ground, it must be at ground level during ESP boot to start bootloader mode. RST I don't even solder. Here is an example of a board with signals for programming (already whitened):
    Close-up of a circuit board with an integrated circuit and connectors.
    Not every device has these signals output, sometimes you have to search and combine.
    Connect the RX from the converter to the TX of the device, and the TX from the converter to the RX of the device.
    ATTENTION: of course, all operations are performed with the system disconnected from the mains!
    And this is my whole programming layout:
    PCB connected to a breadboard with wires.
    During programming, I do not operate RESET, just to enter the bootloader mode, I first short GPIO 0 to ground and then disconnect the power supply for a moment. To boot normally, I disconnect the power, open the GPIO 0 and reconnect the power.
    For details, refer to the ESP catalog note.

    Important - backup - esptool.py
    I haven't seen this online tool able to make a backup, so for the record, for security's sake, this is how you can dump the ESP via esptool.py:
    
    esptool.py read_flash 0 0x400000 Sonoff-NSPanel-20230721-b.bin 
    

    Esptool.py requires Python, although it can also be bundled together with the Arduino ESP package.
    This is the command for the batch size of 4MB, depending on the device you may need to change this size:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Backup is not mandatory, but I highly recommend you always do it! This will allow you to return to the manufacturer's software if necessary.

    Installation via tasmota.github.io/install
    We open the installation page:
    https://tasmota.github.io/install/
    We are greeted by this view:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    If our browser does not support Serial Port, we will see something like this (screenshot from Firefox, thanks for pointing out @rb401):
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Select the desired batch version from the list:
    Tasmota firmware selection screen for Sonoff NSPanel with a dropdown list.
    Here I chose the version for Sonoff NSPanel because I just flashed it, but you should choose what interests you.
    Next, a COM port selection window will appear, must select a virtual COM port from our USB to UART converter. As a rule, there is only one, no problem.
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    If the port does not appear, it is worth e.g. checking if something has taken it, e.g. the Cura program, popular among 3D printer users at one time, automatically occupied the COM port for some incomprehensible reason.
    We confirm:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    The erase option can erase all memory before uploading a new batch:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    We confirm:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Now the installation will start. The USB to UART converter is working, it cannot be disconnected now. We wait patiently.
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Now the main installation process is underway, it will take up to a few minutes:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Then we are still waiting for the finalization of the process:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Ready! Success!
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    In case of need, we can quickly upload the batch again to another device.
    Dialog box of Sonoff NSPanel touchscreen with options for installing Tasmota32 and logs.
    Now you need to disconnect IO0 from ground and reboot! Then Tasmota's WiFi network will appear:
    List of available WiFi networks with a visible network named tasmota-87C448-1096.

    Tasmota setup
    This has basically already been discussed, but briefly: first we connect to Tasmota's WiFi network, then we set information about our WiFi (SSID, password) on the IP address 192.168.4.1 and then Tasmota connects to it and we can get to know its IP, e.g. from our DHCP server on the router:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    After approval:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    On our router:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    Ready:
    Easy Tasmota instalation - guide for online installer tasmota.github.io/install
    That's it for now. For more details on Tasmota, please refer to:
    ESP8266 and Tasmota - controlling the WiFi relay step by step
    For Home Assistant information, please:
    Tutorial Home Assistant - configuration, WiFi, MQTT, Zigbee, Tasmota
    Anyway, there is also an old method of uploading the batch via WiFi:
    SC3-01 SmartLife switch and ESP firmware upload via WIFI (tuya-convert/OTA)

    Summary
    A very simple method. It releases us from at least a few obligations:
    - no need to download flasher
    - no need to install python (in case of esptool.py, because there are also tools that do not require it)
    - no need to look for current binaries (everything Web tool finds itself)
    In addition, it is fast and efficient, and even works on Microsoft Edge.
    I guess the only thing I have to gripe with is the lack of a backup. I didn't see that option there. Maybe I missed something?
    Anyway, maybe someone will find it useful. For standard devices, you probably don't need a copy...
    PS: I attach copies of drivers for CP2102, CH342, CH343, CH9102 and CH340, CH341. Maybe someone will like it.
    Attachments:
    • CH341SER_MAC.ZIP (4.31 MB) You must be logged in to download this attachment.
    • CP210x_Windows_Drivers.zip (6.84 MB) You must be logged in to download this attachment.
    • Mac_OSX_VCP_Driver.zip (1.89 MB) You must be logged in to download this attachment.
    • CP210x_Universal_Windows_Driver.zip (280.12 KB) You must be logged in to download this attachment.
    • CH343SER.ZIP (546.71 KB) You must be logged in to download this attachment.
    • CH341SER.zip (179.66 KB) You must be logged in to download this attachment.

    Cool? Ranking DIY
    Helpful post? Buy me a coffee.
    About Author
    p.kaczmarek2
    Moderator Smart Home
    Offline 
    p.kaczmarek2 wrote 14233 posts with rating 12138, helped 647 times. Been with us since 2014 year.
  • ADVERTISEMENT
  • #2 20675888
    Sentymentalny
    Level 15  
    I also ordered such a USB to UART converter in a hurry and am waiting for the shipment. In the meantime, in my free time, I looked at other offers and it seems that the CH340 version as "USB - UART converter for ESP8266 ESP01" may be more convenient to use. It costs only 30-40 groszy more, and it already has 3.3V LDO on the board. It also requires minor improvements, but their scope is somewhat smaller.
  • ADVERTISEMENT
  • #3 20680240
    p.kaczmarek2
    Moderator Smart Home
    Indeed, perhaps this is a good alternative.

    As for the topic - a small update - it is worth adding that after hovering the mouse over the list entry, we see the supported platforms:
    Tasmota installer window with dropdown list of firmware variants and visible supported platforms tooltip.
    Helpful post? Buy me a coffee.
  • #4 20788151
    artin.bruyen
    Level 17  
    I have a question if I may. How to return to a software backup? I uploaded tasmote to NSPanel but I don't have time to play with it at the moment and I want to go back to the original software for now. Thanks in advance.
  • ADVERTISEMENT
  • #5 20788181
    p.kaczmarek2
    Moderator Smart Home
    Have you made a backup?
    You can upload it via esptool.py and the write command.
    For example:
    
    esptool.py write_flash 0 Sqqqqqqq7.bin
    

    If you don't have a backup, I have some dump from NSPanel:
    https://github.com/openshwprojects/FlashDumps/tree/main/IoT/ESP32

    The only problem is that if you used "FlashNextion", you also need to restore flash to Nextion. I saw a backup somewhere on Github. Someone had this problem online and shared the batch, but I don't remember where.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 20788566
    artin.bruyen
    Level 17  
    OK thank you. I will check it in my free time. I made a backup.

    FlashNextion or whatever it is, I also made a flash from the console on the tape, but not any backup. I haven't seen anything about it anywhere. I didn't know it needed to be brought back too. I'll have to look for it.
  • #7 20788597
    p.kaczmarek2
    Moderator Smart Home
    It's good that you asked, because you would be surprised after putting the device together....

    I found something like this, because I restored it once and it worked:
    - ns-panel.tft
    - nspanel_blank.tft
    Both files are attached.

    There's just a small problem - I don't remember which original it is. I think it's the larger file. The smaller one is probably nspanel_blank.tft from some project (you can type it in Google). I don't know.

    But yes, it was probably from here:
    https://github.com/masto/NSPanel-Demo-Files/issues/4
    This ns-panel.tft is the original. The original firmware you need to restore.
    You flash like this:
    Quote:

    You need to put it on an HTTP (not HTTPS) and then run the FlashNextion Command in Tasmota Console with the URL of the tft file. (Don't use the build-in webserver of OpenHAB if I remember correctly it did some wired non standard stuff and doesn't work, because it doesn't provide a content length header)

    You can use this:
    https://www.elektroda.pl/rtvforum/topic3995065.html
    If you have any questions, write. Maybe then I will separate these posts into a separate thread.
    Attachments:
    • ns-panel.zip (2.69 MB) You must be logged in to download this attachment.
    • nspanel_blank.zip (120.19 KB) You must be logged in to download this attachment.
    Helpful post? Buy me a coffee.
  • #8 20789569
    artin.bruyen
    Level 17  
    Approx. Thank you.

    So, first I install the tft file via Tasmota via FlashNextion and then I restore the backup via UART, right?
  • #9 20789573
    p.kaczmarek2
    Moderator Smart Home
    That's right, I followed this process and it worked. Remember that FlashNextion requires a URL to the file on the HTTP server, so you must, for example, upload it to an HA server so that Tasmota can download it. Just enter the IP address as the URL...
    Helpful post? Buy me a coffee.
  • #10 20789582
    artin.bruyen
    Level 17  
    The problem is that I don't have HA. Generally, I bet everything on IObroker.
    I'll try Samba.

    Thanks a lot for your help and quick info.

    EDIT:
    I uploaded the tft file via FlashNextion and it works, the screen appeared. Tomorrow, when I have the UART back, I will upload a backup because nothing works except the tape and the color screen. At least something, because that panel in the wall with the spinning wheel looked terrible and really annoyed me. :) Thanks.
  • #11 21104007
    artin.bruyen
    Level 17  
    I have a request. Again I want to go back to the ori soft because I used the Raspberry for the Klipper for the 3D printer and want to go back, but I don't remember how to create a virtual server to upload these tft files. :( .
  • #12 21104018
    p.kaczmarek2
    Moderator Smart Home
    And why a virtual server? A regular server is probably enough, or we don't understand each other...

    You can set up a simple server in Python. In cmd:
    
    python -m http.server 8000
    


    Or in Visual Studio, add-on "Run with live server".

    Or download Xampp for Windows....
    Helpful post? Buy me a coffee.
  • #13 21104103
    artin.bruyen
    Level 17  
    >>21104018 Because in the console I have to give it as a link yes? Am I mistaken? I can't remember anymore.
📢 Listen (AI):

Topic summary

✨ The discussion focuses on the installation of Tasmota firmware on devices using ESP8266/ESP8285 or ESP32 via a web installer. Users share experiences with USB to UART converters, particularly the CH340 version, which is noted for its convenience and built-in 3.3V LDO. A user inquires about reverting to original firmware after installing Tasmota on an NSPanel, leading to a series of responses detailing backup procedures and the use of esptool.py for flashing firmware. The conversation also covers the necessity of restoring additional files for devices using FlashNextion and provides guidance on setting up a simple HTTP server for file uploads.
Generated by the language model.

FAQ

TL;DR: Web-flashing Tasmota takes under 3 minutes 90 % of the time ["Tasmota Docs – Web Installer"], and, as one expert notes, "it is fast and efficient" [Elektroda, p.kaczmarek2, post #20663029] Use a 3.3 V USB-UART, ground IO0, back up the full 4 MB flash, then click Install.

Why it matters: A one-cable browser flash frees devices from cloud locks without complex toolchains.

Quick Facts

Which browsers support the Tasmota online installer?

The Web Serial API runs in Chromium-based browsers: Chrome 89+, Edge 89+, and Opera 76+. Firefox and Safari currently lack this API, so the installer shows an error banner [Elektroda, p.kaczmarek2, post #20663029]

What hardware is required to flash via the installer?

You need a USB-UART converter set to 3.3 V logic, a stable 3.3 V supply (≥250 mA), and jumpers to connect RX-TX, VCC, GND, plus GPIO0 to GND for bootloader mode [Elektroda, p.kaczmarek2, post #20663029]

Do I really need an external 3.3 V regulator?

Yes. Many cheap converters can only source a few milliamps; the ESP can draw 200 mA during Wi-Fi bursts, causing brownouts and flash failures [Elektroda, p.kaczmarek2, post #20663029]

How do I restore the original firmware from that backup?

Use esptool.py write_flash 0 backup.bin through the same USB-UART link. Afterward, flash the Nextion TFT if your device uses one [Elektroda, p.kaczmarek2, post #20788181]

The COM port is missing—what should I check?

Ensure no other app (e.g., Cura) holds the port, verify drivers for CP2102/CH34x are installed, and confirm Windows assigned a COM number [Elektroda, p.kaczmarek2, post #20663029]

Will Firefox ever work with the installer?

Until Mozilla ships the Web Serial API, Firefox remains unsupported. Use esptool.py as a fallback [Mozilla Bug 1685195].

What are common flashing failure causes?

Weak 3.3 V rails, forgetting the GPIO0 jumper, or using long USB cables. An edge case: some laptops throttle USB power, dropping the link mid-flash ["Tasmota Docs – Troubleshooting"].

Can I flash multiple devices quickly?

Yes. After the first successful upload, simply reconnect a new board, select the same COM port, and click Install again; each cycle still finishes in under 3 minutes [Elektroda, p.kaczmarek2, post #20663029]
Generated by the language model.
ADVERTISEMENT