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: API changed #13796
Comments
Missing log of actual problem. Should not be necessary if Enphase sends a redirect header. |
Yes it follows the redirect according to the trace. but there is now data shown as you seen in the log, whNow is 205 but the ui shows no data and the log in the UI says: |
Please run with --log-trace |
i added the log in trace mode in the description |
Sorry, I meant:
|
|
Redirect works as expected. Only there is no |
Workaround for now is to use: meters:
|
Feel free to add a new template. V2 api is not compatible. |
Hi, maybe not directly related but I am getting an Mai 26 10:24:26 raspi-evcc evcc[6188]: [site ] ERROR 2024/05/26 10:24:26 grid meter: unexpected status: 401 (Unauthorized) some hours after configuration. I added the meter (grid & pv) in evcc.yaml and also tried configuration via UI (..and deleted the yaml configuration part). After putting a new token from enphase data are retrieved but again after some hours I am getting this error.. Any hints or workarounds? Thank you! log-headers: evcc --log-headers evcc meter --log-headersrs [main ] INFO 2024/05/26 10:33:12 evcc 0.126.4 db:3 db:4 |
Maybe the token expires. Impossible to say without logfile and api documentation. |
yes, semms to be the case... haven't found any documentation how/where to put credentials so that the token could get renewed by the system. NOTE: Tokens are valid for a finite time. This is to ensure safety and you must generate a new token upon expiry. • If the user is a system owner, the token is valid for 1 year. .... you see in the upper part the log with error 401 and in the second part the values correctly... inbetween I renewed manually the token from enphase.... so, it would be really nice if someone could help implementing the automatic renewel of the token. |
Describe the bug
Your enphase template uses the http protocol: templates/definition/meter/enphase.yaml
I have enphase working locally and it only works in https, http sends a "301 moved permanently" code.
Could you add a parameter to specify the protocol to use so that it stays does not break things for people on other versions of the API ?
Steps to reproduce
...
Configuration details
Log details
What type of operating system are you running?
Linux
Version
v0.126.2
The text was updated successfully, but these errors were encountered: