binsentsu / home-assistant-solaredge-modbus

Home assistant Component for reading data locally from Solaredge inverter through modbus TCP
280 stars 70 forks source link

After update HA to 2022.02 connection error #79

Open kazek127 opened 2 years ago

kazek127 commented 2 years ago

Error reading modbus data Traceback (most recent call last): File "/config/custom_components/solaredge_modbus/init.py", line 187, in async_refresh_modbus_data update_result = self.read_modbus_data() File "/config/custom_components/solaredge_modbus/init.py", line 228, in read_modbus_data self.read_modbus_data_inverter() File "/config/custom_components/solaredge_modbus/init.py", line 552, in read_modbus_data_inverter inverter_data = self.read_holding_registers(unit=1, address=40071, count=38) File "/config/custom_components/solaredge_modbus/init.py", line 215, in read_holding_registers return self._client.read_holding_registers(address, count, **kwargs) File "/usr/local/lib/python3.9/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers return self.execute(request) File "/usr/local/lib/python3.9/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.30.8:1502)]

From the machine where is installed HA I can get access to 192.168.30.8

Pablo1 commented 2 years ago

Same here. I'm using port 502 but the error log shows 1502.

purcell-lab commented 2 years ago

Are you connecting to your SolarEdge inverter over the Wi-Fi interface?

ModbusTCP over wifi appears to be no longer supported with new firmware versions.

Have a look at #67

kazek127 commented 2 years ago

yes, that is correct. I call to SE support and they after update inverter block that option via wifi :/

pepsonEL commented 2 years ago

Yes in new FW modbus over WIFI was blocked.

stuarts0011 commented 2 years ago

I asked solaredge to downgrade the firmware if SE4000 inverter to 4.12.35 and modbus over wifi now works !

On Tue, 15 Mar 2022, 9:13 pm pepsonEL, @.***> wrote:

Yes in new FW modbus over WIFI was blocked.

— Reply to this email directly, view it on GitHub https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/79#issuecomment-1067798142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3WSCUR347B35LR6RPOVN3VABPD7ANCNFSM5OJG62CA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.*** .com>