lovelace-thermostat-card icon indicating copy to clipboard operation
lovelace-thermostat-card copied to clipboard

Dial Color

Open reefland opened this issue 5 years ago • 10 comments

The dial background color is always orange because heat mode is enabled. If I disable heat mode the dial background color is black.

I'd like the dial background to reflect the climate sensor's "hvac_action" attribute current value.

  • "idle" shows black background.
  • "heating" shows orange background.
  • "cooling" shows blue background.

Essentially, exactly what happens when you look at a Nest thermostat.

reefland avatar Feb 13 '20 17:02 reefland

I was wondering why all 3 of mine were always orange (I also have the Nest thermostats). :)

LongDono avatar Feb 13 '20 19:02 LongDono

Background color is currently using preset_mode this property Icon color is currently using hvac_state this property But my climate doesn't exist preset_mode or hvac_action properties. Can i provide the following screenshots? 01

fineemb avatar Feb 14 '20 05:02 fineemb

Would be helpful if the configuration could let us override the default attribute being used.

Here are screen shots showing idle and heating in the "hvac_action" attribute. ha_climate_attributes_heating

ha_climate_attributes_idle

reefland avatar Feb 14 '20 13:02 reefland

hvac_action is it always the same as state? cooling(cool), heating(heat).....

fineemb avatar Feb 14 '20 14:02 fineemb

No, state for me is always "heat" or "cool" or "off" or "auto" depending on the mode the thermostat is set for. The "hvac_action" reflects what is happening this moment. "idle", "heating", "cooling".

reefland avatar Feb 14 '20 14:02 reefland

Thanks, i already understand I will find a way to solve this problem

fineemb avatar Feb 15 '20 05:02 fineemb

Is there a way to also do a light theme?

climate

mycrouch avatar Feb 17 '21 14:02 mycrouch

Hi there!

I would also be interested in how to change the overall colour of the dial. I've tried dabbling with the .js file and found what needs changing but the changes I make never persist

pqpxo avatar Apr 15 '21 21:04 pqpxo

+1 on the light theme

TimBeekman avatar Jul 18 '24 17:07 TimBeekman

For everyone who wants light mode:

card_mod:
  style: |
    @media (prefers-color-scheme: light) {
      .dial {
        --thermostat-off-fill: #F4F4F4;
      }
      .dial text, .dial text tspan, .dial__lbl--target, .dial__lbl--low, .dial__lbl--high, .dial__lbl--ambient, .dial__lbl--super--ambient, .dial__lbl--super--target, .dial__lbl--super--high, .dial__lbl--super--low, .dial__lbl--ring, .dial__lbl--title {
        fill: black;
      }
      .dial__ticks path, .dial__ticks path.active.large {
        fill: #BDBDBD;
      }
    }

TimBeekman avatar Jul 18 '24 17:07 TimBeekman