-
Notifications
You must be signed in to change notification settings - Fork 109
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
Power values jump to 65535 kW and -65509 kW #398
Comments
I have exactly the same problem with DEYE SG05LP3 20K (the new one). I am using Sunsynk/Deye Inverter Add-on (edge/dev) with Version: e6c5d80 |
Can you test with the new edge version that includes #397 ? |
Let's keep this issue open for now. Pls confirm in a day or two if fix is consistent. |
Its not fixed with newest version Up and down 65xxx Watts. I found that: Looks nearly the same problem on Solarman. Probably you can check how they fixed it. |
Yes, I just checked over at https://github.com/davidrapan/ha-solarman/blob/c1e893c1c79e2b969104bf478deca8f2e286f504/custom_components/solarman/inverter_definitions/deye_p3.yaml#L2461-L2485 that they have the same registers are defined here: sunsynk/src/sunsynk/definitions/three_phase_common.py Lines 78 to 80 in bbb7a60
This appears to be the fix they implemented: StephanJoubert/home_assistant_solarman#270 |
Yeah, that can be a fix. |
For your information: I've found out something else that's very strange! Since the solar has stopped coming in because the sun has gone, there have been no more peaks. From about 4 p.m. onwards, you can't see any more peaks. Is it somehow related to this? |
Probably is related, yes. Now that I think of it, I also get spikes when there is solar production. Maybe data gets a bit messed up when many modbus frames come in. For this reason, I also implemented CRC validation as well (in the last PR above), like other projects have. |
Version e37dd6d is up 🙌 Hopefully this does it. 🤞 |
Now it's completely broken. In the logs I get continously:
|
Not for me. I didnt have that error.
Will check it later, when Solar Power comes in. Without solar, i didnt have that peaks |
Are you using solarman connection? I am guessing not (tcp to modbus?) |
Yes, solarman with the original wifi dongle. |
No, i am using cable from modbus with Waveshare RS485 to USB (USB into my Home Assistant mini PC) |
Just found that there is a related issue from a long time ago: #184 This is strange, as when using the pysolarman driver, under the hood we had already been doing these checks I added, yet the issue is there. Looking through the code, I am starting to think that my validations were not implemented on the right place... This does not change my confusion with why the issue persists when using the pysolarman driver, as they should be already there in the recent versions... @kellerza any ideas here? |
My Solar Power starts now, lets see... right now, on low solar power there are no peaks with newest version. Hope that also doesnt comes with more power soon |
I am skeptical. #408 I think we need to revert this PR, as it only affects solarman (pysolarmanv5) driver usage (and overlaps with validations inside it). |
Mine is working just some spikes are there from time to time... Your environment
|
I will do another PR with revert of solarman breaking changes, also will add more validation to reading of data and more debug logs, so it it continues to happen we can hopefully see why. |
I have commit f044dd2 running on my home assistant over 24 hours now and no peaks. There must be a commit after that, which brings the problems |
Hello and please. |
Did you try the custom sensors mentioned above? |
I have tried 2 times before to create a custom sensor and never succeeded. |
For now I added the following definitions to: /share/hass-addon-sunsync/mysensors.py
|
If you use 6xx sensors like that, don't you already have 65xxx,-kW peaks? |
Sorry, I couldn't add my own sensors. |
Did you add mysensors in the addon configuration?
|
Hello, I have a problem already with the creation of the folder Then I will have new sensors ( the original ones ) ? Does this work for you and you no longer have spikes after this solution ? |
I have the same issues with the Battery Charge (sensor.deye_day_battery_charge) . |
I confirm both the 92dd837 version and the custom sensors solve the 65xxx peak problem Will there be a permanent solution in the next release? Can we try it please. |
Can confirm the mysensors workaround works. After f932d4c commit i can see the errors is log:
EDIT: would it be possible to turn off this logging, as this probably chrashed my sunsynk this night. |
If this crashed your addon, you probably need to update your HA OS system 😉 Anyway, I've removed the logging and implemented a possible fix based on a new Sensor16 class Please try it without the custom sensors and let me know. |
Tried 5ae3b76 but unfortunately the spikes are back when I remove custom sensors. |
Did you see anything in your log? |
I see regular entries like these: I experience the problem on the following inverters:
|
Hi @nicopret1 - the latest version should log the first 50 readings with more detail (including rated_power). Please post the log for both inverters. With a 1-register sensor (old behavior) - any value between 32768-65535 would have been reported as a (small) negative value - so it might be that this happened on your 50kW inverter, but you never noticed it. For an inverter<32k, a 1-register sensor should be enough - maybe the solution is just to use 1 register when rated_power is low. With a 2-register sensor you might get:
|
Hi @kellerza thank you for the detailed information. What I've experienced, now makes more sense. I've attached the logs files for both installations:
4x50kW-4bb530c7_hass-addon-sunsynk-edge_2025-02-17T06-02-39.364Z.log |
T
The latest version now works and my grid entity is clean. Only CT Grid has errorrs, but currently my CT clamps are not on thle wires as I moved my load to inverter backup. Here is a log> EDIT: still peaks in grid_power as well unfortunately. |
Hello, I am sending a comparison version THE 65XXX PEAK PROBLEM PERSISTS I attach pictures and LOG NOTE THE PROBLEM ONLY MANIFESTS ITSELF WHEN THE INVERTER IS NOT DRAWING FROM THE GRID OR FEEDING INTO THE GRID 4bb530c7_hass-addon-sunsynk-edge_2025-03-05T10-32-57.298Z.log |
Im on edge 0337510 and had no PV Power Spikes since 25.02. But Battery Charge is still off with regular spike :-( |
Yes the spikes are still there and only on GRID from the beginning Please is there really no solution to use only one register as before? |
Please is there really no solution to use only one register as before? |
Upgrade your firmware or use a custom definition with the single register for grid and battery |
Hello, according to the inverter support I have the latest version see picture it is an inverter I ASSUMED IT WAS A BUG with yours, as it only started from version f23619a before that there was no problem. So I waited for a fix and did not use my own sensors. |
I doubt this is a bug. Different inverters seem to behave differently We use the latest available modbus definitions. Read my explanation above. I’m not sure we can improve this and still support 2 registers. Best would be to use a custom definition and if someone with ons of these inverters wants to document this, even better |
I totally agree I would stick with the original definition of version 92dd837 where the default is read only one register. If some versions of inverters need to read both registers, let the option be via mysensor. Do you agree? |
If anyone needs help with setting up mysensors.py which solves the mentioned spikes just write. |
Issue related to
Sunsynk / mbusd Home Assistant Add-On
Describe the issue/bug
Since the last commit, power sensors randomly jump to 65535 kW and -65509 kW.
Expected behavior
Real values should be shown
Your environment
See also #391 (comment)
The text was updated successfully, but these errors were encountered: