Page 1 of 1

Please update Wiki page Developing_a_Python_plugin

Posted: Tuesday 29 August 2023 12:32
by jpavlik
hi
I've lost a lot of hours searching how to set device of type 'kWh' as Computed, not "From device"

So, in this page (Developing_a_Python_plugin) please update the line
|kWh||Electric (Instant+Counter)
to
|kWh||Electric (Instant+Counter)<br>
nValue shold be zero<br>
sValue are two numbers separated by semicolon like "123;123456" The first number is the actual power in Watt, the second number is actual energy in kWh. When the option "EnergyMeterMode" is set to "Calculated", the second value is ignored<br>
Optional argument Options can set the EnergyMeterMode.<br>
Use Options={'EnergyMeterMode': '1' } to set energyMeterMode to "Calculated". Default is "From Device"

Re: Please update Wiki page Developing_a_Python_plugin

Posted: Tuesday 29 August 2023 16:32
by waltervl
I modified the wiki. I only think you made a mistake for sValue?
Should it not be:
sValue are two numbers separated by semicolon like "123;123456" The first number is the actual power in Watt, the second number is the absolute counter value in Wh.
So not "actual energy in kWh" but "absolute counter value in Wh"

That is similar to the description of the same device in the API call: https://www.domoticz.com/wiki/Domoticz_ ... counter.29