Coloring seems to be a challenging configuration on lovelace cards. I have a quite simple card like this:
entities:
- entity: sensor.importing
name: Importing
icon: mdi:transmission-tower-export
title: Power
This card tells me how much power I am importing from the GRID. I would like to change its background color to red if the importing power is over 5kWh.
How can I accomplish this using HA native functionality?
Great! One of the other card will show, being the one above 5kWh in red. My “problem” is solved. Thank you for your patience!
As a last question, is it possible, on a non conditional card, define de icon (mdi) color? For example, show the icon in red (not yellow) when a switch is on. Actually, if possible I would like to change the “on state” color from yellow to red, system wide.
I am not sure if I should continue putting questions on this post or create a new one as my key question was already answered and the problem is solved… If you think I should move into another one, please let me know.
Do you know if it is possible to change the sensor-state yellow color in there? I thought no one touch this file because it would do a system wide change. However, this is what I am willing to do…