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

Fixed temperature bulbs to only show temperature capability in Home app. #14

Closed
wants to merge 9 commits into from
Closed

Conversation

mylesagray
Copy link
Contributor

@mylesagray mylesagray commented Mar 24, 2018

Before they were showing up with full-colour palate available.

Colour temperature is actually governed by "mired" in Homekit, not hue or Kelvin, as such I have removed saturation and hue capabilities and added the ColorTemperature characteristic to the temperature bulbs as well as the necessary mired conversions to and from Kelvin:

http://cbkmrks.blogspot.co.uk/2013/03/color-temperature-mired-scale-dailey.html

I have also lowered the log level of discovery actions as the log gets extremely verbose and chatty otherwise.

Also resolves part of #11 by removing hard-coded return of a hue "1" for temperature bulbs and instead returning mired value.

@swamaway
Copy link

Awesome ! Can’t wait to test it out

Copy link
Owner

@rainlake rainlake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not change package name please

@mylesagray
Copy link
Contributor Author

Created new PR with package name and repos reverted #15

@mylesagray mylesagray closed this Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants