guim31
November 14, 2022, 4:13pm
1
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.
Grâce à la sortie de la beta, j’ai eu plein de retours concernant le service Philips Hue et je suis entrain d’ajouter des compatibilités supplémentaires!
3 utilisateurs (@Hamtaro , @Aldo et @Dahu ) m’ont envoyés leur liste de Philips Hue avec toutes les informations dont j’ai besoin pour intégrer leurs lampes.
Au niveau de l’UI, je regarder pour ajouter un color-picker, et je suis tombé sur plusieurs lib plutôt sympa:
https://casesandberg.github.io/react-color/
Ce que je me demande, c’est “e…
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.
master ← cursor/color-picker-palette-af20
ouvert 07:22PM - 03 Jul 26 UTC
### Description
Implémente la fonctionnalité demandée sur le forum : [Compléter… le color picker avec palette](https://community.gladysassistant.com/t/completer-le-color-picker-avec-palette/7678).
Le sélecteur de couleur des ampoules (roue iro) est désormais complété par une palette de couleurs prédéfinies, inspirée de l'interface zigbee2mqtt :
- **8 couleurs de base** : rouge, orange, jaune, vert, aqua, bleu, violet, rose
- **3 blancs** : blanc froid (6500K), blanc neutre (4000K), blanc chaud (2700K)
- La roue de couleur reste disponible pour un réglage fin
### Changements
- Nouveau composant partagé `ColorPalette` utilisé dans :
- le contrôle couleur des boxs appareils du dashboard (`ColorDeviceFeature`)
- l'éditeur de scènes (`ColorPicker`)
- Constantes de palette centralisées dans `front/src/utils/colorPalette.js`
- Traductions ajoutées (en, fr, de) pour les libellés des blancs
- Correction du clic hors popover dans `ColorDeviceFeature` pour ne pas fermer le picker lors d'un clic sur la palette
### Check-list
- [x] Linter front OK (`npm run eslint`)
- [x] Prettier OK (`npm run prettier-check`)
- [x] Traductions synchronisées (`npm run compare-translations`)
- [x] Build front OK (`npm run build`)
- [ ] Testé avec un appareil réel
Closes https://community.gladysassistant.com/t/completer-le-color-picker-avec-palette/7678
<div><a href="https://cursor.com/agents/bc-019f2969-ad6e-7ec1-9c90-10735becaf20"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-019f2969-ad6e-7ec1-9c90-10735becaf20"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div>
guim31
July 12, 2026, 4:24pm
6
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
Will_71:
@pierre-gilles , I hadn’t seen it, but you’ve already opened a PR on this. For now, I’m not making any more progress.
I started Cursor on the subject, but I haven’t tested the PR yet, so the hardest part is still to come 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 »)
guim31
July 13, 2026, 6:19pm
8
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.