# Problème d icone

**URL:** <https://forum.hacf.fr/t/probleme-d-icone/25047>\
**Category:** Entraide Home Assistant\
**Created:** [Juin 18, 2023, 9:16 UTC](https://forum.hacf.fr/t/probleme-d-icone/25047 "2023-06-18T21:16:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mack](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mack/32/57652_2.png) [@mack](https://forum.hacf.fr/u/mack)\
**Post date:** [Juin 18, 2023, 9:16 UTC](https://forum.hacf.fr/t/probleme-d-icone/25047/1 "2023-06-18T21:16:09Z")

</div>

Bonsoir .  
J ai utilisé une carte déjà existante que j’ai modifié pour accueillir mon store et anémomètre.  
Mais je n’arrive pas à changer l’icône (actuellement c’est un thermomètre  
Comment feriez-vous ?

 ![IMG_0865](https://forum.hacf.fr/uploads/default/original/3X/2/0/204808c5947b4e9df73c2ee0826de19859ebacb9.jpeg)

Je vous partage le yaml de la carte

```auto
label: |
              [[[
                return entity.state+"°"
              ]]]
            tap_action:
              action: more-info
          - type: custom:button-card
            entity: sensor.anemometre_wind_average_speed
            name: Vitesse vent
            template:
              - carte_badge
              - state_unavailable
              - state_temp
            label: |
              [[[
                return entity.state+"km/h"
              ]]]
            tap_action:
              action: more-info
          - type: custom:button-card
            entity: sensor.anemometre_wind_gust
            name: Rafalles
            template:
              - carte_badge
              - state_unavailable
              - state_temp
            label: |
              [[[
                return entity.state+"km/h"
              ]]]
            tap_action:
              action: more-info
      - type: custom:button-card
        template:
          - titre_section

```

## Ma configuration

* * *

## System Information

| version | core-2023.6.2 |
| --- | --- |
| installation\_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python\_version | 3.11.4 |
| os\_name | Linux |
| os\_version | 6.1.21-v8 |
| arch | aarch64 |
| timezone | Europe/Paris |
| config\_dir | /config |

> **Home Assistant Community Store**
>
> | GitHub API | ok |
> | --- | --- |
> | GitHub Content | ok |
> | GitHub Web | ok |
> | GitHub API Calls Remaining | 5000 |
> | Installed Version | 1.32.1 |
> | Stage | running |
> | Available Repositories | 1288 |
> | Downloaded Repositories | 48 |

> **Home Assistant Cloud**
>
> | logged\_in | false |
> | --- | --- |
> | can\_reach\_cert\_server | ok |
> | can\_reach\_cloud\_auth | ok |
> | can\_reach\_cloud | ok |

> **Home Assistant Supervisor**
>
> | host\_os | Home Assistant OS 10.2 |
> | --- | --- |
> | update\_channel | stable |
> | supervisor\_version | supervisor-2023.06.2 |
> | agent\_version | 1.5.1 |
> | docker\_version | 23.0.6 |
> | disk\_total | 228.5 GB |
> | disk\_used | 13.7 GB |
> | healthy | true |
> | supported | true |
> | board | rpi4-64 |
> | supervisor\_api | ok |
> | version\_api | ok |
> | installed\_addons | Terminal & SSH (9.7.1), Cloudflared (4.1.8), File editor (5.6.0), Zigbee2MQTT (1.31.2-1), Mosquitto broker (6.2.1), Z-Wave JS UI (1.13.4), Advanced SSH & Web Terminal (15.0.2), MyElectricalData Dev (0.9.0b2), Samba share (10.0.2) |

> **Dashboards**
>
> | dashboards | 3 |
> | --- | --- |
> | resources | 37 |
> | views | 41 |
> | mode | storage |

> **Recorder**
>
> | oldest\_recorder\_run | 8 juin 2023 à 13:37 |
> | --- | --- |
> | current\_recorder\_run | 16 juin 2023 à 15:54 |
> | estimated\_db\_size | 503.26 MiB |
> | database\_engine | sqlite |
> | database\_version | 3.41.2 |

\_\_\_

---

<div class="post-metadata">

**Author:** ![Abel](https://forum.hacf.fr/user_avatar/forum.hacf.fr/abel/32/32093_2.png) [@Abel](https://forum.hacf.fr/u/Abel)\
**Post date:** [Juin 18, 2023, 10:01 UTC](https://forum.hacf.fr/t/probleme-d-icone/25047/2 "2023-06-18T22:01:49Z")

</div>

Bonjour Frank (@mack)

essaye

```auto
- type: custom:button-card
  entity: sensor.weather_guests_humidity
  name: Rafalles
  icon: mdi:wind-turbine

```

Cordialement,

Abel

---

<div class="post-metadata">

**Author:** ![mack](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mack/32/57652_2.png) [@mack](https://forum.hacf.fr/u/mack)\
**Post date:** [Juin 19, 2023, 5:32 UTC](https://forum.hacf.fr/t/probleme-d-icone/25047/3 "2023-06-19T17:32:27Z")

</div>

Voila qui est fait … et ça fonctionne … ma carte est beaucoup plus simple maintenant.  
j ai change pour un autre icone, mais tout roule maintenant

Merci

---

<div class="post-metadata">

**Author:** ![AlexHass](https://forum.hacf.fr/user_avatar/forum.hacf.fr/alexhass/32/11197_2.png) [@AlexHass](https://forum.hacf.fr/u/AlexHass)\
**Post date:** [Juin 20, 2023, 4:04 UTC](https://forum.hacf.fr/t/probleme-d-icone/25047/4 "2023-06-20T16:04:48Z")

</div>

Salut,

là tu as changé l’affichage uniquement sur cette carte, mais à la base c’est l’entité qui est derrière qui a la mauvaise icone.  
Ca peut se changer en allant retrouver la config de l’entité dans les paramètres et en mettant sélectionnant la bonne.

---

<div class="post-metadata">

**Author:** ![mack](https://forum.hacf.fr/user_avatar/forum.hacf.fr/mack/32/57652_2.png) [@mack](https://forum.hacf.fr/u/mack)\
**Post date:** [Juin 20, 2023, 6:41 UTC](https://forum.hacf.fr/t/probleme-d-icone/25047/5 "2023-06-20T18:41:45Z")

</div>

Jai bien sûr conservé l entity de mon appareil…  
Maintenant ça marche 😉
