-
Notifications
You must be signed in to change notification settings - Fork 34
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
Growatt blocking accounts #55
Comments
Oh the positivity :P I recommend taking a look over here: muppet3000/homeassistant-growatt_server_api#15 I recommend reading my specific comment here: muppet3000/homeassistant-growatt_server_api#15 (comment) Use the FAQ I put together over there to set up an alternative account via the website. Furthermore, if you switch back to using the "server.growatt.com" url (which seems to work again) it's works with the same credentials. My original account still seems to be blocked on my phone but works fine on the website so I created myself a new login just for my phone and also one for my various automations so that one can't break another etc. |
Note - my account was blocked on my phone yesterday and is unblocked again this morning. |
Mine was unlocked this morning. But is locked again. As is said this could be the end of the API. Because Growatt is now blocking the accounts activly. |
Only on the shinephone app, not on the website and you can just change the endpoint to use the website again. |
I don't think you understand the whole picture here. They activly Blocking accounts. So the API has become useluss. Website is not the problem. |
I understand fine. |
Oke but that does not change the blocking of accounts problem... |
Other than that they don't seem to be blocking for other URLs. We'll find out I suppose. |
Website is also off air now. |
Everything has been very intermittent for the last 2 days, I suggest we just wait it out to see what changes they've got in store this time :P |
I had to change the API endpoint to the original server.growatt.com as could never get the new one to work when I put my system together a couple of weeks back. Not had any account locking issues. For my use case (a Pi with a small display showing some stats) I only poll the API every 5 minutes, maybe they're stopping calls that are more aggressive. Let's see what happens over the next little while. |
I reduced my polling to every 3 minutes earlier today and things stabilised (however the data that's available on the server itself has been very flaky all day, but that's a server problem). |
I certainly had some rubbish figures on their normal website yesterday. All the "now" info was fine, but the "today so far" was all out. |
I created extra accounts for app and API reader. Put the API reader on a 3 minute interval. Hopefully this will do the trick. |
Can you please tell me where I change the polling time. thx |
It depends how you're using this library, it's entirely dependent on how often whatever code you're using makes a call to this library. |
Sorry, I'm not that deep into this. I'm using Home Assistant 2023.2.3 on a Raspberry PI 3. |
In which case you'll be using the stock Growatt integration and that is currently fixed at every 5 minutes. |
Yes, account is also blocked in the app. But I installed your version via HACS. |
Ok, so you're using the HACS version, which also defaults to 5 minutes unless you've followed my FAQ on how to increase the polling interval. Basically you can create a new account and switch to using that for HA to work around the issue. I'd prefer to discuss specific issues related to the HACS/HomeAssistant integrations in their specific repos so it's all in the correct location. This repo is the underlying library that is used by the Integration rather than the integration itself. |
Hm, my ShinePhone-APP says: |
I recommend taking a read over here: muppet3000/homeassistant-growatt_server_api#15 where there's a very detailed discussion about it. Note - when you poll at around 5 minutes your account doesn't seem to get blocked as quickly. Any more frequently than that and you get locked out. As I've said in those comments above, you can create yourself another account through the web UI without any problem and use that. The lock seems to last approximately 24 hours. |
Join the club. We all had that issue. Mine is good again. Interval 5 minutes and new account. |
OK, I had my interval set on 120s. |
You can create a new sub-account under your existing one, follow the steps here: https://github.com/muppet3000/homeassistant-growatt_server_api/blob/dev/FAQ.md#how-do-i-share-my-credentials-with-you-for-testingadding-new-features-for-my-system-type |
Great. Created an alternative account and it worked again with that! Thank you very much! |
Stupid question: Where can I change the polling interval? |
Unless you've changed it from the default using this how to guide: https://github.com/muppet3000/homeassistant-growatt_server_api/blob/dev/FAQ.md#how-do-i-increase-the-update-interval-to-be-more-than-every-5-minutes then you'll be using the default of 5 minutes. |
Yes I am using the default. But unfortunately my main growat user account is locked. So I checked your source and found in sensor.py at line 35 this:
I changed it to
Will this change the polling? |
So you can't even log into the server.growatt.com website? That's the first I've heard of that happening. You can change the code like that if you want, but 5 minutes should be enough. |
With 5 min polling my account/ip was blocked. I disabled Wifi at my mobile phone and I could login again using 4G. But after one hour not anymore.... Today I rebooted HA and lucky me I was able to get data again :) Maybe a stupid suggestion: PS As far as I can remember I was able to login on the website. (server.growatt.com) even when my account/ip was blocked |
That's a conversation for over in the actual repo for the Integration, not this repo. Also, my answer is probably going to be a 'no' because that's quite a bit of effort to implement and I'm encouraging people to switch to Grott anyway and I'm in the process of making a new HA integration for that instead. With regards to your account getting blocked: 2 - They don't block your account on the website, only for the mobile app, therefore you can create yourself multiple accounts (I have 4 now for HA and a separate one for my phone) which you can toggle between to work around the problem. Ultimately the use of the API is becoming less and less viable, hence my recommendation for people to try and switch to Grott, which isn't the most 'user friendly' experience, however, once I've got something up and running nicely for myself I'm hoping to contribute back to the main repo to make it more user friendly for people. |
Thanks for your feedback. |
Has anyone been in contact with growatt about this issue ?? if, what was their response ? |
I have tried repeatedly to contact growatt (for a variety of things related to supporting the API), I have tried every form of email address I can find for them. I have received zero responses from them. Ultimately, while I don't like what they're doing, they don't provide any official support for the API, we reverse engineered it from the Android application and they're under no obligations to support it, it's not like anyone is paying them any money to maintain/support it. |
I've still had no issues with this API.... no account being blocked or anything... I don't know anything about how HA is using it, but this is what my use case is doing in case it helps... I only use api.login once, when my python code starts. I'll only call it again if for some reason the connection drops out. So on the growatt side they won't see multiple login attempts. might be useful, might not be. |
That's pretty much exactly how the HA integration works as well. It does a login once at boot and then it hangs on to the API token for the duration. I can't explain why some people get blocked and others don't, either way, Growatt are at liberty to do whatever they want, they're their servers after all and we're not paying anything to use them. |
I don't think the Growatt servers update as often as that, I seem to remember dialling mine back over a period of time and decided about 3 minutes was the quickest they'll update. |
I just made a quick output from my database and it shows different data almost every minute..
|
Just added a new installation and less than 48hrs later using 300s polling the shinephone app comes up with account locked. I've added a new account which when I try to add hardware to says "Your account does not have permission to operate'. Very frustrating especially as I'm not getting grott working let alone the implementation of that (my lack of command line Fu mostly), or the growatt data stick which I can't seem to remote in. This is a woe is me post but thanks for the hard work on trying to get the data out. |
Fixed (for now) by #77 |
I think this the end of the Api. Growatt is locking accounts. Mine has been locked. API not working and shinapp says account locked.
The text was updated successfully, but these errors were encountered: