-
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
inverter state incorrect #416
Comments
Same here, inverter falls back into shutdown since last firmware update and is not generating anything happy to help if you need logs or testing |
Just recognized that the code has hex values and ha has the dec values within the log. |
Could you try do deactivate the automations:
And try it again ? Could be that register 13000 holds a different value than expected since the last FW update. |
Hi, after disabling
the inverter does not shutdown anymore. |
Could someone who's affected analyze what the inverter reports for input register 13000 during startup, then? |
I'm still confused how this can happen, @mkaiser. Automation A (automation_sungrow_inverter_state_input_selector_update) triggers based on the status of sungrow_inverter_state, which is a template sensor that is fed by the "system state" Modbus input register 13000 and updates the input_select set_sg_inverter_run_mode according to the current status. Automation B (automation_sungrow_inverter_state) triggers based on changes to the input_select set_sg_inverter_run_mode, and sets the holding register 13000 that stops or starts the inverter. At first glance, this looks like a circular dependency, but it has never been a problem in the past. I had assumed that automation B does not get triggered by automation A's actions, but perhaps that is now the case? @fzenasni, can you check if the two automations that you disabled actually trigger when the problem occurs? |
It seems that the 13000 registers sends/holds the value "shutdown" as a initial value during startup (like a placeholder) but the inverter is actually already in a different mode. The automation A will then trigger the update of the input_selector -> which then sends the shutdown command through modbus. Food for thoughts.... |
Thank you all for the good debugging so far. One more thing comes into my mind is timing: If the inverter switches its states, it will take a while (the set time interval) for the modbus register "system state" to be updated. In combination with the circular automations, things may break. But on the other hand, the input selector is only updated via Automation A to "Shutdown", when the inverter_state is 'Stop' or 'Shutdown'. See here There was a theory of fwittenfeld some threads ago (which I could find again), that the polling of the register while changing the running state causes problems. If this is the case, there won't be any real solution except waiting for sungrow to fix things and update their documentation. Btw. does anybody have a updated register description? My latest is TI_20240924_Communication Protocol of Residential Hybrid Inverter-V1.1.5.pdf @Gnarfoz: I have not been very active here lately. Thank you especially for your involvement here and answering so many questions! I really appreciate this! :) |
Happy to help! I don't know if there is a more recent register description. I got that one from Sungrow on 2024-10-12, and the file is dated 2024-09-24. Just like change logs for the actual firmware versions, Sungrow is rather silent about publicly documenting these technical things. It's all "need to know", "contact support", "attend a training", ... pretty annoying. At least the information is obtainable at all. Their latest stroke of genius is having Github nuke https://github.com/sungrow-firmware/firmware. 👎
As I understand it, the sequence is as follows:
I don't even see a circular dependency here, since the original input is the input register 13000, while the ultimate output is holding register 13000. These are different things. Also, only automation B (indirectly) checks if the input register has changed, not how. It always runs its action, even if it's pointless. Similar for automation A, it feeds off the thing automation B manipulates, and always writes to the Modbus register, even if it's pointless. Leaving the big "why is this happening" question unanswered, I would nonetheless suggest to eliminate doing unnecessary things. In most cases, if not all, it should be possible to first confirm what we're about to do (Modbus write, |
32768 is 0x8000 and is already handled by Sungrow-SHx-Inverter-Modbus-Home-Assistant/modbus_sungrow.yaml Lines 2067 to 2068 in 4cc83ca
:\ |
Moin ich habe hier vielleicht was gefunden bei evcc |
They describe the exact same problems: we can't know which firmware you have, so how can we know which way to interpret the data? The only real way around this would be to offer multiple versions of the file, each suitable for only a specific subset of firmware versions. We could use Github actions to automate it, like the "second inverter" automation. Maybe it is time for that file generator that's been on the to do list for so long. 😬 |
Hello, I am also experiencing issues with the inverter going into shutdown mode. I shall start reading what yuo have reported here. hope for a solution ? ... Mine does this and cannot receive charging from the solar panels or charge the battery. I never experienced this phenomenon with FW 95.01. I have an SH10RT-V112 SBR160 |
i disabled the below ... id: "automation_sungrow_inverter_state" Then i restarted Home assistant, and after that I did a 'Boot' from Isolarcloud app, then charging started. :-) I will follow up my system during some days ... |
And when you say "disabled", do you mean from the Automations UI, or by deleteting / commenting the automations out of the mkaiser yaml? |
In the yaml file 😏 |
…r to shut down. This seems to be because the new firmware triggers sungrow_inverter_state=stop, which causes the automation to send a shutdown via Modbus. My tests suggest that this fix solves issue mkaiser#416.
Can someone confirm, if it is working / not working with the newest firmware? |
I am on the latest firmwares. With fwittenfelds edits, and removing the stuff Korsberg mentioned above, my plant has worked well for a week now! Of course, Im missing "run mode" in the UI but most (all?) other values look reasonable, the scripts all work and the inverters stay online without fuss. |
The question is if @fwittenfeld's latest version works without removing the automations. |
Oh yes. This was poorly formulated by me... Can someone update to the newest git Version and include all automations again? |
Hi! |
I updated to the newest git version and have the latest firmware. It is working fine so far. Inverter and battery are working as expected. |
Before you create an issue, make sure to update to the current version of modbus_sungrow.yaml
Describe the bug:
The inverter is always in standby modus. When the inverter tries to start it will be imediatly shutdown again.
The values seems to be incorrect from the system_state.
The issue occured since the latest fw update of the inverter. By disableing the modbus integration via unplug ethernet or changing ip of modbus in the secret yaml the inverter works without issues.
Your Sungrow inverter:
Model: SH10RT-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:**
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
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: