Support for RGB color and color temperature controls #25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This modification to the plugin enables the respective controls in HomeKit to set RGB colors and/or color temperatures for homee devices supporting those features.
The modifications are testing out fine with my Hue Go and Play fixtures connected to the homee Zigbee cube. A flaw in the Home app color picker produces some occasional strange effects (e.g brightness slider displayed in color despite the lightbulb being in CT mode) but this also happens to "real" HomeKit-enabled devices providing both RGB and color temperature. Third-party apps like Eve or Controller do not show this behavior, therefor I'd rather blame Apple for the glitch in their app. Note: In past versions of the HomeKit documentation, simultaneous use of Hue/Saturation and ColorTemprature characteristics in the same lightbulb were prohibited. In the current documentation this limitation does not exist anymore. Hence, I am confident that the implementation in this plugin does not break any rules set by Apple.
If some user do not require RGB color or color temperature controls for specific or even all of their devices, some new configuration options make it is possible to inhibit those controls as desired.