-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
total_dc_power over a million watts #299
Comments
Some forums suggest it's just a communication issue, but I've also only started noticing this recently. I'm not on the most recent YAML file, so I'd say it is not directly related to this project itself. Possibly Home Assistant related. Or just bad luck and badly shielded network cables. 🫤 |
I've resorted to deleting such excessive values from the database, but it's pretty clear that it's not just bad cables. It's also quite unlikely to be this project, because it "just" uses the default Home Assistant Modbus integration to do the actual work. I wonder how it could be possible that this is related to the change to async library calls in the Modbus integration, but those changes fit the timeline. |
Yeah, it could help avoid polluting the statistics with wrong data. Too bad If you have a battery and more DC power installed than your inverter's rated AC limit (e.g. SH10RT with 15 kWp), you should set such limits to the higher number. When there's free capacity in the battery, the inverter will send the DC directly to the battery, increasing "total DC power" above the AC limit. I ran a query in the database to check which entities have shown the problem - I'm not sure there's any pattern: Limits on a "total energy" value are going to have to be preeetty high... |
This issue is stale because it has been open for 30 days with no activity. |
could you please post your register code for that part and I will have a look, I do not want to say what I have in mind but I suspect it is a coding error, not because of you or anyone other than sungrow making a mess of their protocol. No promises but I can try... and by the way the number you are seeing means the register is MAXING OUT, it is not a random number cheers |
The sensors are very boring, they are unmodified from what's in the repo: https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/main/modbus_sungrow.yaml This only started being visible when Home Assistant's pymodbus package was switched to async library calls, leading to an increase in "temporal resolution" of about 10x -- before, these errors were simply hidden because the sync approach was slower. Also, it's not maxing out (it's none of the various 2³², 2³²-1, 2³¹, etc. numbers). The exact numbers vary, and they're just garbage. |
Hi Christian
Firstly – I am just a guy who has no electrical engineering background, nor code education either so I am nowhere near you or mkaiser’s level of knowledge… … You will have to forgive me some things which may not make sense to you at times… I just started doing this by accident… I just make things work and share if they do… see what you guys think…
So I thought that one way to tackle these rubbish translations would be to look at the way these get sent and received via various devices. I have read a bit about ins and outs of modicon convention and took interest in that part. At times it could down to one device swapping “pairs” of code around (swap:word or swap:byte or both) and I have found some registers values came good after playing with these a bit. Again this is just something I have toyed with a bit and hence why I wanted to see which register that was to compare with mine…
I am slowly merging the latest mkaiser code into mine as we continue to chat, then I will test it , and then I will apply it to my second inverter (dual hybrid here)
😊
|
I applaud your motivation! :-) Don't be discouraged if some things turn into a bit of a discussion... it's rare that one participant already has all the correct answers at the beginning. |
Hey Christian.
Not discouraged at all.
Love this evolution, after all more we help each other more we get to work properly.
My journey with sungrow was quite spontaneous and intense to date but I have to say they have been extremely kind and patient. Beyond any expectations.
Just the tech data I got was 1000x any manufacturers duty to a customer.
And we became good friends in a process.
Btw.
Ive added mkaiser on discord and happy if u wish to say hi, if u r on there too.
My id : raf_t_aud
Sometimes its easier to demonstrate things there as I truly suck with posting on github…. Hahaha. This place is complex. Takes a while to get used to.
Message ID: ***@***.***>
|
I think using the Github website instead of posting via email would make it a bit easier to work with. :-) |
Agreed totally.
Will get there eventually (maybe not tonight). Need to recharge batteries. Lol
Message ID: ***@***.***>
|
It's not something this package can fix, the inverter is actually reporting these crazy values. The only thing this package could do would be to wrap everything in filter sensors and use the outlier filter? |
After months of running stable and reliable, suddenly I see Gigawatts of load in Home Assistant. Home Assistant 2024.8.0 The modbus yaml has not been changed since August. Unfortunately it's not just short peaks, it constantly reads these extreme values since hours. I am wondering if Sungrow maybe changed a data type and I got a firmware update... I think I could check the current firmware via the WiFi dongle but I don't know which firmware was installed before.🙈 |
I have exactly the same issue. Same odd number (Exactly the same number!) and I also use a RS485 converter (waveshare)for my SH20T. |
Hi there. I do have my mppt3 read correctly and without issues but I do need to make a note here that I do not use winet s2. My gear is connected via logger 1000a (which in itself is hard to make work on HA) but it likely reads differently. I do know how to “cheat” and get u the mppt3. It is likely that a lot of your error reads are just rubbish numbers / bad reads by winet’s own inability to translate properly. Finally if u like u can send me ur modbus file I can see if i can see any errors in it. Hope that helps |
The number is actually pretty common - it's 2³¹-1, the maximum value a signed 32-bit integer variable can accommodate. The number is simply "as large as it can be". Apart from that, I don't think there is much to be done at this point. Someone could try and chase down Sungrow about it, to figure out if they consider it a bug, known behavior, bad cabling, or something else. @RafAustralia the MPPT3 issue was solved in a firmware update some time ago. @bsc76 is even using a RS485 adapter, which never had this problem in the first place. So, these are unrelated topics. :-) |
@Gnarfoz These just popped up in my inbox today directly. Sorry I was not following previous solutions. The truth is. I have 2x T (25+15) type inverters and I have just about all of these sensors (except of two I do not use) working without issue hence why I wanted to see the modbus files to compare what I could find to be different and in that way perhaps offer some help. Raf |
Using the latest version everything works perfect but every once in a while the total_dc_power is listed as over a million watts. Typically it happens on cloudy days when the sun comes out but I do not yet know how to ignore those values but they make the charts unreadable.
wanted to report this behavior.
Model: SH-10.RT v112]
The inverter is connected via (mark one)
Are you using a Modbus Proxy (mark one)
Home Assistant version:
modbus_sungrow.yaml:
** Inverter Firmware Status:**
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: