watou / vera-nest

Vera Plugin for Nest Thermostat and Protect
9 stars 4 forks source link

Allow users to choose whether reported temperatures can include decimals (selectable precision) #27

Closed watou closed 10 years ago

watou commented 10 years ago

The main Nest device has a variable called TemperaturePrecision whose value allows you to control how precise temperatures are reported in the plugin. The value provided is the denominator D in the fraction 1/D, the fractional value to which the temperature should be rounded. For example, providing 2 means that temperatures will be rounded to the nearest 1/2 (0.5) of a degree. Providing 10 would round to the nearest tenth (0.10).

The default value for TemperaturePrecision is 1, meaning only whole degrees are reported.

Notes

  1. This feature will not allow you to change the setpoint sliders in the user interface to fractional values; that is outside the scope of the plugin.
  2. Using this feature may cause unwanted side-effects that are outside the scope of the plugin's control. Please test your configuration thoroughly before determining that a non-1 value is for you.
  3. This feature is agnostic to whether you display temperatures in Fahrenheit or Celsius, but it may be of more value to Celsius users to set TemperaturePrecision to 2 to achieve near-Fahrenheit granularity.