My scenario is that I’m using a local-tuya cheap power meter that often goes offline for no obvious reasons, creating gaps in the kWh counter. it is using its own internal counter which is always accurate (even when offline, it keeps counting correctly). But since the native counter does not have required parameters sorted (last reset time is not defined), I cant use it for my energy dashboard. So I’m using utility meter. And the result is that utility meter does not “catch up” with the values registered by the meter during offline state: native meter reports correctly, but the Utility Meter helper assumes there was no change in the value during the offline stage:
Native counter:
Utility meter:
How should I use it to maintain accurate readings even when device is offline?