How to use a custom entity-picture in Mushroom Climate card

Hi,
I’m trying to change the entity icon picture in a Mushroom Climate card and struggling to find the solution.

I managed to do it in a Mushroom Template card, but would prefer to do it in a Mushroom Climate card.

Here is my code in the Mushroom Template card:

type: custom:mushroom-template-card
entity: climate.neviweb130_climate_salle_a_diner
features_position: bottom
primary: "{{ state_attr(entity, 'temperature') }}"
picture: |
  {% set heat_level = state_attr(entity, 'heat_level') | float %}
  {% if heat_level < 1 %}
    /local/heat-0.png
  {% elif heat_level < 21 %}
    /local/heat-1.png
  {% elif heat_level < 41 %}
    /local/heat-2.png
  {% elif heat_level < 61 %}
    /local/heat-3.png
  {% elif heat_level < 81 %}
    /local/heat-4.png
  {% else %}
    /local/heat-5.png
  {% endif %}

I’m not sure how to implement this in the Mushroom Climate card. There are an “icon” and an “icon-type” option, but i found no example that would help me understand how to use them. I also look into card-mod, but all my tests have failed.

Help would be appreciated.
Thanks

Test it with this and see if you get results. Fairly certain the attribute heat_level is your issue.

primary: "{{ state_attr(entity, 'temperature') }}"
picture: |
  {% set heat_level = state_attr(entity, 'temperature') %}

You can verify attributes and it’s state in Developer Tools

type: custom:mushroom-template-card
entity: climate.living_room
features_position: bottom
primary: "{{ state_attr(entity, 'temperature') }} deg"
picture: |
  {% set heat_level = state_attr(entity, 'temperature') %}
  {% if heat_level < 10 %}
    /local/pics/red.png
  {% else %}
     /local/pics/blue.png
  {% endif %}