piitaya / lovelace-mushroom

Build a beautiful Home Assistant dashboard easily
Apache License 2.0
3.73k stars 341 forks source link

[Feature]: Add effects support for light card #878

Open and7ey opened 1 year ago

and7ey commented 1 year ago

Requirements

Is your feature request related to a problem?

Currently it is impossible to display effects list

Describe the solution you'd like

Drop down list with possible effects to be supported by light card

Describe alternatives you've considered

No response

Additional context

No response

PolestarWx commented 1 year ago

Nice enhancement idea

PaoloTK commented 1 year ago

I have a PR with a select card if you're interested. Unfortunately HA doesn't expose the effects list as an entity natively, but one can be built with input_select for each light.

and7ey commented 1 year ago

Many thanks, @PaoloTK. Could you please provide an example how to combine it with the light card and to add list of effects there?

PaoloTK commented 1 year ago

Many thanks, @PaoloTK. Could you please provide an example how to combine it with the light card and to add list of effects there?

First of all, create a template select entity with the light effects in configuration.yaml:

`template: select:

Then either use my fork mushroom.js or compile your own version after importing my code. Then you can use something like stack-in-card to combine a mushroom light card and my mushroom select card in one card.

unbreakmat commented 1 year ago

im supporting this