Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing color of value using map_state or when #157

Open
woobenjamin opened this issue Mar 21, 2023 · 0 comments
Open

Changing color of value using map_state or when #157

woobenjamin opened this issue Mar 21, 2023 · 0 comments

Comments

@woobenjamin
Copy link

Hi,
I'm having a problem with trying to change the color of the value (not icon) based on a set of parameters.

For example, I want to show the Air Quality Index (AQI)
So, I use something like

- entity: sensor.aqi
  name: AQI

I haven't fully figured out the when or map_state logic yet, but I can read some more, but essentially, what I want to do is show the value of the AQI, for any value <25, it's green, 25 to 50, yellow, and 50+ red.
I don't know how to change the color of the VALUE
If I use value: mdi:icon, I seem to be able to use color: , but for just value, I can't seem to figure it out.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant