I moved inverter connectivity from WiFI to LAN and now modBUS is not connecting anymore #749
Replies: 7 comments
-
I'm not aware of any modbus port difference between wifi and ethernet, but my inverters never had wifi support so I don't have anything to compare to. Make sure that modbus is still enabled after changing to ethernet. |
Beta Was this translation helpful? Give feedback.
-
Have you tried doing a cold restart of your inverter after removing the wifi configuration?
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
What IP are you expecting? Your test showing it works was to 192.168.50.243 but you are getting failures to 192.168.50.48 so which is correct? There are also attempts on .240 and .241 so I'm not sure what IPs you have setup? Does the test to .48 work? |
Beta Was this translation helpful? Give feedback.
-
Sorry about the confusion, after many experiments I did wifi yes/no and ethernet yes/no it seems I gave you some misleading screenshots. Tomorrow I will do a recap with the information I gathered so far. |
Beta Was this translation helpful? Give feedback.
-
It's worth trying a port scan on the Inverter to see what ports are open - that will tell you something useful as if the port isn't open then you'll probably have to speak to your installer or SE Support. 1502 isn't included by default, so you won't see it open - all I get is 8181 so I have to scan it specifically but it does show as open on mine - here's what I'd expect to see for your example:
|
Beta Was this translation helpful? Give feedback.
-
Hello, Part #1 In this first part, the lan cable is DISCONNECTED. On the computer terminal I start with a simple ping of the IP, I can see that although it is responding correctly, some packets are lost, to emphasize as I had anticipated that the WiFi connectivity in my home is not stable (which is why I want to switch to LAN). As a second test I do an nmap on port 1502, the response as expected is “open”, there is indeed the modbus service responding on that port. The Home Assistant integration is correctly reading the data. I emphasize that at this first stage, where everything is working, the lan cable is still DISCONNECTED Part #2 The LAN cable of the inverter is connected. I move to “Monitoring Communication” and switch the connection mode from WiFi to Ethernet. The IP address assigned to the LAN connection ends with .48 On the “Site Communication” page I use the “Forget” function to remove the Wi-Fi credentials so that Ethernet remains as the only connection method. Having changed the connection method, I do a modbus mode reset by doing disable+enable (I'm not sure it's necessary, but when in doubt, it doesn't hurt). From the router's web page I check for the appearance of the inverter's ethernet connection with IP .48 Trying a telnet with the IP shows that the inverter responds successfully, the ethernet connection is active, as well as showing a real improvement in performance (no more lost packets, response time is less than 5ms) I retry the nmap with the new ip and here the problems begin, if before with WiFi it gave “open”, confirming that there was an active service responding on that port, now it gives “filtered” as there is no longer anyone responding. Despite having this initial negative response, I still try to start Home Assistant integration with the Ethernet IP, and as expected it gives connection error. I also force the connection refresh with the WiFi IP to confirm that it is no longer working (as expected, having turned it off). I tried a second nmap, assuming that having done off+on of the modbus feature it needed time to start up, but the result did not change, it always gives “filtered” as an unavailable service. Finally, I also try to open a telnet on the Ethernet IP and as expected no response (while done with the WiFi IP the connection opens correctly). I finally start to reset the situation, re-entering the WiFi credentials and disconnecting the LAN cable, the modbus works properly again and the home assistant integration resumes reading data. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Hello,
I understand this might no be an issue of the integration itself, but given the type of problem I might found someone here that can help me understand what is going on.
Long story short... One month ago I connected the inverter via WiFi, I enabled the modBUS and I was able to connect this integration without additional issue. Due some connectivity issue (my home wifi is not very stable), I connected the inverter via Ethernet to rely on a more stable connection. Once I changed the connection I made the inverter "Forget" the WiFI credentials, and now the modBUS integration is not working anymore (I corrected the IP with the new Ethernet one).
Full details here: https://community.home-assistant.io/t/solaredge-modbus-multi-switching-from-wifi-to-lan-doesnt-connect-anymore/835229
Expected behavior
modBUS connection should work with LAN connectivity.
As you can see from the screenshots, the inverter LAN IP is set to 192.168.50.243
I tried to use an external modBUS client and the connections works:
![Image](https://private-user-images.githubusercontent.com/132147743/406574741-9dd81901-eb1b-40d4-a86f-6dc1ae59ac98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODI2ODgsIm5iZiI6MTczOTE4MjM4OCwicGF0aCI6Ii8xMzIxNDc3NDMvNDA2NTc0NzQxLTlkZDgxOTAxLWViMWItNDBkNC1hODZmLTZkYzFhZTU5YWM5OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxMDEzMDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZTBiNGU5MjFkMGNkYmM2OTg1ZmQ2NTk3M2IzNTY2YTdmY2NlOTU2MTFmNTJjZjFjZThjMTU0NTA0ZDE0YzVhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.rhmAIXNGSKhsJHLO6XOZOrVc0ig0P1-bVQOrpc3Kw1g)
It says "connected".
At this point I'm not sure if the issue is the inverter or the integration
Screenshots
Right now I assigned static IP to both interfaces (WiFi or LAN) and neither are working:
You may find Solaredge SetApp screenshot in the Home Assistant forum
Diagnostic File
Debug logs
Home Assistant Version
2025.1.3
solaredge-modbus-multi Version
3.0.5
Installation Type
HAOS
Read the Instructions
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions