Script to calculate kwH to Currency

Moderator: leecollings

Post Reply
Robban
Posts: 15
Joined: Monday 09 November 2015 6:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Script to calculate kwH to Currency

Post 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
User avatar
LouiS22
Posts: 433
Joined: Friday 27 February 2015 13:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Budapest, Hungary
Contact:

Re: Script to calculate kwH to Currency

Post 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.
Robban
Posts: 15
Joined: Monday 09 November 2015 6:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Script to calculate kwH to Currency

Post by Robban »

hi
yes i saw that today...:-)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest