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
Next Steps with Enphase Inverter #107
Comments
Hi @aryanbhosale, Thanks for tracking this and updating the code. Are you able to obtain an Access Token like this? I did not find any documentation from Enphase about supporting the Client Credentials Flow and when I try |
I think you need to send your authorization url to an enphase H.O., that's how they'll authorize your access to their data. Please go through the docs, i have followed these to update the code, let me know if you have any queries |
I followed the steps in the docs to get a refresh + access token for my test system. But I can't get an access token with |
This is the step you need to follow before going ahead with running that code , do you have an enphase system? |
@aryanbhosale I have a system, I perhaps could give you access or details and you could try. |
I did login on the authorization url and granted access. This allowed me to obtain an access + refresh token through the Authorization Code Flow as described in the docs. But the |
Let me take a look at it in that case, a few things to keep in mind, did you add the env vars in a .env file in the root directory on the project? Please refer to .env.example |
were you granted with a one time code when you logged in to that auth url? |
aryan.bhosale1719@gmail.com |
Hi @markus-kreft can you please check #117 and try to test it with your test system? This has the updated authorization grant flow as required by the enphase api v4 |
Yes, this flow should work. I can get a the code/redirect URI like this and was able to retrieve data using my own draft code.
I think it might be convenient to first add some basic tests with a mocked API to catch things like this. |
We're in the phase of testing it, thank you |
Hi, quickly wanted to check if you are still working on this? Otherwise I could make a new PR with my implementation that I could test with a real device. |
Hi @markus-kreft ,yes I am working on this, had my endsemester exams the last 2 weeks so couldn't find time to work on it, but I will be doing this as my Google Summer of code project |
@peterdudfield closing this issue since i have the credentials and have successfully tested the auth here #117 |
Thanks for getting in touch. Perhaps there is a different inverter type, (not Enphase) that you could try out |
Detailed Description
Send the AUTHORIZATION_URL to the Home Owner / System Owner to grant permission to us to use their system data, they will send us an ENPHASE_SYSTEM_ID ---> I currently don't have access to this since I don't know anyone who owns an enphase inverter, but if anyone here could grant my AUTHORIZATION_URL permission to use their enphase data that would be really great!
Context
This is with reference to #106 that builds on #66 which fixes #36
Possible Implementation
#106
The text was updated successfully, but these errors were encountered: