Lovelace: Simple thermostat card

I’m loving this card! Thanks for creating and maintaining it.

For now I’m trying to do the following:
I have one entity which is the thermostat. Unfortunately the thermostat only tells me if it’s in heating mode, but the actual valve for activating the heating is another entity. I have solved it so that I will be able to see the state of that other entity between the sensors.
However I would love to see if it’s possible to use the main icon in the header to show this.

So the question is: how can I control the header icon (Show or type, or even color) based on the state of another entity.

entity: climate.woonkamer_wk_thermostaat_375
type: custom:simple-thermostat
header:
  name: Woonkamer
step_size: '0.5'
sensors:
  - entity: sensor.woonkamer_wk_kamertemperatuur_377
    icon: mdi:thermometer
  - entity: sensor.woonkamer_wk_kamervochtigheid_378
    icon: mdi:water-percent
  - entity: switch.woonkamer_convectorputklep_277
    icon: mdi:power
  - entity: climate.woonkamer_wk_thermostaat_375
    icon: mdi:battery-40
    attribute: battery_level
hide:
  temperature: true
  state: true
control: false
icon:
  - entity: switch.woonkamer_convectorputklep_277
    'on': mdi:power-on
    'off': mdi:power-off

As you can see I tried to do something below with icon and then mentioning the device which I would like to control the icon. This however won’t work.