I don’t have this sensor so probably can’t help much. Since you trust the Tasmota numbers, why base the ESPHome calculations on a different project? Are they the same as Tasmota? I’d probably start by seeing what calculations/settings that Tasmota uses.
why base the ESPHome calculations on a different project?
Because I have 34 S0 sensors (eacWSZ-50A) and only one can be connected to a Tasmota device (Sonoff POW). I only used this because I wanted to check the power measurement.
Hi, I have attached my ESPhome code below which definitely works as my usage matches my electricity supplier invoices. The main difference is that I used the pulse_meter platform whereas you seem to have used pulse_counter. I do not know what the difference is between the two.
Pulse Counter is counting for some period of time and after that time, it shows you the number of counts per minute (multiplied by a factor => electric power in my case).