EcoSPM - Flash it yourself (DIY)

Put the EcoSensors firmware on your own Shelly PM Mini Gen3

A brand-new Shelly PM Mini Gen3 still carries the Shelly firmware. To switch it to the EcoSensors firmware, it is flashed once by cable (serial). For this the programming connections on the board have to be soldered on (difficulty: high). All later updates are done wirelessly.

Danger to life: the Shelly works with mains voltage (230 V). Work only on a device that is completely disconnected from the mains, and while flashing connect it exclusively to the USB serial adapter (3.3 V). All steps are at your own risk; the manufacturer's warranty may be voided.

What you need

  • soldering iron and thin wires
  • a USB serial adapter with 3.3 V (not 5 V!)
  • a computer with Chrome or Edge
  • the file "Full image (first install)" for the EcoSPM from the Firmware page

Connections

Connection on the Shelly Link to the USB serial adapter
3V3 3.3 V
GND GND
RX TX of the adapter
TX RX of the adapter
BootSEL GND – only for starting in flash mode
Reset only connected briefly to GND to restart

The connections are small solder points to the left of the radio chip, GND is next to the print J10. Make the dashed link BootSEL – GND for flashing only. The chip is an ESP32-C3 with 8 MB flash.

Connections of the Shelly PM Mini Gen3 and wiring to the USB serial adapter

Board photo: ESPHome Devices, licence GPL-3.0; labels and wiring added.

The photo shows the board “Gen3 PM 0.1.0”. If yours looks different, check the pinout before you connect anything.

Flashing the firmware

  1. Disconnect the Shelly from the mains, open the housing, solder on the connections.
  2. Connect BootSEL to GND (flash mode) and connect the adapter, or trigger Reset briefly.
  3. Flash the firmware with the ESP Web Tool as described in the general guide, way D (address 0).
  4. Disconnect the adapter, remove the BootSEL link, remove the wires and reassemble the Shelly.
  5. Continue with Installation and Commissioning.