-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
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_server integration not working in #80950
Comments
Hey there @indykoning, @muppet3000, @JasperPlant, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) growatt_server documentation |
I think it is server related I now also get no information from Growatt in version 2022.10.4. If I log in directly on one of the websites only https://server.growatt.com accepts my credentials. |
I've noticed that there seems to be some real problems with the growatt API server today. I've just tried to access it on my phone and it's really struggling to load anything, I haven't seen any other complaints about the HA integration, so I think it's almost definitely an issue with the server. |
I think it is time for me to try to make it local with esphome and the growatt integration for esphome :-) |
I see a similiar problem:
I think it would be helpful if the integration logged more info when it fails, for example http headers and payload. |
API seems to be working again. |
For me no, even app show network error from 16:00 GMT |
It's working again normally for me too. |
I've got same problem - my credentials works only with https://server.growatt.com ... seems like there was a change in login servers because when I try add again Growatt integration i see three different servers then it was ~few days ago: |
The main problem to me is that exceptions are raised in a fairly common situation, i.e. the growatt server is unreachable. In growatt_server/sensor.py
Secondly, in
|
@hogend - Thanks, when I'm next in the code for this I'll update as per your suggestions. With regards to the original point that was raised, this issue was definitely related to the Growatt server being unavailable rather than anything in the integration that stopped working, I agree though, the error reporting could be far better. In relation to the comment above about the change in server, back in July they (Growatt) changed the URL that needed to be hit in order to pull the information, the old |
FYI - Looks like it's happening to me today as well, only this time the app seems to be working but the python library that underpins the HA integration is going dog slow and then eventually timing out. |
Definitely problems with their server. The app was almost useless yesterday. Today seems a little more stable in HA but their website access is hit-and-miss with errors. I suspect it seems more stable in HA due to the fact the data only updates every 5 mins. At least that's what I see. The system was only installed yesterday so it's been a great first impression. ;-) |
I'm on 2022.10.5 and the Growatt integration is not working at all. Has't worked properly for almost a week now. ShinePhone app si also having issues. Server issues!
|
I assume they're doing something 'clever' on their end and semi-rate limiting certain connections, either that or it's just blind luck why all the queries from the app on my phone work but the ones from the python client don't. |
I had issues today so restarted HA, after Growatt is all ok except the integration is telling me that the api is no longer sending the battery charge level and I should delete that element. Both battery charged today and statement of charge are greyed out in the element list. |
Growatt maby change something, with make me logout, if rotating cube spin more then 5 sec in https://server.growatt.com |
Had very similar issues yesterday around the same time. I keep running my tests directly from the python library in the background on my server (not using HA at all) and they're devastatingly slow and sometimes just fail altogether. My recommendation is to just remain patient (I know that's easy to say and harder to do) and see what the situation is like in a few hours at which point it could all be up and stable again. In a few hours (once I've finished work and my children have gone to bed) I'll do a load of debugging against the API calls that the phone app is making, just in case they've changed something, but on my first inspections it just looks like their server isn't handling the load properly. |
Today 75min early then yesterday More strange for me is: Why integration (not only this one) give-up after some unsuccess trays? |
It's something to do with the way that the module is initialised. The 'login' part of the library is performed during initialisation of the integration, meaning that you can hold onto the session for the lifetime of the integration or until it expires. That way you don't have to log in to the server every 1 minute (which is costly and would put even more load on the server). |
Totally not agree have same problem with tuya integration. Yesterday "connection loosing" was restored by me this morning after manual integration reload. |
Not working for my neither. Was running fine for about a month, then yesterday app started to give errors(HA was pulling the data correctly 'tho). |
Access is restored but have some changes |
is this maybe to do with the requirement for a country now when signing into the app? missing data for the log in. |
maby adding more regional CDN-s |
@muppet3000 just letting you know that the after the new release got installed here, there are still no batteries shown. I lost the following sensors which as you can see in this screenshot did work before:
There are a lot more sensors but the above were used on the energy dashboard: I do think that my data comes from a datalogger device that was installed when I had (Growatt) batteries added to my configuration but it was working before so no clue what I can do to get that back? |
@bartpaeleman |
@bartpaeleman As new Issue for this with link for this one issue. |
@Saentist it was there before and I have a history in my Energy view that used these sensors, so it is definitely not new. Somehow it disappeared after the last version that was upgraded in october. |
This is not a guarantee that Growatt not changed something in their server, |
I see your point, thanks @Saentist. So I need to wait and hope that the team will be able to get that sensor back or all of my solar energy based airco automations will be rendered useless onze the sun is down:(. |
|
@bartpaeleman & @Saentist - I've responded over on the new ticket (#81470) responding to this specific issue. Given that the core reason this ticket was opened has now been resolved can I please ask that if people have new issues they raise a new ticket and I'll track it separately. |
Hi All, looks like I've started seeing this issue again on my system. I've used the 'hack' outlined above to make this work again by just changing the |
@muppet3000 I think I am also seeing the same issue as last time. I'm running 2022.11.2. The stack trace looks the same:
|
Yes it is the same issue - see comments on other ticket, this one is closed. |
I've contacted Growatt support, they thave answered that the producer is not alowing connections from dynamic ip. They asked me to provide serial number of inverter and fixed ip for Growatt to add me to "allow" list. Had the same issue in domoticz, there I've changed server name from server-api.growatt.com to server.growatt.com and addon worked for me. |
I'm with static IP so this is not a problem |
Reminder - This ticket is closed. However, @MaciekzP - Thanks for this, can you please let me know what method you used to contact them? If it was an email address can you please let me know as I'll try reaching out AGAIN! The comments about dynamic IP seem pretty random given that mobile phones on roaming data will have dynamic IPs, there's certainly more targeted logic from their end on how they're blocking. Interesting to see that server.growatt.com is back up and running again as they stopped that from working about 5 months ago, I will re-add that to the integration as an option until we get some kind of confirmation from them. |
Growatt server intergration doesn't work anymore: Home Assistant 2022.11.2 Log Details (ERROR) Error while setting up growatt_server platform for sensor |
@muppet3000 I just phoned Growatt support in Poland +48 32 729 99 18 and talked to service dept. But you can try to drop them email: [email protected] hopefully they will answer. They were quite helpfull and friendly. |
Looks like growatt has secured there login command on the shinephone. Cannot Netcapture anymore. API connection has been broken down since 19 November |
My integration works fine … so far |
Working Again, it was the User-Agent problem.. |
@TheWalrus2 which User-Agent do you use?
|
Another reminder - This ticket is closed, all posts should be on the new ticket. However - you can change the User-Agent to anything, except the one that was being used previously i.e. the one you've said you're using. |
Working Again, after update to Home Assistant 2022.11.4! |
I'm sorry, where do you change this variable? ok fixed it, but still can't receive data from growatt server. |
Just follow the most recent ticket on this: #81951 Either take the latest beta or dev release or wait until 2022.12.1 is released. |
The problem
Growatt_server integration works in HA version 2022.10.4 not in version 2022.10.5.
What version of Home Assistant Core has the issue?
2022.10.5
What was the last working version of Home Assistant Core?
2022.10.4
What type of installation are you running?
Home Assistant Container
Integration causing the issue
growatt_server
Link to integration documentation on our website
https://www.home-assistant.io/integrations/growatt_server
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.sensor Source: components/growatt_server/sensor.py:164 Integration: Sensor (documentation, issues) First occurred: 1:36:19 PM (2 occurrences) Last logged: 1:36:19 PM Error adding entities for domain sensor with platform growatt_server Error while setting up growatt_server platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 691, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 777, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 404, in state value = self.native_value File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 164, in native_value result = round(result, self.entity_description.precision) TypeError: type NoneType doesn't define __round__ method ----------------------------------------------------------- Logger: homeassistant.components.growatt_server.sensor Source: components/growatt_server/sensor.py:176 Integration: Growatt Server (documentation, issues) First occurred: 1:36:19 PM (1 occurrences) Last logged: 1:36:19 PM Unable to fetch data from Growatt server
Additional information
Updated and downgraded the version a couple of times and problem is solved in 2022.10.4.
The text was updated successfully, but these errors were encountered: