Documentation on kWH counter

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
enboer
Posts: 38
Joined: Tuesday 02 October 2018 15:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Documentation on kWH counter

Post by enboer »

I have question on the plugin documentation on device 243 subtype 29. On develop a plugin page there is info about the calculated/from device setting:

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 Wh. When the option "EnergyMeterMode" is set to "Calculated", the second value is ignored
Optional argument Options can set the EnergyMeterMode.


But I think this is not correct and needs to be adjusted. The calculated settings means that the total counter is calculated, not the Wh as it suggest. The calculation is on the total counter value of the device. Butt this Wh value is not ignored.

So when the device is set to calculated the second value is not ignored. Eg for a solar system which gives you a daily production you set the device to calculated and store as svalue: watts;daily production. This value will start a 0 every day, but Domoticz will calculate the total over production counter.

When you use from a solar system the total production, set the device to From device and you can store as svalue: watts;overall production.
User avatar
waltervl
Posts: 6676
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Documentation on kWH counter

Post by waltervl »

I cannot follow you. The total counter is Wh so how can it not be ignored?

So when the total counter is not available by the hardware you can have Domoticz calculate the total counter for you based on the received Watt values.

For Python, MQTT and API update calls it means you have to supply real Watt values and a fake total counter value (eg 0 or 999). Domoticz will ignore that value and overwrite it with the calculated total counter value.

And if you send a daily total counter value, Domoticz will still ignore it, the same as with the previous fake values.
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