I don’t have one working but I found some clues that might help you. The esphome devices page have the working code for a Shelly 1PM gen3 which is a start. And the Tasmota guys reverse engineered the 2PM gen3 and posted the template format, so you’d have to figured out what all those numbers map to in order to convert it to esphome code.
EDIT: ok that’s a lot of work converting the Tasmota template so, since I have a esp32-c3 tasmota device handy, I plugged in the template and here are the values which hopefully helps: