Please update Wiki page Developing_a_Python_plugin

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jpavlik
Posts: 1
Joined: Tuesday 29 August 2023 12:15
Target OS: -
Domoticz version:
Contact:

Please update Wiki page Developing_a_Python_plugin

Post 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"
User avatar
waltervl
Posts: 5903
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Please update Wiki page Developing_a_Python_plugin

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest