Gh61/lovelace-hue-like-light-card

Suggestion: Change "scene" icons to match it's primary color, similar to the current Hue App

Greenphlem opened this issue · 7 comments

Hey! I love this card, it's the reason I decided to migrate off of the hue app.

The only thing I miss is the ability to quickly see what color a scene will be because it's currently a list of grey icons , when you have a lot of scenes, it gets hard to remember what each one looks like.

Is it possible to make an option to apply the primary color of a scene to it's button in the hue-screen view?

Gh61 commented

Hi, thank you.

Yes I'd like this feature too, but scenes in HA doesn't hold the information about colors they are setting.

So unless this information is added to HA, it's impossible to know which color will be set. (Even HA doesn't know this. That's why sometimes after setting the scene, the light color in HA updates with pretty big delay).

Currently you can set your own color and icon with scenes configuration.

Gh61 commented

I don't see the cache variant very reliable, because in my experience even after activating the scene, it may take few refreshes until the correct state of all entities is known.

I'll try to look into HA source code of scenes, if there isn't some place, where more details are stored (ie affected entities, colors even for simple scenes, ...?).

But the best we can do now is setting the colors manually in the config.

Ah ok, no worries. Is that functionality in the card already? I don't mind some manual work

Gh61 commented

Yes, you can find how to configure scenes in the section scenes configuration.

Basically you just define scenes for hue-screen on individual card and you can set custom color, icon, title and other things for them.

Gotcha, thanks! I'll look into this today