KraigM / homebridge-nest

Nest plugin for HomeBridge
210 stars 72 forks source link

Rapid temp changes due to number rounding issues #46

Open KraigM opened 8 years ago

KraigM commented 8 years ago

In Fahrenheit when you change the temp, it will often return the temp offset by a very small decimal (aka 64.999994 instead of 65). This causes it to send a temp change multiple times. While this shouldn't cause any real issues, it may be the reason Insteon+ stutters sometimes when changing the temp.

Log example:

[NestPlat] Setting target temperature for Nest to: 65
[NestPlat] Target temperature for Nest is: 65 F
[NestPlat] Target temperature for Nest is: 64.999994 F
[NestPlat] Target temperature for Nest is: 65 F
charlesvestal commented 8 years ago

Running into this as well, I believe. All seems fine and I'll have my heater sputtering until I kill homebridge.