Change icon-color of entity when "active" or in other state

Hi guys,
So I have a glance card with a radiator, EV charging, doors etc.

The radiator seems to change the color when its active since its a switch but the rest of the entities are sensors that I guess does not meet the “active” criteria.

How can I configure this so when:

  • EV charger is in “Ready” state it lights up in yellow
  • EV charger is in “Charging” state it lights up in green
  • Doors lights up in green when opened

Green is the “accent-color” of choice in my theme.

Thanks!