How “accurate” is the tuya firmware? You got any insights? Guess would need to de-compile and reveres engineer their firmware to get something…
In the end (if we say the hardware is identical and even take the assumption they use equal libraries etc.) it all comes down to the update frequency. With esphome you can go all the way the hardware supports, for example I used a 0.1 second update frequency on a pzem004t v3 which worked without troubles.
But will it be more accurate because it polls the hardware more often?
Not for power, voltage and so on but definitely for the energy usage over time
I have no idea if the tuya firmware even supports this on the device? Maybe it’s just sends a snapshot of the current power usage (only) every 10 seconds to other people computers and they accumulate it for you.
With esphome it’s also possible to have a very high internal update frequency for the power hardware to get accurate total energy accumulation but at the same time “limit” the frequency home assistant get’s the data.