zyonse / homebridge-dreo

Apple HomeKit integration for Dreo Smart Devices
https://www.npmjs.com/package/homebridge-dreo
Apache License 2.0
29 stars 17 forks source link

Fix temperature units and make HomeKit updates consistent #23

Closed mganjoo closed 8 months ago

mganjoo commented 8 months ago

Dreo returns temperature in Fahrenheit units only, and Homebridge accepts temperature updates in Celsius only, so we need to convert between the two - discussion on #19.

Also fixes an issue where the HomeKit value updates in response to a Dreo update would drop the offset. Now offset correction is moved from read-time to write-time, ensuring that this.fanState.Temperature is always consistent.