Gauge naming in Graphs by device instead of room not practical

so I’ve baught a bunch of these bluetooth Temperature & humidity measures:
and configured + distributed them across my rooms.
Now I’ve added all of them to a graph in “Verlauf”/history, and instead of the respective room names, the device IDs are shown in the graph:

  • TP357 (7E29) Temperature
  • TP357 (9D34) Temperature
  • TP357 (A9B6) Temperature
  • TP357 (E690) Temperature

which is not as nice to interpret. Having “Living Room”, “Kitchen” etc. would be way more practical.

You can rename your sensors or just override the name in the graph.

You could also use the card-templater card. It allows inserting templates into any card, which allows displaying the area instead of the entity name.


type: custom:auto-entities
  type: grid
  title: Luftfeuchtigkeit
  columns: 3
  square: false
card_param: cards
    - or:
        - entity_id: sensor.bad_luftfeuchtigkeit
        - entity_id: sensor.kuche_humidity
        - entity_id: sensor.eve_room_df05_humidity
        - entity_id: sensor.schlafzimmer_esp32_humidity
        - entity_id: sensor.turmzimmer_epaper_esp32_humidity
        - entity_id: sensor.humidity
        type: custom:card-templater
          type: gauge
          entity: this.entity_id
          min: 0
          max: 100
          needle: true
          name_template: '{{ area_name("this.entity_id") }}'
            - from: 0
              color: red
            - from: 20
              color: orange
            - from: 40
              color: green
            - from: 60
              color: orange
            - from: 80
              color: red

This uses GitHub - thomasloven/lovelace-auto-entities: 🔹Automatically populate the entities-list of lovelace cards to generate a list of cards and GitHub - gadgetchnnel/lovelace-card-templater: Custom Lovelace card which allows Jinja2 templates to be applied to other cards to show area name.

1 Like