Mini-graph-card: Show average as header value

Created on 24 Mar 2020  路  1Comment  路  Source: kalkih/mini-graph-card

This is shows the temperature of all my sensors in the house with different labels.

But I would really like to have the current average temperature from all these sensors as the value shown on top, instead of the first sensor (Vardagsrummet).

So instead of 22.46C it would show 22.18C .

image

- cards:
          - entities:
              - entity: sensor.sensor_temperature
                icon: 'mdi:sofa'
                name: Vardagsrummet
              - entity: sensor.sensor_hallen_temperature
                icon: 'mdi:door'
                name: Hallen
              - entity: sensor.kitchen_temperature
                icon: 'mdi:table-chair'
                name: K枚ket
              - entity: sensor.bedroom2_temperature
                icon: 'mdi:bunk-bed'
                name: Barnens rum
            hour24: true
            name: Temperatur
            type: 'custom:mini-graph-card'
question

Most helpful comment

Hello, this is a perfect use case for a template sensor.
Create a template sensor with the value being the average of the three.
Then use this sensor as the first entity in the card and hide it from the graph (optional).

>All comments

Hello, this is a perfect use case for a template sensor.
Create a template sensor with the value being the average of the three.
Then use this sensor as the first entity in the card and hide it from the graph (optional).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xstrex picture xstrex  路  7Comments

phardy picture phardy  路  3Comments

NapalmCandy picture NapalmCandy  路  4Comments

hajo62 picture hajo62  路  6Comments

tomlut picture tomlut  路  4Comments