Lovelace: mini graph card

Thanks, for your help. I’ll take another look at the docs.

I managed to change the color of the Voltage to match the graph.

Is there any way to remove the Min and Max labels and also remove the time from this card. By default, when I set extrema to true, the time and min and max labels automatically appear.

I don’t use mini graph card my self but I believe its

extrema: false

ignore that you just want the labels removed

extrema: false

Removes everything. I just want to retain the sensor min and max values without the MIN, MAX label and time. Haven’t found anything in the docs that allows me to do that.

Yeh sorry I made an edit on my post, I realised that after I posted…
I don’t know how to remove it but the kind of person I am I would just change the label colour to the same as the background lol

How to edit extrema and average labels - was explained: card-mod thread - 1st post - link at the bottom - mini-graph.

Can someone help Here?

The Lines are to low and I want to have them higher.

Also the number I Like to have higher, Neer to the Icon…

Hope I am correct here😊

type: custom:mini-graph-card
entities:
  - sensor.pool_ph_wert
icon: mdi:ph
height: 300
name: ' '
line_width: 8
font_size: 100
show:
  labels: false
color_thresholds:
  - value: 6,8
    color: red
  - value: 7,0
    color: blue
  - value: 7,2
![IMG_5384|329x500](upload://9abiYM2yGaugRcsl8IR3to1ZnqV.jpeg)
style: |
    ha-card {
      {% set state = states('sensor.pool_ph_wert') | int %}
      {% if state <= 7.2 %} 
        --text-color: green;
      {% elif state <= 7.1 %}
        --text-color: greenyellow;
      {% elif state <= 7.4 %}
        --text-color: yellow;
      {% elif state <= 7.5 %}
        --text-color: orange;
      {% elif state <= 8.0 %}
        --text-color: red;
      {% endif %}
    }

Hello, I am working with mini graph card and other tools to try this card:

deseo

Actually I have this config working ok, but I am not able to add more identities to the lower card, and also put a name between temp and humidity figures as I showed in the first image:

actual

This is the code for the lower card (which I would like to modify):

type: custom:mini-graph-card
name: Temperatura y Humedad
decimals: 1
font_size_header: 15
height: 18
tap_action: false
entities:
  - entity: sensor.termostato_bano_alex_temperatura
    name: Temperatura
    show_state: true
    color: orange
    state_adaptive_color: true
    show_legend: true
    show_graph: false
  - entity: sensor.termostato_bano_alex_humedad
    name: Humedad
    show_state: true
    color: lightblue
    state_adaptive_color: true
    show_graph: false

Could you help me to get what I need please??

  • 3 lines with temp and humidity for each room
  • label of the room in the middle

Thanks a lot for your help

I would say that using mini-graph-card to show this
image
is not the best idea since:
– the card is not used for graphs,
– it would require advanced skills with card-mod,
– similar look may be achieved by other ways with other cards.

2 Likes

Agreed, seems like one for the custom button card.

Can somenone help here please?:blush:

What i’m doing wrong?

type: custom:mini-graph-card
entities:
  - entity: sensor.grow_tent_humidity
name: Luftfeuchtigkeit
show_state: true
hours_to_show: 24
points_per_hour: 2
color_thresholds: |
  {% if states('input_select.growing_phase') == 'Sämlingsphase' %}
    - value: 70
      color: '#FF5252'
    - value: 60
      color: '#69F0AE'
    - value: 50
      color: '#FF5252'
  {% endif %}

The first and last thresholds must have a set “value”. See mini-graph-card/README.md at master · kalkih/mini-graph-card · GitHub

  1. Templates not supported
  2. show_state - misplaced

I’m pretty sure you cannot template colour thresholds. I’ve also seen it work best when you set a min and max for the y-axis.

1 Like

So their is no way to format the color_thresholds dynamical?

Only if you place the mini-graph-card (MGC) inside config-template-card (CTC).
But I would not recommend place any graph card inside CTC - it will cause a full redraw of MGC on every change of any entity inside CTC.

2 Likes

Screenshot 2024-05-27 010416
Is there a way that the values that I circled here in red wont show up when hovering over the card while still being able to hover over the points in the graph?

Hi,
need help, dont know what im doing wrong.

i try to show my daily energy consumtion, but the results are wrong.
i use the “aggregate_func” and “group_by” features

type: custom:mini-graph-card
entities:
  - entity: sensor.shellypro3em_total_active_power
    name: Gesamt - letzte 10 Tage
    unit: W
    show_state: false
    show_graph: true
font_size: 100
hours_to_show: 288
aggregate_func: max
group_by: date
hour24: true
decimals: 0
line_width: 3
font_size_header: 14
align_state: right
show:
  labels: true
  extrema: true
  fill: true
  points: hover
  state: true
  average: true
  graph: bar
  name_adaptive_color: false
  icon_adaptive_color: true
color_thresholds:
  - value: 2500
    color: '#77c97e'
  - value: 3500
    color: '#F19D38'
  - value: 5000
    color: rgba(235, 39, 41, 0.8)

my value for yesterday (2798W) is wrong compared toe the built in home assistant
Bildschirmfoto 2024-05-31 um 11.15.42
this value is right…

can someone please help me. Thanks in advance.

Your current config plots the max power for the past 24 hours.

You’re comparing power (W or J/s) with energy (kWh or kJ). You cannot simply aggregate W to get (k)Wh.

If you have a utility meter for your energy consumption, you can plot that.

Thanks for your feedback.
But how the internal HA can do this?