As of 9.00 PM yesterday evening, my connection to the SolarEdge Modbus has been refused according to the log file. No changes were made in HA so I guess it has something to do with the SolarEdge hardware. Is someone else also struggling with this issue as of yesterday?
2022-10-06 12:06:19.678 ERROR (MainThread) [pymodbus.client.sync] Connection to (192.168.178.120, 1502) failed: [Errno 111] Connection refused
2022-10-06 12:06:19.685 ERROR (MainThread) [custom_components.solaredge_modbus] Error reading modbus data
Traceback (most recent call last):
File "/config/custom_components/solaredge_modbus/__init__.py", line 195, in async_refresh_modbus_data
update_result = self.read_modbus_data()
File "/config/custom_components/solaredge_modbus/__init__.py", line 246, in read_modbus_data
self.read_modbus_data_inverter()
File "/config/custom_components/solaredge_modbus/__init__.py", line 570, in read_modbus_data_inverter
inverter_data = self.read_holding_registers(unit=self._address, address=40071, count=38)
File "/config/custom_components/solaredge_modbus/__init__.py", line 233, in read_holding_registers
return self._client.read_holding_registers(address, count, **kwargs)
File "/usr/local/lib/python3.10/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers
return self.execute(request)
File "/usr/local/lib/python3.10/site-packages/pymodbus/client/sync.py", line 106, in execute
raise ConnectionException("Failed to connect[%s]" % (self.__str__()))
pymodbus.exceptions.ConnectionException: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.178.120:1502)]
I restarted HA and also the SolarEdge converter, but that didn’t help. There is a cabled TCP-IP connection and the SolarEdge app itself is receiving data, so the connection is not the problem.