syssi / esphome-solax-x1-mini

ESPHome component to monitor a Solax X1 mini via RS485
Apache License 2.0
39 stars 11 forks source link

Temperature reading wrong when temperature is negative #38

Closed leramleram closed 1 year ago

leramleram commented 1 year ago

The temperature reading of the inverter seems to be a signed value, but the component interprets it as unsigned. This results in an overflow when Temperature is below 0°C.

grafik

syssi commented 1 year ago

Good catch! I will prepare a fix!

syssi commented 1 year ago

I pushed a fix to main. Please recompile & flash your device and give it another try while it's still cold. ;-)

leramleram commented 1 year ago

Too late... Temperature´s above 0°C ;-) Have to give it a try tomorrow!

grafik

leramleram commented 1 year ago

That´s a Bingo!

grafik

Temperature is now correct when < 0°C

Thank you!

syssi commented 1 year ago

Perfect! Thanks for keeping your eyes open! :-)