Gh61/lovelace-hue-like-light-card

Omitting all white from generated gradient

Opened this issue · 0 comments

This is a bit of a nit, but it looks like it could easily be achieved and help improve the aesthetics of the card.

My scenario:

I have a card with some Nanoleaf Shapes. I manually created a script to run effects on these devices that correlate with each scene, it makes the dynamic nature of the Hue scenes really nice.

The problem:

Screenshot 2024-03-17 at 10 53 22 AM

No matter what effect is selected on Nanoleaf Shapes they default to rgb(255,255,255). This means that the gradient that is generated will always have weird white splotches that don't correlate with the actual scene that's being played. I've tried using card_mod to edit the gradient but just can't quite get it to work.

Proposed Solution:

Could we automatically ignore values that are 100% white with a color_temp of null? My assumption is that no scene would actually use these values so it's safe to trim them from the gradient generation and would make the card much more appealing.