artem-sedykh / mini-climate-card

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

Icon color wont change with state when on #108

Closed marc3k18 closed 1 year ago

marc3k18 commented 1 year ago

Screenshot_20221216-230252

type: custom:mini-climate
entity: climate.z2m_t_chambre_garcons
name: Chambre Garçons
icon: mdi:radiator
secondary_info: hvac-action
fan_mode:
  hide: 'on'
indicators:
  power_consumption:
    icon: mdi:flash
    unit: W
    round: 1
    source:
      entity: sensor.z2m_t_chambre_garcons_power
hvac_mode:
  hide: 'on'
regevbr commented 1 year ago

This was never a feature. A PR is more than welcome

regevbr commented 1 year ago

fixed in #109 and released under 2.4.2

marc3k18 commented 1 year ago

Hello,

I'm using the last update and that is not working for me:

image

image

regevbr commented 1 year ago

Are you using the latest HA version as well? If not, that is the reason... They changed internally a lot of CSS things

marc3k18 commented 1 year ago

Yes I'm using the last version

Le ven. 20 janv. 2023, 2 h 52 a.m., Regev Brody @.***> a écrit :

Are you using latests HA version as well? If not, that is the reason... They changed internally a lot of CSS things

— Reply to this email directly, view it on GitHub https://github.com/artem-sedykh/mini-climate-card/issues/108#issuecomment-1398027655, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXKJDQFKLY5A7H6IMCJGRADWTI72HANCNFSM6AAAAAATBXGETM . You are receiving this because you authored the thread.Message ID: @.***>

regevbr commented 1 year ago

sorry can't help... used your exact config and it works flawlessly... Are you sure that the climate entity is actually off and not just the hvac-action is set to off

marc3k18 commented 1 year ago

Yes I'm sure. As you can see in the picture, I also expose the state of the entity (heating or off) also the power consumption. So yes, I'm really sure when it's one.

Those are baseboard heater. So there is no real HVAC option. It goes to heating to off.

When it's off:

hvac_modes:

When it's heating:

hvac_modes:

[image: image.png]

On Fri, Jan 20, 2023 at 12:18 PM Regev Brody @.***> wrote:

sorry can't help... used your exact config and it works flawlessly... Are you sure that the climate entity is actually off and not just the hvac-action is set to off

— Reply to this email directly, view it on GitHub https://github.com/artem-sedykh/mini-climate-card/issues/108#issuecomment-1398695294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXKJDQDI4CG34Q342AKIIHLWTLCFNANCNFSM6AAAAAATBXGETM . You are receiving this because you authored the thread.Message ID: @.***>

marc3k18 commented 1 year ago

image

marc3k18 commented 1 year ago

image

regevbr commented 1 year ago

Can you show the state value as well and not just the attributes?

regevbr commented 1 year ago

If the state is actually off that means you have some sort of custom CSS going on.... The entity icon is an HTML element with class entity__icon and it should have the color property set on it only when state is not off. If you find that element please try to understand where the CSS color attrute it gets its yellow color from. My guess is that somehow CSS variable --mc-icon-color is computed to yellow for some reason