snarky-snark / home-assistant-variables

A custom Home Assistant component for declaring and setting generic variable entities dynamically.
Apache License 2.0
274 stars 16 forks source link

use var for card colors #106

Open L0bit0 opened 6 months ago

L0bit0 commented 6 months ago

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

snarky-snark commented 4 months ago

What versions of HA and var integration are you using?

How are you trying to update the variable entity?