Consumption values wrong when another hybrid inverter is present in the system
goldserve opened this issue · 19 comments
I'm not sure if some math is being preformed but when there is another inverter in the system and enphase is only part of the PV production, when I am exporting power back to grid, the consumption is the total of the export + enphase PV generation which makes consumption way too high. I don't know how to work around this but maybe an option just to show Net Grid import/export instead of trying to show consumption.
If your system is < v7 could you send me the output of
``
curl http://envoy-ip/home.json
curl http://envoy-ip/inventory.json?deleted=1
curl http://envoy-ipproduction.json?details=1
curl http://envoy-ip/info.xml
``
replacing envoy-ip as appropriate
Possibly good to get both when exporting power and not exporting power outputs
Thanks I will see if that helps me understand what is happening.
Be aware that it may be something special in how your installer wired things up
Ok, so both your net consumption and total consumption measuring devices in the envoy are returning negative consumption values.
For the point in time that the data was captured you had approx
total production=1288W
total consumption=-266W
Not sure how to interpret that. The basic calculations I do is read production and consumption then export is when production > consumption and import is when consumption > production.
consumption should not go negative.
You mention you have 2 systems connected up. Since I cannot read the other system then I doubt I can create accurate stats.
I have a few choices here, I could zero out negative consumption or treat negative as positive. maybe but I really don't know why consumption is negative.
Unfortunately, the enphase controller doesn't report grid import or export that I know of. It reports production and consumption values and then I calculate import/export.
The code is based on reverse engineering the data I see. If you know of a field that supplies grid import/export then I can look at that.
Maybe in your scenario a negative consumption is grid export, does that seem right?
The net consumption value is also negative. It is also the sum of production and total consumption if both were negative.
total production=1288W
total consumption=-266W
net consumption = -1554
The endpoints under the ivp path are supposed to be realtime but require a different password so I never used them as most of the data I needed was under the open endpoints and the other data was protected by a basic scheme.
From V7 the ivp endpoints may be broken, there was some discussion on the forums about it but I cannot check.
Sorry, no images are shown. Might need to link to them or email direct to dlmcpaul AT gmail.com
So what is the ask here.
- Treat negative consumption as grid export?
- Have a mode to use ivr stats for consumption instead of net or total consumption?
The second looks cleaner if it's possible.
How do you run the application? Java jar or docker image?
Can you see the images in your comments because I don't. > 10Mb perhaps?
Ok I have a first cut of something to try. Will build a docker image for you to test with soon.
There is an experimental docker image that tries to generate the stats while expecting consumption to track import/export
You will need something like
docker run -it -e TZ=US/Pacific -e ENVOY_CONTROLLER_HOST=XXX -e SPRING_PROFILES_ACTIVE=experimental -p 8080:8080 dlmcpaul/enphasecollector:experimental
I have pushed the code I am using under MetricCalculatorNegativeConsumption and that is activated by the experimental profile.
Might need to find a better name for the profile if this goes ahead.
@goldserve Did the new profile module work for you