kongkx / homebridge-gree-air-conditioner

Apache License 2.0
20 stars 8 forks source link

Target temperature presented is lower by one than actual target temperature #31

Open troutgoingupstream opened 2 months ago

troutgoingupstream commented 2 months ago

Temperature presented on this widget is lower by 1 than actual temperature on the device. In this particular case both the device and gree+ app shows my AC is heating up the room to 20 degrees celsius. It seems to be working fine the other way around. So if I'd set, for example 22 degrees, 22 would have been sent to the AC unit. The widget would show 22 for a little while and then jump 1 degree lower to 21.

It seems targetTemperature getter is wrong, and while code convertine from F to C looks good, maybe the value of valueInF is smaller than actual by a fraction and than rounding in F to C conversion leads to 1 degree lower temperature presented.

image