home-assistant-variables icon indicating copy to clipboard operation
home-assistant-variables copied to clipboard

use var for card colors

Open L0bit0 opened this issue 11 months ago • 1 comments

Hi

to be honest not sure if this is an issue or I am just trying to use var incorrectly, let me explain

I have different cards to show entities graphs on different dashboards. I would like to minimize the effort when I want to change the color of an specific entities. I have created a variable with the color name I want on my entity:

temp_ext_color:
      friendly_name: 'temp_ext_color'
      initial_value: '#FF00FF'
      icon: mdi:palette

and I can read the value from the card configuration: image

But the color is not updated propertlly: it is black and shold be ink on this case...

NOTE: I have tried with '''#FF00FF''' and '#FF00FF', just in case quotes was the issue.

I am using right? can be used for this? if not, any idea what i can do?

thansk

L0bit0 avatar Feb 27 '24 16:02 L0bit0

What versions of HA and var integration are you using?

How are you trying to update the variable entity?

snarky-snark avatar Apr 17 '24 22:04 snarky-snark