Lovelace: mini graph card

It is!

Oh.
I thought I tried and it didnā€™t work and as far as I can see it is not in the docs so I assumed it hadnā€™t been added to the card.

I must have configured it wronglyā€¦ Iā€™ll try again.
Thanks!


EDIT: I canā€™t get this to work. I am pretty sure I have the syntax correct as I use it a lot on button-card
What am I missing?

      - type: custom:mini-graph-card
        icon: mdi:white-balance-sunny
        name: BRIGHTNESS
        entities:
          - entity: sensor.brightness
        decimals: 0
        points_per_hour: 2
        indicator: off
        align_icon: left
        align_header: left
        align_state: left
        font_size: 70   
        more_info: false
        animate: true
        hour24: true
        tap_action:
          action: fire-dom-event
          browser_mod:
            command: popup
            title: Brightness Sensor Values
            card:
              type: entities
              entities:
                - sensor.elevation
                - entity: sensor.openweathermap_cloud_coverage
                  name: OpenWeatherMap Cloud Coverage
                - sensor.period_of_day
        color_thresholds:
          - value: 0
            color: black
          - value: 5
            color: grey
          - value: 10
            color: yellow
        show:
          fill: true
          extrema: false
          labels: hover
          graph: bar
          icon_adaptive_color: true

image

Thanks.

Iā€™m trying to create a card with a tertiary y axis: (y_axis: tertiary) does not seem to work. I have a Philips Hue outdoor motion sensor which detects Motion, Temperature and Light. I want all them in there but I canā€™t get the motion sensor with teh agregate max to work. each should have their own y axis. How can I do this.
graph|690x429

type: 'custom:mini-graph-card'
hour24: true
name: 'Temperatuur, Beweging & Licht'
entities:
  - entity: sensor.sensor_tuinhuisje_temperature
    name: Temperatuur
  - entity: sensor.sensor_tuinhuisje_light_level
    name: Licht
    y_axis: secondary
  - entity: binary_sensor.sensor_tuinhuisje_motion
    name: Beweging
    color: red
points_per_hour: 8
aggregate_func: max
update_interval: 5
line_width: 2
smoothing: false
state_map:
  - value: 'off'
    label: Geen
  - value: 'on'
    label: Gedetecteert

From the Github page:

This issue has been resolved in version 0.11.0-dev.4

Well, that would explain it.
Thanks and sorryā€¦

Youā€™re very welcome. :slight_smile:

You could install the dev version or just wait a bit. If it is dev-4, it shouldnā€™t take too long to get to the stable version. :slight_smile:

1 Like

Good day, i ha a question:
i copy the code in my card but see the error becouse?

Can you share this background image.

Link to image did not work for me.

Background image can be set by card-mod:

Probably the person above is talking about a background for a view.

1 Like

Is this working fine for all? Tried to install via HACS and manually, but both ways end in an error.

image

EDIT: Figured this out already, n00b problem

Is it possible to add two sensor value in single mini-graph-card?

Like SS below.
tempsensor

1 Like
1 Like

yes. See this example from my config:

type: 'custom:mini-graph-card'
entities:
  - entity: sensor.energy_daily
    show_graph: true
    show_state: true
    color: red
  - entity: sensor.energy_hourly
    color: var(--accent-color)
    show_state: true
hours_to_show: 24
group_by: hour
show:
  graph: line
hour24: true
decimals: 2
lower_bound: 0

You need to use entities list and the property show_state set to true in both entities

1 Like

Good graphic is possbile to have the code please?thanks

A littlebit off-topic but how did you get that font?

Simply add the following link as a resource.

resources:
  - url: https://fonts.googleapis.com/css?family=Raleway
    type: stylesheet
1 Like

I really love this, my only question can I only show the value for today so starts at 00:00 instead of specifying the hours to show?

Schermafbeelding 2021-06-13 om 11.31.35

You cannot. Use apexcharts-card for this.

Anybody experienced issues with graphs not showing when using HA Cast? The card is shown but not the content within it.

This is what the dashboard should look like:

This is whatā€™s displayed on the Nest Hub: