-
-
Notifications
You must be signed in to change notification settings - Fork 731
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
Enphase get too much requests #18569
Comments
Yeah, I had a similar issue, but I really think it's on the enphase firmware - responses from the old APIs are ridiculously slow. Not sure what version you're on but I have version 8ish. This is not a resolution for your issue, but I use this https://github.com/vk2him/Enphase-Envoy-mqtt-json as part of my Home Assistant monitoring. For some reason, the 1s resolution of this monitoring is no problem for the envoy-s. Since it publishes to MQTT, I just point EVCC to the mqtt values for my production and usage
|
Two questions though:
Anyway, since Your python script, home assistant and the enphase apps are able to get some live data without any issue, I guess there is some kind of issue with the way evcc request data. From what I see, the fact that it requests 6x the data on each refresh could be it, or other app might use another endpoint? |
If enphase did send cache headers, evcc should already do caching. Seems it doesn't though. Right now there is no additional logic in the templates that could help here. |
what about a |
It probably doesn't get it every second, but every 60s. The standard enphase HA integration only updates in 60s intervals.
For EVCC it only needs these to calculate the production and consumption graphs. I display them in HA in my energy dashboard, but it's just information.
The live data is a different endpoint to the production.json endpoint that EVCC uses. The overrequest might be an issue, but I've been having the same issues with the stock HA enphase integration that hits those same API endpoints. |
Describe the bug
I've an enphase system, so I get both PV requests and grid request going to it.
The issue is that both the grid and the PV part requests the same file. Also, only the PV template requests the 5 times(according to what I read here: https://github.com/evcc-io/evcc/blob/master/templates/definition/meter/enphase.yaml )
So with the solar request, it makes 6 requests. When I manually request the file, it takes ~2-3s to request it.
Currently when I run my EVCC instance, I do get a lot of timeout. It varies a lot but it goes up to 4/5 of the requests being timed out.
I've other stuff requesting data(READ ONLY, nothing active) from my enphase envoy(home assistant and potentially the app).
I see two issues:
Do you see any chance to reduce the number of requests made, especially for the PV implementation?
Steps to reproduce
...
Configuration details
Log details
What type of operating system or environment does evcc run on?
Docker
External automation
Nightly build
Version
0.133.0
The text was updated successfully, but these errors were encountered: