sermatec-opensource / homeassistant-sermatec-inverter

Home Assistant custom component for the Sermatec solar inverter.
MIT License
9 stars 2 forks source link

inversion on discharging and charging battery power #16

Closed mathieupotier closed 1 year ago

mathieupotier commented 1 year ago

Hi there,

Battery is showing discharging power value instead of charging power value : image

Formula for power in Direct Current context : P(Watts) = I(Ampers) * U(Volts)

Negative Watt value mean battery is charging Positive Watt value mean battery is discharging.

Regards

andreondra commented 1 year ago

That's weird, for me it shows the correct values with the current formula - negative current means the battery is discharging. It probably depends on the type of the battery, which the official app can check and then apply the correct formula. I have the Pylontech hi-voltage ones, what type do you use?

mathieupotier commented 1 year ago

@andreondra I have this material : IMG_0027

Maybe some setup on inverter, or firmware version related.

mathieupotier commented 1 year ago

Seems the battery state information is relevant ... maybe relying on this should do the trick ... image

andreondra commented 1 year ago

That's a good idea. The battery state has a dedicated field in the communication protocol and it should always be correct, unlike the current sign which probably depends on a battery type as we saw.