Page 1 of 1

Values for power meter (electricity)

Posted: Thursday 15 October 2015 14:04
by joshimosh
Hi,
I am trying to understand how the "translation" between a MySensors power meter and Domoticz works.
My setup:
I have an electronic power meter with a S0 interface. The S0 interface provides pulses to an Arduino, which is setup as a MySensors node.
The power meter gives 1000 pulses for every kWh - pretty standard. Since I am also interested in the actual consumption (in watts), I count the pulses in the Arduino sketch and send every six minutes two messages to a serial gateway, which is connected to a Raspi 2 and Domotocz installed.
The messages are the pulse count, which is sent with V_KWH and pulse count * 10 with V_WATT.
Why pulse count * 10 ? Assume I have one consumer connected that draws exactly 1 kW. If this is connected for one hour, I get 1000 pulses. In a tenth of an hour (=6 minutes), I will get 100 pulses. So, one pulse in a period of six minutes relates to a consumption of 10 W. This granularity is fine with me.

What I see in Domoticz is a device initially named "Meter". On the dashboard it shows the current usage in watts (which in fact is - due to my method of measuring - the average usage within the last 6 minutes) and the meter in kWh and a value called "today". Knowing my average power consumption from the past, both values seem to be way too high, by a factor of 1000.

Could it be, that Domoticz here expects "real" kWh and not pulses ? Do I have to divide the pulse count by 1000 in my sketch ? On the page where you can enter the number of pulses, cost etc the counter for energy shows 1000.

Perhaps someone can shed light on this phaenomenon.

Thank a lot in advance
Josh

Re: Values for power meter (electricity)

Posted: Monday 09 November 2015 11:18
by alexsh1
Hi,

Did you manage to sort it out?
What Domoticz version do you have?

Take a look at this:
viewtopic.php?f=6&t=8216&p=56534&hilit= ... tts#p56534