Skip to content

[Bug]: Cannot reconnect to S5-WiFi-ST after Home Assistant and integration update #432

Description

@sirenkovv

🐛 Bug Description

🐞 Bug Description

After updating both Home Assistant and the Solis Modbus integration, the integration stopped working correctly.

Initially, the integration remained loaded, but all inverter values stopped updating and appeared to be frozen at the last received values.

To resolve the issue, I removed the integration from Home Assistant. Since then, I have been unable to add it again. During the setup process, I always receive the following error:

Cannot connect to Modbus device. Please check your configuration.

The inverter and logger continue to work normally with SolisCloud, so the issue appears to be limited to the Home Assistant integration.


🔄 To Reproduce

  1. Update Home Assistant and the Solis Modbus integration.
  2. Observe that inverter data stops updating in Home Assistant (values remain frozen).
  3. Remove the integration.
  4. Try to add the integration again using the same configuration (TCP / Modbus port 502).
  5. The configuration always fails with:

Cannot connect to Modbus device. Please check your configuration.


✅ Expected Behavior

The integration should reconnect successfully to the logger and continue updating inverter data via Modbus TCP, as it did before the update.


📸 Screenshots / Logs

I can provide:

Image ---

🔧 System Information

🔹 Home Assistant

  • Version: (please fill in)
  • Installation Method: (please fill in)

🔹 Integration

  • Plugin Version: 4.1.5 (also tested 4.1.6)
  • Inverter Model: Solis S5-30GC
  • Logger Model: S5-WiFi-ST
  • Connection Type: Modbus TCP (Wi-Fi)
  • Logger IP: 192.168.31.211
Image
  • Custom Config Entries: No

➕ Additional Context

I have already tried the following:

  • Restarted Home Assistant.
  • Restarted the router.
  • Restarted the S5-WiFi-ST logger.
  • Removed and reconfigured the logger's Wi-Fi connection.
  • Unbound and rebound the logger to the inverter.
  • Tested both integration versions 4.1.5 and 4.1.6.

None of these steps resolved the issue.

The logger itself appears to be working correctly:

  • The inverter continues uploading data to SolisCloud without interruption.
  • I can access and modify inverter settings through SolisCloud.
  • Communication between the inverter and the logger appears normal.

The issue only affects the Home Assistant integration. After removing the integration, I can no longer add it back because the Modbus connection test always fails.

Please let me know if there are any additional logs or diagnostic tests that would help identify the cause.

Image I also noticed that the logger no longer appears to expose any local network services.

From a PC on the same LAN:

ICMP ping to 192.168.31.221 is successful.
TCP port 502 (Modbus) is not reachable.
HTTP (port 80) is also not reachable.
Test-NetConnection confirms that TCP port 502 is closed or not accepting connections.

Since the logger is online and continues communicating with SolisCloud normally, I am wondering whether:

a recent logger firmware update may have changed or disabled local Modbus TCP access,
the logger firmware could have become corrupted,
or there is another configuration that enables/disables local Modbus TCP.

Could you please check whether the logger has recently received a firmware update and whether Modbus TCP should still be available on port 502 for this firmware version?

PowerShell:
Test-NetConnection 192.168.31.221 -Port 502
PingSucceeded : True
TcpTestSucceeded : False

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions