Complete the color picker with a palette

Currently we use the swatch below to choose the color of a bulb.

The problem is that it’s difficult to reliably choose the desired color. To address this, the swatch should be complemented by a palette, with the example from zigbee2mqtt which displays this:

A palette of « basic » colors supplemented with cool white / neutral white / warm white + the color picker

What do you think?

I found a discussion that dates back to the beginning of V4.

It’s very basic but in the zigbee2mqtt interface, here’s what it looks like:

Edit: oops I hadn’t paid attention to the previous message.

I’ve done some work on the subject.

Does this meet the expectations? And I also modified it to have the real colors in the dark theme.

@pierre-gilles, I hadn’t seen it, but you’ve already opened a PR on this topic. For now, I’m not making any more progress.

Don’t forget to take into account displaying the real colors in dark mode.

I know I already mentioned this, but could we imagine a classic palette plus a palette with just the color temperatures (the white temperature, in fact)?
-cold
-neutral
-warm

We can see this in the screenshot by @Tlse-vins just above

I started Cursor on the subject, but I haven’t tested the PR yet, so the hardest part is still to come :wink: If you want to test/improve, you can take up the work done by Cursor and ask your AI to fix it!

Good idea, but usually it’s a different feature on devices (« Color Temperature » vs « Color »)

Yes, absolutely, I don’t know what that implies on the Gladys code side.
But since these features often go hand in hand, I think we should consider developing both, and a device that handles both features should have them. :wink:

Hi @guim31!

The device widget has a color palette since Gladys 5.0.

You have 10 predefined colors, including warm white, in addition to the color wheel. If the bulb supports color temperature, there’s a slider too: you can choose a cold, neutral, or warm white without targeting a specific point on the disk.

I’m moving this topic to “Delivered Requests”. If there’s still a case that doesn’t fit, open a new topic: it’ll be easier to follow.