I have updated my EmonPi to the May preview image successfully. All appears to be working but for the kWh output in both the My Electric and My Solar apps. The real time power usage displays fine just the kWh is not updating although the associated feeds in the feed view are working. Any ideas?
To work with the My Electric App the feed type needs to be PHPFINA. Could you post a screen grab showing your input processors. The power input should be logged to a kWh feed using power to kWh process . See Home Energy - Guide | OpenEnergyMonitor
The processing and feeds do not look correctly configured to me. Where do you have CT1 installed?
“use” and “use_kwh” can only ever be positive unless your appliances can generate power.
It looks like at least the solar CT, but probably both CT’s are inverted
Are you confusing “grid” and “use”? The “use” should be the sum of “grid” (pos when importing) and “solar” (pos when generating). You could try something like
input1 (grid CT)
log to feed “grid”
log to feed “import”
power to kWh “import_kwh”
input2 (solar CT)
log to feed “solar”
power to kwh “solar_kwh”
log to feed “use”
power to kwh “use_kwh”
However on a emonPi you can use the 3rd input to process “use”, which I believe is provided to give “grid” plus"solar" combined to circumvent the potential hazard of the mqtt values arriving in a different order and out of date “last” values being assumed current. In your current setup when input1 does it’s processing it uses input2 which has not yet been updated, my example puts the use of input1 in the processing of input2 which should be ok but not 100% reliable.
so you could remove the +input and the 2 “use” feed processes from the other input and have just
log to feed “use”
power to kwh “use_kwh”
in input 3, this would be simpler and more reliable/accurate,
I could have been cleared, I should have said the 3rd input FROM the emonPi, referring to the 3rd input of the emonpi node at the emoncms inputs page.
The emonPi has a variety of physical “inputs” of which there are just 2 current “input” or CT channels, yes you are right. But despite there only being 2 CT’s there are 3 “powers” in the payload creating 3 inputs (in emoncms) from those 2 CT’s.
Why ? I am running MYSQL feeds and have no idea why support for MYSQL does not exist in latest My Electric version.
Can someone here explain end of MYSQL support within emoncms code ?
Thank you in advance.
Thanks @pb66 you have solved another issue I was having in terms of the Solar app and defining grid, solar and use. I have updated my inputs according to your detailed instructions which make sense. The third input on the emonPI is referenced by default as power1pluspower2 for anyone trying to follow the thread, it now looks likes this for Inputs
@pb66 thank you for your help. The instructions you provided sorted out my setup for me. I can now report that both Emoncms apps for reporting Electric and Solar are both now working as they should. I think I got confused with the polarity in combination with trying to work out if my setup was type 1 or type 2 (it is type 2).
Our usual definition is:
“Use” is the power/energy consumed by the house. It is positive by definition.
“Generation ( / Solar)” (usually PV but it could be wind or hydro) is the power/energy from the PV etc infeed. Usually positive during daylight, it can be negative at night because the inverter does consume a small amount of ‘keep-alive’ power.
“Grid” is the power/energy that flows in the connection from the supply authority. We define it as positive when power/energy is imported (Use > PV) and negative when power/energy is exported (PV > Use).
In your case, we would regard “Grid” as the nett sum over both legs of the supply - but bearing in mind what Bill Thomson wrote elsewhere, your meter might charge you for importing on one leg and charge you for exporting on the other leg.
You can calculate it that way (and so would I), and so would a meter that works according to the official guidelines (in the UK at least). But as Bill warned, your meter might not. So it you get a different answer to what your bill says, the reason probably lies in that area.
My meter most likely calculates it the same way as well. I know it is old style meter with the rotating disk. However, now when I am thinking, in my case I am not sure why I would need grid feed, since I never will be exporting power to the grid.
My Phase A will always be drawing some power. Phase B during sunny periods hopefully be around 0. So my “use” feed is essentially the same as would be a “grid” feed. am I right or I missed something here? Also looking at My Electric, My Solar amd Solar with Divert apps, I do not see them using “grid feed”.
You might well be correct there, but only because you have a very low power dump load. Had your PV capacity been much greater and you were heating water, it might have been possible that your water had reached maximum temperature before the sun went down, in which case you would need to switch to a different load or export.
“Use” and “Grid” are the same overnight, they are not the same when you are generating (unless you are not counting the diverted power as ‘Use’.)
In my feeds, once SOLAR starts to produce energy, my USE feed goes down in value, and get negative at times. Is that a normal behavior? Or should I be calculating USE some how differently? At the moment my USE feed is just addition of Phase A + Phase B.