How to use widget counter ?
Posted: Tuesday 07 January 2020 19:14
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

I m updating it with
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 ?
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

I m updating it with
Code: Select all
http://192.168.1.9:8080/json.htm?type=command¶m=udevice&idx=116&nvalue=0&svalue=50I 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 ?