Skip to content

Upgrading Safely

Tasmota's own upgrade documentation opens with the wisest sentence in the project: "the first rule of upgrading: if it ain't broke, don't fix it." A plug that switches reliably is not improved by a newer version number. When you do upgrade — for a feature, a fix, or a device you are setting up fresh — the project's rules are few and absolute. This chapter follows the official Upgrading documentation and the migration notes in the v16.0.0 release notes, both of which the lab read in full.

Back up first

Configuration → Backup Config downloads the device's settings as one small file. Upgrades are supposed to preserve settings, and mostly do; the backup is for the other times, and it costs ten seconds. No backup, no upgrade — make it a reflex.

Follow the migration path, in order

Tasmota's settings format changes between major versions, and the firmware knows how to migrate settings a step at a time, not across a decade in one leap. The documentation publishes a migration path — a ladder of versions — and the rule is to climb it rung by rung. In its words: do not attempt to upgrade versions prior to v7.x straight to the current version. The v16 release notes raise the floor further: direct migration from versions before v8.1.0 is no longer supported at all, so an ancient device climbs to v8.1.0 first and then follows the ladder. Downgrading, the docs add, is neither recommended nor supported.

The minimal stepping stone

On 1 MB ESP8266 devices there is a physical problem: the flash must hold the running firmware and the incoming image, and a full image — 667 KB in this lab's build — leaves no room to receive its successor. The solution is the tasmota-minimal image from the variant chapter: flash minimal first (it is small enough to fit alongside), then flash the full image of the same release from inside minimal. Two corollaries the release notes state bluntly: never OTA from minimal to minimal — it will most likely fail and need serial flashing to recover — and compressed .bin.gz images only help on devices already running v8.2 or newer. ESP32 devices, with safeboot partitions and roomier flash, sidestep most of this, which is another quiet dividend of the newer chip.

The two routes, once prepared

Upgrading itself is easy, by web or by command — which is exactly why the preparation matters:

  • Web UI: Firmware Upgrade → give it an OTA URL, or upload the file.
  • Command: set OtaUrl <url> then Upgrade 1 — the same command language, from console, serial or MQTT.

Then leave the device alone while it works, and check Status 0 afterwards: the version you expected, your settings intact.