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
356 stars 93 forks source link

Unknown inverter state 128 #383

Closed djranm closed 6 days ago

djranm commented 1 week ago

Describe the bug:

I have three Sungrow inverters which I'm controlling using this integration, 1x SG5.0RS and 2x SH10-RT. The two 10kw inverters are not wired in master/slave. In case it's relevant, the inverter with this issue is the V112 variant, whereas the other 10kw inverter is the standard model.

In the last couple of weeks I noticed lower PV generation overall, and that one of the 10kw inverters isn't producing much at all (<100w). When this is happening, the inverter state for that inverter is reported as 'Unknown - 128', while the other two inverters are reporting 'Running'.

Does anyone know what 128 is/maps to?

Your Sungrow inverter:

Home Assistant version:

modbus_sungrow.yaml:

Inverter Firmware Status:

To Reproduce Steps to reproduce the behavior:

  1. Query the inverter state.
  2. Observe the result of 128 which is not mapped and therefore appears as 'Unknown - 128'

Expected behavior I don't expect this integration to resolve whatever issue is going on, but it would be nice to know what the '128' inverter state maps to, and this could be helpful for others who encounter the same code in future.

Screenshots Screenshot of the relevant part of my dashboard which includes the Inverter State. Screenshot_20241020_133109

Gnarfoz commented 1 week ago

Interesting - sadly, 0x80 / 128 is not documented. We'll have to wait until someone figures it out some other way. What do iSolarCloud and/or the local WiNet-S interface say about it?

In the last couple of weeks I noticed lower PV generation overall [...]

Are you in the northern hemisphere? If yes, I have bad news for you. πŸ˜… 🍁 πŸƒ β˜ƒοΈ

djranm commented 1 week ago

Haha! I'm in Australia.

OK, interestingly WiNet-S shows 'Derating Running', which is good to know and I assume the meaning of 0x80 / 128 ... but I can't explain why it would be in that state while the other two inverters are running OK.

Screenshot_20241020_163927

Gnarfoz commented 1 week ago

Good question... At least adding the running state to the list should be ready easy to do.

bleughb commented 1 week ago

De-Rating running seems correct. I have two SG5.0RS here , and often one will start 'de-rating' whilst the other one won't. Check the local grid voltages, very often with high voltage, they'll start de-rating, if one gets more sun and the temperature increases, it'll start de-rating.

Gnarfoz commented 1 week ago

@mkaiser, I've created a pull request to treat this state the same as the existing derating state: #385.