KWh to Power -> suspicious values

Hello,

I have a energy meter that gives 1600pulses/KWh. So 1pulse=0.625Wh. I want to send to emoncms energy (Wh) and calculate instant power.

I send always the pulse difference.

I'm setting up a feed like this:

1    Log to feed    node:0:energy_log
2    x    0.625        
3    Wh Accumulator    node:0:energy
4    x    0.001        
5    kWh to Power    node:0:power

The Wh accumulator is ok.

At the moment I'm sending test values (random values between 1 and 10) every 5 seconds.

So the power should be between 450W (1*0.625/5*3600) and 4500W (10*0.625/5*3600), but the power sometimes is zero... 

What I'm doing wrong?

Thanks

 

pb66's picture

Re: KWh to Power -> suspicious values

The Wh accumulator will subtract the current value from the last value as it increases and totals the difference. I think you want a standard "accumulator" that will just add each new value to the total, the first "log to feed isn't essential either, so you could try

    x    0.625        
    Accumulator    node:0:energy
    x    0.001        
    kWh to Power    node:0:power

Paul

xgon's picture

Re: KWh to Power -> suspicious values

Thanks for the reply,

It works as expected.

Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.