Growatt Integration not working since yesterday evening?

I’ve been using the Growatt integration a while now, and it has been working great.
However, since yesterday evening something has changed and today no data has been received.
It’s all there on the dashboard hosted by Growatt, so the inverter and datalogging is working as before, it’s just that HA no longer gets any data.
I removed and re-added the integration to make sure I am using the most recent one.

The log states the following:

Error while setting up growatt_server platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 885, in async_setup_entry
    devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 870, in get_device_list
    devices = api.device_list(plant_id)
  File "/usr/local/lib/python3.9/site-packages/growattServer/__init__.py", line 440, in device_list
    return self.plant_info(plant_id)['deviceList']
  File "/usr/local/lib/python3.9/site-packages/growattServer/__init__.py", line 453, in plant_info
    data = json.loads(response.content.decode('utf-8'))
  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 7 column 1 (char 19)

Any others having this issue?

Got the exact same issue, integration is not working anymore :slightly_frowning_face:

Logger: homeassistant.components.sensor
Source: components/growatt_server/sensor.py:870
Integration: Sensor (documentation, issues)
First occurred: 14:12:20 (1 occurrences)
Last logged: 14:12:20

Error while setting up growatt_server platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 885, in async_setup_entry
    devices, plant_id = await hass.async_add_executor_job(get_device_list, api, config)
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/growatt_server/sensor.py", line 870, in get_device_list
    devices = api.device_list(plant_id)
  File "/usr/local/lib/python3.9/site-packages/growattServer/__init__.py", line 440, in device_list
    return self.plant_info(plant_id)['deviceList']
  File "/usr/local/lib/python3.9/site-packages/growattServer/__init__.py", line 453, in plant_info
    data = json.loads(response.content.decode('utf-8'))
  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 7 column 1 (char 19)

Same issue, same error here. No data received since this morning. The inverter does send data to the Growatt server and I can see today’s power curve through the native app.
So, this points to a problem in the integration, I would say.

Indeed: it’s a known issue. Let’s hope it gets sorted. :roll_eyes:

Patch available @ https://github.com/home-assistant/core/issues/56044

Ok…now, how do you install these patches? I have no clue

I have my HA running on a PI and also have to clue how to reach these files. Any help will be appreciated.

I came here due to issues with Growatt integration in the last few days too. I’m glad to see I’m not the only one and even happier there is a fix coming.

I’ve never been involved in PRs etc, can someone give an indication of how long until the fix comes through official updates as opposed to patches? I’m wondering days (e.g. 2021.09.10 or next major release 2021.10 next month)

With this and this it works again! (I use my HA on RPI4)

Is there a fix or a planning for a fix yet? The mentioned fixes dont seem to work for my installation.

The 2021.09.7 release notes indicate a fix for Growatt integration. Unfortunately, the latest update I can update is 2021.09.6. @Wackywabbit check out the latest release and hopefully that does the trick.

Thanks in advance to everyone who worked on this issue!!

Thank you all for the work on the fix. Everything is back as it was before. (Still a couple of issues though, just as before. Not sure how I can report them; here or at Github?)

If it is an actual issue or bug with the integration i’d suggest github. It pings the relevant developer of the integration.

If it’s more of a suggestion, discussion or question about it then right here is the place since you’re more likely to get a response from more people.

Just wondering if you guys experience disconnection for growatt integration from 14/06/22 midnight (I am in Adelaide AU + GMT+10hrs)? The integration was working perfectly with 2022.6.5 HA. I restarted HA and also upgraded to 2022.6.6 just to check yet no luck

I can go to growatt mobile app and also growatt server and that all seems to be working well. So it cannot be a server down

Thanks

yes i have the same

So your Growatt integration not working too. By the way are from Australia too- because growatt may be having several servers for various regions.

Same for me, I thought it must have been something about my network and didn’t look into it yet but it matches your timeline exactly. (Australia too)

i have the same problem since yesterday. even reinstalling the integration was unsuccessful. I can not log in anymore. → Unknown error occurred

Thanks. I searched for any resent comments by anyone on this and found none. As such may have to escalate as a problem. Looks like it is happening again. Not sure the method to open up as an issue to developers.

API changed again. Information here: Login error · Issue #28 · indykoning/PyPi_GrowattServer · GitHub