kalkih / mini-graph-card

Minimalistic graph card for Home Assistant Lovelace UI
MIT License
2.85k stars 231 forks source link

Question: Average between two entities? #1094

Open Dumonster opened 2 months ago

Dumonster commented 2 months ago

Hi,

I have a graph with two entities (temperature sensors). Is there any way to have the value displayed be the average of these two?

I've read through the whole documentation and couldn't find it but there are so many options that I might have just missed it.

Thanks!

ildar170975 commented 2 months ago

Not possible. Create a template sensor to get an average value.

Dumonster commented 2 months ago

Thanks for your reply.

Follow up question: Can I then have that value displayed without a corresponding graph? As in, I'd like to have the grafic showing only the two original sensors and then just the current value from the template sensor.

ildar170975 commented 2 months ago

There is an example in docs

Dumonster commented 2 months ago

I've looked through the docs and examples once more and didn't find it.

Thanks anyway.

ildar170975 commented 2 months ago

Since you need

have that value displayed without a corresponding graph

you should check a chapter about “show additional data”. It is about showing a state without showing a graph. If you need a different look - consider using other custom solutions.