Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Hue Group features based on the bulbs in it #31897
Computes the features of a hue group as the union of the features of the bulbs in the group.
Home assistant threats groups of bulbs create on the hue app as if all the bulbs in it had all possible features (brightness, color temperature and color, etc...), even if the group is only composed by simpler bulbs.
May break scripts that relay on information of bulb groups that might no longer exist. For instance, information about color of a group that does not have any bulb that supports color. This informations must be removed from the script.
Change the way the feature of a group is computed, by calculating the feature of a group as the union of the features of the bulbs in the group. As such, a group composed by bulbs that only have brightness and color temperature control (as the hue ambiance bulbs) will only display these options in the user interface. Simplifying the interface by remove unsupported features.
This change is specially important for the homekit integration. In the Home App, a group of bulbs containing only hue ambiance bulbs would had shown the color option as well, since the ambiance bulbs have no color option, it would ignore the color changes made through the Home App, making it not possible to change even the color temperature of the light (a feature that the hue ambiance bulbs do support).
Type of change
Example entry for
@@ Coverage Diff @@ ## dev #31897 +/- ## ======================================= Coverage 94.68% 94.68% ======================================= Files 763 763 Lines 55181 55181 ======================================= + Hits 52249 52250 +1 + Misses 2932 2931 -1