junkfix / numberbox-card

Replace input_number sliders with plus and minus buttons
109 stars 9 forks source link

Any way to alter the icon colour based on a state? #71

Closed richsimpson closed 1 year ago

richsimpson commented 1 year ago

So I am using in a climate style, and Woudl be great to have the icon change colour based on the state of something.

This is what I have: image

A different template card I wrote uses this code to do it : image

Great work though, really handy card to use on my dashboard.

ildar170975 commented 1 year ago

Can be achieved by card-mod.

richsimpson commented 1 year ago

Can be achieved by card-mod.

Thanks, got it working: image

this was my code - just incase it helps anyone in future - entities all unique to me obviously: type: entities entities: