Supereg / homebridge-http-temperature-sensor

Http temperature sensor for Homebridge: https://github.com/homebridge/homebridge
ISC License
31 stars 18 forks source link

Temperature precision #8

Closed vigorem closed 5 years ago

vigorem commented 5 years ago

Hi,

I'm loading temperature from my local server and successfully added the accessory to homebridge.

However a temperature of 10.3125 will display as 10.5on my iPhone.

I though I could change the statusPattern to : (-?[0-9]{0,3}(\.[0-9][0-9])?) so I could get a 2 digits precision (10.31) but this was uneffective.

Do you have any tips for that?

thanks,

Sébastien

Supereg commented 5 years ago

This is a limitation of HomeKit. HomeKit does only display the temperature in 0.5 steps.

vigorem commented 5 years ago

Thanks, wasn't aware of that