home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.58k stars 30.75k forks source link

Unknown error occurred issue with Growatt Integration #73666

Closed Tallywag64 closed 2 years ago

Tallywag64 commented 2 years ago

The problem

Unknown error occurred message when submitting authentication details for Growatt Server integration. The full story is here that Home Assistant was working fine and I borrowed a friends Growatt login details to check to see that the Growatt integrations works and gives me what I want before I had my own solar installation put in. Once I established the the Growatt integration worked with my friends username and password details, I then uninstalled the Growatt integration. Yesterday my solar installation went ahead and is now up and running so I went to install the Growatt integration using my credentials, however I get and Unknown error occurred message when trying to install the integration. The credentials work fine on the Growatt monitoring website and Shine app so I know I am using the correct credentials. I am wondering if there is something left over after the previous uninstall using my friends credentials which is causing this issue . Is there a way I can clear everything related to the Energy tab and start afresh? Below is a copy of the log showing where the Growatt integration fails...

Screenshot 2022-06-17 234432

Any help or guidance you can give would be appreciated. My first post so be gentle with me!

What version of Home Assistant Core has the issue?

2022.6.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Growatt

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?

No response

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

growatt_server documentation growatt_server source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @indykoning, @muppet3000, @jasperplant, mind taking a look at this issue as it has been labeled with an integration (growatt_server) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

vangguppie commented 2 years ago

Same issue here, on 2022.6.5 HA Core the integration stopped working. Removed integration and tried to add integration then this error occurs.

Logger: aiohttp.server Source: components/growatt_server/config_flow.py:50 First occurred: 11:58:08 (1 occurrences) Last logged: 11:58:08

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 220, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 205, in post return await super().post(request, flow_id) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper result = await method(view, request, *args, *kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post result = await self._flow_mgr.async_configure(flow_id, data) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 260, in async_configure result = await self._async_handle_step( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 335, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/usr/src/homeassistant/homeassistant/components/growatt_server/config_flow.py", line 50, in async_step_user login_response = await self.hass.async_add_executor_job( File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run result = self.fn(self.args, **self.kwargs) File "/usr/local/lib/python3.9/site-packages/growattServer/init.py", line 119, in login data = json.loads(response.content.decode('utf-8'))['back'] File "/usr/local/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

valdenny commented 2 years ago

I have Home Assistant 2022.2.9 and it worked perfectly until 11 June 2022, on 12 June the connection to server.growatt.com was "dancer" (also from the ShinePhone App it was a continuous "Network Timeout") I sent a request to support Growatt Italia and they confirmed that they were updating the servers. From 13 June 2022 Home Assistant does not collect any data while from the ShinePhone App everything continues to work. Probably with the update of the Growatt servers something has been changed that prevents the connection of the integration with HomeAssistant.

luc684 commented 2 years ago

My Growatt Integration also stopped working on June 14 at 16:14 CET. I was on Home Assistant 2022.6.5 and upgraded to 2022.6.6 to check if this helps, but nothing does.

JazekerXX commented 2 years ago

My Growatt integration also stopped working on June 14 at 16:09 I am on Home Assistant v2022.6.4 Shinephone and Growatt website both work fine

@valdenny could they say anything else about the update regarding third party usage of the data?

muppet3000 commented 2 years ago

Duplicate of #71577

On Sat, 18 Jun 2022, 20:08 JazekerXX, @.***> wrote:

My Growatt integration also stopped working on June 14 at 16:09 I am on Home Assistant v2022.6.4 Shinephone and Growatt website both work fine

@valdenny https://github.com/valdenny could they say anything else about the update regarding third party usage of the data?

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/73666#issuecomment-1159540321, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACQ62ZAS42MWBYADGRNUTKLVPYNEFANCNFSM5ZEMPBRQ . You are receiving this because you were mentioned.Message ID: @.***>

spocket34 commented 2 years ago

Hello all. I'm a 4 days user of HA. Just the days that Growatt integration doesn't work. I have read a lot , but i'm unable to understand all the things that people say. I have HA in a Virtual Machine with Hyperterminal in W10, i know it's not the best, but i'm at the beggining. All the things that i have read, none refers to this type of installation. The integration never worked for me, so i don't have any config files. There's anyone that can help me to apply the fixes, if it is possible, of course. Thanks all, and sorry for my english, i'm rusty XD.

jarombouts commented 2 years ago

After June 13, 2022, my growatt integration stopped working. Unrelated to HA, but the pypi package growatt also doesn't work at the moment. I guess this indicates that the Growatt API has changed, breaking these third party applications.

muppet3000 commented 2 years ago

After June 13, 2022, my growatt integration stopped working. Unrelated to HA, but the pypi package growatt also doesn't work at the moment. I guess this indicates that the Growatt API has changed, breaking these third party applications.

Please see the thread in the ticket that this is a duplicate of, it will be fixed in the next release, alternatively if you have a way if running the latest Dev build that has the fix in it

ghost commented 2 years ago

Hallo zusammen, auch bei mir werden die Daten vom Growatt Server seit einigen Tagen nicht mehr in Home Assistent angezeigt. Ich habe etwa zeitgleich ein Update auf Home Assistant Core 2022.6.6 beim RaspberryPi 4B gemacht. Beim Kollegen das gleiche Problem. Was genau ist das Problem? Und weiß Growatt davon um dies Problem zu beheben?

ghost commented 2 years ago

Meine Growatt-Integration funktionierte auch am 14. Juni um 16:14 Uhr MEZ nicht mehr. Ich war auf Home Assistant 2022.6.5 und habe auf 2022.6.6 aktualisiert, um zu überprüfen, ob dies hilft, aber nichts tut es.

Bei mir das gleiche Problem.......sehr ärgerlich. Ich steuere mit dem HASSIO meinen Energieverbrauch über Shelly Relais........das geht grad nicht mehr, da ich die Daten vom Wechselrichter nicht mehr bekomme.

jarombouts commented 2 years ago

After June 13, 2022, my growatt integration stopped working. Unrelated to HA, but the pypi package growatt also doesn't work at the moment. I guess this indicates that the Growatt API has changed, breaking these third party applications.

Please see the thread in the ticket that this is a duplicate of, it will be fixed in the next release, alternatively if you have a way if running the latest Dev build that has the fix in it

Thanks a thousand! I overlooked the linked issue. I'll run the dev build.

Edit: yep! This resolves my issue!

jarombouts commented 2 years ago

Meine Growatt-Integration funktionierte auch am 14. Juni um 16:14 Uhr MEZ nicht mehr. Ich war auf Home Assistant 2022.6.5 und habe auf 2022.6.6 aktualisiert, um zu überprüfen, ob dies hilft, aber nichts tut es.

Bei mir das gleiche Problem.......sehr ärgerlich. Ich steuere mit dem HASSIO meinen Energieverbrauch über Shelly Relais........das geht grad nicht mehr, da ich die Daten vom Wechselrichter nicht mehr bekomme.

Maybe you could A) switch to a language everyone reads instead of German, B) change your tone of voice into something more constructive instead of throwing around phrases like "sehr ärgerlich"

