How to change icon color radiator

Hello im trying to change the color of my radiator icon but so far i havent able to do it.

i have this code:

  • type: state-icon
    icon: mdi:radiator
    entity: climate.calefaccion_cuadrada
    style:
    top: 45%
    left: 85%
    width: 1%
    tap_action:
    action: more-info

This code i send me to a radiator temperature windows, so when i turn on the heating the icon keep without changes. i want to the radiator icon changes to yellow for know at a glance with radiator are activated.

the entity which tell me that the radiator is on is sensor.calefaccion_rectangular_calefaccion diferent to 0%

im looking forward to hearing from you with any help

Change a color of this element by card-mod conditionally.

You can use state_color: true

Works for SOME domains only - and not always according to a user’s expectations.