Please update Wiki page Developing_a_Python_plugin
Posted: Tuesday 29 August 2023 12:32
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"
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"