Hello fellow growatters,
I know this integration occasionally has issues as growatt servers go offline every now and then.
This time my integration is broken for over weeks and a half now, with no data whatsoever.
I am able to log into both from web browser
‘https://server.growatt.com/’
‘https://server-api.growatt.com/’
My homeassistant instance
Home Assistant 2022.12.8
Supervisor 2022.12.1
Operating System 9.4
ERROR LOG
Logger: homeassistant.components.sensor
Source: components/growatt_server/sensor.py:43
Integration: Sensor (documentation, issues)
First occurred: 10:52:33 AM (1 occurrences)
Last logged: 10:52:33 AM
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 91, 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 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)
I have tried deleting it, but when I try to add integration at the screen where I have to enter credentials it just says ‘Error’ …yes the username and password are correct, I even created a separate user/pass for integration, still no joy.
Any pointers on what is wrong specifically with my setup/.