Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consumption values wrong when another hybrid inverter is present in the system #44

Open
goldserve opened this issue Jan 8, 2023 · 19 comments
Assignees
Labels
enhancement New feature or request

Comments

@goldserve
Copy link

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.

@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 8, 2023

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

@dlmcpaul dlmcpaul added bug Something isn't working question Further information is requested labels Jan 8, 2023
@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 8, 2023

Possibly good to get both when exporting power and not exporting power outputs

@goldserve
Copy link
Author

goldserve commented Jan 8, 2023 via email

@dlmcpaul dlmcpaul removed the question Further information is requested label Jan 8, 2023
@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 8, 2023

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

@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 9, 2023

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.

@goldserve
Copy link
Author

goldserve commented Jan 9, 2023 via email

@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 9, 2023

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?

@goldserve
Copy link
Author

goldserve commented Jan 9, 2023 via email

@goldserve
Copy link
Author

goldserve commented Jan 9, 2023 via email

@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 9, 2023

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.

@goldserve
Copy link
Author

goldserve commented Jan 9, 2023 via email

@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 9, 2023

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.

@goldserve
Copy link
Author

goldserve commented Jan 9, 2023 via email

@dlmcpaul dlmcpaul added enhancement New feature or request and removed bug Something isn't working labels Jan 9, 2023
@dlmcpaul
Copy link
Owner

dlmcpaul commented Jan 9, 2023

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?

@goldserve
Copy link
Author

goldserve commented Jan 9, 2023 via email

@dlmcpaul
Copy link
Owner

Ok I have a first cut of something to try. Will build a docker image for you to test with soon.

@dlmcpaul
Copy link
Owner

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
Copy link
Author

goldserve commented Jan 18, 2023 via email

@dlmcpaul
Copy link
Owner

@goldserve Did the new profile module work for you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants