artem-sedykh / mini-climate-card

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

Hide indicator #114

Closed adi90x closed 1 year ago

adi90x commented 1 year ago

Hello,

Thanks a lot for this very nice card, one quick question is it possible to hide some indicator (using a mapping fonction ?)

In my use case, I want to display a specific indicator only when an attribute of the climate entity is true.

It seems that hide key is working ( i.e hide : true works) but templating don't seems to be handled. Is it something not available at the moment or am I doing it wrong ?

Regards, Adrien

regevbr commented 1 year ago

It is not currently possible - if you can draft a PR I will be happy to push it fast

adi90x commented 1 year ago

Will have a look tonight and push something EDIT : Spend 2 hours trying to understand how to do it without any luck, will have a look tomorow !

regevbr commented 1 year ago

done in #118 and released in 2.5.0.

adi90x commented 1 year ago

Works great !