Page 1 of 1

How to use widget counter ?

Posted: Tuesday 07 January 2020 19:14
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 ?

Re: How to use widget counter ?

Posted: Wednesday 08 January 2020 18:55
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.