solaredge-modbus-multi: Connection errors
Describe the bug
The connection to the inverter dies roughly once per day. It doesn’t recover so I need to reload the integration. I think this started with 2024.3.1
Expected behavior
Connection recovers
Screenshots
No response
Diagnostic File
config_entry-solaredge_modbus_multi-b86bc24f1ca70258f7ffd41889955498.json
Debug logs
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.solaredge_modbus_multi
Quelle: helpers/update_coordinator.py:318
Integration: SolarEdge Modbus Multi (Dokumentation, Probleme)
Erstmals aufgetreten: 15. März 2024 um 20:16:20 (326 Vorkommnisse)
Zuletzt protokolliert: 08:05:52
Unexpected error fetching SolarEdge Coordinator data: AsyncModbusTcpClient.close() got an unexpected keyword argument 'intern'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 191, in _async_update_data
return await self._refresh_modbus_data_with_retry(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 228, in _refresh_modbus_data_with_retry
raise ex
File "/config/custom_components/solaredge_modbus_multi/__init__.py", line 225, in _refresh_modbus_data_with_retry
return await self._hub.async_refresh_modbus_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solaredge_modbus_multi/hub.py", line 364, in async_refresh_modbus_data
await inverter.read_modbus_data()
File "/config/custom_components/solaredge_modbus_multi/hub.py", line 826, in read_modbus_data
inverter_data = await self.hub.modbus_read_holding_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solaredge_modbus_multi/hub.py", line 452, in modbus_read_holding_registers
result = await self._client.read_holding_registers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pymodbus/client/base.py", line 179, in async_execute
self.close(reconnect=True)
File "/usr/local/lib/python3.12/site-packages/pymodbus/client/tcp.py", line 92, in close
super().close(reconnect=reconnect)
File "/usr/local/lib/python3.12/site-packages/pymodbus/client/base.py", line 130, in close
self.connection_lost(asyncio.TimeoutError("Server not responding"))
File "/usr/local/lib/python3.12/site-packages/pymodbus/transport/transport.py", line 288, in connection_lost
self.close(intern=True)
TypeError: AsyncModbusTcpClient.close() got an unexpected keyword argument 'intern'
Home Assistant Version
2024.3.1
solaredge-modbus-multi Version
2.4.12
Installation Type
HAOS
Read the Instructions
- I have read https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki
- My configuration follows https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki/Configuration
- This issue is not about a template error (template errors should not be reported as an issue, read https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki/Template-Design-Notes)
Additional Context
No response
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Reactions: 2
- Comments: 18 (9 by maintainers)
Fixed in Home Assistant 2024.3.2
Hello, I have the same problem as you, approximately once a day, the integration becomes unavailable Same version Core 2024.3.1 Supervisor 2024.03.0 Operating System 12.1 Interface utilisateur 20240307.0
Thank you the modification are install I deactivated the auto restart of the integration we will see. Have a nice day
Home Assistant 2024.3.2 now has pymodbus v3.6.6.
Yes if that fixes it I will push the pymodbus min to 3.6.6.
Basically 2.4.13-pre.3 just aligns requirements with what Home Assistant 2024.3.0 uses. There are no code changes in it.
HA 2024.3.1 comes with pymodbus 3.6.5
HA 2024.3.0 comes with pymodbus 3.6.4
All of the HA 2024.2.x releases had pymodbus 3.6.3
I’ll try the version with pymodbus 3.6.6 once it is out. For now I am reloading the integration every few hours.