szokeptr / homebridge-tradfri-plugin

Ikea Tradfri plugin for Homebridge
59 stars 6 forks source link

Add support for color temperature #30

Open andiwundsam opened 5 years ago

andiwundsam commented 5 years ago

This PR adds basic support for setting the color temperature (color temperature wheel) from Homekit. Conveniently, the Tradfri COAP appears to directly support setting the color temperature via attribute 5711. It also uses mired units, as provided by Homekit's HMCharacteristicTypeColorTemperature capability, so no conversion is necessary in this case.