Page 1 of 1

Script to calculate kwH to Currency

Posted: Sunday 15 October 2017 14:44
by Robban
Hi
i wonder if anyone know how to calculate a energy value from a fibaro plug to money?

ex
"Device Computer kwH * money per kwh = Dummydevice SEK
16 kwh * 0,8=12,8 SEK."

i cant figure it out in a lua script and blocky is very limitied. Suggestion is to include math in blocky.

can anyone help?

Robban

Re: Script to calculate kwH to Currency

Posted: Thursday 19 October 2017 15:02
by LouiS22
There's a built in option to that.

Go to settings/Meter,Counter, then provide the appropiate value (0,8 in you case). Then go to the device, and you'll find a report tab with the cost. Downside: it's only a monthly summary.

Re: Script to calculate kwH to Currency

Posted: Thursday 19 October 2017 18:38
by Robban
hi
yes i saw that today...:-)