Page 1 of 1
Searching a specific widget.
Posted: Thursday 30 April 2020 18:19
by Thorgal789
Hello I m searching a widget to display on the same widget power and energy.
There is "Electric (Instant+Counter)" but this one use an incremental counter for energy, and I want to use my own value for energy and power.
I can retreiving the old value and make calcul to send the good value to have the correct value displayed for energy, but it's a little overkill.
Re: Searching a specific widget.
Posted: Thursday 30 April 2020 18:47
by FireWizard
Hi,
I think it is possible to use Electric (Instant and Counter)
From the Wiki:
Electricity (instant and counter)
/json.htm?type=command¶m=udevice&idx=IDX&nvalue=0&svalue=POWER;ENERGY
IDX = id of your device (This number can be found in the devices tab in the column "IDX")
POWER = current power
ENERGY = cumulative energy in Watt-hours (Wh) This is an incrementing counter. (if you choose as type "Energy read : Computed", this is just a "dummy" counter, not updatable because it's the result of Domoticz calculations from POWER)

- Screenshot_IQ7-3.png (17.75 KiB) Viewed 135 times
You can choose between "Computed" and "From device". You need the last one.
Regards
Re: Searching a specific widget.
Posted: Friday 01 May 2020 9:54
by Thorgal789
But it's my problem, the device don't send periodic power for domoticz can compute it, but it calcule itself the value and send power + computed energy.
So I want to use the value send by the device.