Giter Club home page Giter Club logo

Comments (19)

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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.

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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?

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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.

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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.

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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?

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

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.

from enphasecollector.

goldserve avatar goldserve commented on June 16, 2024

from enphasecollector.

dlmcpaul avatar dlmcpaul commented on June 16, 2024

@goldserve Did the new profile module work for you

from enphasecollector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.