core icon indicating copy to clipboard operation
core copied to clipboard

Growatt solar invertor integration error.

Open aamirfsd opened this issue 1 year ago • 11 comments

The problem

I live in Pakistan and my user name only authenticates on the following location, which is not available in your integration servers.

https://server.growatt.com/

So, please add this server to your integration. because all other servers do not accept my credentials and give login errors.

URL https://www.home-assistant.io/integrations/growatt_server/

image

What version of Home Assistant Core has the issue?

core-2023.11.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

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

aamirfsd avatar Nov 23 '23 11:11 aamirfsd

same problem

magroabcd avatar Nov 26 '23 18:11 magroabcd

same

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 87, in async_setup_entry
    devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 43, in get_device_list
    login_response = api.login(config[CONF_USERNAME], config[CONF_PASSWORD])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/growattServer/__init__.py", line 132, in login
    data = json.loads(response.content.decode('utf-8'))['back']
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/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)

snelis avatar Nov 29 '23 23:11 snelis

Hi all, sorry new to HA and I have the same issue as posted. My data at Growatt is on the server server.growatt.com and this is not on the list. I have tried all of the 3 listed with no joy. Any advice would be appreciated.

Vinno5719 avatar Nov 30 '23 09:11 Vinno5719

My logs show the same error as posted by snelis. Versions: Core 2023.11.3 Frontend 20231030.2

tomdakl avatar Dec 01 '23 08:12 tomdakl

Here also. 2 Year old Installation in Germany. Server Wrong.

Dreistein19 avatar Dec 08 '23 18:12 Dreistein19

Same issue for me. This hasn't worked since the October update

graham416 avatar Dec 11 '23 10:12 graham416

You should now install the integration via HACS. It has the new server address of https://server.growatt.com/ So far there is no issue for me until today:

https://github.com/muppet3000/homeassistant-growatt_server_api

vhardono avatar Dec 13 '23 16:12 vhardono

Same issue for me

Baldoma avatar Dec 14 '23 09:12 Baldoma

Hi

Thank you so much for this

Regards

Graham Snelson

On 14 Dec 2023, at 09:05, Marco Baldini @.***> wrote:

Same issue for me

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/104413#issuecomment-1855449234, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY6S4TRCO2KUTJTBC7BHEUTYJK6MZAVCNFSM6AAAAAA7XTAGROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJVGQ2DSMRTGQ. You are receiving this because you commented.

graham416 avatar Dec 19 '23 10:12 graham416

same Problem in Germany. the wrong server... it looks visual like (https://server.smten.com/)

but the right Server Name is https://server.growatt.com

please add it ! Thanks

marcoO1980 avatar Feb 05 '24 16:02 marcoO1980

fixed in #109122

frenck avatar Feb 07 '24 09:02 frenck