solis-sensor: The integration stops retrieving data from the server.

Describe the bug Every now and then (daily) integration stops updating data from server. I have Solar Sofar 4.4KTL-X inverter.

I use these settings: Sofar solar (home.solarman.cn) portal version ginlong_v2

Versions HA Version an deployment 2022.10.5 HACS version Integration version 1.28.3

core logs ... 2022-10-28 08:36:26.070 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:37:26.073 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:38:26.074 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:39:26.076 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:40:26.075 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:41:26.076 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:42:26.077 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:43:26.083 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:44:26.082 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 08:45:26.084 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.solar_sofar_pv1_power is taking over 10 seconds 2022-10-28 09:20:17.614 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/solis/service.py", line 182, in async_update if await self._login(): File "/config/custom_components/solis/service.py", line 92, in _login if await self._api.login(async_get_clientsession(self._hass)): File "/config/custom_components/solis/ginlong_api.py", line 225, in login self._plant_name = getattr(data, INVERTER_PLANT_NAME) AttributeError: 'NoneType' object has no attribute 'plantName'

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 29 (8 by maintainers)

Most upvoted comments

First of all thanks for all the logs, this really helps.

I’ll try to get out a fix tonight.

Hmm… Now I think that it stopped again ?

2022-11-02 10:18:27.700 DEBUG (MainThread) [custom_components.solis.ginlong_api] Fetching data for serial: xxxxxxxxxxxxxxxxx 2022-11-02 10:18:37.702 DEBUG (MainThread) [custom_components.solis.ginlong_api] Error: Exception: <class 'asyncio.exceptions.TimeoutError'> 2022-11-02 10:18:37.702 INFO (MainThread) [custom_components.solis.ginlong_api] Unable to fetch details for device with ID: 105176242 2022-11-02 10:18:37.702 DEBUG (MainThread) [custom_components.solis.service] Scheduling next update in 1 minutes. 2022-11-02 10:19:45.978 INFO (MainThread) [custom_components.solis.ginlong_api] Login Successful! 2022-11-02 10:19:55.979 DEBUG (MainThread) [custom_components.solis.ginlong_api] Error: Exception: <class 'asyncio.exceptions.TimeoutError'> File "/config/custom_components/solis/service.py", line 182, in async_update File "/config/custom_components/solis/service.py", line 92, in _login File "/config/custom_components/solis/ginlong_api.py", line 224, in login

Looks like an outage server side. The timeout error is new, I’ll catch it so at least it recovers (I assume it didn’t)