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"
Please update Wiki page Developing_a_Python_plugin
Moderators: leecollings, remb0
- 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
I modified the wiki. I only think you made a mistake for sValue?
Should it not be:
That is similar to the description of the same device in the API call: https://www.domoticz.com/wiki/Domoticz_ ... counter.29
Should it not be:
So not "actual energy in kWh" but "absolute counter value in Wh"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.
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest