finity69x2 / fan-percent-button-row

Frontend plugin to control fans in Home Assistant using percent values for speeds
32 stars 19 forks source link

Feature request - icon color #43

Closed jpettitt closed 8 months ago

jpettitt commented 1 year ago

Any chance of adding icon color control for each preset level?

Amishman commented 1 year ago

Is this what you are looking for or is it something else?

isOffColor | String | No | '#f44c09' | Sets the color of the 'Off' button if fan is off -- | -- | -- | -- | -- isOnLowColor | String | No | '#43A047' | Sets the color of the 'Low' button if fan is on low percent speed isOnMedColor | String | No | '#43A047' | Sets the color of the 'Med' button if fan is on medium percent speed isOnHiColor | String | No | '#43A047' | Sets the color of the 'Hi' button if fan is on high percent speed buttonInactiveColor | String | No | '#759aaa' | Sets the color of the the buttons if that selection is not "active"
jpettitt commented 1 year ago

Not quite, I was looking for the icon on the left to reflect the color of the selected speed - so in the example below it would be blue

image

randellmatt commented 10 months ago

I would like to request this feature also. It currently always looks like off is selected when the fan is on. It would be great to see its state at-a-glance.

randellmatt commented 9 months ago

Apologies. I have worked it out. I thought the icon would rely on the percentage value, but I had to set the fan state also.