Huawei Solar: Constant error messages in the log

Hello, I’m new to this forum, but not entirely new to Home Assistant. I’ve already tried and used quite a bit, though I’m definitely not an expert when it comes to technical backgrounds. I hope this is the right section of the forum; otherwise, please feel free to move it. I recently acquired a PV system with a Huawei Inverter (without a battery) and integrated it into my Home Assistant using Huawei Solar Integration. I can visualize the current values using the Power Flow Card Plus. So far so good. However, I’ve noticed that I don’t seem to get usable values for energy consumption on the energy dashboard, but that’s not why I’m creating this thread. Rather, it appears that the issue lies with the connection to the inverter, as the HA log reports frequent problems/disconnections. Unfortunately, due to my lack of experience, I can’t make much of this; maybe it’s a known issue. At least I can say that the inverter is connected to my network via a Huawei Smart Dongle using an Ethernet cable (the WiFi connection was too weak in the basement). I’ve also assigned a static IP, and pinging the inverter from my PC via Windows cmd works without any problems. But that’s about as far as my understanding goes. The Firmware of the Inverter and my Integration are up to date. I will attach a few entries from the log; maybe someone can make sense of these messages, which really come several times an hour:

Logger: huawei_solar.huawei_solar
Quelle: /usr/local/lib/python3.12/site-packages/huawei_solar/huawei_solar.py:396
Erstmals aufgetreten: 12. Juli 2024 um 17:52:02 (177 Vorkommnisse)
Zuletzt protokolliert: 10:07:15

Modbus client is not connected to the inverter.

NoneType: None

Logger: custom_components.huawei_solar
Quelle: helpers/update_coordinator.py:318
Integration: Huawei Solar
Erstmals aufgetreten: 12. Juli 2024 um 17:04:35 (51 Vorkommnisse)
Zuletzt protokolliert: 09:20:00

  • Timeout fetching TA22C0376839_inverter_data_update_coordinator data
  • Timeout fetching TA22C0376839_power_meter_data_update_coordinator data
  • Timeout fetching TA22C0376839_config_data_update_coordinator data

Logger: huawei_solar.huawei_solar
Quelle: /usr/local/lib/python3.12/site-packages/huawei_solar/huawei_solar.py:439
Erstmals aufgetreten: 12. Juli 2024 um 17:52:01 (7 Vorkommnisse)
Zuletzt protokolliert: 07:01:08
Could not read register value, has another device interrupted the connection?

Traceback (most recent call last):
File “/usr/local/lib/python3.12/site-packages/huawei_solar/huawei_solar.py”, line 399, in _do_read
response = await self._client.read_holding_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/site-packages/pymodbus/client/base.py”, line 175, in async_execute
resp = await asyncio.wait_for(
^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.12/asyncio/tasks.py”, line 520, in wait_for
return await fut
^^^^^^^^^
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Client is not connected

Logger: pymodbus.logging
Quelle: custom_components/huawei_solar/update_coordinator.py:57
Integration: Huawei Solar
Erstmals aufgetreten: 12. Juli 2024 um 17:52:01 (6 Vorkommnisse)
Zuletzt protokolliert: 07:01:08

Cancel send, because not connected!

Logger: huawei_solar.huawei_solar
Quelle: /usr/local/lib/python3.12/site-packages/huawei_solar/huawei_solar.py:162
Erstmals aufgetreten: 12. Juli 2024 um 17:15:35 (35 Vorkommnisse)
Zuletzt protokolliert: 06:44:49
Timeout while waiting for connection. Reconnecting…

Traceback (most recent call last):
File “/usr/local/lib/python3.12/asyncio/tasks.py”, line 520, in wait_for
return await fut
^^^^^^^^^
File “/usr/local/lib/python3.12/asyncio/locks.py”, line 212, in wait
await fut
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/lib/python3.12/site-packages/huawei_solar/huawei_solar.py”, line 157, in _communication_lock
await asyncio.wait_for(
File “/usr/local/lib/python3.12/asyncio/tasks.py”, line 519, in wait_for
async with timeouts.timeout(timeout):
File “/usr/local/lib/python3.12/asyncio/timeouts.py”, line 115, in aexit
raise TimeoutError from exc_val
TimeoutError

Logger: custom_components.huawei_solar
Quelle: helpers/update_coordinator.py:344
Integration: Huawei Solar
Erstmals aufgetreten: 12. Juli 2024 um 23:15:13 (6 Vorkommnisse)
Zuletzt protokolliert: 06:15:21

  • Error fetching TA22C0376839_inverter_data_update_coordinator data: Could not update TA22C0376839 values: Got error while reading from register 32000 with length 20: Exception Response(131, 3, IllegalAddress)
  • Error fetching TA22C0376839_power_meter_data_update_coordinator data: Could not update TA22C0376839 values: Got error while reading from register 37113 with length 25: Exception Response(131, 3, IllegalAddress)

Currently have the same problem. Same setup as yours except that the inverter is connected via WIFI using the Huawei smart dongle.
However, the WIFI connection is stable. According to the router log, there are no interruptions. Connected with 72 mbit/s.
Have you been able to solve your problem yet?

I still have disconnects sometimes but also, my router connections seems stable. Reloading the Integration normally solves the problem so i think, it might be a software issue. If I don’t do anything, it normally works again after some minutes.

Did any of you manage to find the cause or solution to this? have ran into same issue after working fine for over 12 months.