Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for negative temperature #30

Closed
ebaauw opened this issue Dec 15, 2016 · 1 comment
Closed

Error for negative temperature #30

ebaauw opened this issue Dec 15, 2016 · 1 comment
Labels

Comments

@ebaauw
Copy link
Owner

ebaauw commented Dec 15, 2016

HomeKit apps display Error for temperature sensors when temperature drops below zero.

By default, HomeKit limits the Current Temperature characteristic to values between 0.0˚C and 100.0˚C. While this might be appropriate for room temperature, it is not for outside temperature.

Rather than spending money on a weather station, I run a little shell script that updates a CLIPTemperature and a CLIPHumidity sensor every 30 minutes from wunderground.com. When the temperature drops below zero, homebridge-hue sets the Current Temperature sensor to a negative value, which HomeKit doesn't accept as it's out of range, hence the Error.

Fix is easy: overwrite the default properties for the Current Temperature characteristic to allow a larger range. As this is a read-only characteristic, better set the range as large as conceivable: from absolute zero (-273.15, or rounded -273.2˚C) to 1000.0˚C. Even the iOS 10 Home app seems to like this. I suppose that's how accessories like the Eve Weather deal with this as well.

@ebaauw ebaauw added the bug label Dec 15, 2016
ebaauw pushed a commit that referenced this issue Dec 15, 2016
@ebaauw
Copy link
Owner Author

ebaauw commented Dec 15, 2016

Fixed in v0.1.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant