How to use widget counter ?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
Thorgal789
Posts: 883
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

How to use widget counter ?

Post by Thorgal789 »

Hello, I have some problem to use domoticz counter.
I need :
- A consumption counter in kwh.
- The value is incremented by the device, so I want domoticz use it as it
- I want to use the daily value display too

So atm, I m trying this one
Image

I m updating it with

Code: Select all

http://192.168.1.9:8080/json.htm?type=command&param=udevice&idx=116&nvalue=0&svalue=50
But what is the value in the title 0.089 here, I can have 178255456685 at some moment ?

I have tried the incremental counter, but not good because it add all value I send to it.

I can't use the general / kwh because it works with consumption and power (I have only consumption)

Edit:
I think I have found the bug, if I use a value < 1 the device display 46488845488485 kwh else it display the value I send to the device-1.
But same device created on other day display the value I send to it + 1.
Seriously what is the secret algorythm for this value ?
Thorgal789
Posts: 883
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: How to use widget counter ?

Post by Thorgal789 »

Ok I have finaly found.

You send to the device the cumulated consumption.

On the first line it display the same value, so the cumul.
On the title bar, it display cumulated consumption - consumption on the previous day = today consumption.

But if you reset the counter, cumulated consumption is inferior at consumption on the previous day so the today consumption mean nothing, atm I have 18455445584556684555 kwh displayed.

How to reset it or make something to prevent that ?

Edit:
Ok it seem, it reset itself after some seconds, but it s memorised on report, so this one have fake value.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest