HA unable to connect with Growatt server

Hello all, since today that my HA can’t connect to the growatt server to retriev data logger info.
If I loggin to server trough web browser to growatt server all data are there.
Already try to remake the integration and still doesnt work.
Any known issue about this?
Thank you all

Hi, same here.
Few HA updates ago it was working. Today I tried to remove and add integration because I didn’t have all entities - since few days I had only a half of them available. But now, I have connected to the growatt server but no power entities are available. After ten minutes new entities showed up. Strange but all entities are available again.

I still have the connect issue with the server. More people having this issue?
logging:

Blockquote
Logger: homeassistant.components.sensor
Source: components/growatt_server/sensor.py:43
Integration: Sensor (documentation, issues)
First occurred: 12 november 2022 om 16:17:26 (1 occurrences)
Last logged: 12 november 2022 om 16:17:26
ˋˋˋ
Error while setting up growatt_server platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 281, in _async_setup_platform
await asyncio.shield(task)
File “/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py”, line 86, in async_setup_entry
devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
File “/usr/local/lib/python3.10/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.10/site-packages/growattServer/init.py”, line 121, in login
data = json.loads(response.content.decode(‘utf-8’))[‘back’]
File “/usr/local/lib/python3.10/json/init.py”, line 346, in loads
return _default_decoder.decode(s)
File “/usr/local/lib/python3.10/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/local/lib/python3.10/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)
ˋˋˋ

Just a few munites ago the server was suddenly connected again.
Growatt server seems to be not very reliable.
In near future I will try to read out the values directly from the inverter with an ESP32 and disable the connection to the Chinese server.

When you setup the Growatt plugin you logon with the same username / pwd as when you access Growatt server page (server.growatt.com)? I’m stuck here, one time I had it working but forgot what I did then, or if I was just lucky not sure…

Yes of course - same Name/PW

@Caddyblack
It doesn’t just seem so, it actually is. :zipper_mouth_face:


298 x no connection in 4 days.

There is a continuous WiFi connection to the Growatt inverter and I also have a continuous Internet connection here.

anyone that can make successfull connections since the last week more or less?

Now i have the same problem. No connection at all has been possible via Home Assistant for ~ two days. :slightly_frowning_face:

Logger: homeassistant.components.sensor
Source: components/growatt_server/sensor.py:43
Integration: Sensor (documentation, issues)
First occurred: 1. Dezember 2022 um 13:13:28 (1 occurrences)
Last logged: 1. Dezember 2022 um 13:13:28

Error while setting up growatt_server platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 86, in async_setup_entry
    devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
  File "/usr/local/lib/python3.10/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.10/site-packages/growattServer/__init__.py", line 121, in login
    data = json.loads(response.content.decode('utf-8'))['back']
  File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.10/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)

Same here, upgraded my system at dec 26 2022 form 2022.12.4 to 2022.12.8 , sinds then no connection.
Just attempted the 2022.12.9, didn’t work.
Also tried a clean install (no restore) on a rpy, same error. Cannot connect to the server.

When i add a new intergration Growatt, i see >> https://server-api.growatt.com/
Can be wrong but, i tought i saw before >> https://server.growatt.com/

Those have different IPnumbers on the internet, is it possible the connections goes to the wrong server?

I have the same issue. I don’t get it, it’s been broken more than it’s been working since this summer now :confused: What changed?

Logger: aiohttp.server
Source: components/growatt_server/config_flow.py:50
First occurred: 10:58:56 PM (42 occurrences)
Last logged: 11:07:33 PM

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/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 81, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 281, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, 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.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/site-packages/growattServer/__init__.py", line 132, in login
    data = json.loads(response.content.decode('utf-8'))['back']
  File "/usr/local/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.10/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)

… this isn’t an issue with HA it’s an issue with Growatt keep changing things to block the API calls.

Seems it is happening again as I have no information on HA today but the Growatt website works fine.

Very frustrating

2 Likes

Hi, I have the same problem, could you fix this issue?

Yesterday first time install of Home Assistant. Works great.

I tried to connect with my Growatt solar

But gives:

Unknown error occured

Please help

2 Likes

Same here, Unknown error occurred.
Same login works on https://server.growatt.com/

Any help appreciated! :pray:

Can confirm, same error on a new install HA 2023.10.1 Supervisor

Unable to add integration
https://server-api.growatt.com

Unknown error occured

Same here, all working on https://server.growatt.com/ with authentication data, but the integration keeps showing me an “Unknown error occured”.

Any resolution for this?

moin,

the integration points to a different url it displays → https://server-api.growatt.com/
my login goes to this url and works fine for me in my browser —> https://server.growatt.com/
ithink that will be the error … iam new to this , who is responsible to fix this fault ??
thank you rtax

As a new user bumbed to this thread. Trying to setup access. Any pointers to try? Can code if need but thought that this is well functioning software…

So getting also: “Unknown error occurred”