Hi,
In our final setup we need to make use of a quite big meterconstant (between 200 and 875).
I noticed in a test setup that with a meterconsant of 100 data was reported correctly, but when using 875 measured value is incorrect.
Could there be an overflow problem when using big meterconstants?
Kind Regards,
Frederik
The source provides the answer...
flm02/openwrt/package/flukso/luasrc/fsync.lua
flm02/avr/a/ctrl.c
flm02/avr/a/main.c
flm02/avr/a/main.h
So, if the multiplication runs into an overflow...
By the way: What do you mean by "measured"? Displayed in the dash or provided via REST or MQTT???
It maybe also the backward calculation of Wh into W with large time intervals...
You have to be a bit more precise in where you see an "error"...
Thanks
Related question: is there a way to reset the accumulated Wh (the counter value)?