Hi,
I’ve purchased a PZEM-004T and integrated it into Home Assistant with ESPHome. It works just fine and reports the devices value as Watts in realtime (fetches every 3 seconds), just like shown below:
To calculate the used kWh, I saw that using an integration sensor would be the right thing to do, so I put into the configuration.yaml:
- platform: integration
source: sensor.pzem_004t_boiler_v3_power
name: energy_spent
unit_prefix: k
round: 2
But when I analyse the spent energy, it reports wrong values. Sometimes if the “Boiler” uses 3kW for about 15 min the usage suddenly goes +8kWh or similar, which is highly inaccurate.
(See as it suddenly jumps to 90kWh and does some other jumps)
This, on the other hand, makes the daily graph inaccurate too:
If I look at the graphs manually I would say that it used at most 3-4kWh, but not 8.7kWh (which would mean it would have ran 3kW for almost 3h, which, according to the graphs, seems like this isn’t the case).
If anyone can tell me what is going on or how to ‘fix’ this, it would be awesome.
Thank you!