Open OrranaLhaynher opened 2 years ago
Do you get this error when calling the login function? Are you using a custom API url or the one that is in the package by default?
This is not happening for me when i try to use the login function, i don't see getUserServerUrl
anywhere in the code here so i'm guessing it's complaining that it is missing that. But it's odd that this isn't happening all the time
If it does fail while logging in it would make sense that you wouldn't be able to retrieve any inverter data
Also see https://github.com/Sjord/growatt_api_client/issues/23. @OrranaLhaynher seems to be on the OSS server, and I think the API is different there.
I tried this repository first, with the default repository URL, but I got this error. After that, I tried the Sjord/growatt_api_client repository, and found that when I access the server.growatt.com url and enter my account and password, it updates and is changed to oss.growatt.com (when I'm already logged in). So actually my problem is the API. And because of it I can't get any data from the inverters, as the structure differs from the API architecture that the repositories were created for.
In this case, I have to create all the code from zero, since the API is different?
Let's hope not... Is there an app you can use to view your plant and inverter info? I think both of our connections are based on it working in the ShinePhone app. So if it works on there it should work in these packages.
When looking in the url used in the package to log in server, this is the response ->
type Status report
message Parameter conditions "op=getUserServerUrl" not met for actual request parameters:
description The request sent by the client was syntactically incorrect.
And I can't retrieve any data from the inverters, maybe because of this?