Lovelace: mini graph card

Plot the temperature sensor on the secondary axis.

Works! Thanks a lot!

Oh and is it possible to display the two actual values at the same time?

Yes, only the initial entity’s state is displayed by default but you can use the show_state entity option to display additional states.

- type: custom:mini-graph-card
  entities:
    - entity: sensor.temperature
    - entity: sensor.humidity
      show_state: true
1 Like

Now my setup is a step closer towards perfection! Thanks a lot Karl!

1 Like

Hi,
is it possible to Show only the values of the current day?
So the time from 00:00 - 24:00 of the current day?
And leave the rest(future) of the day blank? So if its 12:00 only the left half of the graph is shown with values

Thanks

4 Likes

My god, this would be perfect

I didn’t realise I needed this until I saw this comment


No, that’s currently not supported, but it’s a great idea.

1 Like

HI,

updating my graph configs from an older version, I notice several options went from

show:
  fill: true

to

show:
  show_fill: true

yet on the doc page you still mention the config without the show_ a few times, eg with the bar option at https://github.com/kalkih/mini-graph-card#bar-chart-card or as example at https://github.com/kalkih/mini-graph-card#alternative-style.

Please let me ask what we should do now, or are both supported?

Where did you see these changes? Nothing has changed about the show options, show-... is not supported and will not work.

maybe my misunderstanding then, but you wrote it here Lovelace: mini graph card and because of that I went to the github, and see this:

and eg this example config https://github.com/kalkih/mini-graph-card#alternate-y-axis

made a mistake above using a dash, meant to write an underscore, sorry for that, corrected in the post above

Might be my confusion between card and entity options


Oh yes, yeah you got it, those are entity object option, here are the show object options.

yes, see it now. thanks
 Sorry for my redundant question
 :blush:

Is it possible to have the tap action as a popup which displays the same mini-graph card?
I ask because I thought I could have it show a bigger version oft he graph in the pop-up.

Like this:

          - type: custom:mini-graph-card
            entities:

     other graph card options here

            tap_action:
              action: call-service
              service: browser_mod.command
              service_data:
                command: popup
                large: true
                deviceID:
                  - this
                card:
                  type: custom:mini-graph-card
                  entities:

    all the other graph card options EXCEPT the tap-action

Obviously this doesn’t work for me but is it possible?
Of course I am also using browser_mod by @thomasloven so it may even be function of that which stops it working?

I’ve never used browser_mod but if it’s just a service call I don’t see why it shouldn’t work, all service calls are made in the same way so it shouldn’t matter what type of service call it is.

What happens if you press the card? Nothing?

Yes, nothing.

I finally managed to get this working (I’m a bit of a novice to Home Assistant) and I have to say, it’s very cool.

I have one question though. Whith multiple graphs in one card, is it possible to click on one label in the legend and have that one persist, or like the standard graphs, just eliminate one line at a time?

You’re not properly calling the popup service, unless you have a very old version of browser_mod. Should be

service: browser_mod.popup

and command: popup is not necessary. See docs

1 Like

Thanks.

I have the latest version of browser_mod but have been using it for a long time so yes, all my configs are wrong!

However all my uses (and I have quite a lot) of browser_mod still work (except this graph) so maybe @thomasloven didn’t actually deprecate the old syntax?

And I am not sure how I missed such a big change


I’m going through and changing my config now


Ok, So all my browser_mod calls have been updated and work with the new correct syntax except the one I originally asked about.

Is this possible to do?

          - type: custom:mini-graph-card
            entities:

            [--- other graph card options here ---]

            tap_action:
              action: call-service
              service: browser_mod.popup
              service_data:
                large: true
                deviceID:
                  - this
                card:
                  type: custom:mini-graph-card
                  entities:

                  [--- all the other graph card options EXCEPT the tap-action ---]

And just to confirm I did ‘Empty Cache and Hard Reload’ and:

image