This sensor works in the UART mode, and you should connect sensors to UART pins (e.g., for CC2530 P0.2 – RX, CC2530 P0.3 – TX). Therefore, you cannot use the UART interface in the same configuration.
PZEM-004 V3
Please note that the firmware supports V3 only.
This sensor type supports the write command on the corresponding endpoint and allows you to reset the counted energy.
write - resets the energy counter Topic: zigbee2mqtt/[friedly_name]/set Payload: {"[channel]": 0} Channel: l1, l2, l3 … l16