This device uses WB2S module which needs to be replaced with ESP-02S, WT-01N or WT32C3-01N module. Besides the module, this process will require a heat gun, soldering tools and moderate soldering skill. Read more about module replacement in a detailed guide.
Original chip is WB2S so the only way is to replace it. Easy to remove (once you remove solder it falls off). As serial is used by power metering it would be wise to program replacement ESP-01N (WT-01N) before soldering it in.
Essentially this is the same as for DETA 6294 Outdoor GPO