Get Kwh value from computed energy counter
Posted: Thursday 08 December 2022 15:19
Hi,
In Lua, I am trying to retrieve the KwH number for a simple cost calculation, but I just can't figure out how to!
If I look at otherdevices_svalues["NormalTariff"], I get 2 values. 1 is the current energy usage, the other is a number that seems to bear no relation to kwh used.
Can someone point me in the right direction? I am assuming I am looking in the wrong place, or the kwh is somehow derived from that second value?
Thanks.
In Lua, I am trying to retrieve the KwH number for a simple cost calculation, but I just can't figure out how to!
If I look at otherdevices_svalues["NormalTariff"], I get 2 values. 1 is the current energy usage, the other is a number that seems to bear no relation to kwh used.
Can someone point me in the right direction? I am assuming I am looking in the wrong place, or the kwh is somehow derived from that second value?
Thanks.