TripitakaBC / ampinvt_esphome

Esphome / Home Assistant solution for Ampinvt solar controllers
MIT License
7 stars 5 forks source link

Battery temperature reads incorrectly above 12.7C #1

Closed TripitakaBC closed 1 year ago

TripitakaBC commented 1 year ago

I have noticed that the conversion from hex to decimal for the battery temperature is not working correctly when the temperature rises above 12.7*C. This is due to the way the conversion is implemented for negative temperatures.

I don't have the knowledge to fix it currently and also lack the time to learn right now. If you have a solution, please feel free to let me know and I'll implement it.

TripitakaBC commented 1 year ago

Fixed using ChatGPT. Man, that thing is awesome.