StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
568 stars 201 forks source link

Minor issue: Battery Status incorrect #62

Open spencerw67 opened 2 years ago

spencerw67 commented 2 years ago

Great integration - it really helps to monitor my new Deye installation.

Minor issue: Battery Status is always shown as "Charge" despite the inverter showing another status.

qfinucane commented 1 year ago

I’m having the same issue. I’ve removed the lookup in the code for monitoring and the value for battery status (register 189) remains at 0 for some reason, no matter if the battery is charging, discharging or in idle.

sskom commented 1 year ago

The same problem here. Always "Charge". Please, how to fix it?

qfinucane commented 1 year ago

According to the Sunsynk Modbus register manual, register 189 {0x00BD} is for "PV4 input power". There does not appear to be a "Battery Status" register according to the manual.

I use current (Register 191 {0x00BF}) direction to determine the status. In Grafana I have a threshold configured to display "Discharging" if the current is positive, "Charging" if the current is negative and Idle if its under 1 amp.

sunsynk_modbus - no chinese.docx