Anyway, for a fix, run the dev builds or wait for this to hit stable. Your choice.

ghost commented 2 years ago

Meine Growatt-Integration funktionierte auch am 14. Juni um 16:14 Uhr MEZ nicht mehr. Ich war auf Home Assistant 2022.6.5 und habe auf 2022.6.6 aktualisiert, um zu überprüfen, ob dies hilft, aber nichts tut es.

Bei mir das gleiche Problem....... sehr ärgerlich. Ich steuere mit dem HASSIO meinen Energieverbrauch über Shelly Relais........ das geht grad nicht mehr, da ich die Daten vom Wechselrichter nicht mehr bekomme.

Vielleicht könntest du A) zu einer Sprache wechseln, die jeder anstelle von Deutsch liest, B) deinen Tonfall in etwas Konstruktiveres ändern, anstatt mit Phrasen wie "sehr ärgerlich" um sich zu werfen.

Wie auch immer, für eine Lösung, führen Sie die Dev-Builds aus oder warten Sie, bis dies stabil wird. Sie haben die Wahl.

Vielen Dank , können Sie mir erklären was die Dev-Builds sind? Ich wäre ihnen sehr dankbar. Sorry für die konstruktive Wortwahl. Ich bin hier neu im Forum.

jarombouts commented 2 years ago

No worries @Feuerreiter.

It depends on how you are running home assistant. If you run it through docker simply get the image tagged "dev". Otherwise I'm afraid you'll have to do some searching. Maybe this will help you, first hit I could find. Go to "update via CLI" on

https://peyanski.com/how-to-update-home-assistant-as-safe-as-possible/#Update_Home_Assistant_using_UI

FYI I've fixed my issue by updating to version "Home Assistant Core 2022.7.0.dev20220619"

epenet commented 2 years ago

Duplicate of #71577