artem-sedykh / mini-climate-card

Minimalistic climate card for Home Assistant Lovelace UI
MIT License
262 stars 19 forks source link

Quick query on adding a custom colour to the HVAC icon for heat and cool modes. #84

Closed mishnz closed 2 years ago

mishnz commented 2 years ago

Thanks for approving the push the other day. I was about to look at adding code to allow colour changes on the HVAC icon for different states, but I get the feeling its already there.

Can you provide an example of how I'd add "red" for heat and "blue" for cool in the example below:

            heat:
              icon: mdi:thermometer-chevron-up
              name: Heat
            cool:
              icon: mdi:thermometer-chevron-down
              name: Cool

I've tried various approaches, but I think I'm missing a trick.

regevbr commented 2 years ago

look at the example given at https://github.com/artem-sedykh/mini-climate-card#hvac_mode there is an option to set style dyanmically