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

Bug: Light group lists all supported_color_modes #189

Closed
matt8707 opened this issue Jan 16, 2024 · 6 comments
Closed

Bug: Light group lists all supported_color_modes #189

matt8707 opened this issue Jan 16, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@matt8707
Copy link
Owner

matt8707 commented Jan 16, 2024

Looks like the group header is picking up multiple "Color" options from the members:

image

Originally posted by @Plawasan in #177 (comment)

@matt8707 matt8707 changed the title (not sure if you'd prefer a new bug... but) Bug: Light group lists all supported_color_modes Jan 16, 2024
@matt8707 matt8707 added the bug Something isn't working label Jan 16, 2024
@matt8707
Copy link
Owner Author

matt8707 commented Jan 16, 2024

I'm not sure how to solve this. It does, however, correctly list the available color modes.

supported_color_modes: color_temp, hs, rgbw, rgbww, white, xy

@Plawasan
Copy link

Plawasan commented Jan 16, 2024

I would expect the group view to show the lowest common denominator of the group, i.e. only the features, that every member of the group supports... in my case it would only be a on/off toggle, if every member supported brightness then show also that bar etc etc..

@matt8707
Copy link
Owner Author

Right, that makes sense. You can't change the color for every light in a group if half of the group doesn't even support color. I just checked what HA does, they do the opposite, they use the greatest common denominator.

img

demo rgbww light, group gets full color functionality of rgbww, hue temperature light in the mix, hue color lights

supported_color_modes: color_temp, hs, rgbw, rgbww, white, xy

@anarion80
Copy link
Contributor

The same happens for individual lights as well:
obraz

(with the particular light reporting: supported_color_modes: color_temp, hs, rgb)

And then we loop all color modes:

{#each supportedColorModes as mode}

which creates duplicate buttons.

If feels like we should somehow map all the possible values for color_modes into one color boolean and only show one (assuming the handling is the same).

@Plawasan
Copy link

Interesting.. (obviously) same for me however it doesn't really make a lot of sense to me when you e.g. increase the brightness of the group from say 50% to 60%, all the on/off lights just come on at 100% (nothing else they can do). I understand wanting to make the behavior consistent with HA but that doesn't mean the HA implementation makes a ton of sense :)

@matt8707
Copy link
Owner Author

If feels like we should somehow map all the possible values for color_modes into one color boolean and only show

Yeah, will fix that

I understand wanting to make the behavior consistent with HA but that doesn't mean the HA implementation makes a ton of sense

I'm just trying to understand why they chose that approach. It's more complicated to check all the children of a group to see what they support and then compare them to each other, rather than simply checking the group's "supported_color_modes." Perhaps that's the reason; it's just simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants