lovelace mini graph card

Home Assistant automation projects, questions, etc. go here.
Post Reply
Baylos
LED-Curious
LED-Curious
Reactions:
Posts: 22
Joined: Sat Nov 07, 2020 11:49 am

Hi,

I was searching for a way for a graphical showing of my ph value. As Lovelace was not offering so many options I searched and found a mini graph card addon.

It is from HACS. As I found nothing on my search I like to share it herewith to you.

I set it up and now my card in Lovelace looks like this:
custom mini graph.JPG

Code: Select all

entities:
  - entity: sensor.ph_sensor_temp
    index: 0
    name: Temp
  - entity: sensor.ph_sensor_ph
    index: 1
    name: PH
    show_state: true
    y_axis: secondary
font_size: 105
hour24: true
hours_to_show: 24
icon: 'mdi:sprout-outline'
line_color:
  - orange
  - blue
line_width: 12
name: Temp / PH
show:
  extrema: true
  average: true
style: |
  ha-card {
    height: 220px !important;
  }
type: 'custom:mini-graph-card'

Have fun
User avatar
LEDG
Site Admin
Reactions:
Posts: 1599
Joined: Sun Jun 04, 2017 8:15 pm

I really like the look of that. Thanks for sharing.
Want to Support the Site?

Use this Amazon referral link and any purchase you make within 24 hrs will earn LEDgardener a commission at no cost to you!
Mkozik1
LED-Curious
LED-Curious
Reactions:
Posts: 4
Joined: Thu Dec 17, 2020 5:12 am
Location: Monroe, GA

Very Nice!
warmachine
LED-Curious
LED-Curious
Reactions:
Posts: 18
Joined: Wed Sep 02, 2020 3:48 am

Looks good. I found this card a few weeks ago also. I needed a way to display more than one temp sensor together. Spent some time playing around and came up with this for temp and humidity: I like how you can set the color for high and low.

Code: Select all

type: vertical-stack
cards:
  - type: 'custom:mini-graph-card'
    name: Temp
    name_adaptive_color: true
    icon_adaptive_color: true
    animate: true
    height: 175
    line_width: 6
    lower_bound: 66
    upper_bound: ~81
    entities:
      - entity: sensor.th01_temperature
        name: Row1
      - entity: sensor.th03_temperature
        name: Row3
      - entity: sensor.th05_temperature
        name: Row5
    color_thresholds:
      - value: 66
        color: '#0000ff'
      - value: 70
        color: '#00ffff'
      - value: 74
        color: '#00ff00'
      - value: 75
        color: '#77ff00'
      - value: 76
        color: '#afff00'
      - value: 77
        color: '#ffff00'
      - value: 78
        color: '#ffaa00'
      - value: 79
        color: '#ff6600'
      - value: 80
        color: '#ff3300'
      - value: 81
        color: '#ff0000'
    points_per_hour: 1
  - type: 'custom:mini-graph-card'
    name: Humid
    name_adaptive_color: true
    icon_adaptive_color: true
    animate: true
    height: 175
    line_width: 6
    lower_bound: 38
    upper_bound: ~75
    entities:
      - entity: sensor.th01_humidity
        name: Row1
      - entity: sensor.th03_humidity
        name: Row3
      - entity: sensor.th05_humidity
        name: Row5
    color_thresholds:
      - value: 40
        color: '#0000ff'
      - value: 45
        color: '#00ffff'
      - value: 50
        color: '#00ff00'
      - value: 53
        color: '#77ff00'
      - value: 56
        color: '#afff00'
      - value: 59
        color: '#ffff00'
      - value: 62
        color: '#ffaa00'
      - value: 65
        color: '#ff6600'
      - value: 68
        color: '#ff3300'
      - value: 71
        color: '#ff0000'
    points_per_hour: 1
I'm not very good with lovelace but, I'm definitely interested in building a dashboard for control.
Attachments
mini graph.jpg
Post Reply