I have 6 modules connected to one esp.
The ESP is flashed with espeasy.
All 6 modules go to the same RX/TX ports of the espeasy.
The address of the PZEM 004T was assigned via the ESP. The PZEMs are pre-set to address 0. Each PZEM needs a unique address.
Since I didn't have any BAT in my assortment, I used normal 1N4148 high-speed switching diodes.
I didn't use a level switch, in many forums you can read that the ESP can handle up to 5 V and the diode also steals something. I left everything at 5 V because the CT817c on the PZEM is designed for 5 V. I poll every 10 seconds. The two diodes on the PZEM then flash almost simultaneously on all modules.
It has now been running for 40 days without a problem.