Does not run with HA 2023-6? #395
Unanswered
p-manent
asked this question in
Setting up the integration
Replies: 2 comments
-
Addendum: Im running 1.2.5, the current version |
Beta Was this translation helpful? Give feedback.
0 replies
-
works for me... Home Assistant 2023.6.2 SUN2000-6KTL-M1 with dongle |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
can you confirm/check why the integration seems to fail initialize under 2023.6.1 and (tried yesterday) 2023.6.2?
So I had to get back (from am VM snapshot) to 2023.5.4 to make it function again (without any changes of the huawei system)
Maybe a problem with the new phyton-Version coming with 2023.6.x ?
Best
Marcus
From Log:
2023-06-15 22:31:59.889 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter.
2023-06-15 22:31:58.861 WARNING (MainThread) [pymodbus.logging] Failed to connect: [Errno 113] Connect call failed ('192.168.1.186', 502)
and following
2023-06-15 22:34:40.933 ERROR (MainThread) [backoff] Giving up _do_read(...) after 6 tries (huawei_solar.exceptions.ConnectionInterruptedException: Could not read register value, has another device interrupted the connection?)
2023-06-15 22:34:40.936 ERROR (MainThread) [huawei_solar.huawei_solar] Got error Failed to read register 47000 after 6 tries while trying to determine battery.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 296, in _do_read
response = await self._client.read_holding_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pymodbus/client/base.py", line 300, in execute
resp = await asyncio.wait_for(req, timeout=self.params.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 479, in wait_for
return fut.result()
^^^^^^^^^^^^
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Connection lost during request
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 324, in _do_read
raise ConnectionInterruptedException(message) from err
huawei_solar.exceptions.ConnectionInterruptedException: Could not read register value, has another device interrupted the connection?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 99, in _determine_battery_type
self.battery_type = (await self.get(rn.STORAGE_UNIT_1_PRODUCT_MODEL, slave_id or self.slave)).value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 215, in get
return (await self.get_multiple([name], slave))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 250, in get_multiple
response = await self._read_registers(registers[0].register, total_length, slave)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 328, in _read_registers
result = await _do_read()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 159, in retry
await _call_handlers(on_giveup, **details, exception=e)
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 37, in _call_handlers
await handler(details)
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 16, in f
return coro_or_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 276, in backoff_giveup
raise ReadException(f"Failed to read register {register} after {details['tries']} tries")
huawei_solar.exceptions.ReadException: Failed to read register 47000 after 6 tries
2023-06-15 22:34:40.947 ERROR (MainThread) [huawei_solar.huawei_solar] Aborting client creation due to error.
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 296, in _do_read
response = await self._client.read_holding_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pymodbus/client/base.py", line 300, in execute
resp = await asyncio.wait_for(req, timeout=self.params.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 479, in wait_for
return fut.result()
^^^^^^^^^^^^
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Connection lost during request
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 324, in _do_read
raise ConnectionInterruptedException(message) from err
huawei_solar.exceptions.ConnectionInterruptedException: Could not read register value, has another device interrupted the connection?
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 137, in create
await huawei_solar._initialize()
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 91, in _initialize
await self._determine_battery_type()
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 114, in _determine_battery_type
raise rerr
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 99, in _determine_battery_type
self.battery_type = (await self.get(rn.STORAGE_UNIT_1_PRODUCT_MODEL, slave_id or self.slave)).value
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 215, in get
return (await self.get_multiple([name], slave))[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 250, in get_multiple
response = await self._read_registers(registers[0].register, total_length, slave)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 328, in _read_registers
result = await _do_read()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 159, in retry
await _call_handlers(on_giveup, **details, exception=e)
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 37, in _call_handlers
await handler(details)
File "/usr/local/lib/python3.11/site-packages/backoff/_async.py", line 16, in f
return coro_or_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/huawei_solar/huawei_solar.py", line 276, in backoff_giveup
raise ReadException(f"Failed to read register {register} after {details['tries']} tries")
huawei_solar.exceptions.ReadException: Failed to read register 47000 after 6 tries
Beta Was this translation helpful? Give feedback.
All reactions