NorthernMan54 / homebridge-dht

Homebridge plugin for DHT22 Temperature / Humidity Sensors
72 stars 14 forks source link

Temperature as float #49

Closed AndrewStef7 closed 3 years ago

AndrewStef7 commented 3 years ago

Is there any way to make the temperature more precise and show it with a decimal? Thank you!

NorthernMan54 commented 3 years ago

That is a question for Apple unfortunately. The plugin is passing decimal values to Homekit, and the home app is rounding. If you use the Eve app you can see the decimal values.

Basement] DHT Status: 0, Temperature: 20°C, Humidity: 25.7%
[Basement] DHT Status: 0, Temperature: 20.1°C, Humidity: 25.7%
[Basement] DHT Status: 0, Temperature: 20.1°C, Humidity: 25.7%
[Basement] DHT Status: 0, Temperature: 20.1°C, Humidity: 25.9%
[Basement] DHT Status: 0, Temperature: 20.2°C, Humidity: 25.9%
[Basement] DHT Status: 0, Temperature: 20.2°C, Humidity: 25.8%
[Basement] DHT Status: 0, Temperature: 20.3°C, Humidity: 25.8%
[Basement] DHT Status: 0, Temperature: 20.3°C, Humidity: 25.9%
[Basement] DHT Status: 0, Temperature: 20.3°C, Humidity: 25.9%
[Basement] DHT Status: 0, Temperature: 20.4°C, Humidity: 26%

image