-
Notifications
You must be signed in to change notification settings - Fork 100
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
RW Switches write fail (Bettery Low Capacity, Grid Enable and others maybe) #371
Comments
Noticed the same here sg04lp3 |
Same issue is with "Grid Charge Enabled". When we change setting from Sunsynk mqtt, it goes to an undefined state in Solarman, which results in "False" setting state (Not charging from grid). |
I found what the issue is... So it turns out sunsynk is writing wrong value into modbus registers for some SwitchRWSensors. They should be 0x0001 (1) for True, but it writes 0x00FF (255) as seen in the logs below:
|
The RWSwitch I think I can fix.
Basically goes down to zero (Register 117), as in the interface and Solarman app. Edit: I got it. The issue with Battery Low Capacity is that sensor dependencies are looked for only one level deep and therefore we do not have defined Battery Shutdown Capacity (register 115) and Battery Restart Capacity (register 116) upon which Battery Low Capacity (register 117) is dependent in the config for lower and upper limits. Therefore when setting low cap, it goes to 0, not knowing the limits. I will also try to fix this. |
Pls let me know if you find any other switches/configs that are not working properly. Would be very helpful if you could also send along debug logs of values when setting from sunsynk (broken values) and when setting with Solarman app (working values). Thanks! |
Existing sensor definitions can be found here. You can test your own definitions using custom sensors
Your environment
Describe the issue/bug and what you expect
When you try to set Battery Low Capacity value, it gets set to 0. I have noticed this behavior on other Deye models as well. It can be fixed/set to proper value from Solarman app.
So in conclusion, it works for reading, but not for writing the value of Battery Low Capacity.
This in my opinion is an important config for bad weather and winter months.
Any suggestions on proposed registers is welcome.
Logs (if applicable)
The text was updated successfully, but these errors were encountered: