naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
312 stars 61 forks source link

Temperature Displays Incorrectly Below 32F #170

Closed Affordic closed 3 years ago

Affordic commented 3 years ago

Installed the most recent update 3.2.4 which supposedly was supposed to correct the temperature bug for the apparent temperature and dew point.

Bug is still present. Now instead of temperatures displaying in 4 digits. The temperature displays in 2 digits. However, it’s obviously incorrect. For example. It is 30F outside right now. Dew Point and Apparent Temperature both are indicating above 79F.

This is an obvious bug. If it’s 30F outside.... No way is the Dew Point and Apparent Temp 79F.

@naofireblade

joconor commented 3 years ago

It looks like perhaps it is doing the conversion twice. 79F would be 26.1C which would be a reasonable Fahrenheit reading for dew point and/or apparent temp.

I'm attaching a screenshot from the Eve app where my current temp is 53F, but dew point shows 109F and apparent temp shows 128.5F. Converted to celsius, those would be 42.8 & 53.6.

My configuration uses the darksky service, compatibility is set to eve, and conditionCategory is simple

IMG_6AAE1C075EFA-1

joberembt commented 3 years ago

I'm also having this problem. It's currently 25 out, with a dewpoint of 19 but the plugin is saying that the dewpoint is 66.2 - no way this is possible.

naofireblade commented 3 years ago

Hey, could u please check if the temperature is still wrong in v3.2.5? This issue is a bit tricky because in the past HomeKit did not convert values for custom characteristics like dew point and I had to convert it manually. But it seems like HomeKit does this conversion now by itself.