Sonoff M5-3C-80W light switch from Matter to ESP32 - is it possible to change the firmware?

Matter's M5-3C-80W three-channel wall switch allows direct or remote (via WiFi) control of three receivers and works with the eWeLink app, in addition to offering Matter protocol support. It is distinguished by three "clicking" buttons, which is a nice change from the ubiquitous touch solutions. The whole thing is available to buy for £80 and is built on ESP32. Here I will show its interior and see if it is possible to upload Tasmota to it?
Let's start with the packaging - the markings make it clear about Matter:




Now the contents of the kit:




Immediately striking is the unique QR code from Matter. Instructions:



I've already presented the eWeLink application, and I plan to cover Matter separately, so now it's time to present the interior.
We remove the top cover:


Here it is slightly different to the Tuya products. The front panel is also removable, but here it is separately completely enclosed in a plastic housing.


The ESP32-DOWD-R2-V3 is directly on the PCB, right next to it is the Flash memory with its program. We also have a programming connector here and a 3.3V LDO providing power. I also see additional transistors - I wonder if they are from controlling the relays on the other PCB, or something else? Let's check.




The executive board can still be viewed:



Here, however, I see transistors from the relay control (J3Y as usual), so those must have been from something else. Apart from that, I see the main inverter controller here - LP3667.






The rest of the circuit is fairly standard. The relays are on 5V (FANHAR W18-1AST), so the power supply must give 5V. Then only the LDO provides 3.3V for the ESP. In addition, I was positively surprised by the presence of a CY capacitor (so it's a flyback topology, not a non-isolated inverter) and a varistor and filter capacitor at the input. Sonoff does not save as much as Tuya.
Time to try changing the firmware.
I started with the esptool approach. I connected the RX, TX, power supply and GPIO0 as standard. Unfortunately - the ESP is locked:


In the end I gave up and only did a memory dump on the CH341 programmer. It won't do much, as the ESP verifies this program anyway and won't run a "foreign" batch, but maybe someone will find it useful for analysis.


A copy of the batch is available on my repository: https://github.com/openshwprojects/FlashDumps/tree/main/IoT/ESP32
In summary , it looks like here we have an ESP32 protected from uploading new software. This is not new, there have been other Matter products presented on the forum and there was a similar problem. Fellow @divadiow also presented them in several topics. It seems that here the only option to change the batch is to swap the whole ESP. You simply have to solder out the ESP and solder a non-blocked chip in place, and that would already be QFN soldering.... well, I don't know if it's worth playing around with that much? What do you guys think? Or is it enough to use the manufacturer's cloud?
Comments
Add a commentI wonder if this isn't a new trend and by locking down ESP32 like this we will be somehow forced into manufacturer solutions and manufacturer cloud services. And if we solder out the ESP32 and insert... [Read more]
I've checked with colleague @divadiow a bit of the devices already (he also mass-orders and posts on Elektrode - his profile and articles are here ) and from what you can see, the devices marked as... [Read more]
. All good things come to an end one day. [Read more]
Maybe it is worth switching to Zigbee for this reason? We don't have to reprogram anything, it works with our own software (e.g. HA) and, most importantly, there is no network access. [Read more]
@ArturAVS at this point I rather suspect it's to do with Matter itself, rather than the manufacturer wanting to lock devices in general. Devices without Matter continue to have flashable ESP. @krzbor... [Read more]
Do you know why they block if there is Matter? [Read more]
I am an advocate of Z2M and MQTT. Although it complicates the whole thing (because HA supports Zigbee devices without any problem) it gives the possibility to "swap" a Zigbee device for MQTT. With MQTT... [Read more]
. I heard from a friendly importer that Matter requires top-down certification and this may be one of the requirements. I have not yet confirmed this information. There may be something to it, they... [Read more]
And do you even need to change the firmware on this one? I'm not familiar with Matter, I don't own any device. However, from what I've read, some Zigbee dongles go to reprogramming (e.g. SLZB) to support... [Read more]
Yes, it is quite a disappointment when a locked ESP Matter device arrives 😭 https://obrazki.elektroda.pl/3404667800_1749667315_thumb.jpg My first post about a locked Matter is here with the SM-028C3... [Read more]
So they would give you that? https://obrazki.elektroda.pl/1680394900_1749673931_thumb.jpg [Read more]
I don't have any Google Hubs so have never paired with Google, but Alexa never seems to have an issue with these types of non-ESP Matter. GU10: https://obrazki.elektroda.pl/4020209700_1749676746_thumb.jpg... [Read more]
It would be interesting to see if you can take a matter device backup, flash it to two other BK7231 dev boards, and then connect it to the app as two separate devices. Probably not, because of the duplicated... [Read more]
Doing this with Alexa just now and the second Matter device just seems to knock off the first, so I guess it sees it as the device having been reset and you're re-pairing it. https://obrazki.elektroda.pl/7746406400_1749704835_thumb.jpg... [Read more]
I am adding a screenshot of the flash reading and the eWeLink app: https://obrazki.elektroda.pl/5809109000_1749727202_thumb.jpg . Application: https://obrazki.elektroda.pl/3983683300_1749727304_thumb.jpg... [Read more]