Skip to content

Releases

Free-Shelly OTA 0.8.0

Free-Shelly OTA 0.8.0 Pre-release
Pre-release

Choose a tag to compare

@oxynatOr oxynatOr released this 10 Nov 14:33
Immutable release. Only release title and notes can be modified.
63654ac

Experimental. Put your own ESPHome image on a Shelly (Gen2 ESP32, Gen3 ESP32-C3, Gen4 ESP32-C6) with the stock updater. Have UART or USB access as your way back before you start, and use a device you can afford to lose.

Start here: README · device pages · commands · CHANGELOG

What's new in 0.8.0

Nothing you used stops working. Two visible changes: MiniPMG3 refuses a package on Shelly firmware older than 1.3.3 (update with Shelly's own update first, then send), and ota.py inspect --device prints one extra NOTE for a package whose partition table is at 0x8000 on a profile that expects another address.

Slot swap (experimental)

  • build --pt-addr 0x8000 ships Shelly's partition table at 0x8000 together with ESPHome's bootloader; send --slot-swap then swaps the app subtypes in that table when the installer will write to slot 1, so ESPHome's bootloader starts that slot and no restore is needed first. Both are opt-in; without them build, send and restore do what they did.
  • Seen working on dev boards (ESP32-C6 and ESP32-C3, the Gen3 and Gen4 layouts, Shelly 2.0.1 to 2.2.0-beta2), including the way back over the network (Shelly's app image pushed with esphome upload --file, wait, ota.py restore). On a real device (a 2PM Gen3) a plain send of a --pt-addr package and the way back were reported; --slot-swap itself has not run on a real device yet.
  • If it goes wrong, a serial connection and a flash dump are needed. Slot swap. Idea, code and the first log by WulffTech.

TLS and downloads

  • ota.py ca takes Shelly's root CA out of a package and writes it as a PEM file; fetch --cafile PEM and build --download --cafile PEM then keep TLS on instead of --insecure. ca

Devices

  • 43 to 61 profiles: 16 Shelly Plus and Pro devices, PlusI4 and the Shelly AZ Plug (PlugAZ, partly checked on a real plug, thanks to tilenkranjc). Five Gen2 profiles went through the update on an ESP32 dev board (🔬); the others only build and verify (🧪).
  • PlugMG3-beta is confirmed on a real plug (thanks to onkelfarmor), PlusI4 is partly checked (thanks to niki11euro).
  • 61 profiles: ✅ 13 · 🟡 8 · 🔬 11 · 🧪 29 (never flashed).

Fixes

  • send no longer fails with Address already in use on Linux right after the slot check (thanks to CzarofAK, #133).
  • The slot check works again after a restore reboot left UDP logging on (found with the AZ Plug).
  • send and restore compare a package with the official ZIP of its own base version, so restore --version 2.2.0-beta2 is no longer refused when the installer would write to slot 1 (#142).

Documentation

  • A documentation site, a step-by-step guide, a developer guide, CONTRIBUTING.md (with a rule for AI-assisted contributions), a restructured and shorter README, long pages split into shorter ones, a safety point on every device page (the ESPHome config is your responsibility, and a wrong ota:, api: or Wi-Fi setting can lock a device out), and new credits groups.

What is not checked

  • --slot-swap on a real device; other Gen3 and Gen4 models than the boards above.
  • 29 profiles were never flashed, 11 only on a dev board.

Thanks to everyone who sent a device report; the names are in CREDITS.md.

Free-Shelly OTA 0.7.0

Free-Shelly OTA 0.7.0 Pre-release
Pre-release

Choose a tag to compare

@oxynatOr oxynatOr released this 29 Oct 09:49
Immutable release. Only release title and notes can be modified.
a9b74ae

Experimental. Put your own ESPHome image on a Shelly (Gen2 ESP32, Gen3 ESP32-C3, Gen4 ESP32-C6) with the stock updater. Have UART or USB access as your way back before you start, and use a device you can afford to lose.

Start here: README · device pages · commands · CHANGELOG

What's new in 0.7.0

One profile is gone, one error is new. Everything else you used keeps working.

  • Gone: BluGwG3 (BLU Gateway Gen3). It is a gateway that connects Shelly BLU devices and controls them; an ESPHome image would take that job away. Nobody had flashed it. fetch, build, send, restore and devkit no longer know the name. The profile count stays 43, because PlugMG3-beta is new.
  • New error: build stops when an official package has another partition table than the profile, where it used to finish. It was found with the Plug M Gen3 beta firmware (2.2.0-beta2), whose slots are larger. Packages of the 43 profiles are not affected (a test checks each one).

Compile in the tool

  • python ota.py build PlugSG3 --compile my-plug.yaml goes from your ESPHome YAML to the package in one command. It runs the esphome command, or Docker if there is none (--runner, --image choose). build APP.bin ... works as before.
  • Docker keeps the toolchain in a volume (free-shelly-esphome-cache, a few GB). The first compile downloads it and builds everything (about a minute and a half on the test machine), later ones take seconds. It also works with Docker on Linux as your own user, and build tells you if Docker is not running.
  • Docker has to be running (build checks and says so if not). With the esphome command, github:// packages need git.
  • The config check also follows packages: and !include (also github://): if the YAML itself has no esp32: block, ESPHome puts the config together and the check runs on that, before the compile, so a config without Shelly's partition table is refused in seconds.
  • Tried: a package built with --compile is the same as one built by hand (only the compile time inside the app differs). One went through the whole update on a real Plug M Gen3 (from Shelly's factory firmware 1.8.99; ESPHome 2026.10.0 started with Shelly's partition table) and one on an ESP32-C6 dev board. Compile · Troubleshooting

Devices

  • ✅ Shelly 1 Gen3 and 2PM Gen3 are confirmed on real devices, 🟡 1PM Gen3 is partly checked (reports from chusovich, majoto85 and WulffTech, thank you).
  • Plug M Gen3 with Shelly's 2.2.0-beta2: new profile PlugMG3-beta (🟡) for the larger layout; send refuses its package on a device with older firmware. Thanks to onkelfarmor for #102. Which other devices get another layout in that beta is in Bootloader and slots.
  • 43 profiles: ✅ 10 · 🟡 7 · 🔬 7 · 🧪 19 (never flashed).

Smaller

  • Device pages: the "Before you start" checklist is a task list now (- [ ], one item per line), and the esp32: snippet no longer has COMPILER_OPTIMIZATION_SIZE: y. ESP-IDF ignored that line (it logged "ignoring malformed line"); the app is exactly as large without it, because ESPHome already builds for size. A config that still has it builds the same. The "app is larger than the slot" error of build no longer recommends it.
  • send no longer waits for a reverse lookup of its own address before it starts; behind a VPN that could add 12 seconds and more.
  • pyproject.toml for development (pip install -e .[ble]). The tool still runs from the checkout as python ota.py.

What is not checked

  • A package built by --compile was flashed on one real device (Plug M Gen3) and on a dev board, with a plain test config (SoftAP only, no pins). A config with your own pins, Wi-Fi and Home Assistant was not part of it.
  • 19 profiles were never flashed, seven only on a dev board.

Thanks to everyone who sent a device report; the names are in CREDITS.md.

Free-Shelly OTA 0.6.0

Free-Shelly OTA 0.6.0 Pre-release
Pre-release

Choose a tag to compare

@oxynatOr oxynatOr released this 24 Oct 09:10
Immutable release. Only release title and notes can be modified.

Experimental. Put your own ESPHome image on a Shelly (Gen2 ESP32, Gen3 ESP32-C3, Gen4 ESP32-C6) with the stock updater. Have UART or USB access as your way back before you start, and use a device you can afford to lose.

Start here: README · device pages · commands · CHANGELOG

What's new in 0.6.0

Nothing you used before breaks. restore prints less text, send has two new options, and the new command needs a package that is optional.

Devices

  • 43 profiles now (it was 18). 25 new Gen3 and Gen4 profiles: relay, dimmer, energy, input and presence devices, the Outdoor Plug S, the BLU Gateway and more. Their state:
    • ✅ 8 and 🟡 5: ran on a real device (unchanged: Plug M, Plug S, H&T, PM Mini, Multicolor Bulb, Mini 1, Plus Plug S, Plus Plug IT confirmed; Plug PM, Duo Bulb, Power Strip, Mini 1PM Gen3 and Plus Uni partly checked).
    • 🔬 7 new: the whole update ran on a dev board, not on the real device (Mini 1 Gen4, Mini 1PM Gen4 and its Zigbee variant, EM Mini Gen4, Dimmer Gen4, Dimmer 0/1-10V PM Gen4, i4 Gen4).
    • 🧪 23: the package builds and verifies, nobody has flashed it. Please report if you do (device report).
  • The README now lists only the devices that ran on real hardware. The complete list with chip, partition table, slot size and state is on the device pages.
  • Device pages link the ESPHome device page where one exists, have a Note column in the list, and are shorter (the checklist is one line, three boxes became one).
  • The Mini 1PM Gen4 page has its pins (button GPIO22, BL0942 UART): read from the stock firmware, not confirmed on a device, and marked so.

The tool

  • ota.py devkit writes a flash image of a package for a dev board, so the whole update can be played through on a board instead of a device, for any profile. Test on a dev board.
  • ota.py ble (new, experimental) gives a device without Wi-Fi its Wi-Fi over Bluetooth, e.g. the Zigbee firmware that opens no access point: ota.py ble wifi <SSID> -, then send with the address it prints. It needs pip install bleak and a Bluetooth LE adapter. Seen on one Zigbee dev board only, not on a real unit yet. ble.
  • send and restore: the progress line shows the time left; a slow but steady download extends the wait on its own (up to --max-wait, default 3600 s); the wait for the update slot shows a live line; restore prints one note instead of three.
  • build warns if the image was built without allow_partition_access: true (ESPHome cannot update the bootloader later without it).
  • The log view hides the harmless packet read timed out lines of the power meter chip below --log-level debug.

What is not checked

  • 23 profiles were never flashed, seven only on a dev board.
  • ble ran on one board; the Zigbee devices themselves are untested.
  • Pins marked "read from the stock firmware" were not measured.

Thanks to everyone who sent a device report; the names are in CREDITS.md.

Free-Shelly OTA 0.5.0

Free-Shelly OTA 0.5.0 Pre-release
Pre-release

Choose a tag to compare

@oxynatOr oxynatOr released this 21 Oct 22:07
Immutable release. Only release title and notes can be modified.
da2dee7

What's new

A clearer send. send, restore and log now show what the device does while it updates.

  • Progress in %, and the device's own confirmation instead of only "the device downloaded the ZIP".
  • Log levels: --log-level quiet|normal|verbose|debug|raw, or -q, -v, -vv.
  • --log-file writes the whole run to a file. This is the file to attach to a device report. ota.py log --replay FILE shows a saved log without a device.
  • Better errors: a device that has only just started ("Not committed") gets an explanation and a wait instead of a failure. A file that is not a ZIP, usually a DevKit image, says what it is. No Python tracebacks for Ctrl+C or file errors.
  • Messages are wrapped to the terminal, ota.py list shows one line per device.

Devices

  • Mini 1 Gen3 is confirmed on a real device (thanks @jjanssen95, #69). The NTC of the stock firmware uses B = 3950 (read from the official 2.0.1 app), not the 3350 of the ESPHome device page.
  • H&T Gen3: Shelly's update API answers per installed version. fetch HTG3 --from-version 1.4.4 gets the stable 2.0.1.

Docs

  • New guide: build your own UART adapter from an ESP32 dev board (docs/recovery-uart.md).
  • New README header, docs/commands.md is complete again, credits for the new reporters.

Still experimental: the whole chain is confirmed on real devices only where the README table shows ✅. Keep UART access ready.

Full list: CHANGELOG · Full changelog: v0.4.0...v0.5.0

Free-Shelly OTA 0.4.0

Free-Shelly OTA 0.4.0 Pre-release
Pre-release

Choose a tag to compare

@oxynatOr oxynatOr released this 18 Oct 10:43
853e9ca

Experimental. Put your own ESPHome image on a Shelly (Gen2 ESP32, Gen3 ESP32-C3, Gen4 ESP32-C6) with the stock updater. Have UART or USB access as your way back: the recommended method replaces Shelly's bootloader, and if that does not suit a model only UART recovers it. This voids your Shelly warranty. The project contains no ESPHome binaries and no Shelly firmware; a package built from your config can contain your Wi-Fi password, so never share it.

Start here: README · device pages · roadmap

What's new in 0.4.0

Read this if you used the tool before: send now stops before it sends a package that keeps Shelly's bootloader, that is a package built without --esphome-factory. Shelly's loader runs such an image for three starts, then goes back to the other slot and keeps it; only an ESPHome OTA during those starts changes that, once, and later OTAs are written but never started (#46). Build with --esphome-factory. --force sends anyway; the official package (restore) is not affected.

Devices

  • 17 profiles now. New: PM Mini Gen3 (✅ the first report from outside: flashed over the network, ESPHome OTAs took effect), Plug PM Gen3 (🟡 flashed, readings not checked), Plus Uni (🟡 the first report; its package kept Shelly's loader), Pro 3EM and Mini 1 Gen3 (🧪 built and verified, not flashed).
  • Shelly's stable 2.1.0 (2026-10-14) was compared with 2.0.1 for ten profiles: bootloader, partition table and filesystem image are identical, so no profile had to change. A Plug M Gen3 from factory firmware 1.8.99 also worked with the 2.1.0 package.
  • Every profile sets boot_min_version: 1.0.9 now (the last five, Mini 1PM Gen4 (+ Zigbee), The Pill, Plus Plug S and Power Strip (Zigbee), got it in this release): the default is skipped on a unit that already runs Shelly's loader 1.0.3, and ESPHome's bootloader is then not written.

The tool

  • ota.py devkit writes a flash image of a package for a dev board, so the whole update can be played through on a board instead of a device, for any profile. A classic ESP32 with 4 MB fits the Plus Uni and Plus Plug S, an ESP32-C3 with 8 MB the Gen3 devices. Not run on a board yet, see Test on a dev board.
  • send checks that the device can reach your PC before it sends; --dry-run fails with the device's own error if it cannot.
  • send --watch warns when the log says update? 0 (Shelly's bootloader was kept), and no longer claims that no bootloader update is needed.
  • send no longer blames the firewall when a firmware does not name its update slot (Plug M Gen3 on 1.8.99).
  • fetch and build --download take --channel beta and --from-version; the default cached firmware is the newest stable one, a beta no longer wins silently.
  • build --dry-run no longer deletes an existing package, and a second build on the same day does not replace the first without --force.
  • The model check understands a comma separated compatible list (Pro 3EM).
  • --esphome-yaml warns about a missing allow_partition_access, also with --esphome-factory; all config examples now have it.
  • ota.py -h is grouped (Prepare, Build, Deploy, Tools) with a typical run and what to know before you flash.

Documentation

  • A new README, one layout for all device pages and for the topic pages, a roadmap and a credits page. The route without ESPHome's bootloader is described as Shelly's loader really works.
  • The example ESPHome configs moved to oxynatOr/esphome-configs (Power Strip, Multicolor Bulb with its light packages, Duo Bulb).
  • Issue forms for device reports, bugs and new devices, with a label scheme.

Hardware state

✅ Confirmed (flash ran on a real device) 🟡 Flashed, part not checked 🧪 Built and verified, not flashed
Plug M Gen3 · Plug S Gen3 · H&T Gen3 · PM Mini Gen3 · Multicolor Bulb Gen3 · Plus Plug S (Gen2) Plug PM Gen3 (readings) · Power Strip 4 Gen4 (outlets) · Duo Bulb Gen3 (OTA not run) · Plus Uni (ESPHome's bootloader step) Power Strip (Zigbee) · The Pill · Mini 1 Gen3 · Mini 1PM Gen3 · Mini 1PM Gen4 (+ Zigbee) · Pro 3EM

Please test

Report what happened, also when it worked: Device report. Your device is missing? Request a new device.

Full list of changes: CHANGELOG.

Thanks to imsandli (PM Mini Gen3 report), 815rx1 (Plug M Gen3 reports) and yasdfgr (Plus Uni report, which led to the send change) for testing, and to tasmota/mgos32-to-tasmota32, inventor7777/ESPHome-Shelly-Plus-Plug-US and automatous-io/shelly-gen4-esphome, whose research this builds on.

Free-Shelly OTA 0.3.1

Free-Shelly OTA 0.3.1 Pre-release
Pre-release

Choose a tag to compare

@oxynatOr oxynatOr released this 07 Oct 07:49
9d910ce

Experimental. Put your own ESPHome image on a Shelly (Gen2 ESP32, Gen3 ESP32-C3, Gen4 ESP32-C6) with the stock updater. Have UART or USB access as your way back: the recommended method replaces Shelly's bootloader, and if that does not suit a model only UART recovers it. This voids your Shelly warranty. The project contains no ESPHome binaries and no Shelly firmware; a package built from your config can contain your Wi-Fi password, so never share it.

Start here: README · device pages

What's new in 0.3.1

New profiles with a partition CSV and a device page each. They build and verify, but nobody has flashed them yet:

  • Shelly The Pill (Pill; reported: the USB-C port exposes USB Serial/JTAG, so it can be flashed and recovered with esptool)
  • Shelly Mini 1PM Gen3 (Mini1PMG3, partition table at 0xf000)
  • Shelly Mini 1PM Gen4 and the Zigbee variant (Mini1PMG4, Mini1PMG4ZB)

This tag also contains a Cury profile (Shelly Cury). Ignore it: the device has an NFC reader and regulated heaters that ESPHome cannot drive, and the profile has been removed on main.

What's new in 0.3.0

  • Plus Plug S (Gen2, classic ESP32) works without UART: restore, then send with --esphome-factory.
  • send checks the update target slot before it sends a package that replaces the bootloader. If the installer would write the app to a slot ESPHome's bootloader does not start, it refuses and points to ota.py restore.
  • Clearer build errors: both header values side by side and a Fix: line with the ESPHome setting that worked.
  • Colored messages (yellow warnings, orange critical warnings, red errors, green success); NO_COLOR and --color control them.
  • Versions you can tell apart: ota.py --version, a version line on every command, a build report with the tool and profile revision, and devices/profiles.lock guarding profile changes.
  • New documentation: a short README plus one page per device, and pages for commands, bootloader and slots, troubleshooting, recovery over UART and the credential check.

Hardware state

✅ Confirmed (flash ran on a real device) 🧪 Built and verified, not flashed
Plug M Gen3 · Plug S Gen3 · H&T Gen3 · Power Strip 4 Gen4 (boots, outlets not checked) · Plus Plug S (Gen2) · Multicolor Bulb Gen3 (flash only; LED driver still being checked) Duo Bulb Gen3 (ESPHome config runs over UART; OTA not run) · Power Strip (Zigbee) · The Pill · Mini 1PM Gen3 · Mini 1PM Gen4 (+ Zigbee)

Since this tag

main has moved on: issue forms (device report, bug, new device), pin tables on the device pages and documentation for add-device, inspect and clean. The code of the tool is the same as in this tag.

Please test

Report what happened, also when it worked: Device report. Your device is missing? Request a new device.

Full list of changes: CHANGELOG.

Thanks to tasmota/mgos32-to-tasmota32, inventor7777/ESPHome-Shelly-Plus-Plug-US and automatous-io/shelly-gen4-esphome, whose research this builds on.