mkaiser / Sungrow-SHx-Inverter-Modbus-Home-Assistant

Sungrow SH Integration for Home Assistant for SH3K6, SH4K6, SH5K-20, SH5K-V13, SH3K6-30, SH4K6-30, SH5K-30, SH3.RS, SH3.6RS, SH4.0RS, SH5.0RS, SH6.0RS, SH5.0RT, SH6.0RT, SH8.0RT, SH10RT, SH5.0RT-20, SH6.0RT-20, SH8.0RT-20, SH10RT-20, SH5.0RT-V112, SH6.0RT-V112, SH8.0RT-V112, SH10RT-V112, SH5.0RT-V122, SH6.0RT-V122, SH8.0RT-V122, SH10RT-V122, SH4.6R
376 stars 95 forks source link

[Resolved] Modbus does not connect anymore #390

Closed timkolloch closed 1 month ago

timkolloch commented 1 month ago

Describe the bug:

After an update of HomeAssistant my modbus does not connect anymore. Several restarts and updating to the newest modbus_sungrow.yaml did not solve the problem.

These are the log statments containing modbus I found:

2024-10-27 17:49:43.667 WARNING (MainThread) [pymodbus.logging] Failed to connect [Errno 104] Connect call failed ('192.168.178.14', 502)
2024-10-27 17:49:43.667 WARNING (MainThread) [homeassistant.components.modbus.modbus] modbus SungrowSHx communication open
2024-10-27 17:49:48.582 ERROR (MainThread) [homeassistant.components.modbus.modbus] Pymodbus: SungrowSHx: Error: device: 1 address: 13045 -> Modbus Error: [Connection] Not connected[AsyncModbusTcpClient 192.168.178.14:502]

Are there any ideas what could be wrong?

Your Sungrow inverter:

Home Assistant version: Core 2024.10.4 Supervisor 2024.10.3 Operating System 13.2 Frontend 20241002.4

modbus_sungrow.yaml:

Inverter Firmware Status:

I do now know as I do not have an installers account to log in to the web access of my inverter. But the company that installed the device said they will take care of software upgrades. Where do I find information about that?

To Reproduce Not much to reproduce here I think.

Maggie70 commented 1 month ago

Same for me, restart modbus and it ok again.

timkolloch commented 1 month ago

Same for me, restart modbus and it ok again.

But shouldn't Modbus be restarted when I restart HomeAssistant? If not, how can I restart it? When I look for the integration all I see is "this integration was not setup from the UI"

Gnarfoz commented 1 month ago

The issue is more likely with the inverter. The Modbus stack on the inverter is notoriously finnicky. Try unplugging its network cable for a minute or so.

Maggie70 commented 1 month ago

Screenshot_20241028_163640_Home Assistant

Maggie70 commented 1 month ago

restart modbus in developer tools

timkolloch commented 1 month ago

The issue is more likely with the inverter. The Modbus stack on the inverter is notoriously finnicky. Try unplugging its network cable for a minute or so.

Yes, that did solve it. I will know for the future, thank you!

timkolloch commented 1 month ago

restart modbus in developer tools

That sadly did not solve it but unplugging and plugging it back in helped. Thank you for your time!