# Changer la légende d'un history graph

**URL:** <https://forum.hacf.fr/t/changer-la-legende-dun-history-graph/48950>\
**Category:** Entraide Home Assistant\
**Tags:** interface-front-end\
**Created:** [Octobre 6, 2024, 1:17 UTC](https://forum.hacf.fr/t/changer-la-legende-dun-history-graph/48950 "2024-10-06T13:17:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martini](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@Martini](https://forum.hacf.fr/u/Martini)\
**Post date:** [Octobre 6, 2024, 1:17 UTC](https://forum.hacf.fr/t/changer-la-legende-dun-history-graph/48950/1 "2024-10-06T13:17:32Z")

</div>

Bonjour,

J'aime bien cette carte qui montre quand la chaudière se met en marche :

 ![image](https://forum.hacf.fr/uploads/default/original/3X/e/0/e0d545f41b128e5f65039a4447481760b7f0f982.png)

Mais je trouve que la légende ne fait vraiment pas bon français. Comment est-ce que je peux la modifier ? Si j'utilise `name:` sous `entity: climate.salon`, ça me change "Thermostat" mais je voudrais changer le reste

Voilà le code de la carte :

```auto
type: history-graph
entities:
  - entity: climate.salon
layout_options:
  grid_columns: 4
  grid_rows: 5
hours_to_show: 48

```

J'ai aussi essayé de choisir un attribute plutôt qu'un device en entity (`entity: state_attr('climate.salon', 'temperature')`) mais sans succès

## Ma configuration

* * *

## System Information

| version | core-2024.10.1 |
| --- | --- |
| installation\_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python\_version | 3.12.4 |
| os\_name | Linux |
| os\_version | 6.6.46-haos |
| arch | x86\_64 |
| timezone | Europe/Paris |
| config\_dir | /config |

> **Home Assistant Community Store**
>
> | GitHub API | ok |
> | --- | --- |
> | GitHub Content | ok |
> | GitHub Web | ok |
> | HACS Data | ok |
> | GitHub API Calls Remaining | 5000 |
> | Installed Version | 2.0.1 |
> | Stage | running |
> | Available Repositories | 1429 |
> | Downloaded Repositories | 12 |

> **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 13.1 |
> | --- | --- |
> | update\_channel | stable |
> | supervisor\_version | supervisor-2024.09.1 |
> | agent\_version | 1.6.0 |
> | docker\_version | 26.1.4 |
> | disk\_total | 30.8 GB |
> | disk\_used | 5.0 GB |
> | healthy | true |
> | supported | true |
> | host\_connectivity | true |
> | supervisor\_connectivity | true |
> | ntp\_synchronized | true |
> | virtualization | kvm |
> | board | ova |
> | supervisor\_api | ok |
> | version\_api | ok |
> | installed\_addons | Advanced SSH & Web Terminal (19.0.0), File editor (5.8.0), Speedtest (1.6.2) |

> **Dashboards**
>
> | dashboards | 6 |
> | --- | --- |
> | resources | 8 |
> | views | 26 |
> | mode | storage |

> **Recorder**
>
> | oldest\_recorder\_run | September 27, 2024 at 12:14 PM |
> | --- | --- |
> | current\_recorder\_run | October 5, 2024 at 6:27 PM |
> | estimated\_db\_size | 49.14 MiB |
> | database\_engine | sqlite |
> | database\_version | 3.45.3 |

\_\_\_

---

<div class="post-metadata">

**Author:** ![bastgau](https://forum.hacf.fr/user_avatar/forum.hacf.fr/bastgau/32/46175_2.png) [@bastgau](https://forum.hacf.fr/u/bastgau)\
**Post date:** [Octobre 6, 2024, 1:33 UTC](https://forum.hacf.fr/t/changer-la-legende-dun-history-graph/48950/2 "2024-10-06T13:33:04Z")

</div>

Oui tu peux ajouter une deuxieme entity de cette façon.

> [@Martini](#):
>
> ```auto
> type: history-graph
> entities:
> - entity: climate.salon
> - entity: ma_deuxieme_entity
> layout_options:
> grid_columns: 4
> grid_rows: 5
> hours_to_show: 48
> 
> ```

Pour le problème initial, il faudrait créer une entity par graphique au lieu d’utiliser le `climate.salon` et ajouté un attribut `name` dans le code du graph.

---

<div class="post-metadata">

**Author:** ![Martini](https://forum.hacf.fr/letter_avatar_proxy/v4/letter/m/bc79bd/32.png) [@Martini](https://forum.hacf.fr/u/Martini)\
**Post date:** [Octobre 6, 2024, 1:54 UTC](https://forum.hacf.fr/t/changer-la-legende-dun-history-graph/48950/3 "2024-10-06T13:54:42Z")

</div>

> [@bastgau](#):
>
> il faudrait créer une entity par graphique au lieu d’utiliser le `climate.salon` et ajouté un attribut `name` dans le code du graph.

J’ai essayé (j’ai édité alors que tu avais commencé à répondre) :

> [@Martini](#):
>
> J’ai aussi essayé de choisir un attribute plutôt qu’un device en entity (`entity: state_attr('climate.salon', 'temperature')`) mais sans succès

Faudrait que je fasse un template qui crée un sensor par attribute, je peux pas grapher l’attribute directement ?

---

<div class="post-metadata">

**Author:** ![bastgau](https://forum.hacf.fr/user_avatar/forum.hacf.fr/bastgau/32/46175_2.png) [@bastgau](https://forum.hacf.fr/u/bastgau)\
**Post date:** [Octobre 6, 2024, 1:57 UTC](https://forum.hacf.fr/t/changer-la-legende-dun-history-graph/48950/4 "2024-10-06T13:57:11Z")

</div>

> [@Martini](#):
>
> Faudrait que je fasse un template qui crée un sensor par attribute, je peux pas grapher l’attribute directement ?

Exactement ou passer sur `Apex Graph` un nom comme ça
