Skip to content
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

Error handling #60

Open
elektrinis opened this issue Feb 11, 2023 · 14 comments
Open

Error handling #60

elektrinis opened this issue Feb 11, 2023 · 14 comments

Comments

@elektrinis
Copy link

elektrinis commented Feb 11, 2023

I just figured out my battery is failing, error 833 and some others. I can force-charge it, but can't discharge, it will just ignore the command. Same in self-consumption mode. Inverter status is unchanged and I don't get any feedback that something is wrong, it just ignores me.
I am discussing this with sungrow support.

Would it be possible to read errors/status from the inverter somehow?
Anyone has info what running/system state codes mean?

Those are decimal, but probably binary underneath.
My running state is changing between:
00101000 (40)
00001100 (12)
00101010 (42)
17, 41, 43 32, 0 etc....

@mkaiser
Copy link
Owner

mkaiser commented Feb 11, 2023

A quick peek in the modbus datasheet shows that the running state seems fine:_

image

In your case bits 1, 2 and 5 are toggling, bit3 is always 1.

bit1: battery charging
bit2: battery discharging
bit5: Import power

bit3: type of load (active / reactive)

Where did you get the error 833 from?

in the modbus datasheet, in appendix 1.3 there are fault code instructions. I never cared to implement them until now, thinking that in such a case you just have a look into the sungrow app.

maybe some of the registers between (Inverter alarm 13050) and (min cell temp 13118 ) might be of help, if you don't want to use the app.

What kind of battery do you have? My pylontech has an own webinterface for fault messages

@elektrinis
Copy link
Author

elektrinis commented Feb 17, 2023

It's sungrow SBR battery. The error happened again today, inverter went in to "standby" state.
I'm seeing this on iSolarCloud portar.
Sadly support is ignoring me.
I think I will just open it up and measure every cell myself. Current voltage levels are not what one would expect from LiFePO4, as it's 3.45V (battery voltage divided by number of cells) at full charge, while the normal level is 3.65V.

@Louisbertelsmann
Copy link
Collaborator

I also contacted Support a while ago and they didn't answer for about a month. Hopefully they'll Tell you what you can try, because it could just be the BMS misbehaving.

@elektrinis
Copy link
Author

My battery errored out today again. Inverter running state is 40 (0010 1000).
Bit 3 set to "1" means "load is active"
Bit 5 set to "1" means "importing from grid"

I also gave "system state" set to 8, which only means it is in Standby state.
So "Standby" state and the bits are probably the only way to check if it's doing what it's supposed to, and otherwise treat it as error.

Can we implement reading of registers 88-101, as per appendix 1.3? Looks like any non-zero value in any of these registers points to a fault?

@Louisbertelsmann
Copy link
Collaborator

Did you see any error in the isolarcloud? The cable connecting the BMS to the inverter could also be a Part of the problem.

@elektrinis
Copy link
Author

I get "Error 833" in iSolarCloud, the log is filled with it every 20 seconds. But strangely there is no "active fault" even when this error is being reported in log history at that moment.
The most interesting thing is that I get these errors mostly only when sun is down. Here's what I discovered:

2023-02-20 18:36 ... 2023-02-21 7:20
2023-02-16 23:00 ... 2023-02-17 8:20
2023-02-09 21:30 ... 2023-02-10 8:19
2023-02-06 18:29 ... 2023-02-07 8:17

If it's errored out, I can't get it running in the evening/night/morning, tried to start/stop, change modes etc, nothing helps. That means I can't force charge/discharge the battery, I can't get my house running off battery in self-consumption mode and backup function would probably fail in case of blackout.
But the moment sun rises, even if there is no actual sun due to clouds and snow on roof, it just fixes on it's own. Looks like it has a hardcoded "sunrise" timestamp when it changes modes or resets itself. Go figure.

@elektrinis
Copy link
Author

elektrinis commented Feb 21, 2023

By the way, we had a blackout just few minutes ago due to our electrical company doing some maintenance work.
The backup failed to work.
Sun was shining and battery was charging, SOC at 30%. The inverter had a "running" state (not in error) and set to self-consumption mode, but battery mode dropdown was left in "forced charge".
No errors or warnings, it just came back to life once power was up again, as if nothing had happened.
Couple weeks ago we had the same thing, but then backup worked just fine. Perhaps it's due to that "forced charge/discharge" dropdown that I thought has no effect in self-consumption mode. Will try to figure this out by selecting "Stop" and switching power off.

Edit: just tried this stunt, and it still failed with "Stop" selected.

Damn this thing, I really wanted to like this inverter, but it's so temperamental.

Edit 2: Turns out my backup function somehow got disabled.
Screenshot 2023-02-21 155427

@dylan09
Copy link
Contributor

dylan09 commented Feb 21, 2023

You have disabled Backup Mode?

@elektrinis
Copy link
Author

I have not, yet I found it disabled.
BTW it rent in to error state last evening and recovered this morning, as usual.
Investigation continues....

@dylan09
Copy link
Contributor

dylan09 commented Feb 22, 2023

Would only give a short hint. Because in your Snapshot it is disabled. And I didn't understand the markers you have painted into the snapshot.

As if I am right, Backup Mode must be enabled to switch to Off-Grid mode.

@elektrinis
Copy link
Author

elektrinis commented Feb 25, 2023

I have a new problem. My modbus is failing and I can't understand why.
The data is just randomly jumping from valid to unknown, as a christmas tree.
Any ideas?

Screenshot 2023-02-25 203024
Screenshot 2023-02-25 203020

@Louisbertelsmann
Copy link
Collaborator

Sungrow inverters sometimes have problems with modbus. What you can Check is if you've got the newest Firmware on your inverter. If not, update it, for me it fixed the issue, if you've already got the newest Version, you can add message_wait_milliseconds: 50 to the configuration, right under timeout. You can try other delays, but for me 50 ms worked fine.

@elektrinis
Copy link
Author

It's latest. Somehow the issue only appeared now.
Will try the delay. Thanks.

@elektrinis
Copy link
Author

elektrinis commented Feb 28, 2023

I had this today. Was in self-consumption mode, plenty of charge remaining. It simply stopped discharging the battery.
I can't find anything that could have changed in settings/states.
No change when switching modes, also won't listen to forced mode.
Tried to restart, then it stuck in standby.

Anyone have any ideas if this inverter goes in to standby for night etc?
Nothing in iSolar fault logs this time.

I'm sure it will recover in morning.

BTW one of manual is saying:
Inverter enters standby mode when DC side input is insufficient. In this mode inverter will wait within the standby duration.
Sooooo you guys should also have this problem? Does this mean it will switch off the battery every time sun is down??

Screenshot_2023-02-28-19-49-22-059_io homeassistant companion android-edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants