rainlake / homebridge-platform-lightify

MIT License
13 stars 5 forks source link

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

Closed mylesagray closed 6 years ago

mylesagray commented 6 years ago

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 commented 6 years ago

Awesome ! Can’t wait to test it out

mylesagray commented 6 years ago

Created new PR with package name and repos reverted #15