Carte Mushrooms : ajouter une icone tendance à une valeur

Salut,
voici mon code pour mettre des icônes dans le badge_icon:
image

type: custom:vertical-stack-in-card
cards:
  - type: custom:mushroom-template-card
    entity: binary_sensor.0x00158d0007bef2b5_occupancy
    icon: phu:rooms-hallway
    icon_color: |
      {% if is_state(entity, 'on') %}
        yellow
      {% else %}  
        grey
      {% endif %}
    primary: ENTRÉE
    secondary: >-
      AV:🌡{{
      states("sensor.temperature_humidity_sensor_exterieur_av_temperature")
      |round(1)}}°C / 💧{{
      states("sensor.temperature_humidity_sensor_exterieur_av_humidity")
      |round(0)}}%

      AR:🌡{{ states("sensor.lywsd03mmc_c948_temperature") |round(1)}}°C / 💧{{
      states("sensor.lywsd03mmc_c948_humidity") |round(0)}}%
    layout: horizontal
    tap_action:
      action: more-info
    double_tap_action:
      action: none
    hold_action:
      action: none
    badge_icon: |
      {% if is_state('binary_sensor.0x00158d0007bef2b5_occupancy', 'on') %}
        mdi:motion-sensor
      {% else %}  
        mdi:motion-sensor-off
      {% endif %}
    badge_color: |
      {% if is_state('binary_sensor.0x00158d0007bef2b5_occupancy', 'on') %}
        red
      {% else %}  
        green
      {% endif %}
    multiline_secondary: true