WillCodeForCats / tekmar-482

Home Assistant integration for the Tekmar Gateway 482
MIT License
7 stars 1 forks source link

Temps are rounded to accurately reflect Fahrenheit #86

Closed atlasflux closed 2 months ago

atlasflux commented 2 months ago

When using this component in a system with Fahrenheit, the temperatures are truncated instead of rounded resulting in the inability to set certain temperatures.

WillCodeForCats commented 2 months ago

Matching temperature displayed on the thermostat to the value in Home Assistant has been an issue there are two conversions: the Tekmar H or E value to C, and then the second C to F conversion. I've mostly just accepted it for now, but I've though about a lookup table as an option too.

atlasflux commented 2 months ago

Matching temperature displayed on the thermostat to the value in Home Assistant has been an issue there are two conversions: the Tekmar H or E value to C, and then the second C to F conversion. I've mostly just accepted it for now, but I've though about a lookup table as an option too.

Yea, it's possibly more complicated. I've implemented this change about a month ago and it's been working well for me since. I don't think it'll have a negative impact on systems operating in Celsius but I have not tested it.