Comments (57)
hi,
if you are using Windows you can easily check, if the modbus connection generally works by QModMaster
I tested it with the values shown in the screenshot. First set the TCP Settings (Options --> Modbus TCP) then adapt all highlighted parameters
from sungrow-shx-inverter-modbus-home-assistant.
I get the “Illegal Data Read” error but I can access the WiNet dongle on web browser…
from sungrow-shx-inverter-modbus-home-assistant.
Can you give more information?
The Webinterface does not have anything to do with the modbus connection. How is your inverter exactly connected?
from sungrow-shx-inverter-modbus-home-assistant.
The inverter is connected to WiFi (of course with static IP assigned) via WiNet dongle. I checked on the web interface (logging-in as admin) and the modbus server is correctly enabled but I can't access it via QModMaster or the HA integration...
from sungrow-shx-inverter-modbus-home-assistant.
I also changed the Unit ID in QModMaster to "1" since this is the slave address of the inverter (also putting "100" it doesn't work properly).
from sungrow-shx-inverter-modbus-home-assistant.
hmm I cannot find detailled information about the WiNet dongle.
On my SH10 RT inverter I have LAN directly attached and use this for modbus.
In addition I had a Wifi Dongle attached to a separate port (I don't know the exact model number).
In the inverter settings I set the modbus slave adress to 100. standard is 1.
Do you have a LAN cord attached or just Wifi? Maybe it works only with LAN...
from sungrow-shx-inverter-modbus-home-assistant.
So you have directly connected the inverter via RJ45 port without any additional device (such as the WiNet dongle)?
from sungrow-shx-inverter-modbus-home-assistant.
my SH10 model has two different ports: One to directly attach Ethernet, one for a Wifi dongle
I use the Ethernet cable for Modbus and disconnected the Wifi (there is no need to send my information anywhere else than my home).
Can you check if it works with a Ethernet cable attached?
from sungrow-shx-inverter-modbus-home-assistant.
I also saw this multiple times in other discussions that the Modbus connection only works through the LAN port. Additionally I saw some mentions of encryption. So wondering which Inverter firmware version you guys are running?
from sungrow-shx-inverter-modbus-home-assistant.
I wonder if removing the Wi-Fi dongle while using the LAN port makes a difference. I was also having trouble so maybe I should try that combination as well.
from sungrow-shx-inverter-modbus-home-assistant.
My inverter runs SUNSTONE-H_01011.02.19 firmware. I'll try without WiNet dongle and let you know.
from sungrow-shx-inverter-modbus-home-assistant.
SH10.RT
MSDP: SAPPHIRE-H_03011.01.14
LCD: SAPPHIRE-H_01011.01.17
from sungrow-shx-inverter-modbus-home-assistant.
I wonder if removing the Wi-Fi dongle while using the LAN port makes a difference. I was also having trouble so maybe I should try that combination as well.
I'm not completely sure I can connect the inverter directly to Ethernet without WiNet dongle...
from sungrow-shx-inverter-modbus-home-assistant.
Okay we removed the Wi-Fi dongle and the isolarcloud connection seems to be still working. So I guess the dongle is only needed for firmware updates. Ours is not WiNet but "WiFi V313".
from sungrow-shx-inverter-modbus-home-assistant.
Have you connected the Ethernet cable directly into the dongle port?
from sungrow-shx-inverter-modbus-home-assistant.
I think what I just wrote is wrong, there seems to be a large delay until the isolarcloud notices a problem. Now the device seems to be offline, which I would have expected in the first place. But maybe the home assistant modbus connection will work properly now.
The cable is connected to the "LAN" Ethernet port not the one for the WiFi dongle. I never tried connecting the cable there.
Edit: I can still see a connection through the isolarcloud.com web app. So I am a bit confused right now.
from sungrow-shx-inverter-modbus-home-assistant.
I think there is no Ethernet port in SH6.0RS model. On the manual it says that the Ethernet cable should be connected to the WiNet dongle port. The other RJ45 ports are intended for BUS and COM communication…
from sungrow-shx-inverter-modbus-home-assistant.
Okay it seems the isolarcloud Android app just had an issue. Working again after restarting the app. So it does indeed work without the Wi-Fi dongle on the SH10RT and just Ethernet plugged to the "LAN" port.
from sungrow-shx-inverter-modbus-home-assistant.
Btw: It shows the LAN network module which I guess is build into the SH10 as an "iE-Net".
from sungrow-shx-inverter-modbus-home-assistant.
Okay so if your inverter has only one Ethernet port then I guess you have to go with that one 😊
from sungrow-shx-inverter-modbus-home-assistant.
I got it to work now on our SH10, I found that I had the wrong slave ID set (100 instead of 1), fixed that and now it is working. Created a pull request with my simplified configuration and setup instructions.
from sungrow-shx-inverter-modbus-home-assistant.
I got it to work now on our SH10, I found that I had the wrong slave ID set (100 instead of 1), fixed that and now it is working. Created a pull request with my simplified configuration and setup instructions.
Did you get it working with or without the WiFi dongle?
from sungrow-shx-inverter-modbus-home-assistant.
Without WiFi dongle. Late we can try if it also works when we replug the Wifi dongle or if that disturbs the home assistant modbus. But you should definitely try WITHOUT the Wifi dongle. Also see the home assistant log and check for any error messages regarding the modbus connection.
You can find my simplified yaml here: https://github.com/johschmitz/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/main/modbus_sungrow.yaml
Then you don't need the secrets.yaml anymore.
from sungrow-shx-inverter-modbus-home-assistant.
The fact is that on thge SH6.0RS model there aren't any other LAN/Ethernet ports so I must connect the Ethernet cable to the WiNet dongle LAN port...
from sungrow-shx-inverter-modbus-home-assistant.
Nothing to do: connecting the inverter via the WiNet dongle Ethernet port still doesn't give me modbus access.
from sungrow-shx-inverter-modbus-home-assistant.
Why can't you unplug the dongle and plug the Ethernet cable directly into your inverter?
from sungrow-shx-inverter-modbus-home-assistant.
Tried it: the port is designed to work with the dongle. If I unplug it, I can’t receive any data (the Ethernet switch can’t see the inverter at all).
from sungrow-shx-inverter-modbus-home-assistant.
There's also different types of dongles from Sungrow. Maybe you have to get another one with Ethernet only to be able to use the Modbus connection?
Also try to disable the Wi-Fi connection with your home network in the web interface of the dongle:
from sungrow-shx-inverter-modbus-home-assistant.
The strange thing is that modbus server is enabled:
from sungrow-shx-inverter-modbus-home-assistant.
Saw this in a german forum: https://forum.iobroker.net/topic/38441/sungrow-wr-sgh10rt-erfolgreich-mit-modbus-eingebunden/115?_=1641918692873&lang=de
It looks like it is a know problem and Sungrow is currently working on enabling the modbus for the WiNet-S adaptors for the SGx-series (SHx is working)
from sungrow-shx-inverter-modbus-home-assistant.
Maybe I need to update the firmware. I'll check and let you know!
from sungrow-shx-inverter-modbus-home-assistant.
Hello. After several tests I saw that with @mkaiser QModMaster configuration I can read Holding Registers data but not the input one (I always get "Illegal data" error). Any suggestions?
from sungrow-shx-inverter-modbus-home-assistant.
Basically, this is the data I read on address 5002 by reading the input registers (with error):
And this is the data I can read on address 5002 by reading the holding registers (no error):
Can't figure out what's wrong...
from sungrow-shx-inverter-modbus-home-assistant.
Any updates on this?
I saw in a german forum, that Sungrow is actively working on fixing the WiNet-S stuff. But no good news, yet
from sungrow-shx-inverter-modbus-home-assistant.
Still not working on my inverter.
from sungrow-shx-inverter-modbus-home-assistant.
I'm having the same problems with the SH8.0RT, I just updated all of the firmware, but nothing worked.
The firmware seemed to be from Dec. 14th 2021. And the QModMaster also allowed holding register read, but no input register read.
Does anyone have the link to the sungrow team saying that they will fix this?
from sungrow-shx-inverter-modbus-home-assistant.
I have my intel from here (german)
https://www.photovoltaikforum.com/thread/158136-sungrow-sammelthread-produktmanagement/?postID=2557804#post2557804
Die LAN-Buchse des Sungrow Hybrid ist bevorzugt für Modbus TCP zu verwenden, iSolarCloud Monitoring hat daran nur 5 Minuten Aktualisierungsrate.
Der WiNet-S Ethernetanschluss ist bevorzugt für iSolarCloud Monitoring zu verwenden, die Aktualisierungsrate liegt bei 10s wenn aktiviert und gute Internetverbindung vorausgesetzt. Modbus-TCP ist damit leider derzeit nur eingeschränkt bis gar nicht möglich bis die Firmware upgedated ist, dies steht kurz vor dem Abschluss.
Short translated version:
Use the LAN port of the Sungrow Hybrid to use ModBus TCP. Using this port the iSolarcloud will have a refresh rate of 5 minutes.
The WiNet-S Port should be used for iSolarCloud Monitoring with a refresh rate of 10seconds. Modbus TCP is very limited to unusable on this port. A firmware upgrade for this is quiet near to a release.
What port did you use? Can you send us a picture?
from sungrow-shx-inverter-modbus-home-assistant.
Personally, I only have the ethernet port of the WiNet dongle.
from sungrow-shx-inverter-modbus-home-assistant.
I do have both, but the I do not have a LAN cable anywhere near the device.
So I'm hoping they will fix the Modbus-TCP for the WiNet-S dongle soon.
from sungrow-shx-inverter-modbus-home-assistant.
hi,
Just read a recent post from a german forum from a (official) Sungrow product management team:
Beim Sungrow SGxxRT (normaler WR) sollte seit dem Firmwareupdate Anfang diesen Monats Modbus TCP über den WiNet-S möglich sein.
rough translation:
The newest firmware, released early this month, should add support MODBUS TCP via WiNet-S for the Sungrow SGxxRT (including non-hybrid inverter)
@Eragoon and @MatteoSalviTech
Can you check this?
from sungrow-shx-inverter-modbus-home-assistant.
I continue to get the "Illegal Data Read" on QModMaster. Maybe because I own a SHx series inverter. My actual firmware version is: SUNSTONE-H_01011.02.19.
from sungrow-shx-inverter-modbus-home-assistant.
Modbus TCP via WinetS works for a collegue of mine with a SH8RT now.
- plug LAN cable into Inverter (not WinetS)
- Look in router for PC*** device and assign a static IP in the range of .20 to 240. (the lower range seems to not work...)
Note
PC** is the inverter
Espressif*** is the WinetS Dongle
maybe this helps?
from sungrow-shx-inverter-modbus-home-assistant.
picture of SGH8.RT with working modbus from my collegue. LAN is connected directly to the inverter, not via WiNetS
from sungrow-shx-inverter-modbus-home-assistant.
Anyone knows if it is possible to connect two Ethernet cables simultaneously to use the cloud and local Modbus TCP together?
from sungrow-shx-inverter-modbus-home-assistant.
The problem is that on my SH6.0RS there isn’t any additional Ethernet port…
from sungrow-shx-inverter-modbus-home-assistant.
The problem is that on my SH6.0RS there isn’t any additional Ethernet port…
Same with my SH5.0RS
I get the “Illegal Data Read” error but I can access the WiNet dongle on web browser…
Make sure you update the WiNet-S firmware. Mine came with with WINET-SV200.001.00.P008
and I was able to upgrade to WINET-SV200.001.00.P012
. This enabled Modbus access -- however, many registers are inaccessible, such as 13001
(running state). Other registers, such as 5036
(grid frequency) are off by a factor of 10 (showing me 500.9 Hz right now)!
Hopefully it improves, but I've had better getting info using SunGather
with the http
connection type (which essentially gets values via the web interface).
from sungrow-shx-inverter-modbus-home-assistant.
Anyone knows if it is possible to connect two Ethernet cables simultaneously to use the cloud and local Modbus TCP together?
Yes, for me this works on my SH10RT. LAN-Port for Modus, Ethernet-Port on Wifi-Dongle for WiNet-Communication (iSolarCloud).
from sungrow-shx-inverter-modbus-home-assistant.
@MatteoSalviTech see #18 - can you check for newer versions?
@bjeanes is there an update to your current firmware from 12.7. Does the newest version maybe fix the running state register? Or were you already on the current version?
from sungrow-shx-inverter-modbus-home-assistant.
Interesting. I don't see a 12.7. I see WINET_B012.V000.P001
in iSolarCloud app but that's the same as I've had for a couple of months. They probably just mean the latest firmware (vs the one it ships with) includes Modbus support. It does, it's just buggy...
from sungrow-shx-inverter-modbus-home-assistant.
Yes, for me this works on my SH10RT. LAN-Port for Modus, Ethernet-Port on Wifi-Dongle for WiNet-Communication (iSolarCloud).
The same applies to SH8RT. The dongle provides two interfaces: LAN and WIFI both operate with different MAC addresses and get different IP addresses. In parallel I have connected ETH0 (the internal one) to LAN and I operate the WiNET-S through WIFI (because I have only one LAN cable available currently)
from sungrow-shx-inverter-modbus-home-assistant.
Please Update the Firmware.
Most Modbus Registers now work with WII Net Dongel, but not all....
I send a bug report to sungrow for fixing
from sungrow-shx-inverter-modbus-home-assistant.
Update the firmware of the WII Net Dongle or the inverter? I found no instructions or firmware images for the dongle...
from sungrow-shx-inverter-modbus-home-assistant.
You need to use the iSolarCloud app for the firmware updates.
from sungrow-shx-inverter-modbus-home-assistant.
Just updated WiNetS to WINET_B012.V000.P001 but nothing changed...
from sungrow-shx-inverter-modbus-home-assistant.
Restart Home Assistant too. home-assistant/core#68161
from sungrow-shx-inverter-modbus-home-assistant.
Restarted it of course but I continue to get so many unavailable sensors...
from sungrow-shx-inverter-modbus-home-assistant.
There were no updates any more.
The LAN port of the WiNet is not supported. Will update the documentation accordingly
I guess it is okay to close the issue now.
from sungrow-shx-inverter-modbus-home-assistant.
Related Issues (20)
- 2 sensors not available in the tesla dashbaord by louis HOT 1
- Zwei Wechselrichter. Daten unterschiedlich in HA und iSolarCloud | Two inverters. Different data in HA and iSolarCloud HOT 18
- Strange outage HOT 1
- Force charge and all other modbus write registers don't work HOT 1
- Retrieved data through modbus not containing data of both inverters HOT 1
- Battery Capacity wrong HOT 9
- Battery dis/charging power sensors don't work. HOT 5
- Load 1 ON/OFF Mode Switch for the DO-port holding register 130011 or more complex DO-Configuration and Load Control Mode by using registers 13001-13016 HOT 3
- Entities are no longer available or jumping between available and unavailable HOT 28
- NO VALUE after Home Assistant >= 2024.04 HOT 68
- Second Inverter ist changing between unavailable and avalaible every few seconds
- Undocumented Holding Registers destroys SH10RT Config HOT 6
- Yearly Export jumps about 1100kWh on May 1st HOT 1
- Modbus no longer works HOT 7
- Some values are missing after updating to 2024.5.2 HOT 2
- Battery charging/discharging power using wrong registers? HOT 1
- sungrow update no battery forced mode HOT 2
- total_dc_power over a million watts HOT 1
- Self-consume mode not triggering HOT 2
- 16bit integer wraparound error on Single phase hybrid inverters battery current sensor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sungrow-shx-inverter-modbus-home-assistant.